|
@@ -2796,7 +2796,6 @@ export default {
|
|
|
collapselist: ["1"],
|
|
|
fStorageTypeOptions: [],
|
|
|
weightList: false,
|
|
|
- importList: {},
|
|
|
headers: {
|
|
|
Authorization: "Bearer " + getToken(),
|
|
|
},
|
|
@@ -2946,7 +2945,6 @@ export default {
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.resetForm("form");
|
|
|
- this.resetForm("importList");
|
|
|
this.detailList = [];
|
|
|
this.relevantAttachments = [];
|
|
|
this.warehouseCrList = [];
|
|
@@ -2954,32 +2952,6 @@ export default {
|
|
|
this.CntrTable = [];
|
|
|
this.getForm();
|
|
|
},
|
|
|
- reset() {
|
|
|
- this.importList = {
|
|
|
- fBillstatus: null,
|
|
|
- fMblno: null,
|
|
|
- fQty: null,
|
|
|
- fNetweight: null,
|
|
|
- fGrossweight: null,
|
|
|
- fBsdate: null,
|
|
|
- fGoodsid: null,
|
|
|
- fBusinessType: null,
|
|
|
- fMarks: null,
|
|
|
- fWarehouselocid: null,
|
|
|
- fWarehouseInformation: null,
|
|
|
- fCntrtype: null,
|
|
|
- fCntqty: null,
|
|
|
- fPackagespecs: null,
|
|
|
- fTruckno: null,
|
|
|
- fDriverName: null,
|
|
|
- fDriverTel: null,
|
|
|
- fDriverIdCar: null,
|
|
|
- fSerialNumber: null,
|
|
|
- fCntrno: null,
|
|
|
- fGoodsval: null,
|
|
|
- remark: null,
|
|
|
- };
|
|
|
- },
|
|
|
whgenlegData() {
|
|
|
if (this.dialogWhgenlegList.length === 0) {
|
|
|
this.$message({ message: "未勾选信息", type: "warning" });
|
|
@@ -3456,10 +3428,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- //从表库位弹窗下拉树状事件
|
|
|
- getAlltree(tree) {
|
|
|
- this.importList.fWarehouseInformation = tree.fWarehouseInformation;
|
|
|
- },
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -3738,50 +3706,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- imporTable() {
|
|
|
- this.$refs["importList"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- this.detailList.push({
|
|
|
- fBillstatus: 10,
|
|
|
- fMblno: this.form.fMblno,
|
|
|
- fQty: this.importList.fQty,
|
|
|
- fNetweight: this.importList.fNetweight,
|
|
|
- fGrossweight: this.importList.fGrossweight,
|
|
|
- fBsdate: this.importList.fBsdate,
|
|
|
- fGoodsid: this.importList.fGoodsid,
|
|
|
- fBusinessType: this.importList.fBusinessType,
|
|
|
- fMarks: this.importList.fMarks,
|
|
|
- fWarehouselocid: this.importList.fWarehouselocid,
|
|
|
- fWarehouseInformation: this.importList.fWarehouseInformation,
|
|
|
- fCntrtype: this.importList.fCntrtype,
|
|
|
- fCntqty: this.importList.fCntqty,
|
|
|
- fPackagespecs: this.importList.fPackagespecs,
|
|
|
- fTruckno: this.importList.fTruckno,
|
|
|
- fDriverName: this.importList.fDriverName,
|
|
|
- fDriverTel: this.importList.fDriverTel,
|
|
|
- fDriverIdCar: this.importList.fDriverIdCar,
|
|
|
- fSerialNumber: this.importList.fSerialNumber,
|
|
|
- fCntrno: this.importList.fCntrno,
|
|
|
- fGoodsval: this.importList.fGoodsval,
|
|
|
- remark: this.importList.remark,
|
|
|
- });
|
|
|
- if (this.detailList[0].fGoodsid) {
|
|
|
- for (let item in this.goodsOptions) {
|
|
|
- if (this.goodsOptions[item].fId == this.detailList[0].fGoodsid) {
|
|
|
- this.form.fProductName = this.goodsOptions[item].fName;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- this.weightList = false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- fiximporTable() {
|
|
|
- console.log(this.importList);
|
|
|
- this.detailList[this.fixdetaiNum] = this.importList;
|
|
|
- this.weightList = false;
|
|
|
- },
|
|
|
// 库存明细多选
|
|
|
Selectinventory(selection) {
|
|
|
this.Printinglist = selection;
|
|
@@ -3880,31 +3804,6 @@ export default {
|
|
|
});
|
|
|
return sums;
|
|
|
},
|
|
|
- playcomputer() {
|
|
|
- let Num1 = Number(this.form.fPlannetweight) / Number(this.form.fPlanqty);
|
|
|
- let Num2 =
|
|
|
- Number(this.form.fPlangrossweight) / Number(this.form.fPlanqty);
|
|
|
- this.importList.fNetweight = Number(
|
|
|
- (this.importList.fQty * Num1).toFixed(2)
|
|
|
- );
|
|
|
- this.importList.fGrossweight = Number(
|
|
|
- (this.importList.fQty * Num2).toFixed(2)
|
|
|
- );
|
|
|
- },
|
|
|
- imporComputer() {
|
|
|
- if (this.importList.fQty > this.allfPlanqty) {
|
|
|
- return this.$alert("计划件数不能超过" + this.allfPlanqty, "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
- callback: (action) => {
|
|
|
- this.importList.fQty = this.allfPlanqty;
|
|
|
- this.playcomputer();
|
|
|
- },
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.playcomputer();
|
|
|
- }
|
|
|
- },
|
|
|
// 库存总账多选框
|
|
|
whgenlegSelectionChange(selection) {
|
|
|
this.dialogWhgenlegList = selection;
|
|
@@ -4081,7 +3980,6 @@ export default {
|
|
|
},
|
|
|
fixRow(row, index) {
|
|
|
this.title = "修改";
|
|
|
- this.reset();
|
|
|
this.fixdetaiNum = null;
|
|
|
this.fixdetaiNum = index;
|
|
|
treeselect(this.form.fWarehouseid).then((response) => {
|
|
@@ -4449,7 +4347,6 @@ export default {
|
|
|
},
|
|
|
cancel() {
|
|
|
this.resetForm("form");
|
|
|
- this.resetForm("importList");
|
|
|
this.detailList = [];
|
|
|
this.relevantAttachments = [];
|
|
|
this.warehouseCrList = [];
|