573665b1 by lihua

添加下载授权书模板

1 parent f09c043b
No preview for this file type
...@@ -650,6 +650,15 @@ const contractFormItem: any = ref([ ...@@ -650,6 +650,15 @@ const contractFormItem: any = ref([
650 accept: '.pdf', 650 accept: '.pdf',
651 required: true, 651 required: true,
652 block: true, 652 block: true,
653 templateUrl: 'auto',
654 templateClick: () => {
655 const link = document.createElement('a');
656 link.href = "/files/授权书模板.docx";
657 link.download = '授权书模板.docx';
658 document.body.appendChild(link);
659 link.click();
660 link.remove();
661 }
653 }, 662 },
654 ]); 663 ]);
655 const contractFormRules = ref({ 664 const contractFormRules = ref({
...@@ -816,6 +825,7 @@ const setFormItems = (info = null, setOther = true) => { ...@@ -816,6 +825,7 @@ const setFormItems = (info = null, setOther = true) => {
816 }) 825 })
817 contractFormItem.value.map(d => { 826 contractFormItem.value.map(d => {
818 d.disabled = !isEdit.value; 827 d.disabled = !isEdit.value;
828 d.templateUrl = !isEdit.value ? '' : 'auto';
819 d.default = datas.authorizationLetter ? JSON.parse(datas.authorizationLetter) : (datas.authorizationLetterFile || []); 829 d.default = datas.authorizationLetter ? JSON.parse(datas.authorizationLetter) : (datas.authorizationLetterFile || []);
820 }) 830 })
821 setTimeout(() => { 831 setTimeout(() => {
...@@ -1092,7 +1102,10 @@ const setFormDisable = () => { ...@@ -1092,7 +1102,10 @@ const setFormDisable = () => {
1092 contentFormItems.value.map(a => a.disabled = true); 1102 contentFormItems.value.map(a => a.disabled = true);
1093 corporateFormItems.value.map(b => b.disabled = true); 1103 corporateFormItems.value.map(b => b.disabled = true);
1094 accountFormItem.value.map(c => c.disabled = true); 1104 accountFormItem.value.map(c => c.disabled = true);
1095 contractFormItem.value.map(d => d.disabled = true); 1105 contractFormItem.value.map(d => {
1106 d.disabled = true;
1107 d.templateUrl = '';
1108 });
1096 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : ''; 1109 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
1097 orgTableInfo.value.actionInfo.show = isEdit.value; 1110 orgTableInfo.value.actionInfo.show = isEdit.value;
1098 let keys = Object.keys(orgTableInfo.value.editInfo); 1111 let keys = Object.keys(orgTableInfo.value.editInfo);
...@@ -1366,7 +1379,10 @@ const btnClick = async (btn, bType = null) => { ...@@ -1366,7 +1379,10 @@ const btnClick = async (btn, bType = null) => {
1366 }); 1379 });
1367 corporateFormItems.value.map(b => b.disabled = false); 1380 corporateFormItems.value.map(b => b.disabled = false);
1368 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false); 1381 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false);
1369 contractFormItem.value.map(d => d.disabled = false); 1382 contractFormItem.value.map(d => {
1383 d.disabled = false;
1384 d.templateUrl = 'auto';
1385 });
1370 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : ''; 1386 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
1371 let keys = Object.keys(orgTableInfo.value.editInfo); 1387 let keys = Object.keys(orgTableInfo.value.editInfo);
1372 keys.forEach(k => { 1388 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!