新增工单时增加引车员

This commit is contained in:
许允枞 2024-11-14 09:41:43 +08:00
parent fe21a5802d
commit da0b468fae

View File

@ -367,6 +367,16 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="引车员">
<el-select v-model="form.leadManId" placeholder="请选择客户来源">
<el-option
v-for="dict in leadManList"
:key="dict.id"
:label="dict.nickname"
:value="dict.id"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="请选择检测项目">--> <!-- <el-form-item label="请选择检测项目">-->
<!-- 可选检测项目 --> <!-- 可选检测项目 -->
<div v-if="isInsert"> <div v-if="isInsert">
@ -517,6 +527,7 @@ export default {
inspectionWorkNodeStr:[], inspectionWorkNodeStr:[],
selectInspectionProjectIds:[], selectInspectionProjectIds:[],
isInsert: false, isInsert: false,
leadManList:[],
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -809,6 +820,7 @@ export default {
handleAdd() { handleAdd() {
this.getINspectionProject() this.getINspectionProject()
this.isInsert = true this.isInsert = true
this.getLeadeMan();
listGoods().then(res => { listGoods().then(res => {
res.data.forEach(it => { res.data.forEach(it => {
let temp = {} let temp = {}
@ -834,6 +846,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.isInsert = false this.isInsert = false
this.reset(); this.reset();
this.getLeadeMan();
this.form = row this.form = row
let skuId = parseInt(row.skuId) let skuId = parseInt(row.skuId)
this.form.skuId = [row.goodsId, skuId] this.form.skuId = [row.goodsId, skuId]
@ -858,6 +871,18 @@ export default {
this.addOpen = true; this.addOpen = true;
this.title = "工单"; this.title = "工单";
}, },
/** 获取引车员信息*/
getLeadeMan() {
request({
url: '/system/role/getUsersByRoleCode',
method: 'get',
params: {
code: "jcycy"
}
}).then(res => {
this.leadManList = res.data
})
},
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
if (this.form.id) { if (this.form.id) {