Ver Fonte

feat(买入对账管理):添加供应商端字段

snow há 2 anos atrás
pai
commit
ab45020aa2

+ 5 - 0
src/utils/status.ts

@@ -277,6 +277,11 @@ export const capitalStatusOptions = [
   { value: "5", label: "已取消认领" }
 ];
 
+export const hasAccountOptions = [
+  { value: "0", type: "", label: "未开通" },
+  { value: "1", type: "success", label: "已开通" }
+];
+
 export {
   statusList,
   menuTypeList,

+ 7 - 0
src/views/purchase/orderRecord/config/content.config.ts

@@ -3,6 +3,7 @@ import { httpList, httpDel } from "/@/api/purchase/orderRecord";
 import { statusOptions } from "./_options";
 import { ContentConfig } from "/@/components/PageContent";
 import { renderProp } from "/@/utils/columnRenderHelper";
+import { hasAccountOptions } from "/@/utils/status";
 
 const columns = [
   {
@@ -61,6 +62,12 @@ const columns = [
     minWidth: 180,
     align: "left"
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "申请人",
     prop: "apply_name",

+ 7 - 0
src/views/purchase/porder/config/content.config.ts

@@ -6,6 +6,7 @@ import {
   cgdStatusOptions,
   cg_order_source_options,
   cg_order_type_options,
+  hasAccountOptions,
   sendStatusOptions
 } from "/@/utils/status";
 
@@ -15,6 +16,12 @@ const columns = [
     prop: "sequenceNo",
     width: "175px"
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "状态",
     prop: "status",

+ 8 - 1
src/views/purchase/purchPay/config/content.config.ts

@@ -3,7 +3,8 @@ import { httpList, httpDelete } from "/@/api/purchase/orderPay";
 
 import { h } from "vue";
 import { ElTag } from "element-plus";
-import { purchPayStatusOptions } from "/@/utils/status";
+import { hasAccountOptions, purchPayStatusOptions } from "/@/utils/status";
+import { renderProp } from "/@/utils/columnRenderHelper";
 
 const columns = [
   {
@@ -17,6 +18,12 @@ const columns = [
     prop: "payNo",
     width: 160
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "状态",
     prop: "dstatus",

+ 11 - 1
src/views/purchase/purchPayRelive/config/content.config.ts

@@ -4,7 +4,11 @@ import { httpList, httpDelete } from "/@/api/purchase/purchPayRelive";
 import dayjs from "dayjs";
 import { h } from "vue";
 import { ElTag } from "element-plus";
-import { purchPayReliveStatusOptions } from "/@/utils/status";
+import {
+  hasAccountOptions,
+  purchPayReliveStatusOptions
+} from "/@/utils/status";
+import { renderProp } from "/@/utils/columnRenderHelper";
 // import { statusOptions } from "./_options";
 
 const columns = [
@@ -61,6 +65,12 @@ const columns = [
     prop: "companyName",
     minWidth: 180
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "状态",
     prop: "status",

+ 9 - 1
src/views/purchase/ticketReturn/config/content.config.ts

@@ -9,8 +9,10 @@ import {
   seller_check_type,
   buyer_check_type,
   ticketReturnStatusOptions,
-  checkTypeOptions
+  checkTypeOptions,
+  hasAccountOptions
 } from "/@/utils/status";
+import { renderProp } from "/@/utils/columnRenderHelper";
 
 const columns = [
   {
@@ -58,6 +60,12 @@ const columns = [
     width: "110px",
     prop: "total"
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "状态",
     prop: "status",

+ 11 - 1
src/views/purchase/ticketReturnRelive/config/content.config.ts

@@ -4,7 +4,11 @@ import { httpList, httpDelete } from "/@/api/purchase/ticketReturnRelive";
 import dayjs from "dayjs";
 import { h } from "vue";
 import { ElTag } from "element-plus";
-import { ticketReturnReliveStatusOptions } from "/@/utils/status";
+import {
+  hasAccountOptions,
+  ticketReturnReliveStatusOptions
+} from "/@/utils/status";
+import { renderProp } from "/@/utils/columnRenderHelper";
 
 const columns = [
   // {
@@ -34,6 +38,12 @@ const columns = [
     prop: "payNo",
     width: 160
   },
+  {
+    label: "供应商端",
+    prop: "has_account",
+    width: 80,
+    ...renderProp(hasAccountOptions, "has_account")
+  },
   {
     label: "状态",
     prop: "status",