Commit e1f9027f authored by chenzj's avatar chenzj

修复暂停作业bug

parent 56227fcf
...@@ -219,10 +219,12 @@ ...@@ -219,10 +219,12 @@
<view class="feedback-card" style="height: 200px"> <view class="feedback-card" style="height: 200px">
<u-form label-width="120px" :model="stopReasonForm" :rules="rules"> <u-form label-width="120px" :model="stopReasonForm" :rules="rules">
<u-form-item label="暂停原因" prop="reason"> <u-form-item label="暂停原因" prop="reason">
<uni-data-select v-model="stopReasonForm.reason" :localdata="exception" @change="stopReas"></uni-data-select> <!-- <uni-data-select v-model="stopReasonForm.reason" :localdata="exception" @change="stopReas"></uni-data-select> -->
</u-form-item> <uni-data-select v-model="stopReasonForm.reason" :localdata="causeList" @change="stopCause"></uni-data-select>
<u-form-item label="暂停描述" prop="desc"> </u-form-item>
<uni-data-select v-model="stopReasonForm.desc" :localdata="reasonList"></uni-data-select> <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-item>
</u-form> </u-form>
</view> </view>
...@@ -821,6 +823,7 @@ export default { ...@@ -821,6 +823,7 @@ export default {
viewSopPicture: [], viewSopPicture: [],
viewSop: [], viewSop: [],
reasonList: [], reasonList: [],
causeList: [],
workorderList: [], workorderList: [],
materialUsageRecordList: [], materialUsageRecordList: [],
materialusagerecordLoading: false, materialusagerecordLoading: false,
...@@ -1008,6 +1011,7 @@ userTempVisible: false, ...@@ -1008,6 +1011,7 @@ userTempVisible: false,
this.getTaskList(); this.getTaskList();
break; break;
case 'StopTask': case 'StopTask':
this.stopCause();
this.stopReason = ''; this.stopReason = '';
this.stopReasonVisible = true; this.stopReasonVisible = true;
break; break;
...@@ -1185,6 +1189,23 @@ userTempVisible: false, ...@@ -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) { stopWorkorder(item) {
// 查询原因 // 查询原因
this.$u.api 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