From 6b005e6d3f665d1879c4dba2f52fddeac9a881bb Mon Sep 17 00:00:00 2001 From: liuyp Date: Thu, 23 May 2024 23:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E8=BF=90=E5=8D=95?= =?UTF-8?q?=E5=AF=84=E4=BB=B6=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=20&=20?= =?UTF-8?q?=E8=BF=90=E5=8D=95=E7=AD=BE=E6=94=B6=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=EF=BC=9B=E5=8F=A6=EF=BC=8C=E4=BF=AE=E5=A4=8D=E8=BD=AC?= =?UTF-8?q?=E4=BB=B6=E7=AE=A1=E7=90=86=E9=A1=B5bug=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageUpload/index.vue | 7 +- ...loadThePictureOfTheSendWaybillShipment.vue | 253 ++++++++++++++++++ .../uploadThePictureOfTheWaybillSigning.vue | 253 ++++++++++++++++++ .../emisWaybillTransfer/waybillTransfer.vue | 10 +- 4 files changed, 518 insertions(+), 5 deletions(-) create mode 100644 src/views/emis/emisWaybill/uploadThePictureOfTheSendWaybillShipment.vue create mode 100644 src/views/emis/emisWaybill/uploadThePictureOfTheWaybillSigning.vue diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index d975ab06..08ff2306 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -79,7 +79,8 @@ export default { baseUrl: process.env.VUE_APP_BASE_API, uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/ossUpload", // 上传的图片服务器地址 headers: { "X-Token": getToken() }, - fileList: [] + fileList: [], + filesSize:{} }; }, watch: { @@ -122,6 +123,7 @@ export default { if(findex > -1) { this.fileList.splice(findex, 1); this.$emit("input", this.listToString(this.fileList)); + this.filesSize[file.name] = null; } }, // 上传成功回调 @@ -132,7 +134,7 @@ export default { this.fileList = this.fileList.concat(this.uploadList); this.uploadList = []; this.number = 0; - this.$emit("input", this.listToString(this.fileList)); + this.$emit("input", this.listToString(this.fileList), this.filesSize); this.$modal.closeLoading(); } }, @@ -164,6 +166,7 @@ export default { return false; } } + this.filesSize[file.name] = file.size this.$modal.loading("正在上传图片,请稍候..."); this.number++; }, diff --git a/src/views/emis/emisWaybill/uploadThePictureOfTheSendWaybillShipment.vue b/src/views/emis/emisWaybill/uploadThePictureOfTheSendWaybillShipment.vue new file mode 100644 index 00000000..08ffcbe5 --- /dev/null +++ b/src/views/emis/emisWaybill/uploadThePictureOfTheSendWaybillShipment.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/emis/emisWaybill/uploadThePictureOfTheWaybillSigning.vue b/src/views/emis/emisWaybill/uploadThePictureOfTheWaybillSigning.vue new file mode 100644 index 00000000..954efcb4 --- /dev/null +++ b/src/views/emis/emisWaybill/uploadThePictureOfTheWaybillSigning.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/emis/emisWaybillTransfer/waybillTransfer.vue b/src/views/emis/emisWaybillTransfer/waybillTransfer.vue index ac5d5c95..4add55f8 100644 --- a/src/views/emis/emisWaybillTransfer/waybillTransfer.vue +++ b/src/views/emis/emisWaybillTransfer/waybillTransfer.vue @@ -147,8 +147,12 @@ {{ parseTime(scope.row.transferDate) }} - - + + + /> + @@ -198,7 +202,7 @@ clearable v-model="form.transferExpress" > - +