李志伟 2 years ago
parent
commit
afc2e8520e

+ 2
- 2
config/routes.js View File

27
   {
27
   {
28
     path: '/invoiceFill',
28
     path: '/invoiceFill',
29
     name: '班次列表',
29
     name: '班次列表',
30
-    icon: 'ProfileOutlined',
30
+    icon: 'SolutionOutlined',
31
     component: '@/pages/invoiceFill',    
31
     component: '@/pages/invoiceFill',    
32
   },
32
   },
33
   {
33
   {
39
   },
39
   },
40
   {
40
   {
41
     path: '/invoiceDetail',
41
     path: '/invoiceDetail',
42
-    name: '报销明细列表',
42
+    name: '开票明细列表',
43
     icon: 'ProfileOutlined',
43
     icon: 'ProfileOutlined',
44
     component: '@/pages/invoiceDetail',    
44
     component: '@/pages/invoiceDetail',    
45
   },
45
   },

+ 8
- 8
src/pages/invoiceFill/components/BasicInfo.jsx View File

67
     }
67
     }
68
   };
68
   };
69
 
69
 
70
-  //报销项目弹窗保存
70
+  //开票项目弹窗保存
71
   const Submit = (val) => {
71
   const Submit = (val) => {
72
     setModelLoading(true);
72
     setModelLoading(true);
73
     saveInvoiceItemTpl(val, invoiceId).then(res => {
73
     saveInvoiceItemTpl(val, invoiceId).then(res => {
89
   const showModel = () => {
89
   const showModel = () => {
90
     setEditModal(true);
90
     setEditModal(true);
91
   }
91
   }
92
-  //删除报销项目
92
+  //删除开票项目
93
   const handleDelete = (invoiceItemTplId) => {
93
   const handleDelete = (invoiceItemTplId) => {
94
     deleteInvoiceItemTpl(invoiceItemTplId).then(res => {
94
     deleteInvoiceItemTpl(invoiceItemTplId).then(res => {
95
       message.success('删除成功')
95
       message.success('删除成功')
101
 
101
 
102
   const actions = () => [
102
   const actions = () => [
103
     <Button key="add" type="primary" icon={<PlusOutlined />} onClick={showModel}>
103
     <Button key="add" type="primary" icon={<PlusOutlined />} onClick={showModel}>
104
-      新增报销项目
104
+      新增开票项目
105
     </Button>,
105
     </Button>,
106
   ];
106
   ];
107
   useEffect(() => {
107
   useEffect(() => {
116
   }, [invoiceId])
116
   }, [invoiceId])
117
   const columns = [
117
   const columns = [
118
     {
118
     {
119
-      title: '报销项目名称',
119
+      title: '开票项目名称',
120
       dataIndex: 'name',
120
       dataIndex: 'name',
121
       key: 'name',
121
       key: 'name',
122
     },
122
     },
180
         {
180
         {
181
           invoiceId &&
181
           invoiceId &&
182
           <Col span={12}>
182
           <Col span={12}>
183
-            报销项目
183
+            开票项目
184
             <PageTable
184
             <PageTable
185
               request={getInvoiceItemTplList}
185
               request={getInvoiceItemTplList}
186
               toolBarRender={actions}
186
               toolBarRender={actions}
197
 
197
 
198
       <Modal
198
       <Modal
199
         forceRender
199
         forceRender
200
-        title='报销项目新增'
200
+        title='开票项目新增'
201
         visible={editModal}
201
         visible={editModal}
202
         onCancel={onCancel}
202
         onCancel={onCancel}
203
         keyboard={false}
203
         keyboard={false}
206
         footer={null}
206
         footer={null}
207
       >
207
       >
208
         <Form {...formItemLayout} onFinish={Submit} form={formModel}>
208
         <Form {...formItemLayout} onFinish={Submit} form={formModel}>
209
-          <FormItem label="报销项目名称" name="name" rules={[{ required: true, message: '请输入' }]}>
209
+          <FormItem label="开票项目名称" name="name" rules={[{ required: true, message: '请输入' }]}>
210
             <Input placeholder="请输入" />
210
             <Input placeholder="请输入" />
211
           </FormItem>
211
           </FormItem>
212
-          <FormItem label="报销金额" name="charge" rules={[{ required: true, message: '请输入' }]}>
212
+          <FormItem label="开票金额" name="charge" rules={[{ required: true, message: '请输入' }]}>
213
             <InputNumber min={0} placeholder="请输入" style={{ width: '100%' }} />
213
             <InputNumber min={0} placeholder="请输入" style={{ width: '100%' }} />
214
           </FormItem>
214
           </FormItem>
215
           <FormItem label=" " colon={false}>
215
           <FormItem label=" " colon={false}>

+ 1
- 1
src/pages/invoiceFill/components/InvoiceDetail.jsx View File

110
 
110
 
111
       <Modal
111
       <Modal
112
         forceRender
112
         forceRender
113
-        title={'报销单编辑'}
113
+        title='开票模板编辑'
114
         visible={editModal}
114
         visible={editModal}
115
         onCancel={onCancel}
115
         onCancel={onCancel}
116
         keyboard={false}
116
         keyboard={false}

+ 2
- 2
src/pages/invoiceFill/edit.jsx View File

50
           <BasicInfo invoiceId={id} />
50
           <BasicInfo invoiceId={id} />
51
           {
51
           {
52
             id &&
52
             id &&
53
-            <>报销模板
53
+            <>开票模板
54
               <InvoiceDetail ref={detailRef} invoiceId={id} /></>
54
               <InvoiceDetail ref={detailRef} invoiceId={id} /></>
55
           }
55
           }
56
 
56
 
57
         </ProCard.TabPane>
57
         </ProCard.TabPane>
58
-        <ProCard.TabPane key={2} disabled={!id} tab="报销人员">
58
+        <ProCard.TabPane key={2} disabled={!id} tab="员">
59
           <ReimbursementPerson invoiceId={id} />
59
           <ReimbursementPerson invoiceId={id} />
60
         </ProCard.TabPane>
60
         </ProCard.TabPane>
61
       </ProCard>
61
       </ProCard>