瀏覽代碼

feat: 大仓出库条码

zh 2 年之前
父節點
當前提交
2b1110af75
共有 3 個文件被更改,包括 27 次插入12 次删除
  1. 15 0
      src/api/barcode.js
  2. 11 11
      src/views/barcode/largeStockBarcode.vue
  3. 1 1
      src/views/supply/pickup/check.vue

+ 15 - 0
src/api/barcode.js

@@ -71,3 +71,18 @@ export function listCustomerCheckDownload(data, name) {
   })
 }
 
+export function getListDaCangV2(params) {
+  return request({
+    url: `/customer/code/listDaCang/v2?moduleId=${params.moduleId}`,
+    method: 'post',
+    data: params
+  })
+}
+
+export function exportListDaCangV2(data, name) {
+  return postBlob({
+    url: '/customer/code/listDaCang/export/v2',
+    data,
+    name
+  })
+}

+ 11 - 11
src/views/barcode/largeStockBarcode.vue

@@ -15,7 +15,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import add_callback_mixin from '@/components/template/add_callback_mixin.js'
 import Popu from '@/components/template/popu.vue'
-import { getDealerListV2, exportDealerListV2, importCustomerV2 } from '@/api/basic_data/dealer'
+import { getListDaCangV2, exportListDaCangV2 } from '@/api/barcode'
 export default {
   components: { TemplatePage, Popu },
   mixins: [import_mixin, add_callback_mixin],
@@ -24,14 +24,14 @@ export default {
       visible: false,
       // 事件组合
       optionsEvensGroup: [
-        [
-          [
-            {
-              name: '导入',
-              render: this.importButton(importCustomerV2)
-            }
-          ]
-        ]
+        // [
+        //   [
+        //     {
+        //       name: '导入',
+        //       render: this.importButton(importCustomerV2)
+        //     }
+        //   ]
+        // ]
       ],
       // 表格属性
       tableAttributes: {
@@ -50,10 +50,10 @@ export default {
     // 列表请求函数
     getList(...p) {
       this.recordSelected = []
-      return getDealerListV2(...p)
+      return getListDaCangV2(...p)
     },
     // 列表导出函数
-    exportList: exportDealerListV2,
+    exportList: exportListDaCangV2,
     // 表格列解析渲染数据更改
     columnParsing(item, defaultData) {
       return defaultData

+ 1 - 1
src/views/supply/pickup/check.vue

@@ -527,7 +527,7 @@ export default {
       return (item) => {
         const flag = +item.flag === 1 ? '有效' : +item.flag === 2 ? '停用' : '失效'
         const del = +item.del === 1 ? '删除' : '正常'
-        const expireTime = new Date(item.expireTime).getTime() > new Date().getTime() ? '有效' : '失效'
+        const expireTime = new Date(item.expireTime).getTime() > new Date().getTime() ? '未过期' : '过期'
 
         return `${item.takerName} - ${item.customerName} - ${item.phone} - ${flag} - ${del} - ${expireTime}`
       }