Prechádzať zdrojové kódy

feat: 发票管理列表新增[是否冲红发票]列(红/绿标签展示);本地代理指向调整

lihaiting 1 týždeň pred
rodič
commit
977d63934b

+ 19 - 2
src/views/financialManage/invoiceManage/index.vue

@@ -99,7 +99,7 @@
             </el-popconfirm>
           </template>
         </template>
-        
+
         <template v-slot:code="{ row }">
           <span class="code-cell">
             <span v-if="row._level > 0" class="sub-order-tag">子</span>
@@ -112,6 +112,16 @@
             </el-link>
           </span>
         </template>
+
+        <!-- 是否冲红发票:1 是(红,冲红为负向单据需警觉)/ 0 否(绿) -->
+        <template v-slot:ifRedReversalInvoice="{ row }">
+          <el-tag v-if="row.ifRedReversalInvoice == 1" type="danger" size="mini">
+            是
+          </el-tag>
+          <el-tag v-else-if="row.ifRedReversalInvoice == 0" type="success" size="mini">
+            否
+          </el-tag>
+        </template>
       </ele-pro-table>
     </el-card>
 
@@ -291,7 +301,7 @@
             align: 'center',
             showOverflowTooltip: true
           },
-          
+
           {
             minWidth: 80,
             prop: 'amount',
@@ -333,6 +343,13 @@
               return list[row.invoiceStatus];
             }
           },
+          {
+            minWidth: 90,
+            prop: 'ifRedReversalInvoice',
+            label: '是否冲红发票',
+            slot: 'ifRedReversalInvoice',
+            align: 'center',
+          },
           {
             minWidth: 100,
             prop: 'accountingSubjectName',

+ 2 - 2
vue.config.js

@@ -45,11 +45,11 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
         // target: 'http://192.168.1.251:18086', //开发
-        target: 'http://localhost:18086', //开发 // 本地联调临时指向本机后端(2026-11-05,联调后还原)
+        // target: 'http://localhost:18086', //开发 // 本地联调临时指向本机后端(2026-11-05,联调后还原)
         // target: 'http://192.168.1.251:18186', //测试
         // target: 'http://192.168.1.15:18086',//罗
         // target: 'http://192.168.1.144:18086',//付
-        // target: 'http://192.168.1.10:18086', //付
+        target: 'http://192.168.1.9:18086', //c
         // target: 'https://aiot.zoomwin.com.cn:51001/api',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {