diff --git a/src/views/business/businessHandling/index.vue b/src/views/business/businessHandling/index.vue index 3b25e1b2..b0405bc3 100644 --- a/src/views/business/businessHandling/index.vue +++ b/src/views/business/businessHandling/index.vue @@ -478,6 +478,9 @@ export default { message: '请上传委托书', trigger: 'change' } + ], + deviceType: [ + { required: true, message: '请选择类型规格', trigger: 'blur' } ] }, maTypeList: [], // 类型名称 @@ -542,6 +545,19 @@ export default { return this.maForm.bmFileInfos && this.maForm.bmFileInfos.length == 5 } }, + watch: { + equipmentList(newVal) { + if (newVal && newVal.length > 0) { + // 设备列表有值,设置deviceType为非必填 + this.rules.deviceType = [] + } else { + // 设备列表为空,设置deviceType为必填 + this.rules.deviceType = [{ required: true, message: '请选择类型规格', trigger: 'blur' }] + } + // 重置表单验证状态,避免旧的错误提示残留 + this.$refs.maForm.clearValidate('deviceType') + } + }, created() { // getCode() if (this.$route.query.type == 'edit') { diff --git a/src/views/business/businessHandlingRecord/index.vue b/src/views/business/businessHandlingRecord/index.vue index 87b24813..377d7600 100644 --- a/src/views/business/businessHandlingRecord/index.vue +++ b/src/views/business/businessHandlingRecord/index.vue @@ -256,7 +256,7 @@ 打 印 - 查看PDF + 取 消 diff --git a/src/views/material/archives/index.vue b/src/views/material/archives/index.vue index c9d0268d..4cf3cc6f 100644 --- a/src/views/material/archives/index.vue +++ b/src/views/material/archives/index.vue @@ -187,12 +187,12 @@ :action="upload.url" style="width: 100%;" :file-list="fileList" :on-success="handleSuccess" :on-error="handleError" :on-remove="handleFileRemove" :before-upload="beforeUpload" - accept=".rar,.zip" + accept="image/*,.pdf,.doc,.docx" >
将文件拖到此处,或点击上传
- 按住Ctrl可同时多选,支持上传rar/zip格式文件,单个文件不能超过5M + 按住Ctrl可同时多选,支持上传图、PDF、Word格式文件,单个文件不能超过5M