|
@@ -142,7 +142,9 @@
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="
|
|
:disabled="
|
|
- !attachment.cardId || attachment.createMethod === 'UPLOAD'
|
|
|
|
|
|
+ !attachment.cardId ||
|
|
|
|
+ (attachment.cardType === 'GENERIC' &&
|
|
|
|
+ attachment.createMethod !== 'STANDARD')
|
|
"
|
|
"
|
|
@click="toCopyCard(attachment)"
|
|
@click="toCopyCard(attachment)"
|
|
>复制</el-button
|
|
>复制</el-button
|
|
@@ -151,7 +153,7 @@
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="
|
|
:disabled="
|
|
- !attachment.cardId || attachment.createMethod === 'UPLOAD'
|
|
|
|
|
|
+ !attachment.cardId || attachment.cardType === 'GENERIC'
|
|
"
|
|
"
|
|
@click="toEditCard(attachment)"
|
|
@click="toEditCard(attachment)"
|
|
>编辑</el-button
|
|
>编辑</el-button
|
|
@@ -448,8 +450,8 @@ export default {
|
|
makeMethod: this.curTaskApply.makeMethod,
|
|
makeMethod: this.curTaskApply.makeMethod,
|
|
cardRuleId: this.curTaskApply.cardRuleId,
|
|
cardRuleId: this.curTaskApply.cardRuleId,
|
|
paperType: this.paperAttachments.map(item => item.name).join(","),
|
|
paperType: this.paperAttachments.map(item => item.name).join(","),
|
|
- type: "CUSTOM",
|
|
|
|
- createMethod: "STANDARD"
|
|
|
|
|
|
+ type: attachment.cardType,
|
|
|
|
+ createMethod: attachment.createMethod
|
|
});
|
|
});
|
|
this.$refs.ModifyCard.open();
|
|
this.$refs.ModifyCard.open();
|
|
},
|
|
},
|
|
@@ -474,6 +476,7 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
this.curAttachment = { ...attachment };
|
|
this.curAttachment = { ...attachment };
|
|
|
|
+ // 这里只允许新建标准专卡
|
|
this.$ls.set("prepareTcPCard", {
|
|
this.$ls.set("prepareTcPCard", {
|
|
courseCode: this.curTaskApply.courseCode,
|
|
courseCode: this.curTaskApply.courseCode,
|
|
courseName: this.curTaskApply.courseName,
|
|
courseName: this.curTaskApply.courseName,
|