north-glass-erp/northglass-erp/src/stores/sd/companySet/Ìì½ò±±²£.js
@@ -32,6 +32,7 @@ deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å 䏿¬å ¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], deliveryOutbound: false,//åè´§é»è®¤åºåº flowCardMerge: 0,//æµç¨å¡åçæå° printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å ³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1å¤©æ´¥å ¶å®ä¸æ¾ç¤º //天津 printLabel: { custom: (item1) => { north-glass-erp/northglass-erp/src/stores/sd/companySet/³£ÖݼªÀû.js
@@ -32,6 +32,7 @@ deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å 䏿¬å ¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], deliveryOutbound: true,//åè´§é»è®¤åºåº flowCardMerge: 1,//æµç¨å¡åçæå° printBtn:0,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å ³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1å¤©æ´¥å ¶å®ä¸æ¾ç¤º //天津 printLabel: { custom: (item1) => { north-glass-erp/northglass-erp/src/stores/sd/companySet/н®ºãöÎ.js
@@ -32,6 +32,7 @@ deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å 䏿¬å ¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], deliveryOutbound: false,//åè´§é»è®¤åºåº flowCardMerge: 0,//æµç¨å¡åçæå° printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å ³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1å¤©æ´¥å ¶å®ä¸æ¾ç¤º //天津 printLabel: { north-glass-erp/northglass-erp/src/stores/sd/companySet/½ð»ªÌì³É.js
@@ -34,6 +34,7 @@ 'æ¶è´§æ¶ééªæ¶äº§åæ°éãè§æ ¼åææ ç ´æï¼å¦åç°é®é¢éäºæ¶è´§ä¸æ¥å ï¼ä»¥ä¹¦é¢éç¥å¹¶éä¸ç°åºè¯æææï¼å¦ç ´æç §ççï¼ï¼ç¸å ³è¯æèµæä¸è¶³ï¼æå¨ä¸è¿°æ¥æå æªæåºè´¨éå¼è®®çï¼é¾æè§ä¸ºäº§ååæ ¼ï¼æå¸å°ä¸äºæ¿æ ä»»ä½è´£ä»»ãæ¬è¯·çæï¼'], deliveryOutbound: false,//åè´§é»è®¤åºåº flowCardMerge: 0,//æµç¨å¡åçæå° printBtn:1,//æå°çé¢ä¸ä¸ªæé®ä¸æ¯å¦æ¾ç¤ºæ ç¾æå°ç¸å ³æé®ï¼0æ¾ç¤ºå¸¸å·ï¼1å¤©æ´¥å ¶å®ä¸æ¾ç¤º //天津 printLabel: { custom: (item1) => { north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
@@ -147,6 +147,7 @@ }, ] let hidePrintLabels = company.printLabel.hideButton; let btnType = company.printBtn; if (hidePrintLabels == 'true') { filteredOptions = lableTypeOptions.filter((option, index) => index !== 2); @@ -191,6 +192,7 @@ data.value.printList = JSON.parse(route.query.printList) let inquiryMode = route.query.checkedValue // ç¬¬ä¸æ¬¡å è½½æ¥è¯¢ request.post(`/processCard/selectPrint/${inquiryMode}`, data.value).then((res) => { @@ -207,7 +209,8 @@ gridOptions.loading = false hideButton() hideButton(); hideHead() } else { ElMessage.warning(res.msg) } @@ -640,16 +643,35 @@ const hideButton = () => { // æ ¹æ®æ¡ä»¶å¼ hidePrintLabels è¿æ»¤æé®æ°ç» gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => { // è¿éæ ¹æ® hidePrintLabels çå¼å³å®æ¯å¦éè printLabel å printLabel2 if (hidePrintLabels == 'true') { return button.code !== 'printLabel' && button.code !== 'printLabel2' ; } else { return true && button.code !== 'printLike'; // æ¾ç¤ºè¯¥æé® // æ ¹æ® hidePrintLabels è¿æ»¤ printLabel å printLabel2 æé® if (hidePrintLabels === 'true') { if (button.code === 'printLabel' || button.code === 'printLabel2') { return false; // éè printLabel å printLabel2 } } }) // 妿 printBtn 为 '1'ï¼åéè customLabel æé® if (btnType == 1 && button.code === 'customLabel') { console.log('Hiding customLabel button'); return false; // éè customLabel æé® } // é»è®¤æ åµä¸è¿å trueï¼ä¿çå ¶ä»æé® return true; }); } const hideHead = () => { // 夿 btnType æ¯å¦çäº '1' (å¯ä»¥æ ¹æ®éè¦è°æ´ä¸ºæ°å 1) if (btnType == 1) { const headDiv = document.querySelector('.head'); if (headDiv) { headDiv.style.display = 'none'; // éè class="head" ç div } } } // ç嬿å°å®æäºä»¶ const printNumber = () => { north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCardDetails.vue
@@ -141,6 +141,7 @@ }, ] let hidePrintLabels = company.printLabel.hideButton; let btnType = company.printBtn; if (hidePrintLabels == 'true') { filteredOptions = lableTypeOptions.filter((option, index) => index !== 2); @@ -744,16 +745,24 @@ } const hideButton = () => { // æ ¹æ®æ¡ä»¶å¼ hidePrintLabels è¿æ»¤æé®æ°ç» gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => { // è¿éæ ¹æ® hidePrintLabels çå¼å³å®æ¯å¦éè printLabel å printLabel2 // 妿 type ä¸ä¸ºç©ºæ¶ï¼éè print æé® if (btnType == 1 && button.code === 'print') { return false; // éè print æé® } // æ ¹æ® hidePrintLabels çå¼å¤ææ¯å¦éè printLabelãprintLabel2 å customLabel if (hidePrintLabels == 'true') { return button.code !== 'printLabel' && button.code !== 'printLabel2' && button.code !== 'customLabel'; } else { return true && button.code !== 'printLike' && button.code !== 'printLabel3' && button.code !== 'printTest'; // æ¾ç¤ºè¯¥æé® // 妿 hidePrintLabels 䏿¯ 'true'ï¼åéè printLikeãprintLabel3 å printTest return button.code !== 'printLike' && button.code !== 'printLabel3' && button.code !== 'printTest'; } }) } // é»è®¤è¿å trueï¼è¡¨ç¤ºä¿çæé® return true; }); }; // ç嬿å°å®æäºä»¶