10558aff by lihua

添加下载授权书模板

1 parent a2c0c937
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);
...@@ -1367,7 +1380,10 @@ const btnClick = async (btn, bType = null) => { ...@@ -1367,7 +1380,10 @@ const btnClick = async (btn, bType = null) => {
1367 }); 1380 });
1368 corporateFormItems.value.map(b => b.disabled = false); 1381 corporateFormItems.value.map(b => b.disabled = false);
1369 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false); 1382 accountFormItem.value.map(c => c.disabled = c.field == 'logonUser' ? true : false);
1370 contractFormItem.value.map(d => d.disabled = false); 1383 contractFormItem.value.map(d => {
1384 d.disabled = false;
1385 d.templateUrl = 'auto';
1386 });
1371 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : ''; 1387 // orgTableInfo.value.STATUS = isEdit.value ? 'edit' : '';
1372 let keys = Object.keys(orgTableInfo.value.editInfo); 1388 let keys = Object.keys(orgTableInfo.value.editInfo);
1373 keys.forEach(k => { 1389 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!