Commit e1f9027f authored by chenzj's avatar chenzj

修复暂停作业bug

parent 56227fcf
......@@ -219,10 +219,12 @@
<view class="feedback-card" style="height: 200px">
<u-form label-width="120px" :model="stopReasonForm" :rules="rules">
<u-form-item label="暂停原因" prop="reason">
<uni-data-select v-model="stopReasonForm.reason" :localdata="exception" @change="stopReas"></uni-data-select>
</u-form-item>
<u-form-item label="暂停描述" prop="desc">
<uni-data-select v-model="stopReasonForm.desc" :localdata="reasonList"></uni-data-select>
<!-- <uni-data-select v-model="stopReasonForm.reason" :localdata="exception" @change="stopReas"></uni-data-select> -->
<uni-data-select v-model="stopReasonForm.reason" :localdata="causeList" @change="stopCause"></uni-data-select>
</u-form-item>
<u-form-item label="暂停描述" prop="desc">
<!-- <uni-data-selec v-model="stopReasonForm.desc" :localdata="reasonList" type=“textarea”></uni-data-select> -->
<u-input v-model="stopReasonForm.desc" type="textarea"></u-input>
</u-form-item>
</u-form>
</view>
......@@ -821,6 +823,7 @@ export default {
viewSopPicture: [],
viewSop: [],
reasonList: [],
causeList: [],
workorderList: [],
materialUsageRecordList: [],
materialusagerecordLoading: false,
......@@ -1008,6 +1011,7 @@ userTempVisible: false,
this.getTaskList();
break;
case 'StopTask':
this.stopCause();
this.stopReason = '';
this.stopReasonVisible = true;
break;
......@@ -1185,6 +1189,23 @@ userTempVisible: false,
});
});
},
stopCause() {
// 查询原因
this.$u.api.abnormal
.detail({
pageNum: 1,
pageSize: 10,
abnormalType:'WORK'
})
.then((res) => {
this.causeList = res.rows.map((item) => {
return {
value: item.abnormalReason,
text: item.abnormalReason
};
});
});
},
stopWorkorder(item) {
// 查询原因
this.$u.api
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment