|
@@ -27,230 +27,229 @@
|
|
</el-steps>
|
|
</el-steps>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="part-box part-box-pad part-box-border">
|
|
|
|
|
|
+ <div class="task-body">
|
|
|
|
+ <div v-if="IS_APPLY" class="mb-2 text-right">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="el-icon-circle-plus-outline"
|
|
|
|
+ @click="addAtachment"
|
|
|
|
+ >增加卷型</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ <table class="table mb-2">
|
|
|
|
+ <tr>
|
|
|
|
+ <th>试卷类型</th>
|
|
|
|
+ <th>试卷文件</th>
|
|
|
|
+ <th>答题卡创建方式</th>
|
|
|
|
+ <th>答题卡</th>
|
|
|
|
+ <th v-if="IS_APPLY">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr v-for="(attachment, index) in paperAttachments" :key="index">
|
|
|
|
+ <td>{{ attachment.name }}卷</td>
|
|
|
|
+ <td class="td-link">
|
|
|
|
+ <span
|
|
|
|
+ v-if="IS_APPLY"
|
|
|
|
+ @click="toUpload(attachment)"
|
|
|
|
+ title="点击上传试卷"
|
|
|
|
+ >
|
|
|
|
+ <i
|
|
|
|
+ :class="[
|
|
|
|
+ 'icon',
|
|
|
|
+ attachment.attachmentId ? 'icon-files-act' : 'icon-files'
|
|
|
|
+ ]"
|
|
|
|
+ ></i
|
|
|
|
+ >{{
|
|
|
|
+ attachment.attachmentId
|
|
|
|
+ ? attachment.filename
|
|
|
|
+ : "点击上传试卷文件"
|
|
|
|
+ }}
|
|
|
|
+ </span>
|
|
|
|
+ <span
|
|
|
|
+ v-else
|
|
|
|
+ @click="downloadPaper(attachment)"
|
|
|
|
+ title="点击查看试卷"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-download" v-if="attachment.attachmentId"></i>
|
|
|
|
+ <i>{{ attachment.filename }}</i>
|
|
|
|
+ </span>
|
|
|
|
+ </td>
|
|
|
|
+ <td :rowspan="paperAttachments.length" v-if="index === 0">
|
|
|
|
+ {{ createCardTypeName }}
|
|
|
|
+ </td>
|
|
|
|
+ <td
|
|
|
|
+ class="td-link"
|
|
|
|
+ :rowspan="paperAttachments.length"
|
|
|
|
+ v-if="index === 0"
|
|
|
|
+ >
|
|
|
|
+ <span v-if="IS_APPLY" @click="toCreateOrViewCard">{{
|
|
|
|
+ cardTodoName
|
|
|
|
+ }}</span>
|
|
|
|
+ <span v-else @click="toViewCard">
|
|
|
|
+ <i>查看题卡</i>
|
|
|
|
+ </span>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="curTaskApply.makeMethod && IS_APPLY"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="changeCreateCardType"
|
|
|
|
+ >切换题卡创建方式</el-button
|
|
|
|
+ >
|
|
|
|
+ </td>
|
|
|
|
+ <td v-if="IS_APPLY">
|
|
|
|
+ <el-button
|
|
|
|
+ class="btn-danger"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="deleteAttachment(index)"
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr v-if="!paperAttachments.length">
|
|
|
|
+ <td colspan="5">
|
|
|
|
+ <p class="tips-info text-center">暂无数据</p>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+
|
|
<p class="tips-info tips-dark mb-2">
|
|
<p class="tips-info tips-dark mb-2">
|
|
提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
|
|
提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
|
|
</p>
|
|
</p>
|
|
- <div class="task-body">
|
|
|
|
- <div v-if="IS_APPLY" class="mb-2 text-right">
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- icon="el-icon-circle-plus-outline"
|
|
|
|
- @click="addAtachment"
|
|
|
|
- >增加卷型</el-button
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
- <table class="table">
|
|
|
|
- <tr>
|
|
|
|
- <th>试卷类型</th>
|
|
|
|
- <th>试卷文件</th>
|
|
|
|
- <th>答题卡创建方式</th>
|
|
|
|
- <th>答题卡</th>
|
|
|
|
- <th v-if="IS_APPLY">操作</th>
|
|
|
|
- </tr>
|
|
|
|
- <tr v-for="(attachment, index) in paperAttachments" :key="index">
|
|
|
|
- <td>{{ attachment.name }}卷</td>
|
|
|
|
- <td class="td-link">
|
|
|
|
- <span
|
|
|
|
- v-if="IS_APPLY"
|
|
|
|
- @click="toUpload(attachment)"
|
|
|
|
- title="点击上传试卷"
|
|
|
|
- >
|
|
|
|
- <i
|
|
|
|
- :class="[
|
|
|
|
- 'icon',
|
|
|
|
- attachment.attachmentId ? 'icon-files-act' : 'icon-files'
|
|
|
|
- ]"
|
|
|
|
- ></i
|
|
|
|
- >{{
|
|
|
|
- attachment.attachmentId
|
|
|
|
- ? attachment.filename
|
|
|
|
- : "点击上传试卷文件"
|
|
|
|
- }}
|
|
|
|
- </span>
|
|
|
|
- <span
|
|
|
|
- v-else
|
|
|
|
- @click="downloadPaper(attachment)"
|
|
|
|
- title="点击查看试卷"
|
|
|
|
- >
|
|
|
|
- <i
|
|
|
|
- class="icon icon-download-act"
|
|
|
|
- v-if="attachment.attachmentId"
|
|
|
|
- ></i>
|
|
|
|
- <i>{{ attachment.filename }}</i>
|
|
|
|
- </span>
|
|
|
|
- </td>
|
|
|
|
- <td :rowspan="paperAttachments.length" v-if="index === 0">
|
|
|
|
- {{ createCardTypeName }}
|
|
|
|
- </td>
|
|
|
|
- <td
|
|
|
|
- class="td-link"
|
|
|
|
- :rowspan="paperAttachments.length"
|
|
|
|
- v-if="index === 0"
|
|
|
|
- >
|
|
|
|
- <span v-if="IS_APPLY" @click="toCreateOrViewCard"
|
|
|
|
- ><i class="icon icon-plus-act"></i>{{ cardTodoName }}</span
|
|
|
|
- >
|
|
|
|
- <span v-else @click="toViewCard">
|
|
|
|
- <i class="icon icon-circle-right"></i>
|
|
|
|
- <i>查看题卡</i>
|
|
|
|
- </span>
|
|
|
|
- <el-button
|
|
|
|
- v-if="curTaskApply.makeMethod && IS_APPLY"
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- @click="changeCreateCardType"
|
|
|
|
- >切换题卡创建方式</el-button
|
|
|
|
- >
|
|
|
|
- </td>
|
|
|
|
- <td v-if="IS_APPLY">
|
|
|
|
- <el-button
|
|
|
|
- class="btn-primary"
|
|
|
|
- type="text"
|
|
|
|
- icon="icon icon-delete"
|
|
|
|
- title="删除"
|
|
|
|
- @click="deleteAttachment(index)"
|
|
|
|
- ></el-button>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
|
|
|
|
- <el-form>
|
|
|
|
- <el-form-item label="单次抽卷卷型数量:" label-width="150">
|
|
|
|
- <el-input-number
|
|
|
|
- v-model="curTaskApply.drawCount"
|
|
|
|
- :min="1"
|
|
|
|
- :max="maxFetchCount"
|
|
|
|
- :step="1"
|
|
|
|
- step-strictly
|
|
|
|
- :controls="false"
|
|
|
|
- :disabled="!IS_APPLY"
|
|
|
|
- ></el-input-number>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <el-form>
|
|
|
|
+ <el-form-item label="单次抽卷卷型数量:" label-width="150">
|
|
|
|
+ <el-input-number
|
|
|
|
+ v-model="curTaskApply.drawCount"
|
|
|
|
+ :min="1"
|
|
|
|
+ :max="maxFetchCount"
|
|
|
|
+ :step="1"
|
|
|
|
+ step-strictly
|
|
|
|
+ :controls="false"
|
|
|
|
+ :disabled="!IS_APPLY"
|
|
|
|
+ ></el-input-number>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
|
|
- <h4 class="mb-2">备注说明:</h4>
|
|
|
|
- <el-input
|
|
|
|
- class="mb-2"
|
|
|
|
- v-model="curTaskApply.remark"
|
|
|
|
- type="textarea"
|
|
|
|
- resize="none"
|
|
|
|
- :rows="2"
|
|
|
|
- :maxlength="100"
|
|
|
|
- clearable
|
|
|
|
- show-word-limit
|
|
|
|
- placeholder="建议不超过100个字"
|
|
|
|
- :disabled="!IS_APPLY"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <h4 class="mb-2">备注说明:</h4>
|
|
|
|
+ <el-input
|
|
|
|
+ class="mb-2"
|
|
|
|
+ v-model="curTaskApply.remark"
|
|
|
|
+ type="textarea"
|
|
|
|
+ resize="none"
|
|
|
|
+ :rows="2"
|
|
|
|
+ :maxlength="100"
|
|
|
|
+ clearable
|
|
|
|
+ show-word-limit
|
|
|
|
+ placeholder="建议不超过100个字"
|
|
|
|
+ :disabled="!IS_APPLY"
|
|
|
|
+ ></el-input>
|
|
|
|
|
|
- <h4 class="mb-2">上传入库审核表(最多4张)</h4>
|
|
|
|
- <div class="image-list">
|
|
|
|
- <div
|
|
|
|
- class="image-item"
|
|
|
|
- v-for="(img, index) in paperConfirmAttachments"
|
|
|
|
- :key="index"
|
|
|
|
- >
|
|
|
|
- <img
|
|
|
|
- :src="img.url"
|
|
|
|
- :alt="img.filename"
|
|
|
|
- title="点击查看大图"
|
|
|
|
- @click="toPreview(index)"
|
|
|
|
- />
|
|
|
|
- <div v-if="IS_APPLY" class="image-delete">
|
|
|
|
- <i
|
|
|
|
- class="el-icon-delete-solid"
|
|
|
|
- @click="deletePaperConfirmAttachment(index)"
|
|
|
|
- ></i>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div
|
|
|
|
- v-if="paperConfirmAttachments.length < 4 && IS_APPLY"
|
|
|
|
- class="image-item image-add"
|
|
|
|
- title="上传入库审核表"
|
|
|
|
- @click="toUploadPaperConfirm"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-plus"></i>
|
|
|
|
|
|
+ <h4 class="mb-2" v-if="IS_APPLY">上传入库审核表(最多4张)</h4>
|
|
|
|
+ <h4 class="mb-2" v-else>入库审核表</h4>
|
|
|
|
+ <div class="image-list">
|
|
|
|
+ <div
|
|
|
|
+ class="image-item"
|
|
|
|
+ v-for="(img, index) in paperConfirmAttachments"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
|
|
+ <img
|
|
|
|
+ :src="img.url"
|
|
|
|
+ :alt="img.filename"
|
|
|
|
+ title="点击查看大图"
|
|
|
|
+ @click="toPreview(index)"
|
|
|
|
+ />
|
|
|
|
+ <div v-if="IS_APPLY" class="image-delete">
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-delete-solid"
|
|
|
|
+ @click="deletePaperConfirmAttachment(index)"
|
|
|
|
+ ></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <!-- audit -->
|
|
|
|
- <el-form
|
|
|
|
- v-if="IS_AUDIT"
|
|
|
|
- ref="auditModalComp"
|
|
|
|
- :model="auditModal"
|
|
|
|
- :rules="auditRules"
|
|
|
|
- label-width="90px"
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="paperConfirmAttachments.length < 4 && IS_APPLY"
|
|
|
|
+ class="image-item image-add"
|
|
|
|
+ title="上传入库审核表"
|
|
|
|
+ @click="toUploadPaperConfirm"
|
|
>
|
|
>
|
|
- <el-form-item prop="approvePass" label="审批操作:">
|
|
|
|
- <el-radio-group v-model="auditModal.approvePass">
|
|
|
|
- <el-radio
|
|
|
|
- v-for="(val, key) in TASK_AUDIT_RESULT"
|
|
|
|
- :key="key"
|
|
|
|
- :label="key"
|
|
|
|
- >{{ val }}</el-radio
|
|
|
|
- >
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item
|
|
|
|
- v-if="auditModal.approvePass === 'REJECT'"
|
|
|
|
- prop="setup"
|
|
|
|
- label="驳回节点:"
|
|
|
|
- >
|
|
|
|
- <el-select v-model="auditModal.setup" placeholder="请选择">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in setups"
|
|
|
|
- :key="item.taskKey"
|
|
|
|
- :value="item.setup"
|
|
|
|
- :label="item.taskName"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item
|
|
|
|
- v-if="auditModal.approvePass === 'REJECT'"
|
|
|
|
- prop="remark"
|
|
|
|
- label="审批意见:"
|
|
|
|
- >
|
|
|
|
- <el-input
|
|
|
|
- class="mb-2"
|
|
|
|
- v-model="auditModal.remark"
|
|
|
|
- type="textarea"
|
|
|
|
- resize="none"
|
|
|
|
- :rows="5"
|
|
|
|
- :maxlength="1000"
|
|
|
|
- clearable
|
|
|
|
- show-word-limit
|
|
|
|
- placeholder="建议不超过1000个字"
|
|
|
|
- ref="ReasonInput"
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="task-action">
|
|
|
|
- <el-button
|
|
|
|
- v-if="IS_APPLY"
|
|
|
|
- type="primary"
|
|
|
|
- :disabled="isSubmit"
|
|
|
|
- @click="submit"
|
|
|
|
- >确认提交</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- v-if="IS_APPLY"
|
|
|
|
- type="primary"
|
|
|
|
- :disabled="isSubmit"
|
|
|
|
- style="width:88px;"
|
|
|
|
- @click="toSave"
|
|
|
|
- >暂存</el-button
|
|
|
|
|
|
+
|
|
|
|
+ <!-- audit -->
|
|
|
|
+ <el-form
|
|
|
|
+ v-if="IS_AUDIT"
|
|
|
|
+ ref="auditModalComp"
|
|
|
|
+ :model="auditModal"
|
|
|
|
+ :rules="auditRules"
|
|
|
|
+ label-width="90px"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item prop="approvePass" label="审批操作:">
|
|
|
|
+ <el-radio-group v-model="auditModal.approvePass">
|
|
|
|
+ <el-radio
|
|
|
|
+ v-for="(val, key) in TASK_AUDIT_RESULT"
|
|
|
|
+ :key="key"
|
|
|
|
+ :label="key"
|
|
|
|
+ >{{ val }}</el-radio
|
|
|
|
+ >
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="auditModal.approvePass === 'REJECT'"
|
|
|
|
+ prop="setup"
|
|
|
|
+ label="驳回节点:"
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- v-if="IS_AUDIT"
|
|
|
|
- type="primary"
|
|
|
|
- :disabled="isSubmit"
|
|
|
|
- @click="toAuditApply"
|
|
|
|
- >确定</el-button
|
|
|
|
|
|
+ <el-select v-model="auditModal.setup" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in setups"
|
|
|
|
+ :key="item.taskKey"
|
|
|
|
+ :value="item.setup"
|
|
|
|
+ :label="item.taskName"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="auditModal.approvePass === 'REJECT'"
|
|
|
|
+ prop="remark"
|
|
|
|
+ label="审批意见:"
|
|
>
|
|
>
|
|
- <el-button @click="cancel">取消</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ class="mb-2"
|
|
|
|
+ v-model="auditModal.remark"
|
|
|
|
+ type="textarea"
|
|
|
|
+ resize="none"
|
|
|
|
+ :rows="5"
|
|
|
|
+ :maxlength="1000"
|
|
|
|
+ clearable
|
|
|
|
+ show-word-limit
|
|
|
|
+ placeholder="建议不超过1000个字"
|
|
|
|
+ ref="ReasonInput"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="task-action">
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="IS_APPLY"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="isSubmit"
|
|
|
|
+ @click="submit"
|
|
|
|
+ >确认提交</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="IS_APPLY"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="isSubmit"
|
|
|
|
+ @click="toSave"
|
|
|
|
+ >暂存</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="IS_AUDIT"
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="isSubmit"
|
|
|
|
+ @click="toAuditApply"
|
|
|
|
+ >确定</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button @click="cancel">取消</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- upload-paper-dialog -->
|
|
<!-- upload-paper-dialog -->
|
|
@@ -622,8 +621,7 @@ export default {
|
|
)
|
|
)
|
|
]),
|
|
]),
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
- cancelButtonClass: "el-button--danger is-plain",
|
|
|
|
- confirmButtonClass: "el-button--primary",
|
|
|
|
|
|
+
|
|
type: "warning"
|
|
type: "warning"
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
if (result !== "confirm") return;
|
|
if (result !== "confirm") return;
|
|
@@ -700,8 +698,6 @@ export default {
|
|
"任务确定提交后,则不可更改试卷及答题卡内容,确定提交该任务?",
|
|
"任务确定提交后,则不可更改试卷及答题卡内容,确定提交该任务?",
|
|
"提示",
|
|
"提示",
|
|
{
|
|
{
|
|
- cancelButtonClass: "el-button--danger is-plain",
|
|
|
|
- confirmButtonClass: "el-button--primary",
|
|
|
|
type: "warning"
|
|
type: "warning"
|
|
}
|
|
}
|
|
).catch(() => {});
|
|
).catch(() => {});
|
|
@@ -724,8 +720,6 @@ export default {
|
|
`确定${actionName}该申请吗?`,
|
|
`确定${actionName}该申请吗?`,
|
|
"提示",
|
|
"提示",
|
|
{
|
|
{
|
|
- cancelButtonClass: "el-button--danger is-plain",
|
|
|
|
- confirmButtonClass: "el-button--primary",
|
|
|
|
type: "warning"
|
|
type: "warning"
|
|
}
|
|
}
|
|
).catch(() => {});
|
|
).catch(() => {});
|