From 34e7681fd12b1c4e4994d3bea1a553870e10bc50 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 11 三月 2023 17:58:54 +0800
Subject: [PATCH] 2023-03-11

---
 src/menu/components/module/voucher/options.jsx |   66 +++++++++++++++++++++++++++++++--
 1 files changed, 62 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/module/voucher/options.jsx b/src/menu/components/module/voucher/options.jsx
index 343594e..bd1bee2 100644
--- a/src/menu/components/module/voucher/options.jsx
+++ b/src/menu/components/module/voucher/options.jsx
@@ -29,14 +29,24 @@
     //   required: false
     // },
     {
-      type: 'radio',
+      type: 'select',
       field: 'type',
       label: '绫诲瀷',
-      initval: wrap.type || 'edit',
+      initval: wrap.type || 'createVoucher',
       required: true,
       options: [
-        {value: 'edit', label: '缂栬緫'},
-        {value: 'check', label: '鏌ョ湅'},
+        {value: 'createVoucher', label: '鏂板鍑瘉'},
+        {value: 'checkVoucher', label: '鏌ョ湅鍑瘉'},
+        {value: 'createTemp', label: '鏂板妯℃澘'},
+        {value: 'checkTemp', label: '缂栬緫妯℃澘'},
+      ],
+      controlFields: [
+        {field: 'businessType', values: ['createVoucher', 'checkVoucher']},
+        {field: 'voucherType', values: ['createVoucher', 'checkVoucher']},
+        {field: 'voucherTypeText', values: ['createVoucher', 'checkVoucher']},
+        {field: 'voucherSign', values: ['createVoucher', 'checkVoucher']},
+        {field: 'supModule', values: ['checkTemp', 'checkVoucher']},
+        {field: 'attachStatus', values: ['createVoucher', 'checkVoucher']},
       ]
     },
     {
@@ -68,6 +78,34 @@
       allowClear: true
     },
     {
+      type: 'text',
+      field: 'businessType',
+      label: '涓氬姟绫诲瀷',
+      initval: wrap.businessType || 'fcc01',
+      required: true
+    },
+    {
+      type: 'text',
+      field: 'voucherType',
+      label: '鍑瘉绫诲瀷',
+      initval: wrap.voucherType || 'fcc_keeping',
+      required: true
+    },
+    {
+      type: 'text',
+      field: 'voucherTypeText',
+      label: '鍑瘉绫诲瀷鏂囨湰',
+      initval: wrap.voucherTypeText || '璁拌处鍑瘉',
+      required: true
+    },
+    {
+      type: 'text',
+      field: 'voucherSign',
+      label: '鍑瘉绫诲瀷鏍囪瘑',
+      initval: wrap.voucherSign || 'fcc_keeping',
+      required: true
+    },
+    {
       type: 'cascader',
       field: 'supModule',
       label: '涓婄骇缁勪欢',
@@ -76,6 +114,26 @@
       options: modules,
       allowClear: true,
     },
+    {
+      type: 'radio',
+      field: 'attachStatus',
+      label: '闄勪欢鐘舵��',
+      initval: wrap.attachStatus || 0,
+      tooltip: '娣诲姞鎴栦慨鏀瑰嚟璇佹椂锛屼笂浼犻檮浠剁殑鐘舵�併��',
+      required: true,
+      options: [
+        {value: 0, label: '寰呭鏍�'},
+        {value: 10, label: '宸插鏍�'},
+      ]
+    },
+    {
+      type: 'number',
+      field: 'space',
+      label: '鐣欑櫧',
+      initval: wrap.space || 0,
+      tooltip: '琛ㄦ牸涓讳綋閮ㄥ垎涓ょ鐨勭┖鐧借窛绂伙紝琛ㄦ牸鍦ㄧ紪杈戞椂涓ょ浼氭湁娣诲姞鍜屽垹闄ゅ浘鏍囥��',
+      required: false
+    },
   ]
 
   return wrapForm

--
Gitblit v1.8.0