|
@@ -47,6 +47,8 @@ var initdata_ = {
|
|
|
// 派单信息-----------------------------
|
|
|
// 服务商网点
|
|
|
websitId: "",
|
|
|
+ // 是否抢单
|
|
|
+ isQd: false,
|
|
|
// 主要工程师id
|
|
|
workerId: "",
|
|
|
// 工程师列表
|
|
@@ -262,14 +264,19 @@ export default {
|
|
|
isShow: true,
|
|
|
isRules: [...required]
|
|
|
},
|
|
|
- workerId: {
|
|
|
- isEdit: !finish,
|
|
|
+ isQd: {
|
|
|
+ isEdit: !!~['DSHPG', 'DWDPG', undefined].indexOf(this.orderInfo.orderStatus),
|
|
|
isShow: true,
|
|
|
+ isRules: [...required]
|
|
|
+ },
|
|
|
+ workerId: {
|
|
|
+ isEdit: !finish && !this.orderInfo.isQd,
|
|
|
+ isShow: !this.orderInfo.isQd,
|
|
|
isRules: this.userInfo.type != 1 ? [...required] : []
|
|
|
},
|
|
|
orderWorkers: {
|
|
|
- isEdit: !finish,
|
|
|
- isShow: true,
|
|
|
+ isEdit: !finish && !this.orderInfo.isQd,
|
|
|
+ isShow: !this.orderInfo.isQd,
|
|
|
isRules: this.userInfo.type != 1 ? [...required] : []
|
|
|
},
|
|
|
}
|
|
@@ -302,7 +309,6 @@ export default {
|
|
|
cb && cb(this.orderInfo)
|
|
|
})
|
|
|
} if(this.cloneWorkOrder){
|
|
|
-
|
|
|
// 创建工单
|
|
|
this.orderInfo = Object.assign({}, JSON.parse(JSON.stringify(this.cloneWorkOrder)), {
|
|
|
saleType: this?.workOrderType,
|