单据类型,仓库,新增寄售功能,关联库存,寄售库存,以及其他联动

prod
anthonywj 2 years ago
parent 00cedb84e2
commit ef14148aec

@ -276,7 +276,10 @@ export default {
}) })
}, },
getInvList() { getInvList() {
getInvListByUser() let query = {
advanceType: true,
};
getInvListByUser(query)
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
this.getList(); this.getList();

@ -276,7 +276,10 @@ export default {
}) })
}, },
getInvList() { getInvList() {
getInvListByUser() let query = {
advanceType: false,
};
getInvListByUser(query)
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
this.getList(); this.getList();

@ -152,6 +152,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<el-form-item label="寄售仓库" prop="advanceType" class="query-form-item">
<el-radio-group v-model="subData.advanceType">
<el-radio :label="false">非寄售</el-radio>
<el-radio :label="true">寄售</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row class="el-row" type="flex"> <el-row class="el-row" type="flex">
<el-col class="el-col"> <el-col class="el-col">
@ -376,6 +386,9 @@ export default {
], ],
name: [ name: [
{required: true, message: "请输入仓库名称", trigger: "blur"} {required: true, message: "请输入仓库名称", trigger: "blur"}
],
advanceType: [
{required: true, message: "请选择是否寄售", trigger: "blur"}
] ]
}, },
subData: {}, subData: {},
@ -444,7 +457,7 @@ export default {
this.subData = JSON.parse(JSON.stringify(data)); this.subData = JSON.parse(JSON.stringify(data));
this.isShow = true; this.isShow = true;
} else if (formName === "add") { } else if (formName === "add") {
this.subData = {}; this.subData = {advanceType: false,};
this.isShow = false; this.isShow = false;
} }
this.subFormVisible = true; this.subFormVisible = true;
@ -456,7 +469,7 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
this.sysSubList=null; this.sysSubList = null;
}, },
hideForm() { // --- hideForm() { // ---
@ -580,10 +593,10 @@ export default {
this.thrWareHouseVisible = false; this.thrWareHouseVisible = false;
this.thrSubWareHouseVisible = false; this.thrSubWareHouseVisible = false;
// //
this.thirdSubQuery.name=""; this.thirdSubQuery.name = "";
this.subData.id=null; this.subData.id = null;
this.checkSubThrWarehouseRow.code=null; this.checkSubThrWarehouseRow.code = null;
this.checkSubThrWarehouseRow.thirdSysFk=null; this.checkSubThrWarehouseRow.thirdSysFk = null;
}, },
// //
bindSubThrWarehouse() { bindSubThrWarehouse() {
@ -681,8 +694,8 @@ export default {
this.currentInvInfo = { this.currentInvInfo = {
invStorageCode: row.parentId, invStorageCode: row.parentId,
invWarehouseCode: row.code, invWarehouseCode: row.code,
flag:row.id, flag: row.id,
page:1 page: 1
}; };
}, },

Loading…
Cancel
Save