Commit e2252dc0e77477dd2f5709c9131437f64d641f3f

Authored by jiangwei
1 parent f02065e0

财富报销设置外勤参数变动

src/pages/finance/Reimburse/FieldService/api.ts
... ... @@ -7,8 +7,8 @@ type P<T> = http.PromiseResp<T>;
7 7 export interface Item {
8 8 id?: number; // ID
9 9 groupId?: number; // 集团ID
10   - outsideId?: number; // 外勤类型id
11   - outsideType?: string; // 外勤类型
  10 + outsideType?: number; // 外勤类型id
  11 + outsideTypeName?: string; // 外勤类型
12 12 isAllowReimburse?: boolean; // 是否允许报销
13 13 createBy?: number // 创建人
14 14 updateBy?: number // 修改人
... ...
src/pages/finance/Reimburse/FieldService/components/Modal.tsx
... ... @@ -21,7 +21,7 @@ function CreateModal(props: Props) {
21 21 if (visiable && current?.id) {
22 22 form.setFieldsValue({
23 23 isAllowReimburse: current.isAllowReimburse,
24   - outsideId: current.outsideId,
  24 + outsideType: current.outsideType,
25 25 breakfast: current.breakfast,
26 26 lunch: current.lunch,
27 27 dinner: current.dinner,
... ... @@ -34,8 +34,8 @@ function CreateModal(props: Props) {
34 34 const submit = (item:any) => {
35 35 const params = {
36 36 id: current?.id || undefined,
37   - outsideId: item.outsideId,
38   - outsideType: data.find(i => i.id == item.outsideId)?.name,
  37 + outsideType: item.outsideType,
  38 + outsideTypeName: data.find(i => i.id == item.outsideType)?.name,
39 39 isAllowReimburse: item.isAllowReimburse,
40 40 breakfast: item.breakfast,
41 41 lunch: item.lunch,
... ... @@ -83,7 +83,7 @@ function CreateModal(props: Props) {
83 83 </Radio.Group>
84 84 </FormItem>
85 85 <FormItem
86   - name="outsideId"
  86 + name="outsideType"
87 87 label="外勤类型"
88 88 rules={[{ required: true, message: "请选择外勤类型" }]}
89 89 >
... ...
src/pages/finance/Reimburse/FieldService/index.tsx
... ... @@ -49,7 +49,7 @@ const CateringSubsidies = () =&gt; {
49 49 loading={loading}
50 50 pagination={false}
51 51 >
52   - <Column title="外勤类型" dataIndex="outsideType" align="center" />
  52 + <Column title="外勤类型" dataIndex="outsideTypeName" align="center" />
53 53 <Column title="是否允许报销" align="center" render={r => (r.isAllowReimburse ? '允许' : '不允许')} />
54 54 <Column
55 55 title="餐费补贴"
... ...