| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :title="operationType === 'edit' ? '编辑' : operationType === 'view' ? '详情' : '新增'" |
| | | :title="dialogTitle" |
| | | v-model="formDia" |
| | | width="90%" @close="closeDia"> |
| | | <div v-if="operationType === 'edit'" style="text-align: right"> |
| | | <el-button :disabled="form.confirmDate" size="small" type="primary" @click="validation">验证确认</el-button> |
| | | <el-button :disabled="form.confirmDate" size="small" type="primary" @click="validation">{{ verifyType === 0 ? '变更确认' : '验证确认' }}</el-button> |
| | | </div> |
| | | <fieldset :disabled="operationType === 'view'" class="view-fieldset"> |
| | | <table border="1" cellspacing="10" class="tables"> |
| | |
| | | <p>标准方法</p> |
| | | </td> |
| | | <td> |
| | | <p>验证原因</p> |
| | | <p>{{ verifyType === 0 ? '变更原因' : '验证原因' }}</p> |
| | | </td> |
| | | <td> |
| | | <p>主要技术变化</p> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td>验证结论</td> |
| | | <td>{{ verifyType === 0 ? '变更结论' : '验证结论' }}</td> |
| | | <td colspan="7"> |
| | | <el-input v-model="form.verificationConclusion" :rows="2" placeholder="请输入内容" size="small" type="textarea"></el-input> |
| | | </td> |
| | |
| | | operationType: { |
| | | type: String, |
| | | default: () => '' |
| | | }, |
| | | // 0 标准方法变更,1 方法验证 |
| | | verifyType: { |
| | | type: Number, |
| | | default: 1 |
| | | } |
| | | }, |
| | | computed: { |
| | | typeLabel() { |
| | | return this.verifyType === 0 ? '标准方法变更' : '方法验证' |
| | | }, |
| | | dialogTitle() { |
| | | if (this.operationType === 'view') return `查看${this.typeLabel}` |
| | | return this.operationType === 'edit' ? `编辑${this.typeLabel}` : `新增${this.typeLabel}` |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | this.editLoad = true |
| | | const processMethodSearchNews = this.HaveJson(this.form) |
| | | processMethodSearchNews.confirmUser = processMethodSearchNews.confirmUser && processMethodSearchNews.confirmUser.join(',') |
| | | processMethodSearchNews.operationType = 1 |
| | | processMethodSearchNews.operationType = this.verifyType |
| | | if (this.operationType === 'edit') { |
| | | this.editInfo(processMethodSearchNews) |
| | | } else { |