East 3 anos atrás
pai
commit
0a119bbd64
2 arquivos alterados com 12 adições e 3 exclusões
  1. 2 2
      src/utils/chenApi.js
  2. 10 1
      src/views/Env/SalePig.vue

+ 2 - 2
src/utils/chenApi.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-11-18 13:40:39
- * @LastEditTime: 2021-12-07 16:01:35
+ * @LastEditTime: 2021-12-08 19:45:43
  * @LastEditors: Please set LastEditors
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: \hyyfClient\src\utils\chenApi.js
@@ -156,7 +156,7 @@ export function getTheSales(params) {
 // 重量详情
 export function getDayWeight(params) {
   return axios({
-    url: '/produce/weight/getWeightOnPage',
+    url: 'http://192.168.1.49:8089/weight/getBatchWeightOnPage2',
     method: 'get',
     params: params
   })

+ 10 - 1
src/views/Env/SalePig.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2021-12-07 10:07:56
- * @LastEditTime: 2021-12-07 16:16:22
+ * @LastEditTime: 2021-12-08 19:48:21
  * @LastEditors: Please set LastEditors
  * @Description: 电子秤
  * @FilePath: \hyyfClient\src\views\Env\SalePig.vue
@@ -32,6 +32,9 @@
       :tableItems="tableItems"
       :shows="shows"
     >
+      <template #batchCode="slotProps">
+        {{ slotProps.row.batchCode + slotProps.row.batchSort }}
+      </template>
     </table-content>
     <table-footer
       :totals="total"
@@ -123,6 +126,12 @@ export default {
           slotName: "addTime",
         },
         {
+          prop: "batchCode",
+          label: "批次",
+          minWidth: "120",
+          slotName: "batchCode",
+        },
+        {
           prop: "grossWeight",
           label: "毛重",
           minWidth: "100",