diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue index 9730c663..2203e5db 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue @@ -235,8 +235,8 @@ sizeUnit: 'MB', fileSize: 5, unit: "0", + advance: "", transportType: "0", - advance: "0", action: this.define.APIURl + '/api/tradeupload/Tradeupload/UploaderPondList/annexpic', imageUrl: '', code: '100', @@ -264,7 +264,7 @@ netWeight: 0, unit: "0", transportType: "0", - advance: "0", + advance: "", transportPrice: 0, originPlace: [], salesPrice: 0, @@ -341,6 +341,11 @@ message: '请选择业务员', trigger: 'change' }, ], + advance: [{ + required: true, + message: '请选择是否垫资', + trigger: 'change' + }, ], }, materialIdcolumnOptions: [{ "label": "物料编码", @@ -599,7 +604,7 @@ var netWeight = this.dataForm.netWeight; //净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) { this.$message({ message: '毛重必须等于皮重+扣重+净重', @@ -684,7 +689,7 @@ var netWeight = this.dataForm.netWeight; //净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) { this.$message({ message: '毛重必须等于皮重+扣重+净重', diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form3.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form3.vue index c6b2b47c..cf1ffedd 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Form3.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form3.vue @@ -253,7 +253,7 @@ fileSize: 5, unit: "0", transportType: "0", - advance: "0", + advance: '', action: this.define.APIURl + '/api/tradeupload/Tradeupload/UploaderPondList/annexpic', imageUrl: '', code: '100', @@ -275,6 +275,7 @@ vehiclePictures: [], poundDate: '', poundlistNo: '', + advance: '', tareWeight: 0, grossWeight: 0, buckleWeight: 0, @@ -282,7 +283,6 @@ netWeight: 0, unit: "0", transportType: "0", - advance: "0", transportPrice: 0, originPlace: [], salesPrice: 0, @@ -359,6 +359,11 @@ message: '请选择业务员', trigger: 'change' }, ], + advance: [{ + required: true, + message: '请选择是否垫资', + trigger: 'blur' + }, ], }, materialIdcolumnOptions: [{ "label": "物料编码", @@ -568,6 +573,7 @@ this.dataForm.vehicleId = res.data.vehicleId; this.dataForm.poundDate = res.data.poundDate; this.dataForm.poundlistNo = res.data.poundlistNo; + this.dataForm.advance = res.data.advance; this.dataForm.tareWeight = res.data.tareWeight > 1000 ? (res.data.tareWeight / 1000).toFixed(6) : res.data .tareWeight; this.dataForm.grossWeight = res.data.grossWeight > 1000 ? (res.data.grossWeight / 1000).toFixed(6) : res @@ -636,7 +642,7 @@ var netWeight = this.dataForm.netWeight; //净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) { this.$message({ message: '毛重必须等于皮重+扣重+净重', @@ -721,7 +727,7 @@ var netWeight = this.dataForm.netWeight;//净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if(grossWeight < tareWeight + buckleWeight + netWeight){ this.$message({ message: '毛重不得小于皮重+扣重+净重', @@ -885,6 +891,7 @@ this.dataForm.buckleWeight = 0; //扣重 this.dataForm.netWeight = 0; //净重 this.dataForm.poundlistNo = ''; + this.dataForm.advance = ''; this.$refs.poundUpload.handleRemove(0); } }) @@ -909,6 +916,7 @@ this.dataForm.buckleWeight = 0; //扣重 this.dataForm.netWeight = 0; //净重 this.dataForm.poundlistNo = ''; + this.dataForm.advance = ''; this.$refs.poundUpload.handleRemove(0); } }) @@ -979,7 +987,8 @@ _dataAll.buckleWeight = 0; //扣重 _dataAll.netWeight = 0; //净重 _dataAll.poundlistNo = ''; - this.advance = dataAll.advance; + // this.advance = ''; + _dataAll.advance= ''; this.unit = dataAll.unit; this.transportType = dataAll.transportType; //this.$refs.poundUpload.handleRemove(0); @@ -1029,6 +1038,7 @@ this.dataForm.vehicleId = res.data.vehicleId; this.dataForm.poundDate = res.data.poundDate; this.dataForm.poundlistNo = res.data.poundlistNo; + this.dataForm.advance = res.data.advance; this.dataForm.tareWeight = res.data.tareWeight; this.dataForm.grossWeight = res.data.grossWeight; this.dataForm.buckleWeight = res.data.buckleWeight; diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue index 9cbaaa25..a8702083 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue @@ -284,7 +284,7 @@ netWeight: 0, unit: "0", transportType: "0", - advance: "0", + advance: "", transportPrice: 0, originPlace: [], salesPrice: 0, @@ -361,6 +361,11 @@ message: '请选择业务员', trigger: 'change' }, ], + advance: [{ + required: true, + message: '请选择是否垫资', + trigger: 'change' + }, ], }, materialIdcolumnOptions: [{ "label": "物料编码", @@ -623,7 +628,7 @@ var netWeight = this.dataForm.netWeight; //净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) { this.$message({ message: '毛重必须等于皮重+扣重+净重', @@ -698,7 +703,7 @@ var netWeight = this.dataForm.netWeight; //净重 this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0; this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0; - this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; + // this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0; if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) { this.$message({ message: '毛重必须等于皮重+扣重+净重',