Bläddra i källkod

fix: BIZComponents innerdetails 价格字段改为 unitPrice 并修正列 key 与格式;gitignore 增加 .codebuddy/.workbuddy;更新本地代理配置

lihaiting 2 veckor sedan
förälder
incheckning
7a5212ec10
3 ändrade filer med 31 tillägg och 28 borttagningar
  1. 2 0
      .gitignore
  2. 26 26
      src/BIZComponents/innerdetails.vue
  3. 3 2
      vue.config.js

+ 2 - 0
.gitignore

@@ -24,3 +24,5 @@ yarn-error.log*
 vue.config.js
 package-lock.json
 AGENTS.md
+.codebuddy
+.workbuddy

+ 26 - 26
src/BIZComponents/innerdetails.vue

@@ -123,12 +123,10 @@
               :show-overflow-tooltip="true"
             ></el-table-column>
             <el-table-column
-          
               label="级别"
               prop="level"
               align="center"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               label="型号"
               align="center"
@@ -149,6 +147,7 @@
             ></el-table-column>
             <el-table-column
               v-for="(item, index) in newColumns"
+              :key="index"
               :label="item.label"
               :align="item.align"
               :prop="item.prop"
@@ -161,7 +160,7 @@
               :show-overflow-tooltip="true"
             >
             </el-table-column>
-                <el-table-column
+            <el-table-column
               label="客户代号"
               prop="clientCode"
               :show-overflow-tooltip="true"
@@ -218,7 +217,7 @@
             <el-table-column label="单价" prop="price" align="center">
               <template slot-scope="{ row }">
                 <template>
-                  {{ row.price ? row.price : ' ' + '元' }}/{{ row.measureUnit }}
+                  {{ row.unitPrice ? row.unitPrice + '元': '' }}/{{ row.measureUnit }}
                 </template>
               </template>
             </el-table-column>
@@ -340,7 +339,7 @@
               :show-overflow-tooltip="true"
             >
             </el-table-column>
-                     <el-table-column
+            <el-table-column
               label="客户代号"
               prop="clientCode"
               :show-overflow-tooltip="true"
@@ -793,26 +792,27 @@
       },
 
       setMultipleSelection() {
-        return this.multipleSelection.map((item) => {
-          item['packageId'] = item.id;
-          item['outInCode'] = item.bizNo;
-          item['outboundType'] = item.outType;
-          item['outboundDetailId'] = item.id;
-          item['productName'] = item.categoryName;
-          item['productCode'] = item.categoryCode;
-          item['measuringUnit'] = item.measureUnit;
-          item['productId'] = item.categoryId;
-          item['receiveTotalWeight'] = item.weight;
-          this.productList.forEach((val) => {
-            if (item.categoryCode == val.categoryCode) {
-              item['warehouseId'] = val.warehouseId;
-              item['warehouseName'] = val.warehouseName;
-            }
-          });
-
-          item.id = '';
-          return item;
-        })||[]
+        return (
+          this.multipleSelection.map((item) => {
+            item['packageId'] = item.id;
+            item['outInCode'] = item.bizNo;
+            item['outboundType'] = item.outType;
+            item['outboundDetailId'] = item.id;
+            item['productName'] = item.categoryName;
+            item['productCode'] = item.categoryCode;
+            item['measuringUnit'] = item.measureUnit;
+            item['productId'] = item.categoryId;
+            item['receiveTotalWeight'] = item.weight;
+            this.productList.forEach((val) => {
+              if (item.categoryCode == val.categoryCode) {
+                item['warehouseId'] = val.warehouseId;
+                item['warehouseName'] = val.warehouseName;
+              }
+            });
+            item.id = '';
+            return item;
+          }) || []
+        );
       },
       setProductSelection() {
         return (

+ 3 - 2
vue.config.js

@@ -45,11 +45,12 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
         // target: 'http://192.168.1.251:18086', //开发
-        target: 'http://localhost:18086', //开发
+        // 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://aiot.zoomwin.com.cn:51001/api',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''