3bc59e4c by lihua

添加下载授权书模板

1 parent f25276ed
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(() => {
...@@ -1093,7 +1103,10 @@ const setFormDisable = () => { ...@@ -1093,7 +1103,10 @@ const setFormDisable = () => {
1093 contentFormItems.value.map(a => a.disabled = true); 1103 contentFormItems.value.map(a => a.disabled = true);
1094 corporateFormItems.value.map(b => b.disabled = true); 1104 corporateFormItems.value.map(b => b.disabled = true);
1095 accountFormItem.value.map(c => c.disabled = true); 1105 accountFormItem.value.map(c => c.disabled = true);
1096 contractFormItem.value.map(d => d.disabled = true); 1106 contractFormItem.value.map(d => {
1107 d.disabled = true;
1108 d.templateUrl = '';
1109 });
1097 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : ''; 1110 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
1098 orgTableInfo.value.actionInfo.show = isEdit.value; 1111 orgTableInfo.value.actionInfo.show = isEdit.value;
1099 let keys = Object.keys(orgTableInfo.value.editInfo); 1112 let keys = Object.keys(orgTableInfo.value.editInfo);
...@@ -1386,7 +1399,10 @@ const btnClick = async (btn, bType = null) => { ...@@ -1386,7 +1399,10 @@ const btnClick = async (btn, bType = null) => {
1386 }); 1399 });
1387 corporateFormItems.value.map(b => b.disabled = false); 1400 corporateFormItems.value.map(b => b.disabled = false);
1388 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false); 1401 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false);
1389 contractFormItem.value.map(d => d.disabled = false); 1402 contractFormItem.value.map(d => {
1403 d.disabled = false;
1404 d.templateUrl = 'auto';
1405 });
1390 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : ''; 1406 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
1391 let keys = Object.keys(orgTableInfo.value.editInfo); 1407 let keys = Object.keys(orgTableInfo.value.editInfo);
1392 keys.forEach(k => { 1408 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!