From b6c7f588b831d6fa4eb23b50ec08ea0b263a0717 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 17 六月 2024 20:27:56 +0800
Subject: [PATCH] 2024-06-17

---
 src/tabviews/custom/components/module/invoice/index.jsx |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/custom/components/module/invoice/index.jsx b/src/tabviews/custom/components/module/invoice/index.jsx
index e50407c..35de277 100644
--- a/src/tabviews/custom/components/module/invoice/index.jsx
+++ b/src/tabviews/custom/components/module/invoice/index.jsx
@@ -541,6 +541,22 @@
   outBill = () => {
     const { config, BID, saveType } = this.state
 
+    if (window.GLOB.storeFiles) {
+      if (!window.GLOB.storeDate || window.GLOB.storeDate < 0) {
+        Modal.warning({
+          title: `鐢靛瓙妗f瀛樺偍鍖呭凡杩囨湡銆俙,
+          okText: '鐭ラ亾浜�'
+        })
+        return
+      } else if (window.GLOB.storeDate < 30) {
+        notification.warning({
+          top: 92,
+          message: `鐢靛瓙妗f瀛樺偍鍖呰繕鍓�${window.GLOB.storeDate}澶┿�俙,
+          duration: 5
+        })
+      }
+    }
+
     if (window.GLOB.systemType === 'production' && !config.billOutBtn.proInterface) {
       notification.warning({
         top: 92,
@@ -698,6 +714,7 @@
     sql = sql.replace(/@SessionUid@/ig, `'${localStorage.getItem('SessionUid') || ''}'`)
     sql = sql.replace(/@UserID@/ig, `'${sessionStorage.getItem('UserID') || ''}'`)
     sql = sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`)
+    sql = sql.replace(/@lang@/ig, `'${sessionStorage.getItem('lang')}'`)
     sql = sql.replace(/@typename@/ig, `'admin'`)
 
     if (window.GLOB.externalDatabase !== null) {
@@ -796,6 +813,10 @@
     }
 
     param.data.invoiceTypeCode = trans[param.data.invoiceTypeCode] || ''
+
+    if (window.GLOB.storeFiles) {
+      param.store = true
+    }
 
     let url = ''
     if (window.GLOB.systemType === 'production') {
@@ -937,6 +958,7 @@
     sql = sql.replace(/@SessionUid@/ig, `'${localStorage.getItem('SessionUid') || ''}'`)
     sql = sql.replace(/@UserID@/ig, `'${sessionStorage.getItem('UserID') || ''}'`)
     sql = sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`)
+    sql = sql.replace(/@lang@/ig, `'${sessionStorage.getItem('lang')}'`)
     sql = sql.replace(/@typename@/ig, `'admin'`)
 
     if (sessionStorage.getItem('dataM') === 'true') { // 鏁版嵁鏉冮檺

--
Gitblit v1.8.0