测试问题修改

This commit is contained in:
zzyuan 2025-08-06 15:22:33 +08:00
parent 9aca2751ed
commit 79c559abb3
38 changed files with 242 additions and 39 deletions

View File

@ -493,6 +493,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -648,6 +652,10 @@ export default {
/** 重置按钮操作 */
resetQuery2() {
this.dateRange = this.defaultDateRange()
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -292,6 +292,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -438,6 +438,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -251,6 +251,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -41,7 +41,7 @@
</el-cascader>
</el-form-item>
<el-form-item label="邀请供应商" prop="supplierIds">
<el-select v-model="baseInfo.supplierIds" multiple placeholder="请选择供应商" style="width: 100%;">
<el-select v-model="baseInfo.supplierIds" multiple collapse-tags placeholder="请选择供应商" style="width: 100%;">
<el-option v-for="item in supplierOptions"
:key="item.supplierId"
:label="item.supplierName"
@ -359,6 +359,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -15,10 +15,10 @@
:picker-options="pickerOptions" >
</el-date-picker>
</el-form-item>
<el-form-item label="关键字" prop="searchValue">
<el-input v-model="queryParams.searchValue" placeholder="请输入关键字" maxlength="20" clearable style="width: 240px"/>
<el-form-item label="询价标题" prop="searchValue">
<el-input v-model="queryParams.searchValue" placeholder="请输入询价标题" maxlength="20" clearable style="width: 240px"/>
</el-form-item>
<el-form-item label="所属区域" prop="areaId">
<!-- <el-form-item label="所属区域" prop="areaId">
<el-cascader v-model="queryParams.areaId"
:options="treeAreaOptions" :filterable="true" style="width: 100%;" :show-all-levels="false"
:props="{
@ -27,8 +27,8 @@
value:'id',label:'label'
}" clearable @change="handleAreaChange">
</el-cascader>
</el-form-item>
<el-form-item label="询价状态" prop="inquiryState">
</el-form-item> -->
<!-- <el-form-item label="询价状态" prop="inquiryState">
<el-select v-model="queryParams.inquiryState" placeholder="请选择询价状态" style="width: 240px;">
<el-option label="未开始" :value="1"></el-option>
<el-option label="进行中" :value="2"></el-option>
@ -47,7 +47,7 @@
<el-option label="待提交" :value="1"></el-option>
<el-option label="已提交" :value="2"></el-option>
</el-select>
</el-form-item>
</el-form-item> -->
<el-form-item>
@ -270,6 +270,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = []
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -193,6 +193,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -96,7 +96,7 @@
<div class="body-card">
<div v-for="dish in item.dishesList" :key="dish.dishesId" style="width: 100%;display: flex;justify-content: space-between;align-items: center;">
<span>{{dish.dishesName}}</span>
<el-input v-model="dish.dishesNum" placeholder="请输入份数" maxlength="10" clearable
<el-input v-model="dish.dishesNum" placeholder="份数" maxlength="10" clearable
@input="(v)=>(dish.dishesNum=v.replace(/[^\d]/g,''))" style="width: 100px;"/>
<!-- <i class="el-icon-delete" style="color: red;cursor: pointer;" @click="deleteDishes(item,dish)" v-if="dialogType==1"></i> -->
</div>
@ -181,7 +181,7 @@
</el-table-column>
<el-table-column label="份数" align="center" prop="dishesNum">
<template slot-scope="scope">
<el-input v-model="scope.row.dishesNum" placeholder="请输入份数" maxlength="10" clearable @input="(v)=>(scope.row.dishesNum=v.replace(/[^\d]/g,''))"/>
<el-input v-model="scope.row.dishesNum" placeholder="份数" maxlength="10" clearable @input="(v)=>(scope.row.dishesNum=v.replace(/[^\d]/g,''))"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
@ -215,7 +215,7 @@ export default {
data() {
return {
dialogType:1,//
ifRepeat:1,//
ifRepeat:'1',//
productionPlanRowData:{},//
loading:false,
loadingBtn:false,

View File

@ -335,6 +335,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -510,6 +510,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -702,6 +706,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -241,6 +241,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -143,7 +143,7 @@
</el-table-column>
<el-table-column label="总金额(元)" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ scope.row.orderNum*scope.row.singlePrice }}</span>
<span v-if="scope.row.singlePrice>=0">{{ scope.row.orderNum*scope.row.singlePrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true">
@ -593,6 +593,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -777,6 +781,10 @@ export default {
/** 重置按钮操作 */
resetQuery2() {
this.dateRange = this.defaultDateRange()
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -329,6 +329,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -365,6 +365,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -290,6 +290,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -253,6 +253,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -221,6 +221,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -274,6 +278,10 @@ export default {
/** 重置按钮操作 */
resetQuery2() {
this.dateRange2 = this.defaultDateRange()
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -137,6 +137,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -130,6 +130,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -362,6 +362,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -257,6 +257,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -183,6 +183,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -385,6 +385,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -561,7 +565,11 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.resetForm("queryForm2");
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},
/** 查询列表 */

View File

@ -221,6 +221,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -387,6 +387,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -232,6 +232,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -457,6 +457,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -637,6 +641,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -275,6 +275,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -392,6 +392,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -563,6 +567,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -280,6 +280,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -184,6 +184,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -287,6 +287,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -319,6 +323,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -173,6 +173,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = this.defaultDateRange()
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -92,7 +92,7 @@
</el-table-column>
<el-table-column label="总金额(元)" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ (scope.row.purNum*scope.row.singlePrice).toFixed(4) }}</span>
<span>{{ (scope.row.purNum*scope.row.singlePrice).toFixed(2) }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="notes" :show-overflow-tooltip="true"></el-table-column>
@ -375,6 +375,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -41,7 +41,7 @@
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="tableListData" height="800" :row-key="(row)=>{return row.id}" @selection-change="handleSelectionChange">
<el-table v-loading="loading" :data="tableListData" height="550" :row-key="(row)=>{return row.id}" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center" :reserve-selection="true" />
<el-table-column label="序号" align="center" width="80" type="index" fixed="left">
<template slot-scope="scope">
@ -61,7 +61,7 @@
</el-select>
</template>
</el-table-column> -->
<el-table-column label="首选供应商" align="center" prop="supplierId" :show-overflow-tooltip="true" width="150">
<el-table-column label="首选供应商" align="center" prop="supplierId" :show-overflow-tooltip="true" width="180">
<template slot-scope="scope">
<el-select v-model="scope.row.supplierId" placeholder="请选择供应商" style="width: 100%;" @change="changSupplier(scope.row)">
<el-option v-for="item in supplierOptions"
@ -72,9 +72,9 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="备选供应商" align="center" prop="supplierIdList" :show-overflow-tooltip="true">
<el-table-column label="备选供应商" align="center" prop="supplierIdList" :show-overflow-tooltip="true" width="240">
<template slot-scope="scope">
<el-select v-model="scope.row.supplierIdList" multiple :multiple-limit="3" placeholder="请选择供应商" style="width: 100%;" @change="changSupplierList(scope.row)">
<el-select v-model="scope.row.supplierIdList" multiple collapse-tags :multiple-limit="3" placeholder="请选择供应商" style="width: 100%;" @change="changSupplierList(scope.row)">
<el-option v-for="item in supplierOptions"
:key="item.supplierId"
:label="item.supplierName"
@ -83,15 +83,14 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="中标供应商" align="center" prop="supplierName" :show-overflow-tooltip="true"/>
<el-table-column label="最近一次供货" align="center">
<el-table-column label="时间" align="center" prop="lastOrderGoodsDate" width="160" :show-overflow-tooltip="true" />
<el-table-column label="价格" align="center" prop="lastOrderGoodsPrice" width="120" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<span>{{ (scope.row.lastOrderGoodsPrice/100).toFixed(2) }}</span>
</template>
</el-table-column>
<el-table-column label="供应商名称" align="center" prop="supplierName" :show-overflow-tooltip="true"/>
<el-table-column label="最近一次供货时间" align="center" prop="lastOrderGoodsDate" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column label="价格" align="center" prop="lastOrderGoodsPrice" width="120" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<!-- <span>{{ (scope.row.lastOrderGoodsPrice/100).toFixed(2)||0 }}</span> -->
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
@ -504,6 +503,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery2() {
this.queryParams2 = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm2");
this.handleQuery2();
},

View File

@ -133,7 +133,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="供应商电话" prop="telephone">
<el-input v-model="form.telephone" placeholder="请输入供应商电话" maxlength="30" clearable/>
<el-input v-model="form.telephone" placeholder="请输入供应商电话" maxlength="11" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -240,7 +240,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="备用联系人手机号" prop="standbyPhone">
<el-input v-model="form.standbyPhone" placeholder="请输入备用联系人手机号" maxlength="30" clearable/>
<el-input v-model="form.standbyPhone" placeholder="请输入备用联系人手机号" maxlength="11" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -300,7 +300,7 @@
<el-row style="height: 550px;overflow-y: auto;">
<el-col :span="12">
<el-form-item label="注册资金(万元)" prop="registFund">
<el-input v-model.number="form.registFund" placeholder="请输入注册资金" maxlength="30" clearable/>
<el-input v-model.number="form.registFund" placeholder="请输入注册资金" maxlength="9" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -314,23 +314,23 @@
</el-col>
<el-col :span="12">
<el-form-item label="职工人数" prop="workersNum">
<el-input v-model.number="form.workersNum" placeholder="请输入供应商电话" maxlength="30" clearable/>
<el-input v-model.number="form.workersNum" placeholder="请输入供应商电话" maxlength="10" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="目前服务的客户数量" prop="clientNum">
<el-input v-model.number="form.clientNum" placeholder="请输入目前服务的客户数量" maxlength="30" clearable/>
<el-input v-model.number="form.clientNum" placeholder="请输入目前服务的客户数量" maxlength="10" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="去年度营业收入" prop="lastYearOperatingIncome">
<el-input v-model="form.lastYearOperatingIncome" placeholder="请输入去年度营业收入" maxlength="30" clearable
<el-input v-model="form.lastYearOperatingIncome" placeholder="请输入去年度营业收入" maxlength="10" clearable
@input="(v)=>(form.lastYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="前年度营业收入" prop="beforeYearOperatingIncome">
<el-input v-model="form.beforeYearOperatingIncome" placeholder="请输入前年度营业收入" maxlength="30" clearable
<el-input v-model="form.beforeYearOperatingIncome" placeholder="请输入前年度营业收入" maxlength="10" clearable
@input="(v)=>(form.beforeYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
</el-form-item>
</el-col>
@ -392,7 +392,7 @@
:file-list="item.fileList"
list-type="picture-card"
accept=".png, .jpg, .jpeg"
:class="{ disabled: item.imgUrl!=''}"
:class="{ disabled:item.isShowUpload }"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemoveMain(index)"
>
@ -514,7 +514,28 @@ export default {
],
categoryIdList: [
{ required: true, message: "主要供应类别不能为空", trigger: "change" }
]
],
telephone: [
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur',
}
],
linkmanPhone: [
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur',
}
],
standbyPhone: [
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur',
}
]
},
fileList1: [],
idCardImgZ: [],//
@ -572,7 +593,7 @@ export default {
},
uploadDisabled2() {
return this.idCardImgF.length > 0
},
}
},
created() {
this.getTypeTreeData();
@ -601,6 +622,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},
@ -842,9 +867,10 @@ export default {
imgUpLoadMain(param,index){
param.type = 'canteen'
imgUpLoadTwo(param).then((res) => {
if (res.code == 200) {
console.log(index)
this.mainQualificationList[index].imgUrl = res.data.url
if (res.code == 200) {
this.mainQualificationList[index].imgUrl = res.data.url;
this.mainQualificationList[index].isShowUpload = true;
this.$forceUpdate()
} else {
this.$modal.msgError(res.msg)
}
@ -854,7 +880,9 @@ export default {
})
},
handleRemoveMain(index) {
this.mainQualificationList[index].imgUrl="";
this.mainQualificationList[index].imgUrl="";
this.mainQualificationList[index].isShowUpload = false;
this.$forceUpdate()
},
//

View File

@ -377,6 +377,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},

View File

@ -200,6 +200,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange=[new Date(),new Date()]
this.queryParams = {
pageNum: 1,
pageSize: 10,
}
this.resetForm("queryForm");
this.handleQuery();
},