|
@@ -71,7 +71,11 @@
|
|
|
查看题卡
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-if="curTaskApply.makeMethod && IS_APPLY"
|
|
|
+ v-if="
|
|
|
+ curTaskApply.makeMethod &&
|
|
|
+ curTaskApply.makeMethod !== 'CUST' &&
|
|
|
+ IS_APPLY
|
|
|
+ "
|
|
|
type="text"
|
|
|
class="btn-danger"
|
|
|
@click="changeCreateCardType"
|
|
@@ -128,7 +132,7 @@
|
|
|
|
|
|
<h4 class="mb-2" v-if="IS_APPLY">上传入库审核表(最多4张)</h4>
|
|
|
<h4 class="mb-2" v-else>入库审核表</h4>
|
|
|
- <div class="image-list">
|
|
|
+ <div class="image-list mb-4">
|
|
|
<div
|
|
|
class="image-item"
|
|
|
v-for="(img, index) in paperConfirmAttachments"
|
|
@@ -166,7 +170,10 @@
|
|
|
label-width="90px"
|
|
|
>
|
|
|
<el-form-item prop="approvePass" label="审批操作:">
|
|
|
- <el-radio-group v-model="auditModal.approvePass">
|
|
|
+ <el-radio-group
|
|
|
+ v-model="auditModal.approvePass"
|
|
|
+ @change="approvePassChange"
|
|
|
+ >
|
|
|
<el-radio
|
|
|
v-for="(val, key) in TASK_AUDIT_RESULT"
|
|
|
:key="key"
|
|
@@ -191,7 +198,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
- v-if="auditModal.approvePass === 'REJECT'"
|
|
|
+ :key="auditModal.approvePass"
|
|
|
prop="remark"
|
|
|
label="审批意见:"
|
|
|
>
|
|
@@ -358,7 +365,7 @@ export default {
|
|
|
],
|
|
|
remark: [
|
|
|
{
|
|
|
- required: true,
|
|
|
+ required: false,
|
|
|
validator: (rule, value, callback) => {
|
|
|
if (this.auditModal.approvePass === "REJECT" && !value) {
|
|
|
callback(new Error(`请输入审批意见`));
|
|
@@ -497,6 +504,10 @@ export default {
|
|
|
}
|
|
|
this.$emit("step-change", this.flows);
|
|
|
},
|
|
|
+ approvePassChange() {
|
|
|
+ this.auditRules.remark[0].required =
|
|
|
+ this.auditModal.approvePass === "REJECT";
|
|
|
+ },
|
|
|
addAtachment() {
|
|
|
if (this.paperAttachments.length >= this.attachmentLimitCount) return;
|
|
|
|
|
@@ -580,7 +591,8 @@ export default {
|
|
|
courseName: this.task.courseName,
|
|
|
makeMethod: this.task.makeMethod,
|
|
|
cardRuleId: this.task.cardRuleId,
|
|
|
- paperType: this.task.paperType
|
|
|
+ paperType: this.task.paperType,
|
|
|
+ drawCount: this.task.drawCount
|
|
|
});
|
|
|
},
|
|
|
async toCreateOrViewCard() {
|
|
@@ -637,8 +649,9 @@ export default {
|
|
|
},
|
|
|
async clearMakeMethod() {
|
|
|
// 清除后台记录的题卡
|
|
|
- if (this.curTaskApply.cardId)
|
|
|
+ if (this.curTaskApply.cardId && this.curTaskApply.makeMethod !== "CUST") {
|
|
|
await switchCardCreateMethod(this.examTask.id);
|
|
|
+ }
|
|
|
|
|
|
this.curTaskApply.makeMethod = "";
|
|
|
this.curTaskApply.cardId = "";
|