|
@@ -30,9 +30,10 @@
|
|
|
:isDetail="true"
|
|
|
:size="searchSize"
|
|
|
:value="parmValue.stock_code"
|
|
|
- :disabled="supplier_code === ''"
|
|
|
+ :disabled="supplier_code === '' || parmValue.companyNo === ''"
|
|
|
:placeholder="'出库仓库'"
|
|
|
:isRelation="true"
|
|
|
+ :companyNo="parmValue.companyNo"
|
|
|
:companyCode="supplier_code"
|
|
|
:names="''"
|
|
|
@searchChange="selectStock"
|
|
@@ -295,6 +296,7 @@ export default {
|
|
|
supplierChange(e) {
|
|
|
const { code } = e;
|
|
|
this.parmValue.companyNo = code || ""; //供应商编码
|
|
|
+ //清空子集
|
|
|
this.parmValue.supplier_code = [];
|
|
|
this.supplier_code = "";
|
|
|
this.parmValue.stock_code = [];
|
|
@@ -309,8 +311,11 @@ export default {
|
|
|
const { code } = e;
|
|
|
this.parmValue.supplier_code = code ? [code] : [];
|
|
|
this.supplier_code = code;
|
|
|
+
|
|
|
+ //清空子集
|
|
|
this.parmValue.stock_code = [];
|
|
|
this.stock_code = "";
|
|
|
+
|
|
|
this.parmValue.page = 1;
|
|
|
this.pageInfo.curr = 1;
|
|
|
this.stockList();
|
|
@@ -346,7 +351,7 @@ export default {
|
|
|
usable_stock,
|
|
|
wait_in_stock,
|
|
|
wait_out_stock,
|
|
|
- // warn_stock,
|
|
|
+ warn_stock,
|
|
|
} = res.data;
|
|
|
this.stock_list[0].endVal = Number(total_stock);
|
|
|
this.stock_list[1].endVal = Number(wait_in_stock);
|