|
@@ -2,7 +2,7 @@
|
|
|
<el-container style="border: #000000;height: 100%;" v-if="visible">
|
|
<el-container style="border: #000000;height: 100%;" v-if="visible">
|
|
|
<avue-form ref="form" v-model="jobSolve" :option="option" @submit="submit">
|
|
<avue-form ref="form" v-model="jobSolve" :option="option" @submit="submit">
|
|
|
<template slot-scope="scope" slot="menuForm">
|
|
<template slot-scope="scope" slot="menuForm">
|
|
|
- <el-button icon="el-icon-delete" @click="clearForm">清空</el-button>
|
|
|
|
|
|
|
+ <el-button icon="el-icon-delete" @click="clearForm" v-if="jobSolve.jobStatus===1">清空</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</avue-form>
|
|
</avue-form>
|
|
|
</el-container>
|
|
</el-container>
|
|
@@ -12,6 +12,7 @@
|
|
|
import {
|
|
import {
|
|
|
update
|
|
update
|
|
|
} from "@/api/order/deviceorder";
|
|
} from "@/api/order/deviceorder";
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
|
visible: "",
|
|
visible: "",
|
|
@@ -65,12 +66,11 @@ export default {
|
|
|
label: '处理人',
|
|
label: '处理人',
|
|
|
prop: 'handlePerson',
|
|
prop: 'handlePerson',
|
|
|
span: 12,
|
|
span: 12,
|
|
|
-
|
|
|
|
|
}, {
|
|
}, {
|
|
|
label: '联系方式',
|
|
label: '联系方式',
|
|
|
prop: 'handlePhone',
|
|
prop: 'handlePhone',
|
|
|
row: true,
|
|
row: true,
|
|
|
- span: 12
|
|
|
|
|
|
|
+ span: 12,
|
|
|
}, {
|
|
}, {
|
|
|
label: '处理状态',
|
|
label: '处理状态',
|
|
|
prop: 'jobStatus',
|
|
prop: 'jobStatus',
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- mounted() {
|
|
|
|
|
|
|
+/* mounted() {
|
|
|
console.log("状态"+this.jobSolve.jobStatus);
|
|
console.log("状态"+this.jobSolve.jobStatus);
|
|
|
if (this.jobSolve.jobStatus == 2) {
|
|
if (this.jobSolve.jobStatus == 2) {
|
|
|
this.option.submitBtn = false;
|
|
this.option.submitBtn = false;
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
this.option.submitBtn = true;
|
|
this.option.submitBtn = true;
|
|
|
this.option.emptyBtn = false;
|
|
this.option.emptyBtn = false;
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
|
|
+ },*/
|
|
|
methods: {
|
|
methods: {
|
|
|
clearForm(){
|
|
clearForm(){
|
|
|
this.jobSolve.remark="";
|
|
this.jobSolve.remark="";
|
|
@@ -113,8 +113,17 @@ export default {
|
|
|
this.jobSolve.handlePerson="";
|
|
this.jobSolve.handlePerson="";
|
|
|
},
|
|
},
|
|
|
init() {
|
|
init() {
|
|
|
- this.option.submitBtn = true;
|
|
|
|
|
- this.option.emptyBtn = false;
|
|
|
|
|
|
|
+ if (this.jobSolve.jobStatus === 2) {
|
|
|
|
|
+ for(const item of this.option.group[1].column){
|
|
|
|
|
+ item.disabled = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.option.submitBtn = false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for(const item of this.option.group[1].column){
|
|
|
|
|
+ item.disabled = item.prop==="alarmTime";
|
|
|
|
|
+ }
|
|
|
|
|
+ this.option.submitBtn = true;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
update(this.jobSolve).then(() => {
|
|
update(this.jobSolve).then(() => {
|