|
@@ -43,6 +43,7 @@
|
|
|
placeholder="商品名称"
|
|
|
v-model="parmValue.good_name"
|
|
|
clearable
|
|
|
+ maxlength="100"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -53,6 +54,7 @@
|
|
|
placeholder="商品编码"
|
|
|
v-model="parmValue.good_code"
|
|
|
clearable
|
|
|
+ maxlength="100"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -63,14 +65,18 @@
|
|
|
type="primary"
|
|
|
class="fr"
|
|
|
icon="el-icon-search"
|
|
|
- @click="searchList"
|
|
|
+ @click="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
/></el-col>
|
|
|
<el-col :span="4" style="width: 66px">
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
class="fr"
|
|
|
:size="searchSize"
|
|
|
- @click="restSearch"
|
|
|
+ @click="restSearch()"
|
|
|
>
|
|
|
重置
|
|
|
</el-button>
|
|
@@ -220,7 +226,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: "usable_stock",
|
|
|
- label: "商品库存",
|
|
|
+ label: "库存",
|
|
|
+ width: "50",
|
|
|
},
|
|
|
{
|
|
|
prop: "unit",
|
|
@@ -238,18 +245,17 @@ export default {
|
|
|
label: "品牌",
|
|
|
"min-width": "80",
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
prop: "classArr",
|
|
|
- label: "商品类别",
|
|
|
+ label: "类别",
|
|
|
},
|
|
|
{
|
|
|
prop: "color",
|
|
|
- label: "商品颜色",
|
|
|
+ label: "颜色",
|
|
|
},
|
|
|
{
|
|
|
prop: "material",
|
|
|
- label: "商品材质",
|
|
|
+ label: "材质",
|
|
|
},
|
|
|
// {后端有接口但是没有值。
|
|
|
// prop: "specs",
|
|
@@ -281,6 +287,11 @@ export default {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
};
|
|
|
+ this.pageInfo = {
|
|
|
+ curr: 1,
|
|
|
+ total: 0,
|
|
|
+ size: 15,
|
|
|
+ };
|
|
|
this.searchList();
|
|
|
},
|
|
|
// 获取商品列表功能函数
|
|
@@ -288,16 +299,6 @@ export default {
|
|
|
this.loading = true;
|
|
|
let model = JSON.parse(JSON.stringify(this.parmValue));
|
|
|
model.supplierNo = model.supplierNo.toString();
|
|
|
- // let { good_code, good_name, page, size, supplierNo, wsmcode } =
|
|
|
- // this.parmValue;
|
|
|
- // let model = {
|
|
|
- // good_code,
|
|
|
- // good_name,
|
|
|
- // page,
|
|
|
- // size,
|
|
|
- // supplierNo: supplierNo.toString(),
|
|
|
- // wsmcode,
|
|
|
- // };
|
|
|
const res = await asyncRequest.list(model);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
res.data.list.forEach((element) => {
|
|
@@ -347,6 +348,7 @@ export default {
|
|
|
},
|
|
|
// 供应商选择
|
|
|
handleValue(e) {
|
|
|
+ console.log(e);
|
|
|
if (e && e.id) {
|
|
|
this.parmValue.supplierNo = [e.code];
|
|
|
this.parmValue.gys_names = e.label;
|
|
@@ -355,11 +357,14 @@ export default {
|
|
|
this.parmValue.gys_names = "";
|
|
|
}
|
|
|
this.parmValue.page = 1;
|
|
|
+ this.pageInfo = {
|
|
|
+ size: 15,
|
|
|
+ curr: 1,
|
|
|
+ total: 0,
|
|
|
+ };
|
|
|
this.searchList();
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
|