+
+ style="width: 148px; height: 148px;margin-right:10px;">
@@ -786,7 +788,7 @@ export default {
prop: "overStatus",
search: true,
overHidden: true,
- hide:true
+ hide: true
},
{
label: "设备名称",
@@ -846,10 +848,10 @@ export default {
sortable: true,
},
{
- label:'维修人员',
- prop:"repairPersonName",
- hide:false,
- search:true
+ label: '维修人员',
+ prop: "repairPersonName",
+ hide: false,
+ search: true
},
{
label: "审批时间",
@@ -911,7 +913,7 @@ export default {
headers: {
},
- overStatusList:[],
+ overStatusList: [],
completeImgList: [],//维修完成上传图片
}
},
@@ -954,58 +956,58 @@ export default {
this.role_id = this.userInfo.role_id
this.dataTypes = this.userInfo.dataType
- // dataTypes 1:实验室 2:客服 3:维修负责人 4:维修人员
- if(this.dataTypes == 2){
+ // dataTypes 1:实验室 2:客服 3:维修负责人 4:维修人员
+ if (this.dataTypes == 2) {
this.overStatusList = [
{
- value:'101,400,205',
- name:'待派单'
+ value: '101,400,205',
+ name: '待派单'
},
{
- value:'201,401,402,301',
- name:'待维修'
+ value: '201,401,402,301',
+ name: '待维修'
},
{
- value:'403,202,405,105,406',
- name:'维修完成'
+ value: '403,202,405,105,406',
+ name: '维修完成'
},
{
- value:'203,204',
- name:'已完成'
+ value: '203,204',
+ name: '已完成'
}
]
- }else if(this.dataTypes == 3){
+ } else if (this.dataTypes == 3) {
this.overStatusList = [
{
- value:'201',
- name:'待确认'
+ value: '201',
+ name: '待确认'
},
{
- value:'103,404,401',
- name:'维修中'
+ value: '103,404,401',
+ name: '维修中'
},
{
- value:'403,202,405,105,406',
- name:'维修完成'
+ value: '403,202,405,105,406',
+ name: '维修完成'
},
{
- value:'203,204',
- name:'已完成'
+ value: '203,204',
+ name: '已完成'
}
]
- }else if(this.dataTypes == 4){
+ } else if (this.dataTypes == 4) {
this.overStatusList = [
{
- value:'201',
- name:'待确认'
+ value: '201',
+ name: '待确认'
},
{
- value:'401,105',
- name:'待提交'
+ value: '401,105',
+ name: '待提交'
},
{
- value:'403,104,202,203,204,400',
- name:'已完成'
+ value: '403,104,202,203,204,400',
+ name: '已完成'
}
]
}
@@ -1026,7 +1028,7 @@ export default {
finishTime: { required: true, message: '请选择计划完成时间', trigger: 'blur' },
repairPerson: { required: true, message: '请选择维修人员', trigger: 'blur' },
}
- if(this.role_id == '1839552581620793346'){
+ if (this.role_id == '1839552581620793346') {
this.option.column.find(item => item.prop == 'repairPersonName').hide = true
this.option.column.find(item => item.prop == 'repairPersonName').search = false
}
@@ -1186,7 +1188,7 @@ export default {
this.discountPrice = res.data.data.discountPrice == -1 ? '' : res.data.data.discountPrice
// 维修完成图片展示 completeImgList
- this.completeImgList = res.data.data.completeImgList!=''?JSON.parse(res.data.data.completeImgList):[]
+ this.completeImgList = res.data.data.completeImgList != '' ? JSON.parse(res.data.data.completeImgList) : []
})
},
// 关闭弹窗
@@ -1744,6 +1746,16 @@ export default {
query.discount = 0
}
+ let query1 = {
+ details: data,
+ applyUserId: this.userInfo.user_id, //申领人Id
+ applyUser: this.userInfo.user_name, //申领人
+ applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //申领时间(yyyy-MM-dd HH:mm:ss)
+ status: 0,
+ workId: this.addForm.id,
+ remark:'维修单申领'
+ }
+
editData(query).then(res => {
if (res.data.code == 200) {
servicemanSubmit({
@@ -1752,9 +1764,14 @@ export default {
deviceName: this.repairForm.deviceName,
repairType: this.repairForm.repairType
}).then(res => {
- this.$message.success("提交成功")
- this.repairVisible = false
- this.onLoad()
+ applyGoods(query1).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success("提交成功")
+ this.repairVisible = false
+ this.onLoad()
+ }
+ })
+
})
}
})
@@ -1997,7 +2014,7 @@ export default {
status: 0,
workId: this.addForm.id,
}
- applyGoods(query1).then(res => {
+ // applyGoods(query1).then(res => {
if (res.data.code == 200) {
servicemanReceive({ id: this.addForm.id }).then(res => {
if (res.data.code == 200) {
@@ -2007,7 +2024,7 @@ export default {
}
})
}
- })
+ // })
}
} else {
// 维修人员接单
@@ -2071,8 +2088,8 @@ export default {
faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型
reportUnitName: this.searchForm.reportUnitName ? this.searchForm.reportUnitName : '',
dataType: this.role_id == '1123598816738675201' ? '' : this.dataTypes,
- statusSearch:this.searchForm.overStatus ? this.searchForm.overStatus : '',
- repairPersonName:this.searchForm.repairPersonName ? this.searchForm.repairPersonName : ''
+ statusSearch: this.searchForm.overStatus ? this.searchForm.overStatus : '',
+ repairPersonName: this.searchForm.repairPersonName ? this.searchForm.repairPersonName : ''
}
getList(query).then(res => {
let data_ = res.data.data.records