Showing
5 changed files
with
57 additions
and
36 deletions
| ... | @@ -148,8 +148,10 @@ | ... | @@ -148,8 +148,10 @@ |
| 148 | <div v-else-if="item.prop == 'recipientContactName'"> | 148 | <div v-else-if="item.prop == 'recipientContactName'"> |
| 149 | <span | 149 | <span |
| 150 | v-if=" | 150 | v-if=" |
| 151 | - scope.row.userUuid == $store.getters.userData.userUuid && | 151 | + scope.row.userUuid == $store.getters.userData.userUuid || |
| 152 | - scope.row.shipperAccount == $store.getters.userData.accountNo | 152 | + scope.row.shipperAccount == $store.getters.userData.accountNo || |
| 153 | + scope.row.userInputShipperAccount == | ||
| 154 | + $store.getters.userData.accountNo | ||
| 153 | " | 155 | " |
| 154 | >{{ scope.row.recipientContactName }}</span | 156 | >{{ scope.row.recipientContactName }}</span |
| 155 | > | 157 | > |
| ... | @@ -157,8 +159,10 @@ | ... | @@ -157,8 +159,10 @@ |
| 157 | <div v-else-if="item.prop == 'recipientCompany'"> | 159 | <div v-else-if="item.prop == 'recipientCompany'"> |
| 158 | <span | 160 | <span |
| 159 | v-if=" | 161 | v-if=" |
| 160 | - scope.row.userUuid == $store.getters.userData.userUuid && | 162 | + scope.row.userUuid == $store.getters.userData.userUuid || |
| 161 | - scope.row.shipperAccount == $store.getters.userData.accountNo | 163 | + scope.row.shipperAccount == $store.getters.userData.accountNo || |
| 164 | + scope.row.userInputShipperAccount == | ||
| 165 | + $store.getters.userData.accountNo | ||
| 162 | " | 166 | " |
| 163 | >{{ scope.row.recipientCompany }}</span | 167 | >{{ scope.row.recipientCompany }}</span |
| 164 | > | 168 | > |
| ... | @@ -166,8 +170,10 @@ | ... | @@ -166,8 +170,10 @@ |
| 166 | <div v-else-if="item.prop == 'shipperCountry'"> | 170 | <div v-else-if="item.prop == 'shipperCountry'"> |
| 167 | <span | 171 | <span |
| 168 | v-if=" | 172 | v-if=" |
| 169 | - scope.row.uuid == $store.getters.userData.userUuid && | 173 | + scope.row.userUuid == $store.getters.userData.userUuid || |
| 170 | - scope.row.shipperAccount == $store.getters.userData.accountNo | 174 | + scope.row.shipperAccount == $store.getters.userData.accountNo || |
| 175 | + scope.row.userInputShipperAccount == | ||
| 176 | + $store.getters.userData.accountNo | ||
| 171 | " | 177 | " |
| 172 | >{{ scope.row.shipperCountry }}</span | 178 | >{{ scope.row.shipperCountry }}</span |
| 173 | > | 179 | > | ... | ... |
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| 8 | :close-on-click-modal="false" | 8 | :close-on-click-modal="false" |
| 9 | center | 9 | center |
| 10 | v-loading="loadings.dialogLoading" | 10 | v-loading="loadings.dialogLoading" |
| 11 | + @close="closeDialog" | ||
| 11 | > | 12 | > |
| 12 | <div class="dialogContent"> | 13 | <div class="dialogContent"> |
| 13 | <div class="dialogTitle"> | 14 | <div class="dialogTitle"> |
| ... | @@ -52,7 +53,7 @@ | ... | @@ -52,7 +53,7 @@ |
| 52 | :key="idx" | 53 | :key="idx" |
| 53 | > | 54 | > |
| 54 | <div class="filtItemData-name"> | 55 | <div class="filtItemData-name"> |
| 55 | - <i class="el-icon-document" />{{ file.fileName }} | 56 | + <i class="el-icon-document" />{{ file.sourceFileName }} |
| 56 | </div> | 57 | </div> |
| 57 | <div class="filtItemData-option"> | 58 | <div class="filtItemData-option"> |
| 58 | <span>{{ file.fileSize }}</span> | 59 | <span>{{ file.fileSize }}</span> |
| ... | @@ -185,7 +186,7 @@ export default { | ... | @@ -185,7 +186,7 @@ export default { |
| 185 | dialogLoading: false, | 186 | dialogLoading: false, |
| 186 | tableLoading: false, | 187 | tableLoading: false, |
| 187 | }, | 188 | }, |
| 188 | - tableMaxheight: 300, | 189 | + tableMaxheight: 700, |
| 189 | }; | 190 | }; |
| 190 | }, | 191 | }, |
| 191 | watch: { | 192 | watch: { |
| ... | @@ -280,7 +281,20 @@ export default { | ... | @@ -280,7 +281,20 @@ export default { |
| 280 | this.closeDialog(data, "copy"); | 281 | this.closeDialog(data, "copy"); |
| 281 | }, | 282 | }, |
| 282 | viewFile(val) {}, | 283 | viewFile(val) {}, |
| 283 | - downloadFile(val) {}, | 284 | + downloadFile(val) { |
| 285 | + this.zipdownload | ||
| 286 | + .downLoadZip( | ||
| 287 | + "biz-customer/attachment/downLoadFile", | ||
| 288 | + { | ||
| 289 | + name: val.fileName, | ||
| 290 | + path: val.filePath, | ||
| 291 | + }, | ||
| 292 | + val.sourceFileName | ||
| 293 | + ) | ||
| 294 | + .then((res) => { | ||
| 295 | + console.log(res); | ||
| 296 | + }); | ||
| 297 | + }, | ||
| 284 | expandChange(val) { | 298 | expandChange(val) { |
| 285 | let total = 0; | 299 | let total = 0; |
| 286 | val.files.forEach((item) => { | 300 | val.files.forEach((item) => { | ... | ... |
| ... | @@ -13,8 +13,8 @@ | ... | @@ -13,8 +13,8 @@ |
| 13 | v-if=" | 13 | v-if=" |
| 14 | headData.id == null || | 14 | headData.id == null || |
| 15 | headData.id == '0' || | 15 | headData.id == '0' || |
| 16 | - (headData.userUuid != $store.getters.userData.userUuid && | 16 | + ((headData.userUuid == null || headData.userUuid == '') && |
| 17 | - headData.shipperAccount != $store.getters.userData.accountNo) | 17 | + (headData.createUserId == null || createUserId == '')) |
| 18 | " | 18 | " |
| 19 | > | 19 | > |
| 20 | <div class="formRowTitle"> | 20 | <div class="formRowTitle"> |
| ... | @@ -609,11 +609,9 @@ export default { | ... | @@ -609,11 +609,9 @@ export default { |
| 609 | let reg = /[^\d]/; | 609 | let reg = /[^\d]/; |
| 610 | if (value.length != 9 && value.length != 12) { | 610 | if (value.length != 9 && value.length != 12) { |
| 611 | callback("TRACKING NUMBER需为12位!"); | 611 | callback("TRACKING NUMBER需为12位!"); |
| 612 | - } | 612 | + } else if (reg.test(value)) { |
| 613 | - // else if (reg.test(value)) { | 613 | + callback("TRACKING NUMBER需为数字!"); |
| 614 | - // callback("TRACKING NUMBER需为数字!"); | 614 | + } else { |
| 615 | - // } | ||
| 616 | - else { | ||
| 617 | callback(); | 615 | callback(); |
| 618 | } | 616 | } |
| 619 | } else { | 617 | } else { |
| ... | @@ -745,7 +743,7 @@ export default { | ... | @@ -745,7 +743,7 @@ export default { |
| 745 | if (blurType == "code") { | 743 | if (blurType == "code") { |
| 746 | this.formItemDisableType( | 744 | this.formItemDisableType( |
| 747 | [true, false, false], | 745 | [true, false, false], |
| 748 | - val.consignmentId, | 746 | + val.consignment, |
| 749 | blurType | 747 | blurType |
| 750 | ); | 748 | ); |
| 751 | this.oldData.consignmentCode = this.headData.consignmentCode; | 749 | this.oldData.consignmentCode = this.headData.consignmentCode; |
| ... | @@ -758,7 +756,7 @@ export default { | ... | @@ -758,7 +756,7 @@ export default { |
| 758 | ) { | 756 | ) { |
| 759 | this.formItemDisableType( | 757 | this.formItemDisableType( |
| 760 | [true, true, true], | 758 | [true, true, true], |
| 761 | - val.consignmentId, | 759 | + val.consignment, |
| 762 | blurType | 760 | blurType |
| 763 | ); | 761 | ); |
| 764 | } else { | 762 | } else { |
| ... | @@ -769,7 +767,7 @@ export default { | ... | @@ -769,7 +767,7 @@ export default { |
| 769 | ).then(() => { | 767 | ).then(() => { |
| 770 | this.formItemDisableType( | 768 | this.formItemDisableType( |
| 771 | [true, true, true], | 769 | [true, true, true], |
| 772 | - val.consignmentId, | 770 | + val.consignment, |
| 773 | blurType | 771 | blurType |
| 774 | ); | 772 | ); |
| 775 | }); | 773 | }); |
| ... | @@ -783,13 +781,13 @@ export default { | ... | @@ -783,13 +781,13 @@ export default { |
| 783 | if (val.message != null && val.message != "") { | 781 | if (val.message != null && val.message != "") { |
| 784 | this.tipStatus = 1; | 782 | this.tipStatus = 1; |
| 785 | this.tipcontent = val.message; | 783 | this.tipcontent = val.message; |
| 786 | - this.tipOpen(val.consignmentId, blurType, 1); | 784 | + this.tipOpen(val.consignment, blurType, 1); |
| 787 | } else { | 785 | } else { |
| 788 | - headData.id = val.consignmentId; | 786 | + headData = val.consignment; |
| 789 | this.$emit("searchWaybillData", headData); | 787 | this.$emit("searchWaybillData", headData); |
| 790 | } | 788 | } |
| 791 | } else if (blurType == "account") { | 789 | } else if (blurType == "account") { |
| 792 | - headData.id = val.consignmentId; | 790 | + headData = val.consignment; |
| 793 | this.$emit("searchWaybillData", headData); | 791 | this.$emit("searchWaybillData", headData); |
| 794 | } | 792 | } |
| 795 | } else if (val.isCreatorFlag == 2) { | 793 | } else if (val.isCreatorFlag == 2) { |
| ... | @@ -798,11 +796,11 @@ export default { | ... | @@ -798,11 +796,11 @@ export default { |
| 798 | if (blurType == "code") { | 796 | if (blurType == "code") { |
| 799 | this.tipStatus = 2; | 797 | this.tipStatus = 2; |
| 800 | this.tipcontent = val.message; | 798 | this.tipcontent = val.message; |
| 801 | - this.tipOpen(val.consignmentId, blurType, 2); | 799 | + this.tipOpen(val.consignment, blurType, 2); |
| 802 | } else if (blurType == "account") { | 800 | } else if (blurType == "account") { |
| 803 | this.formItemDisableType( | 801 | this.formItemDisableType( |
| 804 | [true, true, true], | 802 | [true, true, true], |
| 805 | - val.consignmentId, | 803 | + val.consignment, |
| 806 | blurType | 804 | blurType |
| 807 | ); | 805 | ); |
| 808 | } | 806 | } |
| ... | @@ -822,7 +820,7 @@ export default { | ... | @@ -822,7 +820,7 @@ export default { |
| 822 | setTimeout(() => { | 820 | setTimeout(() => { |
| 823 | if (res.code === 200) { | 821 | if (res.code === 200) { |
| 824 | res.data.message = res.msg; | 822 | res.data.message = res.msg; |
| 825 | - this.oldData.id = res.data.consignmentId; | 823 | + this.oldData.id = res.data.consignment.id; |
| 826 | resolve(res); | 824 | resolve(res); |
| 827 | } else { | 825 | } else { |
| 828 | this.msgWarning(res.msg); | 826 | this.msgWarning(res.msg); |
| ... | @@ -838,7 +836,7 @@ export default { | ... | @@ -838,7 +836,7 @@ export default { |
| 838 | }); | 836 | }); |
| 839 | }); | 837 | }); |
| 840 | }, | 838 | }, |
| 841 | - formItemDisableType(typeList, id, blurType) { | 839 | + formItemDisableType(typeList, data, blurType) { |
| 842 | let key = ["userInputShipperAccount", "userInputOriginCountryCode"]; | 840 | let key = ["userInputShipperAccount", "userInputOriginCountryCode"]; |
| 843 | key.forEach((item, idx) => { | 841 | key.forEach((item, idx) => { |
| 844 | this.rules[item][0].required = typeList[idx]; | 842 | this.rules[item][0].required = typeList[idx]; | ... | ... |
| ... | @@ -11,8 +11,8 @@ | ... | @@ -11,8 +11,8 @@ |
| 11 | id != '' && | 11 | id != '' && |
| 12 | id != null && | 12 | id != null && |
| 13 | id != '0' && | 13 | id != '0' && |
| 14 | - (headData.userUuid == $store.getters.userData.userUuid || | 14 | + (headData.userUuid == null || headData.userUuid == '') && |
| 15 | - headData.shipperAccount == $store.getters.userData.accountNo) | 15 | + (headData.createUserId == null || createUserId == '') |
| 16 | " | 16 | " |
| 17 | >:{{ headData.consignmentCode }}</span | 17 | >:{{ headData.consignmentCode }}</span |
| 18 | > | 18 | > |
| ... | @@ -351,9 +351,12 @@ export default { | ... | @@ -351,9 +351,12 @@ export default { |
| 351 | this.headData.shipperAddrLine = shipperAdd; | 351 | this.headData.shipperAddrLine = shipperAdd; |
| 352 | }, | 352 | }, |
| 353 | searchWaybillData(val) { | 353 | searchWaybillData(val) { |
| 354 | - if (val.id != null && val.id != "") { | 354 | + if (val != null && val != "") { |
| 355 | this.id = val.id; | 355 | this.id = val.id; |
| 356 | - this.searchhData(); | 356 | + this.headDisabled = true; |
| 357 | + // this.searchhData(); | ||
| 358 | + this.headData = val; | ||
| 359 | + this.searchFileData(); | ||
| 357 | } | 360 | } |
| 358 | }, | 361 | }, |
| 359 | fileDataChange(val) { | 362 | fileDataChange(val) { | ... | ... |
| ... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
| 63 | :key="idx" | 63 | :key="idx" |
| 64 | > | 64 | > |
| 65 | <div class="fileName"> | 65 | <div class="fileName"> |
| 66 | - <i class="el-icon-document" />{{ file.fileName }} | 66 | + <i class="el-icon-document" />{{ file.sourceFileName }} |
| 67 | </div> | 67 | </div> |
| 68 | <div class="fileOption"> | 68 | <div class="fileOption"> |
| 69 | <!-- 文件大小 --> | 69 | <!-- 文件大小 --> |
| ... | @@ -173,7 +173,7 @@ export default { | ... | @@ -173,7 +173,7 @@ export default { |
| 173 | fileSum = Number(fileSum) + Number(item.files.length); | 173 | fileSum = Number(fileSum) + Number(item.files.length); |
| 174 | item.files.forEach((file) => { | 174 | item.files.forEach((file) => { |
| 175 | fileSize = Number(fileSize) + Number(file.fileSize); | 175 | fileSize = Number(fileSize) + Number(file.fileSize); |
| 176 | - fileNameArray.push(file.fileName); | 176 | + fileNameArray.push(file.sourceFileName); |
| 177 | }); | 177 | }); |
| 178 | }); | 178 | }); |
| 179 | if (fileSum + 1 > 100) { | 179 | if (fileSum + 1 > 100) { |
| ... | @@ -194,7 +194,7 @@ export default { | ... | @@ -194,7 +194,7 @@ export default { |
| 194 | id: null, | 194 | id: null, |
| 195 | bizId: null, | 195 | bizId: null, |
| 196 | bizTypeName: null, | 196 | bizTypeName: null, |
| 197 | - sourceFileName: null, | 197 | + sourceFileName: val.file.name, |
| 198 | filePath: null, | 198 | filePath: null, |
| 199 | fileTypeCode: null, | 199 | fileTypeCode: null, |
| 200 | fileTypeName: this.fileFormData.uploadType, | 200 | fileTypeName: this.fileFormData.uploadType, |
| ... | @@ -224,7 +224,7 @@ export default { | ... | @@ -224,7 +224,7 @@ export default { |
| 224 | obj.file = e.target.result; | 224 | obj.file = e.target.result; |
| 225 | arr.forEach((item, index) => { | 225 | arr.forEach((item, index) => { |
| 226 | if (item.uploadType == this.fileFormData.uploadType) { | 226 | if (item.uploadType == this.fileFormData.uploadType) { |
| 227 | - obj.index = index; | 227 | + obj.index = item.files.length == 0 ? 0 : item.files.length - 1; |
| 228 | item.files.push(obj); | 228 | item.files.push(obj); |
| 229 | } | 229 | } |
| 230 | }); | 230 | }); |
| ... | @@ -236,7 +236,7 @@ export default { | ... | @@ -236,7 +236,7 @@ export default { |
| 236 | if (val.file.split(";base64,").length > 1) { | 236 | if (val.file.split(";base64,").length > 1) { |
| 237 | const aLink = document.createElement("a"); | 237 | const aLink = document.createElement("a"); |
| 238 | aLink.href = val.file; | 238 | aLink.href = val.file; |
| 239 | - aLink.setAttribute("download", val.fileName); // 设置下载文件名称 | 239 | + aLink.setAttribute("download", val.sourceFileName); // 设置下载文件名称 |
| 240 | document.body.appendChild(aLink); | 240 | document.body.appendChild(aLink); |
| 241 | aLink.click(); | 241 | aLink.click(); |
| 242 | document.body.removeChild(aLink); | 242 | document.body.removeChild(aLink); |
| ... | @@ -248,7 +248,7 @@ export default { | ... | @@ -248,7 +248,7 @@ export default { |
| 248 | name: val.fileName, | 248 | name: val.fileName, |
| 249 | path: val.filePath, | 249 | path: val.filePath, |
| 250 | }, | 250 | }, |
| 251 | - val.fileName | 251 | + val.sourceFileName |
| 252 | ) | 252 | ) |
| 253 | .then((res) => { | 253 | .then((res) => { |
| 254 | console.log(res); | 254 | console.log(res); | ... | ... |
-
Please register or login to post a comment