|
@@ -77,7 +77,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
|
},
|
|
|
- props: ["showModel", "once", "code", "good_code"],
|
|
|
+ props: ["showModel", "once", "code", "good_code", "cat_id"],
|
|
|
|
|
|
/**
|
|
|
* 属性集合
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
showModelThis: false,
|
|
|
parmValue: {
|
|
|
wsm_code: "", //仓库code
|
|
|
- cat_id,
|
|
|
+ cat_id: "",
|
|
|
page: 1, // 页码
|
|
|
size: 10, // 每页显示条数
|
|
|
},
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
restSearch() {
|
|
|
this.parmValue = {
|
|
|
wsm_code: "", //仓库code
|
|
|
- cat_id:"",
|
|
|
+ cat_id: "",
|
|
|
page: 1, // 页码
|
|
|
size: 10, // 每页显示条数
|
|
|
};
|
|
@@ -159,15 +159,25 @@ export default {
|
|
|
this.searchList();
|
|
|
},
|
|
|
async searchList() {
|
|
|
+ console.log(e);
|
|
|
this.loading = true;
|
|
|
this.parmValue.wsm_code = this.code || "";
|
|
|
this.parmValue.type_code = this.good_code || "";
|
|
|
- this.parmValue.stock_max="1"
|
|
|
- this.parmValue.cat_id=cat_id
|
|
|
+ this.parmValue.stock_max = "1";
|
|
|
+ this.parmValue.cat_id = this.cat_id;
|
|
|
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
+ this.tableData.forEach((v) => {
|
|
|
+ v.class_cat = "";
|
|
|
+ if (v.can && v.can.length > 0) {
|
|
|
+ v.can.forEach((x, i) => {
|
|
|
+ v.class_cat += i === 0 ? x.name : "/" + x.name;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|