This commit is contained in:
xiaofajia 2024-12-13 18:13:21 +08:00
parent 106983e8a2
commit 3467a01d5b
2 changed files with 14 additions and 6 deletions

View File

@ -432,7 +432,7 @@
listInspectionGoods(this.queryParams).then(response => {
this.inspectionGoodsList = response.data.records;
this.inspectionGoodsList.price=this.inspectionGoodsList.price / 100
this.total = response.total;
this.total = response.data.total;
this.loading = false;
});
listMallPartners(this.hzsarr).then(response => {

View File

@ -206,7 +206,13 @@
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="商品分类" prop="price">
<el-select v-model="form.goodsCategoryId" placeholder="请选择">
<el-select
v-model="form.goodsCategoryId"
clearable
filterable
placeholder="请选择"
:loading="typeLoading"
loading-text="请稍等...">
<el-option
v-for="item in categoryList"
:key="item.id"
@ -334,7 +340,6 @@
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
@ -404,7 +409,8 @@
isSpecial: [
{ required: true, message: "特价/正常不能为空", trigger: "change" }
],
}
},
typeLoading: false
};
},
created() {
@ -452,13 +458,14 @@
console.log('resp',response)
this.inspectionGoodsList = response.data.records;
this.inspectionGoodsList.price=this.inspectionGoodsList.price / 100
this.total = response.total;
this.total = response.data.total;
this.loading = false;
});
this.typeLoading = true
categoryList().then(res=>{
this.categoryList = res.data;
this.typeLoading = false
})
// listMallPartners(this.hzsarr).then(response => {
// this.mallPartnersList = response.rows;
// console.log(' ',this.mallPartnersList)
@ -532,6 +539,7 @@
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams.isListing = null
this.resetForm("queryForm");
this.handleQuery();
},