|
@@ -39,8 +39,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="width: 273px; padding: 0 0 0 10px">
|
|
|
<number-range
|
|
|
- :lower="parmValue.stock_num_low"
|
|
|
- :online="parmValue.stock_num_up"
|
|
|
+ :lower="parmValue.stock_low"
|
|
|
+ :online="parmValue.stock_up"
|
|
|
:title="'库存量'"
|
|
|
:width="'120px'"
|
|
|
:size="searchSize"
|
|
@@ -49,8 +49,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="width: 273px; padding: 0 0 0 10px">
|
|
|
<number-range
|
|
|
- :lower="parmValue.warn_num_low"
|
|
|
- :online="parmValue.warn_num_up"
|
|
|
+ :lower="parmValue.warn_low"
|
|
|
+ :online="parmValue.warn_up"
|
|
|
:width="'120px'"
|
|
|
:title="'预警量'"
|
|
|
:size="searchSize"
|
|
@@ -153,6 +153,15 @@
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
+ <template #specinfo="{ scope }">
|
|
|
+ <span
|
|
|
+ v-for="(si, sii) in scope.row.specinfo"
|
|
|
+ :key="sii + si.spec_value_id"
|
|
|
+ >{{ sii === 0 ? "" : "-" }}{{ si.spec_name }}[{{
|
|
|
+ si.spec_value
|
|
|
+ }}]</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</ex-table>
|
|
|
<add-edit
|
|
|
:id="modelId"
|
|
@@ -211,10 +220,10 @@ export default {
|
|
|
goods_sn: "",
|
|
|
supplier_code: [],
|
|
|
stock_code: [],
|
|
|
- warn_num_low: "",
|
|
|
- warn_num_up: "",
|
|
|
- stock_num_low: "",
|
|
|
- stock_num_up: "",
|
|
|
+ warn_low: "",
|
|
|
+ warn_up: "",
|
|
|
+ stock_low: "",
|
|
|
+ stock_up: "",
|
|
|
page: 1,
|
|
|
size: 15,
|
|
|
},
|
|
@@ -243,6 +252,7 @@ export default {
|
|
|
methods: {
|
|
|
//业务公司选择
|
|
|
async supplierChange(e) {
|
|
|
+ console.log(e)
|
|
|
const { code } = e;
|
|
|
this.parmValue.companyNo = code || ""; //业务公司编码
|
|
|
this.parmValue.supplier_code = [];
|
|
@@ -278,15 +288,15 @@ export default {
|
|
|
// 预警量范围框
|
|
|
async numReturned1(e) {
|
|
|
if (e && e.lower != "" && e.online != "") {
|
|
|
- this.parmValue.warn_num_low = e.lower;
|
|
|
- this.parmValue.warn_num_up = e.online;
|
|
|
+ this.parmValue.warn_low = e.lower;
|
|
|
+ this.parmValue.warn_up = e.online;
|
|
|
} else {
|
|
|
- this.parmValue.warn_num_low = "";
|
|
|
- this.parmValue.warn_num_up = "";
|
|
|
+ this.parmValue.warn_low = "";
|
|
|
+ this.parmValue.warn_up = "";
|
|
|
}
|
|
|
if (
|
|
|
- this.parmValue.warn_num_low != "" &&
|
|
|
- this.parmValue.warn_num_up != ""
|
|
|
+ this.parmValue.warn_low != "" &&
|
|
|
+ this.parmValue.warn_up != ""
|
|
|
) {
|
|
|
await this.searchList();
|
|
|
}
|
|
@@ -294,15 +304,15 @@ export default {
|
|
|
// 库存量范围框
|
|
|
async numReturned(e) {
|
|
|
if (e && e.lower != "" && e.online != "") {
|
|
|
- this.parmValue.stock_num_low = e.lower;
|
|
|
- this.parmValue.stock_num_up = e.online;
|
|
|
+ this.parmValue.stock_low = e.lower;
|
|
|
+ this.parmValue.stock_up = e.online;
|
|
|
} else {
|
|
|
- this.parmValue.stock_num_low = "";
|
|
|
- this.parmValue.stock_num_up = "";
|
|
|
+ this.parmValue.stock_low = "";
|
|
|
+ this.parmValue.stock_up = "";
|
|
|
}
|
|
|
if (
|
|
|
- this.parmValue.stock_num_low != "" &&
|
|
|
- this.parmValue.stock_num_up != ""
|
|
|
+ this.parmValue.stock_low != "" &&
|
|
|
+ this.parmValue.stock_up != ""
|
|
|
) {
|
|
|
await this.searchList();
|
|
|
}
|
|
@@ -320,10 +330,10 @@ export default {
|
|
|
goods_sn: "",
|
|
|
supplier_code: [],
|
|
|
stock_code: [],
|
|
|
- warn_num_low: "",
|
|
|
- warn_num_up: "",
|
|
|
- stock_num_low: "",
|
|
|
- stock_num_up: "",
|
|
|
+ warn_low: "",
|
|
|
+ warn_up: "",
|
|
|
+ stock_low: "",
|
|
|
+ stock_up: "",
|
|
|
page: 1,
|
|
|
size: 15,
|
|
|
};
|