e8f7d2ee by lihua

添加下载授权书模板

1 parent f7be7fe5
No preview for this file type
......@@ -650,6 +650,15 @@ const contractFormItem: any = ref([
accept: '.pdf',
required: true,
block: true,
templateUrl: 'auto',
templateClick: () => {
const link = document.createElement('a');
link.href = "/files/授权书模板.docx";
link.download = '授权书模板.docx';
document.body.appendChild(link);
link.click();
link.remove();
}
},
]);
const contractFormRules = ref({
......@@ -816,6 +825,7 @@ const setFormItems = (info = null, setOther = true) => {
})
contractFormItem.value.map(d => {
d.disabled = !isEdit.value;
d.templateUrl = !isEdit.value ? '' : 'auto';
d.default = datas.authorizationLetter ? JSON.parse(datas.authorizationLetter) : (datas.authorizationLetterFile || []);
})
setTimeout(() => {
......@@ -1093,7 +1103,10 @@ const setFormDisable = () => {
contentFormItems.value.map(a => a.disabled = true);
corporateFormItems.value.map(b => b.disabled = true);
accountFormItem.value.map(c => c.disabled = true);
contractFormItem.value.map(d => d.disabled = true);
contractFormItem.value.map(d => {
d.disabled = true;
d.templateUrl = '';
});
// orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
orgTableInfo.value.actionInfo.show = isEdit.value;
let keys = Object.keys(orgTableInfo.value.editInfo);
......@@ -1386,7 +1399,10 @@ const btnClick = async (btn, bType = null) => {
});
corporateFormItems.value.map(b => b.disabled = false);
accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false);
contractFormItem.value.map(d => d.disabled = false);
contractFormItem.value.map(d => {
d.disabled = false;
d.templateUrl = 'auto';
});
// orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
let keys = Object.keys(orgTableInfo.value.editInfo);
keys.forEach(k => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!