|
@@ -203,9 +203,37 @@
|
|
|
<el-input v-model="form.addTime" :disabled="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" >
|
|
|
- <el-form-item label="执行班组" prop="teamId" >
|
|
|
- <el-input v-model="form.teamId" :disabled="true" />
|
|
|
+ <el-col :span="12" v-if="form.clnr">
|
|
|
+ <el-form-item label="执行班组" prop="teamId">
|
|
|
+ <el-select
|
|
|
+ v-model="form.teamId"
|
|
|
+ placeholder="请选择执行班组"
|
|
|
+ size="small"
|
|
|
+ :disabled="true"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in teamList"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.teamName"
|
|
|
+ :value="dict.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" v-if="!form.clnr">
|
|
|
+ <el-form-item label="执行班组" prop="teamId">
|
|
|
+ <el-select
|
|
|
+ v-model="form.teamId"
|
|
|
+ placeholder="请选择执行班组"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in teamList"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.teamName"
|
|
|
+ :value="dict.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" v-if="formRow.clzt =='1' || formRow.clzt =='2'">
|
|
@@ -265,7 +293,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { addWorkOrder, delWorkOrder, updateWorkOrder, getWorkOrder, exportWorkOrder,
|
|
|
- collectWorkOrder, workOrderOne, baCwInfoUpdate, maintianLogUpdate, tbAlarmId, tbAlarmDG, tbAlarmPL } from "@/api/business/OM/workMange";
|
|
|
+ collectWorkOrder, workOrderOne, baCwInfoUpdate, maintianLogUpdate, tbAlarmId, tbAlarmDG, tbAlarmPL,tbAlarmUpdate } from "@/api/business/OM/workMange";
|
|
|
import { getDevopsTeam } from "@/api/business/OM/MochaITOM/crew";
|
|
|
import { listChannel } from "@/api/system/product";
|
|
|
import { BASEPATH } from "@/assets/js/common.js";
|
|
@@ -497,34 +525,38 @@ export default {
|
|
|
this.loading = true
|
|
|
if (this.form.id != undefined) {
|
|
|
let type = this.formData.type
|
|
|
- console.log(this.formData)
|
|
|
- // if(type=="1"){
|
|
|
- // this.form.clzt = 1
|
|
|
- // updateWorkOrder(this.form).then(response => {
|
|
|
- // this.loading = false,
|
|
|
- // this.open2 = false;
|
|
|
- // this.collectWorkOrder()
|
|
|
- // this.getList();
|
|
|
- // })
|
|
|
+ console.log(this.formData,this.form)
|
|
|
+ if(type=="1"){
|
|
|
+ this.form.clzt = 1
|
|
|
+ // this.form.workId = this.form.id
|
|
|
+ // this.form.id = "882281"
|
|
|
+ //消防
|
|
|
+ updateWorkOrder(this.form).then(response => {
|
|
|
+ // tbAlarmUpdate(this.form).then(response => {
|
|
|
+ this.loading = false,
|
|
|
+ this.open2 = false;
|
|
|
+ this.collectWorkOrder()
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
|
|
|
- // }
|
|
|
- // if(type=="2"){
|
|
|
- // this.form.workOrderContent = this.form.clnr
|
|
|
- // maintianLogUpdate(this.form).then(response => {
|
|
|
- // this.loading = false,
|
|
|
- // this.msgSuccess("处置成功");
|
|
|
- // this.open2 = false;
|
|
|
- // this.getList();
|
|
|
- // })
|
|
|
- // }
|
|
|
- // if(type=="3"){
|
|
|
- // baCwInfoUpdate(this.form).then(response => {
|
|
|
- // this.loading = false,
|
|
|
- // this.msgSuccess("处置成功");
|
|
|
- // this.open2 = false;
|
|
|
- // this.getList();
|
|
|
- // })
|
|
|
- // }
|
|
|
+ }
|
|
|
+ if(type=="2"){ //维保
|
|
|
+ this.form.workOrderContent = this.form.clnr
|
|
|
+ maintianLogUpdate(this.form).then(response => {
|
|
|
+ this.loading = false,
|
|
|
+ this.msgSuccess("处置成功");
|
|
|
+ this.open2 = false;
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(type=="3"){
|
|
|
+ baCwInfoUpdate(this.form).then(response => {
|
|
|
+ this.loading = false,
|
|
|
+ this.msgSuccess("处置成功");
|
|
|
+ this.open2 = false;
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
+ }
|
|
|
}else{
|
|
|
this.form.clzt = 0
|
|
|
addWorkOrder(this.form).then(response => {
|