新增工单时增加引车员
This commit is contained in:
parent
fe21a5802d
commit
da0b468fae
@ -367,6 +367,16 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</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="请选择检测项目">-->
|
||||
<!-- 可选检测项目 -->
|
||||
<div v-if="isInsert">
|
||||
@ -517,6 +527,7 @@ export default {
|
||||
inspectionWorkNodeStr:[],
|
||||
selectInspectionProjectIds:[],
|
||||
isInsert: false,
|
||||
leadManList:[],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@ -809,6 +820,7 @@ export default {
|
||||
handleAdd() {
|
||||
this.getINspectionProject()
|
||||
this.isInsert = true
|
||||
this.getLeadeMan();
|
||||
listGoods().then(res => {
|
||||
res.data.forEach(it => {
|
||||
let temp = {}
|
||||
@ -834,6 +846,7 @@ export default {
|
||||
handleUpdate(row) {
|
||||
this.isInsert = false
|
||||
this.reset();
|
||||
this.getLeadeMan();
|
||||
this.form = row
|
||||
let skuId = parseInt(row.skuId)
|
||||
this.form.skuId = [row.goodsId, skuId]
|
||||
@ -858,6 +871,18 @@ export default {
|
||||
this.addOpen = true;
|
||||
this.title = "工单";
|
||||
},
|
||||
/** 获取引车员信息*/
|
||||
getLeadeMan() {
|
||||
request({
|
||||
url: '/system/role/getUsersByRoleCode',
|
||||
method: 'get',
|
||||
params: {
|
||||
code: "jcycy"
|
||||
}
|
||||
}).then(res => {
|
||||
this.leadManList = res.data
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
if (this.form.id) {
|
||||
|
Loading…
Reference in New Issue
Block a user