| | |
| | | 关闭 |
| | | </a-button> |
| | | |
| | | <a-button |
| | | <!-- <a-button |
| | | @click="handleOk()" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | >确定</a-button> |
| | | >确定</a-button> --> |
| | | <a-popconfirm |
| | | @confirm="() => handleReject()" |
| | | title="确认将当前二保完工移交单驳回?" |
| | | :disabled="this.model.confirmStatus == '0' || this.model.confirmStatus == '2'|| this.model.confirmStatus == '7'" |
| | | > |
| | | <a-button |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | :disabled="this.model.confirmStatus == '0' || this.model.confirmStatus == '2'|| this.model.confirmStatus == '7'" |
| | | > |
| | | 驳回 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | <a-popconfirm |
| | | @confirm="() => handleOk()" |
| | | title="确认将当前二保完工移交单审核通过?" |
| | | :disabled="this.model.confirmStatus == '7'" |
| | | > |
| | | <a-button |
| | | type='primary' |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | :disabled="this.model.confirmStatus == '7'" |
| | | > |
| | | 通过 |
| | | </a-button> |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | | </a-modal> |
| | |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk() { |
| | | |
| | | handleReject() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | if (this.model.confirmStatus == '1') { |
| | | formData.confirmStatus = '2' |
| | | } else if (this.model.confirmStatus == '3') { |
| | | formData.confirmStatus = '4' |
| | | } else if (this.model.confirmStatus == '5') { |
| | | formData.confirmStatus = '6' |
| | | } else if (this.model.confirmStatus == '6') { |
| | | formData.confirmStatus = '4' |
| | | } else if (this.model.confirmStatus == '4') { |
| | | formData.confirmStatus = '2' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | if (this.model.confirmStatus == '0') { |
| | | formData.confirmStatus = '1' |
| | | } else if (this.model.confirmStatus == '2') { |
| | | formData.confirmStatus = '1' |
| | | } else if (this.model.confirmStatus == '1') { |
| | | formData.confirmStatus = '3' |
| | | } else if (this.model.confirmStatus == '4') { |
| | | formData.confirmStatus = '3' |
| | | } else if (this.model.confirmStatus == '3') { |
| | | formData.confirmStatus = '5' |
| | | } else if (this.model.confirmStatus == '6') { |
| | | formData.confirmStatus = '5' |
| | | } else if (this.model.confirmStatus == '5') { |
| | | formData.confirmStatus = '7' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // handleOk() { |
| | | // const that = this; |
| | | // this.form.validateFields((err, values) => { |
| | | // if (!err) { |
| | | // that.confirmLoading = true; |
| | | // let formData = Object.assign(this.model, values); |
| | | // requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | // if (res.success) { |
| | | // that.$message.success(res.message); |
| | | // that.$emit('ok'); |
| | | // } else { |
| | | // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // that.confirmLoading = false; |
| | | // that.close(); |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |