Browse Source

修改出库确认按钮 后获得计算的 收款明细

阿伏兔 4 years ago
parent
commit
1874111c0f
1 changed files with 14 additions and 10 deletions
  1. 14 10
      src/views/warehouseBusiness/outStock/index.vue

+ 14 - 10
src/views/warehouseBusiness/outStock/index.vue

@@ -1252,18 +1252,13 @@
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column
         <el-table-column
-          prop="ffeeUnitid"
+          prop="fFeeUnitid"
           header-align="center"
           header-align="center"
           align="center"
           align="center"
           width="180px"
           width="180px"
           label="计价单位"
           label="计价单位"
         >
         >
           <template slot-scope="scope">
           <template slot-scope="scope">
-            <!-- <el-input
-              v-model="scope.row.fFeeUnitid"
-              placeholder="计价单位"
-              show-word-limit
-            /> -->
             <el-select
             <el-select
               v-model="scope.row.fFeeUnitid"
               v-model="scope.row.fFeeUnitid"
               placeholder="请选择计费单位"
               placeholder="请选择计费单位"
@@ -2403,7 +2398,7 @@ export default {
           var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
           var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
           this.$set(this.Printinglist[aorp], 'fBsdate', Y + M + D)
           this.$set(this.Printinglist[aorp], 'fBsdate', Y + M + D)
      }
      }
-          
+
       this.editDialogVisible_s = true;
       this.editDialogVisible_s = true;
       console.log(this.fMblnoOptions)
       console.log(this.fMblnoOptions)
       console.log(this.form.fCorpid)
       console.log(this.form.fCorpid)
@@ -2412,7 +2407,7 @@ export default {
                 this.$set(this.form, "fCorpid", this.fMblnoOptions[corp].fName);
                 this.$set(this.form, "fCorpid", this.fMblnoOptions[corp].fName);
               }
               }
             }
             }
-            
+
             for(let sorp in this.warehouseOptions){
             for(let sorp in this.warehouseOptions){
               console.log(this.form.fWarehouseid)
               console.log(this.form.fWarehouseid)
               if(this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
               if(this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
@@ -2892,7 +2887,16 @@ export default {
           formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
           formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
           formData.append("whgenleg", JSON.stringify(this.relevantAttachments));
           formData.append("whgenleg", JSON.stringify(this.relevantAttachments));
           addWhgenleg(formData).then((response) => {
           addWhgenleg(formData).then((response) => {
-            this.fid = response.data;
+            this.fid = response.data.fPid;
+            // 仓储费得出的明细
+            this.fWbuOptions = response.data.fees;
+            let warehousebillsfees = response.data.warehousebillsfees;
+            for (let fees in warehousebillsfees) {
+              this.$set(warehousebillsfees[fees], 'fFeeid', warehousebillsfees[fees].fFeeid + '')
+              this.$set(warehousebillsfees[fees], 'fCorpid', warehousebillsfees[fees].fCorpid + '')
+              this.$set(warehousebillsfees[fees], 'fFeeUnitid', warehousebillsfees[fees].fFeeUnitid + '')
+              this.warehouseDrList.push(warehousebillsfees[fees])
+            }
             this.msgSuccess("出库成功");
             this.msgSuccess("出库成功");
             this.formBrowseStatus = true
             this.formBrowseStatus = true
             for (let li in this.dataListSelection) {
             for (let li in this.dataListSelection) {
@@ -2951,7 +2955,7 @@ export default {
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
           var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
           var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
           this.fBsdate = Y + M + D;
           this.fBsdate = Y + M + D;
-         
+
       }
       }
     },
     },
     // 计价单位选择
     // 计价单位选择