Merge branch 'repair'

This commit is contained in:
Vinjor 2024-12-14 13:23:57 +08:00
commit bed05336b5
4 changed files with 25 additions and 13 deletions

View File

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

View File

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

View File

@ -314,7 +314,7 @@
<el-form-item label="联系方式"> <el-form-item label="联系方式">
<el-input type="text" v-model="form.buyPhone"></el-input> <el-input type="text" v-model="form.buyPhone"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="牌号码"> <el-form-item label="牌号码">
<el-input type="text" v-model="form.carNum"></el-input> <el-input type="text" v-model="form.carNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="品牌型号"> <el-form-item label="品牌型号">
@ -350,6 +350,9 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="代办人手机号">
<el-input v-model="form.otherPhone" placeholder="请选择代办人手机号"/>
</el-form-item>
<el-form-item label="选择商品"> <el-form-item label="选择商品">
<el-cascader <el-cascader
@ -794,6 +797,7 @@ export default {
createBy: null, createBy: null,
updateTime: null, updateTime: null,
updateBy: null, updateBy: null,
otherPhone: null,
}; };
this.selectInspectionProject = [] this.selectInspectionProject = []
this.resetForm("form"); this.resetForm("form");

View File

@ -75,12 +75,12 @@
<span class="item__txt">{{ scope.row.sale ? scope.row.sale.name : scope.row.sale }}</span> <span class="item__txt">{{ scope.row.sale ? scope.row.sale.name : scope.row.sale }}</span>
</div> </div>
</el-table-column> </el-table-column>
<!-- <el-table-column v-if="!exportColumn.includes('type')" align="center" label="类型" width="180" prop="type">--> <el-table-column v-if="!exportColumn.includes('type')" align="center" label="类型" width="180" prop="type">
<!-- <div v-if="scope.row.id" class="item" slot-scope="scope">--> <div v-if="scope.row.id" class="item" slot-scope="scope">
<!-- <ServerChoose @input-blur="save(scope.row)" class="item__input" v-model="scope.row.type"/>--> <ServerChoose @input-blur="save(scope.row)" class="item__input" v-model="scope.row.type"/>
<!-- <span class="item__txt">{{ scope.row.type }}</span>--> <span class="item__txt">{{ scope.row.type }}</span>
<!-- </div>--> </div>
<!-- </el-table-column>--> </el-table-column>
<!-- <el-table-column v-if="!exportColumn.includes('accountType')" align="center" label="账类" width="180" prop="accountType">--> <!-- <el-table-column v-if="!exportColumn.includes('accountType')" align="center" label="账类" width="180" prop="accountType">-->
<!-- <div v-if="scope.row.id" class="item" slot-scope="scope">--> <!-- <div v-if="scope.row.id" class="item" slot-scope="scope">-->
<!-- <el-select v-model="scope.row.accountType" class="item__input" @blur="save(scope.row)">--> <!-- <el-select v-model="scope.row.accountType" class="item__input" @blur="save(scope.row)">-->