提交 13797395 authored 作者: jinrongbin's avatar jinrongbin

文件上传模块增加盖章红线图字段

上级 aafafa43
......@@ -527,6 +527,48 @@
};
},
},
{
label: '盖章红线图',
field: 'gzhxt',
component: 'JUpload',
required: true,
dynamicDisabled: () => {
return props.dksdzt == '1';
},
componentProps: () => {
return {
showPreviewBtn: true,
showUploadList: false,
maxCount: 1,
fileName: (props?.dkxx?.wrdkbm ? props?.dkxx?.wrdkbm + '-' : '') + '盖章红线图',
accept: '.pdf,.zip',
beforeUpload: (file) => {
let isshow = false;
const isFile = file.name.split('.')[file.name.split('.').length - 1];
if (isFile == 'pdf' || isFile == 'zip' || isFile == 'PDF') {
isshow = true;
} else {
createMessage.error('只能上传.pdf/.zip格式的文件');
isshow = false;
}
return isshow;
},
onChange: async (v) => {
if (!v || v == props.data.gzhxt) {
return
}
const arry = v.split(',');
props.data.gzhxt = arry[arry.length - 1]
await upLoad({
wrdkid: props.data.wrdkid,
id: props.data.id,
gzhxt: arry[arry.length - 1],
});
},
};
},
},
{
label: '现场施工佐证材料',
field: 'xcsgzzcl',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论