diff --git a/src/api/financialCenter/enterpriseRecharge.js b/src/api/financialCenter/enterpriseRecharge.js index 1f219ec..42756ae 100644 --- a/src/api/financialCenter/enterpriseRecharge.js +++ b/src/api/financialCenter/enterpriseRecharge.js @@ -21,7 +21,7 @@ const save = (params) => { }; // 修改 const update = (params) => { - return request.postJson( + return request.postPut( "/oil-finance/oilCompanyAccountReverse/update", params ); diff --git a/src/api/order.js b/src/api/order.js index ce65aeb..e7a78fd 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -13,7 +13,11 @@ const billSave = (params) => { }; //修改提货单 const update = (params) => { - return request.putJson("/oil-refinery/xoilRefineryDelivery/update", params); + return request.postPut("/oil-refinery/xoilRefineryDelivery/update", params); +}; +//修改提货单 +const orderUpdate = (params) => { + return request.postPut("/oil-refinery/xoilRefineryOrder/update", params); }; //查看订单信息 const findByOrderId = (id) => { @@ -21,7 +25,7 @@ const findByOrderId = (id) => { }; //修改提货单 const deleteBill = (params) => { - return request.putJson("/oil-refinery/xoilRefineryDelivery/delete", params); + return request.postPut("/oil-refinery/xoilRefineryDelivery/delete", params); }; //下单 const orderSuccess = (params) => { @@ -33,13 +37,20 @@ const orderLock = (params) => { }; //确认下单 const orderComplete = (params) => { - return request.postJson("/oil_refinery/xoilRefineryOrder/orderComplete", params); + return request.postJson("/oil-refinery/xoilRefineryOrder/orderComplete", params); +}; +//订单退款 +const orderRefund = (params) => { + return request.postJson("/oil-refinery/xoilRefineryOrder/orderRefund", params); +}; +//油批中心信息 +const getlnfoByld = (params) => { + return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getInfoById", params); +}; +//油批中心列表 +const getRecordsByActld = (params) => { + return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getRecordsByActId", params); }; - - - - - export default { getByPage, @@ -50,5 +61,9 @@ export default { deleteBill, orderSuccess, orderLock, - orderComplete + orderComplete, + orderRefund, + orderUpdate, + getlnfoByld, + getRecordsByActld }; diff --git a/src/components/generalDetails/index.vue b/src/components/generalDetails/index.vue index 8d8a9d2..b26a077 100644 --- a/src/components/generalDetails/index.vue +++ b/src/components/generalDetails/index.vue @@ -123,14 +123,15 @@ export default { iconClass: mappingDataItem.iconClass || "iconjichuziliao", isFold: mappingDataItem.isFold || true, listData: mappingDataItem.carItems.map((carItem) => { + let value = + (typeof carItem.value == "function" && + carItem.value(shineData)) || + shineData[carItem.value] == 0 + ? 0 + : shineData[carItem.value] || carItem.fieldDefault || ""; return { label: carItem.label, - value: - (typeof carItem.value == "function" && - carItem.value(shineData)) || - shineData[carItem.value] || - carItem.fieldDefault || - "暂无数据", + value: value, field: carItem.value, remark: carItem.remark, isCopy: carItem.isCopy || false, diff --git a/src/utils/axios.js b/src/utils/axios.js index 3642e91..62cc0ff 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -24,7 +24,7 @@ export default { data: data, }); }, - putJson(url, data) { + postPut(url, data) { return axios({ url: url, method: "put", diff --git a/src/views/financialCenter/enterpriseRecharge/components/add.vue b/src/views/financialCenter/enterpriseRecharge/components/add.vue index a002122..e591135 100644 --- a/src/views/financialCenter/enterpriseRecharge/components/add.vue +++ b/src/views/financialCenter/enterpriseRecharge/components/add.vue @@ -105,10 +105,17 @@ > @@ -281,6 +288,17 @@ export default { this.handleRemove(); } }, + beforeHandle(file) { + if (file.type.indexOf("image/") === -1) { + this.$message.error("上传的文件不是图片格式!"); + return false; + } else if (file.size / 1024 / 1024 > 5) { + this.$message.error("上传图片大小不能超过 5MB!"); + return false; + } + return true; + }, + //img大图 handlePictureCardPreview(file) { this.form.offlineTransactionProof = file.url; @@ -292,9 +310,13 @@ export default { }, // 上传成功 handleSuccess(response, file, fileList) { - if (response.code === 20000) { - this.form.offlineTransactionProof = response.data.publicUrl; + if (response.code !== 20000) { + this.$message.error(response.msg); + this.fileList = []; + return; } + console.log("response", response); + this.form.offlineTransactionProof = response.data.publicUrl; }, //企业收款账户 getCascaderList() { diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue index 63554ec..251bb09 100644 --- a/src/views/order/components/billOfLading.vue +++ b/src/views/order/components/billOfLading.vue @@ -105,7 +105,7 @@
取消 - 订单确认 + 订单确认
@@ -258,6 +258,8 @@ export default { case 'SUBMITED': return {orderLabel:'订单提交',label:'等待信息',info:'等待信息锁定',type:'warning',type1:'info',orderType:'info'} case 'PLATENUM_LOCKED': return {orderLabel:'下单中',label:'信息锁定',info:'提货信息确认',type:'info',type1:'success',orderType:'warning'} case 'PLATENUM_SUCCESS': return {orderLabel:'下单成功',label:'提货中',info:'提货量确认',type:'',type1:'warning',orderType:''} + case 'ORDER_LOCKED': return {orderLabel:'下单中',label:'信息锁定',info:'提货信息确认',type:'info',type1:'success',orderType:'warning'} + case 'ORDER_SUCCESS': return {orderLabel:'下单成功',label:'提货中',info:'提货量确认',type:'',type1:'warning',orderType:''} case 'DELIVERING': return {orderLabel:'提货中',label:'提货中', type: ''} case 'COMPLETE': return {orderLabel:'订单完成',label:'提货完成',info:'提货完成',type:'success',type1:'info',orderType:'success'} case 'CANCELED': return {orderLabel:'订单取消',label:'订单取消',info:'订单取消',type:'info',type1:'dark',orderType:'info'} diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 8c6180b..b44ffe3 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -22,7 +22,13 @@ :params="parameter.params" :config="configAutocompleteLc" /> - + + +
查询 { + order.orderUpdate({id:row.id,orderStatus:'CANCELED'}).then((res) => { if(res.code==20000){ this.getByPage() } }); }else{ - + order.orderRefund({id:row.id}).then((res) => { + if(res.code==20000){ + this.getByPage() + } + }); } }, //新增 diff --git a/src/views/refineryCenter/components/billOfLading.vue b/src/views/refineryCenter/components/billOfLading.vue new file mode 100644 index 0000000..25a3ace --- /dev/null +++ b/src/views/refineryCenter/components/billOfLading.vue @@ -0,0 +1,456 @@ + + + + + diff --git a/src/views/refineryCenter/index.vue b/src/views/refineryCenter/index.vue new file mode 100644 index 0000000..db3cbef --- /dev/null +++ b/src/views/refineryCenter/index.vue @@ -0,0 +1,505 @@ + + + + +