合同\工单
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<el-form-item label="小车类型" prop="carType">
|
||||
<el-select v-model="dataForm.carType" placeholder="小车类型">
|
||||
<el-option
|
||||
v-for="item in cartypeOpt"
|
||||
v-for="item in dictData[0]"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
@@ -18,7 +18,7 @@
|
||||
<el-form-item label="异常类型" prop="errorType">
|
||||
<el-select v-model="dataForm.errorType" placeholder="异常类型">
|
||||
<el-option
|
||||
v-for="item in dictsOpt['error_type']"
|
||||
v-for="item in dictData[1]"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
@@ -28,7 +28,7 @@
|
||||
<el-form-item label="合同编号" prop="contractNumber">
|
||||
<el-select v-model="dataForm.contractNumber" placeholder="合同编号">
|
||||
<el-option
|
||||
v-for="item in contractOpt"
|
||||
v-for="item in dictData[2]"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
@@ -38,7 +38,7 @@
|
||||
<el-form-item label="客户" prop="clientId">
|
||||
<el-select v-model="dataForm.clientId" placeholder="客户">
|
||||
<el-option
|
||||
v-for="item in clientIdOpt"
|
||||
v-for="item in dictData[3]"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
@@ -87,13 +87,11 @@
|
||||
}
|
||||
},
|
||||
props: {
|
||||
cartypeOpt: Array,
|
||||
contractOpt: Array,
|
||||
clientIdOpt: Array,
|
||||
dictsOpt: Object
|
||||
dictData: Array
|
||||
},
|
||||
methods: {
|
||||
init (id) {
|
||||
console.log(this.dictData)
|
||||
this.dataForm.ticketsId = id || 0
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
@@ -106,8 +104,8 @@
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.carType = data.tickets.carType
|
||||
this.dataForm.errorType = data.tickets.errorType
|
||||
this.dataForm.contractNumber = data.tickets.contractNumber
|
||||
this.dataForm.errorType = String(data.tickets.errorType)
|
||||
this.dataForm.contractNumber = String(data.tickets.contractNumber)
|
||||
this.dataForm.clientId = data.tickets.clientId
|
||||
this.dataForm.description = data.tickets.description
|
||||
this.dataForm.deptPhone = data.tickets.deptPhone
|
||||
|
||||
Reference in New Issue
Block a user