|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<a-modal
|
|
|
- title="转派"
|
|
|
+ title="暂停"
|
|
|
:width="800"
|
|
|
:visible="visible"
|
|
|
:confirmLoading="confirmLoading"
|
|
@@ -11,6 +11,7 @@
|
|
|
<a-input v-decorator="['id']" type="hidden"/>
|
|
|
</a-form-item>
|
|
|
<a-form-item
|
|
|
+ v-if="model.status === 5"
|
|
|
label="要求时间"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
@@ -22,6 +23,15 @@
|
|
|
<span slot="suffix">小时</span>
|
|
|
</a-input>
|
|
|
</a-form-item>
|
|
|
+ <a-form-item
|
|
|
+ v-else
|
|
|
+ label="暂停原因"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
+ >
|
|
|
+ <a-textarea
|
|
|
+ v-decorator="['remark', {rules: [{required: true, message: '暂停原因不能为空'}]}]" />
|
|
|
+ </a-form-item>
|
|
|
</a-form>
|
|
|
<template slot="footer">
|
|
|
<a-button :loading="confirmLoading" type="primary" @click="save()">提交</a-button>
|
|
@@ -44,6 +54,7 @@ export default {
|
|
|
confirmLoading: false,
|
|
|
form: this.$form.createForm(this),
|
|
|
visible: false,
|
|
|
+ model: {},
|
|
|
// 下拉框map
|
|
|
ipqcMap: {}
|
|
|
}
|
|
@@ -54,6 +65,7 @@ export default {
|
|
|
methods: {
|
|
|
base (record) {
|
|
|
console.log(record)
|
|
|
+ this.model = record
|
|
|
this.visible = true
|
|
|
const { form: { setFieldsValue } } = this
|
|
|
// 日期处理
|
|
@@ -77,7 +89,7 @@ export default {
|
|
|
this.confirmLoading = false
|
|
|
return
|
|
|
}
|
|
|
- values.pauseType = 2
|
|
|
+ values.pauseType = this.model.status === 5 ? 2 : 1
|
|
|
console.log(values)
|
|
|
pauseFillGatherTask(values).then(res => {
|
|
|
this.handleCancel()
|
|
@@ -87,6 +99,7 @@ export default {
|
|
|
},
|
|
|
handleCancel () {
|
|
|
this.visible = false
|
|
|
+ this.confirmLoading = false
|
|
|
this.$emit('ok')
|
|
|
}
|
|
|
|