|  | @@ -878,7 +878,7 @@
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column
 |  |          <el-table-column
 | 
											
												
													
														|  | -          prop="fgrossweight"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          prop="fGrossweight"
 | 
											
												
													
														|  |            header-align="center"
 |  |            header-align="center"
 | 
											
												
													
														|  |            width="180px"
 |  |            width="180px"
 | 
											
												
													
														|  |            align="center"
 |  |            align="center"
 | 
											
										
											
												
													
														|  | @@ -895,7 +895,7 @@
 | 
											
												
													
														|  |            </template>
 |  |            </template>
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column
 |  |          <el-table-column
 | 
											
												
													
														|  | -          prop="fnetweight"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          prop="fNetweight"
 | 
											
												
													
														|  |            header-align="center"
 |  |            header-align="center"
 | 
											
												
													
														|  |            width="180px"
 |  |            width="180px"
 | 
											
												
													
														|  |            align="center"
 |  |            align="center"
 | 
											
										
											
												
													
														|  | @@ -912,7 +912,7 @@
 | 
											
												
													
														|  |            </template>
 |  |            </template>
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  |          <el-table-column
 |  |          <el-table-column
 | 
											
												
													
														|  | -          prop="fqty"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          prop="fQty"
 | 
											
												
													
														|  |            header-align="center"
 |  |            header-align="center"
 | 
											
												
													
														|  |            width="180px"
 |  |            width="180px"
 | 
											
												
													
														|  |            align="center"
 |  |            align="center"
 | 
											
										
											
												
													
														|  | @@ -921,6 +921,7 @@
 | 
											
												
													
														|  |            <template slot-scope="scope">
 |  |            <template slot-scope="scope">
 | 
											
												
													
														|  |              <el-input
 |  |              <el-input
 | 
											
												
													
														|  |                oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
 |  |                oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
 | 
											
												
													
														|  | 
 |  | +              @change="qtyChange(scope.row)"
 | 
											
												
													
														|  |                v-model="scope.row.fQty"
 |  |                v-model="scope.row.fQty"
 | 
											
												
													
														|  |                :disabled="browseStatus"
 |  |                :disabled="browseStatus"
 | 
											
												
													
														|  |                placeholder="出库件数"
 |  |                placeholder="出库件数"
 | 
											
										
											
												
													
														|  | @@ -962,7 +963,7 @@
 | 
											
												
													
														|  |              />
 |  |              />
 | 
											
												
													
														|  |            </template>
 |  |            </template>
 | 
											
												
													
														|  |          </el-table-column>
 |  |          </el-table-column>
 | 
											
												
													
														|  | -        
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |          <el-table-column
 |  |          <el-table-column
 | 
											
												
													
														|  |            prop="fCntrno"
 |  |            prop="fCntrno"
 | 
											
												
													
														|  |            header-align="center"
 |  |            header-align="center"
 | 
											
										
											
												
													
														|  | @@ -2365,7 +2366,6 @@ export default {
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |          return false;
 |  |          return false;
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |        this.whgenlegList = [];
 |  |        this.whgenlegList = [];
 | 
											
												
													
														|  |        this.dialogWhgenlegList = [];
 |  |        this.dialogWhgenlegList = [];
 | 
											
												
													
														|  |        this.whgenlegTotal = 0;
 |  |        this.whgenlegTotal = 0;
 | 
											
										
											
												
													
														|  | @@ -2374,39 +2374,22 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 库存总账导出数据
 |  |      // 库存总账导出数据
 | 
											
												
													
														|  |      whgenlegData() {
 |  |      whgenlegData() {
 | 
											
												
													
														|  | -      console.log(this.dialogWhgenlegList);
 |  | 
 | 
											
												
													
														|  | -      console.log(this.whgenlegList);
 |  | 
 | 
											
												
													
														|  | -      if (this.dialogWhgenlegList.length == 0) {
 |  | 
 | 
											
												
													
														|  | -        this.dataList.push({
 |  | 
 | 
											
												
													
														|  | -          fMblno: this.whgenlegList[0].fMblno,
 |  | 
 | 
											
												
													
														|  | -          fGoodsid: this.whgenlegList[0].fGoodsid,
 |  | 
 | 
											
												
													
														|  | -          fCntrtype: null,
 |  | 
 | 
											
												
													
														|  | -          fQtyblc: this.whgenlegList[0].fQtyblc,
 |  | 
 | 
											
												
													
														|  | -          fWarehouseLocationids: this.whgenlegList[0]
 |  | 
 | 
											
												
													
														|  | -            .fWarehouseLocationids,
 |  | 
 | 
											
												
													
														|  | -          fGoodsids: this.whgenlegList[0].fGoodsids,
 |  | 
 | 
											
												
													
														|  | -          fGrossweight: 0,
 |  | 
 | 
											
												
													
														|  | -          fNetweight: 0,
 |  | 
 | 
											
												
													
														|  | -          fQty: 0,
 |  | 
 | 
											
												
													
														|  | -          fCntqty: 1,
 |  | 
 | 
											
												
													
														|  | -          fPackagespecs: null,
 |  | 
 | 
											
												
													
														|  | -          fWarehouselocid: this.whgenlegList[0].fWarehouseLocationid,
 |  | 
 | 
											
												
													
														|  | -          fCntrno: this.whgenlegList[0].fCntrno,
 |  | 
 | 
											
												
													
														|  | -          fGoodsval: null,
 |  | 
 | 
											
												
													
														|  | -          fTruckno: null,
 |  | 
 | 
											
												
													
														|  | -          remark: null,
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | -        this.whgenlegVisible = false;
 |  | 
 | 
											
												
													
														|  | -        return 
 |  | 
 | 
											
												
													
														|  | 
 |  | +      if (this.dialogWhgenlegList.length === 0) {
 | 
											
												
													
														|  | 
 |  | +        this.$message({message: '未勾选信息', type: 'warning'})
 | 
											
												
													
														|  | 
 |  | +        return false
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |        for (let whgen in this.dialogWhgenlegList) {
 |  |        for (let whgen in this.dialogWhgenlegList) {
 | 
											
												
													
														|  | 
 |  | +        if (!this.form.fMblno || this.form.fMblno === '') {
 | 
											
												
													
														|  | 
 |  | +          this.$set(this.form, 'fMblno', this.dialogWhgenlegList[whgen].fMblno)
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          this.dataList.push({
 |  |          this.dataList.push({
 | 
											
												
													
														|  |            fMblno: this.dialogWhgenlegList[whgen].fMblno,
 |  |            fMblno: this.dialogWhgenlegList[whgen].fMblno,
 | 
											
												
													
														|  |            fGoodsid: this.dialogWhgenlegList[whgen].fGoodsid,
 |  |            fGoodsid: this.dialogWhgenlegList[whgen].fGoodsid,
 | 
											
												
													
														|  |            fCntrtype: null,
 |  |            fCntrtype: null,
 | 
											
												
													
														|  |            fQtyblc: this.dialogWhgenlegList[whgen].fQtyblc,
 |  |            fQtyblc: this.dialogWhgenlegList[whgen].fQtyblc,
 | 
											
												
													
														|  | -          fWarehouseLocationids: this.dialogWhgenlegList[whgen]
 |  | 
 | 
											
												
													
														|  | -            .fWarehouseLocationids,
 |  | 
 | 
											
												
													
														|  | 
 |  | +          fNetweightblc: this.dialogWhgenlegList[whgen].fNetweightblc,
 | 
											
												
													
														|  | 
 |  | +          fGrossweightblc: this.dialogWhgenlegList[whgen].fGrossweightblc,
 | 
											
												
													
														|  | 
 |  | +          fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
 | 
											
												
													
														|  |            fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
 |  |            fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
 | 
											
												
													
														|  |            fGrossweight: 0,
 |  |            fGrossweight: 0,
 | 
											
												
													
														|  |            fNetweight: 0,
 |  |            fNetweight: 0,
 | 
											
										
											
												
													
														|  | @@ -2506,7 +2489,6 @@ export default {
 | 
											
												
													
														|  |        this.whgenlegParams.fCorpid = this.form.fCorpid;
 |  |        this.whgenlegParams.fCorpid = this.form.fCorpid;
 | 
											
												
													
														|  |        this.whgenlegParams.fWarehouseid = this.form.fWarehouseid;
 |  |        this.whgenlegParams.fWarehouseid = this.form.fWarehouseid;
 | 
											
												
													
														|  |        this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
 |  |        this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |        listWhgenleg(this.whgenlegParams).then((response) => {
 |  |        listWhgenleg(this.whgenlegParams).then((response) => {
 | 
											
												
													
														|  |          this.whgenlegList = response.rows;
 |  |          this.whgenlegList = response.rows;
 | 
											
												
													
														|  |          console.log(this.whgenlegList);
 |  |          console.log(this.whgenlegList);
 | 
											
										
											
												
													
														|  | @@ -3182,6 +3164,20 @@ export default {
 | 
											
												
													
														|  |            this.download(response.msg);
 |  |            this.download(response.msg);
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    // 出库件数的计算
 | 
											
												
													
														|  | 
 |  | +    qtyChange(row) {
 | 
											
												
													
														|  | 
 |  | +      if (!row.fQty || row.fQty === '') {
 | 
											
												
													
														|  | 
 |  | +        this.$set(row, 'fNetweight', 0)
 | 
											
												
													
														|  | 
 |  | +        this.$set(row, 'fGrossweight', 0)
 | 
											
												
													
														|  | 
 |  | +        return false
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      // 净重 fNetweightblc
 | 
											
												
													
														|  | 
 |  | +      // 毛重 fGrossweightblc
 | 
											
												
													
														|  | 
 |  | +      let netweight = parseFloat(Number(row.fNetweightblc) / Number(row.fQtyblc)).toFixed(6)
 | 
											
												
													
														|  | 
 |  | +      let grossweigh = parseFloat(Number(row.fGrossweightblc) / Number(row.fQtyblc)).toFixed(6)
 | 
											
												
													
														|  | 
 |  | +      this.$set(row, 'fNetweight', parseFloat(Number(netweight) * Number(row.fQty)).toFixed(6))
 | 
											
												
													
														|  | 
 |  | +      this.$set(row, 'fGrossweight', parseFloat(Number(grossweigh) * Number(row.fQty)).toFixed(6))
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      deleteRow(index, rows) {
 |  |      deleteRow(index, rows) {
 | 
											
												
													
														|  |        rows.splice(index, 1);
 |  |        rows.splice(index, 1);
 | 
											
												
													
														|  |      },
 |  |      },
 |