工单管理
This commit is contained in:
@@ -25,11 +25,14 @@
|
||||
<el-form-item label="客户联系电话" prop="deptPhone">
|
||||
<el-input v-model="dataForm.deptPhone" placeholder="客户联系电话"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建者ID" prop="createUserId">
|
||||
<el-input v-model="dataForm.createUserId" placeholder="创建者ID"></el-input>
|
||||
<el-form-item label="是否验收" prop="isCheck">
|
||||
<el-input v-model="dataForm.isCheck" placeholder="是否验收"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createTime">
|
||||
<el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
|
||||
<el-form-item label="工单状态" prop="status">
|
||||
<el-input v-model="dataForm.status" placeholder="工单状态"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="工单关闭时间" prop="updateTime">
|
||||
<el-input v-model="dataForm.updateTime" placeholder="工单关闭时间"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -45,7 +48,7 @@
|
||||
return {
|
||||
visible: false,
|
||||
dataForm: {
|
||||
ticketsId: 0,
|
||||
ticketsId: null,
|
||||
carType: '',
|
||||
errorType: '',
|
||||
contractNumber: '',
|
||||
@@ -53,8 +56,9 @@
|
||||
description: '',
|
||||
deptPeople: '',
|
||||
deptPhone: '',
|
||||
createUserId: '',
|
||||
createTime: ''
|
||||
isCheck: '',
|
||||
status: '',
|
||||
updateTime: ''
|
||||
},
|
||||
dataRule: {
|
||||
carType: [
|
||||
@@ -78,16 +82,30 @@
|
||||
deptPhone: [
|
||||
{ required: true, message: '客户联系电话不能为空', trigger: 'blur' }
|
||||
],
|
||||
createUserId: [
|
||||
{ required: true, message: '创建者ID不能为空', trigger: 'blur' }
|
||||
isCheck: [
|
||||
{ required: true, message: '是否验收不能为空', trigger: 'blur' }
|
||||
],
|
||||
createTime: [
|
||||
{ required: true, message: '创建时间不能为空', trigger: 'blur' }
|
||||
status: [
|
||||
{ required: true, message: '工单状态不能为空', trigger: 'blur' }
|
||||
],
|
||||
updateTime: [
|
||||
{ required: true, message: '工单关闭时间不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.getDictDetail()
|
||||
},
|
||||
methods: {
|
||||
getDictDetail () {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('api/dict/dictDetail?code=DEMAND_TYPE'),
|
||||
method: 'get'
|
||||
}).then(({data}) => {
|
||||
console.log(data)
|
||||
})
|
||||
},
|
||||
init (id) {
|
||||
this.dataForm.ticketsId = id || 0
|
||||
this.visible = true
|
||||
@@ -107,8 +125,9 @@
|
||||
this.dataForm.description = data.tickets.description
|
||||
this.dataForm.deptPeople = data.tickets.deptPeople
|
||||
this.dataForm.deptPhone = data.tickets.deptPhone
|
||||
this.dataForm.createUserId = data.tickets.createUserId
|
||||
this.dataForm.createTime = data.tickets.createTime
|
||||
this.dataForm.isCheck = data.tickets.isCheck
|
||||
this.dataForm.status = data.tickets.status
|
||||
this.dataForm.updateTime = data.tickets.updateTime
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -130,8 +149,9 @@
|
||||
'description': this.dataForm.description,
|
||||
'deptPeople': this.dataForm.deptPeople,
|
||||
'deptPhone': this.dataForm.deptPhone,
|
||||
'createUserId': this.dataForm.createUserId,
|
||||
'createTime': this.dataForm.createTime
|
||||
'isCheck': this.dataForm.isCheck,
|
||||
'status': this.dataForm.status,
|
||||
'updateTime': this.dataForm.updateTime
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user