Browse Source

[CODE]: 调拨、货转 审批时 回显

maxianghua 4 years ago
parent
commit
1481235220

+ 7 - 0
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -1935,13 +1935,20 @@
                 this.formBrowseStatus = true
               }
               this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
+              this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
             }
             this.goodsOptions = response.data.goodsList
             if (response.data.warehousebillsfeesDr) {
               this.warehouseDrList = response.data.warehousebillsfeesDr
+              for (let dr in this.warehouseDrList) {
+                this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + '');
+              }
             }
             if (response.data.warehousebillsfeesCr) {
               this.warehouseCrList = response.data.warehousebillsfeesCr
+              for (let cr in this.warehouseCrList) {
+                this.$set(this.warehouseCrList[cr], "fFeeunitid", this.warehouseCrList[cr].fFeeunitid + "");
+              }
             }
             if (response.data.enclosures) {
               this.relevantAttachments = response.data.enclosures;

+ 10 - 0
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -2460,6 +2460,7 @@ export default {
                 this.formBrowseStatus = true;
               }
               this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
+              this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
             }
           }
           if (response.data.enclosures) {
@@ -2468,8 +2469,17 @@ export default {
           if (response.data.warehouse) {
             this.warehouseDrList = response.data.warehousebillsfeesDr;
           }
+          if (response.data.warehousebillsfeesDr) {
+            this.warehouseDrList = response.data.warehousebillsfeesDr;
+            for (let dr in this.warehouseDrList) {
+              this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + '');
+            }
+          }
           if (response.data.warehousebillsfeesCr) {
             this.warehouseCrList = response.data.warehousebillsfeesCr;
+            for (let cr in this.warehouseCrList) {
+              this.$set(this.warehouseCrList[cr], "fFeeunitid", this.warehouseCrList[cr].fFeeunitid + '');
+            }
           }
           if (response.data.sysUser) {
             this.userVal = response.data.sysUser