This commit is contained in:
@jyuhsin
2025-11-29 17:14:00 +08:00
parent 83e60c000b
commit edc8ae7c0a
13 changed files with 195 additions and 136 deletions
@@ -122,9 +122,9 @@
</template>
</el-table-column>
<el-table-column label="备注" prop="remark" width="300px">
<el-table-column label="考核验收方式" prop="remark" width="300px">
<template v-slot="{row}">
<el-input v-if="!is_view" v-model.number="row.remark" maxlength="4" placeholder="请填写备注"></el-input>
<el-input v-if="!is_view" v-model.number="row.remark" placeholder="请填写考核验收方式"></el-input>
<span v-else>{{ row.remark }}</span>
</template>
</el-table-column>
@@ -1,42 +1,45 @@
<template>
<el-form :model="data" ref="form" :rules="formRules" label-width="90px">
<el-form :model="data" ref="form" :rules="formRules" label-width="100px">
<el-form-item prop="nr" label="考核内容">
<el-input disabled v-model="data.nr" type="text"></el-input>
</el-form-item>
<el-form-item prop="bz" label="考核标准">
<el-input disabled v-model="data.bz" type="text"></el-input>
<el-input disabled v-model="data.bz" type="textarea" :autosize="{ minRows: 2, maxRows: 10}"></el-input>
</el-form-item>
<el-form-item prop="remark" label="备注">
<el-input disabled v-model="data.remark" type="text"></el-input>
<el-form-item prop="remark" label="考核验收方式">
<el-input disabled v-model="data.remark" type="textarea" :autosize="{ minRows: 2, maxRows: 10}"
placeholder="暂无考核验收方式"></el-input>
</el-form-item>
<el-form-item prop="clnr" label="材料内容">
<el-form-item prop="clnr" label="材料说明">
<el-input v-model="data.clnr" type="textarea" :autosize="{ minRows: 2, maxRows: 10}"
placeholder="暂无" :disabled="is_view"></el-input>
placeholder="暂无材料说明" :disabled="is_view"></el-input>
</el-form-item>
<el-form-item label="佐证材料">
<span v-if="is_view&&!data.files">暂无佐证材料</span>
<file-upload
v-else
<template v-if="is_view">
<span v-if="!data.files">暂无佐证材料</span>
<file-preview v-else :files="data.files" complete_result></file-preview>
</template>
<template v-else>
<file-upload
:value.sync="data.files"
:upload_number="5"
:upload_number="20"
upload_mode="drag"
upload_result_category="array"
complete_result
:accept="'.pdf,.doc,.docx,.jpg,.png'"
></file-upload>
></file-upload>
</template>
</el-form-item>
<slot name="extra"></slot>
</el-form>
</template>
<script>
const METHOD_NAME = "change"