Commit 04358c9abad24c3a014fe2c3010c21603d2f6ec0
Merge branch 'master' into zgt
# Conflicts: # .idea/UniappTool.xml # src/pages/Order/constant.ts
Showing
6 changed files
with
43 additions
and
16 deletions
src/access.ts
@@ -11,7 +11,7 @@ export default (initialState: API.UserInfo) => { | @@ -11,7 +11,7 @@ export default (initialState: API.UserInfo) => { | ||
11 | return { | 11 | return { |
12 | canReadAdmin: canReadAdmin, | 12 | canReadAdmin: canReadAdmin, |
13 | canReadProcure: canReadProcure, | 13 | canReadProcure: canReadProcure, |
14 | - canReadLinda: username === 'Linda' || username === '吴量' || canReadAdmin, | 14 | + canReadLinda: username === 'Linda', |
15 | canReadAdminAndFinance: canReadFinance || canReadAdmin, | 15 | canReadAdminAndFinance: canReadFinance || canReadAdmin, |
16 | canReadSales: canReadSales, | 16 | canReadSales: canReadSales, |
17 | canReadAdminAndFinanceAndSales: | 17 | canReadAdminAndFinanceAndSales: |
src/pages/Order/constant.ts
@@ -432,8 +432,8 @@ export const MAIN_ORDER_COLUMNS = [ | @@ -432,8 +432,8 @@ export const MAIN_ORDER_COLUMNS = [ | ||
432 | hideInTable: true, | 432 | hideInTable: true, |
433 | }, | 433 | }, |
434 | { | 434 | { |
435 | - title: '子订单编号', | ||
436 | - dataIndex: 'subOrderId', | 435 | + title: '收货人', |
436 | + dataIndex: 'customerName', | ||
437 | valueType: 'text', | 437 | valueType: 'text', |
438 | hideInTable: true, | 438 | hideInTable: true, |
439 | }, | 439 | }, |
@@ -444,8 +444,8 @@ export const MAIN_ORDER_COLUMNS = [ | @@ -444,8 +444,8 @@ export const MAIN_ORDER_COLUMNS = [ | ||
444 | hideInTable: true, | 444 | hideInTable: true, |
445 | }, | 445 | }, |
446 | { | 446 | { |
447 | - title: '收货人', | ||
448 | - dataIndex: 'customerName', | 447 | + title: '子订单编号', |
448 | + dataIndex: 'subOrderId', | ||
449 | valueType: 'text', | 449 | valueType: 'text', |
450 | hideInTable: true, | 450 | hideInTable: true, |
451 | }, | 451 | }, |
src/pages/Order/index.tsx
@@ -814,7 +814,7 @@ const OrderPage = () => { | @@ -814,7 +814,7 @@ const OrderPage = () => { | ||
814 | key={index} | 814 | key={index} |
815 | onConfirm={() => { | 815 | onConfirm={() => { |
816 | window.open( | 816 | window.open( |
817 | - '/onlinePreview?url=' + | 817 | + '/previewApi/onlinePreview?url=' + |
818 | encodeURIComponent(Base64.encode(item.url)), | 818 | encodeURIComponent(Base64.encode(item.url)), |
819 | ); | 819 | ); |
820 | }} | 820 | }} |
@@ -1956,7 +1956,7 @@ const OrderPage = () => { | @@ -1956,7 +1956,7 @@ const OrderPage = () => { | ||
1956 | onClick={() => { | 1956 | onClick={() => { |
1957 | createOptObject(optRecord.id, record.id); | 1957 | createOptObject(optRecord.id, record.id); |
1958 | setOrderDrawerVisible(true); | 1958 | setOrderDrawerVisible(true); |
1959 | - setOrderOptType('after-sales'); | 1959 | + setOrderOptType('after_sales'); |
1960 | }} | 1960 | }} |
1961 | > | 1961 | > |
1962 | 申请售后 | 1962 | 申请售后 |
@@ -3424,10 +3424,11 @@ const OrderPage = () => { | @@ -3424,10 +3424,11 @@ const OrderPage = () => { | ||
3424 | orderStatus !== 'UNAUDITED' && | 3424 | orderStatus !== 'UNAUDITED' && |
3425 | orderStatus !== 'AUDIT_FAILED' && | 3425 | orderStatus !== 'AUDIT_FAILED' && |
3426 | orderStatus !== 'LEADER_PROCESS' && | 3426 | orderStatus !== 'LEADER_PROCESS' && |
3427 | - orderStatus !== 'SALES_CONFIRM' | 3427 | + orderStatus !== 'SALES_CONFIRM' && |
3428 | + orderStatus !== 'CREDIT_CONFIRM' | ||
3428 | ) { | 3429 | ) { |
3429 | message.error( | 3430 | message.error( |
3430 | - '请选择【未审核、审核失败、销售待确认】的订单进行编辑', | 3431 | + '请选择【未审核、审核失败、销售待确认、赊账待审核】的订单进行编辑', |
3431 | ); | 3432 | ); |
3432 | return; | 3433 | return; |
3433 | } | 3434 | } |
src/pages/ResearchGroup/components/ResearchGroupAddModal.tsx
@@ -285,8 +285,9 @@ export default ({ setVisible, researchGroupId, onClose }) => { | @@ -285,8 +285,9 @@ export default ({ setVisible, researchGroupId, onClose }) => { | ||
285 | form.setFieldValue('accounts', accountIds); | 285 | form.setFieldValue('accounts', accountIds); |
286 | } | 286 | } |
287 | 287 | ||
288 | - form.setFieldValue('group', researchGroupInfo.groupName); | ||
289 | - form.setFieldValue('leader', researchGroupInfo.leaderName); | 288 | + form.setFieldValue('groupName', researchGroupInfo.groupName); |
289 | + form.setFieldValue('leaderName', researchGroupInfo.leaderName); | ||
290 | + form.setFieldValue('companyName', researchGroupInfo.companyName); | ||
290 | }; | 291 | }; |
291 | 292 | ||
292 | useEffect(() => { | 293 | useEffect(() => { |
@@ -337,14 +338,14 @@ export default ({ setVisible, researchGroupId, onClose }) => { | @@ -337,14 +338,14 @@ export default ({ setVisible, researchGroupId, onClose }) => { | ||
337 | <Spin spinning={modalLoading} tip="加载中..."> | 338 | <Spin spinning={modalLoading} tip="加载中..."> |
338 | <ProForm.Group> | 339 | <ProForm.Group> |
339 | <ProFormText | 340 | <ProFormText |
340 | - name="group" | 341 | + name="groupName" |
341 | label="课题组名称" | 342 | label="课题组名称" |
342 | placeholder="请输入课题组名称" | 343 | placeholder="请输入课题组名称" |
343 | rules={[{ required: true, message: '请输入课题组名称' }]} | 344 | rules={[{ required: true, message: '请输入课题组名称' }]} |
344 | /> | 345 | /> |
345 | <ProFormSelect | 346 | <ProFormSelect |
346 | - name="leader" | ||
347 | - key="leader" | 347 | + name="leaderName" |
348 | + key="leaderName" | ||
348 | width="lg" | 349 | width="lg" |
349 | showSearch | 350 | showSearch |
350 | label="负责人" | 351 | label="负责人" |
@@ -352,6 +353,12 @@ export default ({ setVisible, researchGroupId, onClose }) => { | @@ -352,6 +353,12 @@ export default ({ setVisible, researchGroupId, onClose }) => { | ||
352 | rules={[{ required: true, message: '请输入课题组负责人' }]} | 353 | rules={[{ required: true, message: '请输入课题组负责人' }]} |
353 | options={salesCodeOptions} | 354 | options={salesCodeOptions} |
354 | /> | 355 | /> |
356 | + <ProFormText | ||
357 | + name="companyName" | ||
358 | + label="单位名称" | ||
359 | + placeholder="请输入单位名称" | ||
360 | + rules={[{ required: true, message: '请输入单位名称' }]} | ||
361 | + /> | ||
355 | </ProForm.Group> | 362 | </ProForm.Group> |
356 | 363 | ||
357 | <ProFormSelect | 364 | <ProFormSelect |
src/pages/ResearchGroup/constant.tsx
@@ -28,6 +28,15 @@ export const RESEARCH_GROUP_COLUMNS = [ | @@ -28,6 +28,15 @@ export const RESEARCH_GROUP_COLUMNS = [ | ||
28 | }, | 28 | }, |
29 | }, | 29 | }, |
30 | { | 30 | { |
31 | + title: '单位名称', | ||
32 | + dataIndex: 'companyName', | ||
33 | + key: 'companyName', | ||
34 | + fieldProps: { | ||
35 | + placeholder: '请输入单位名称', | ||
36 | + }, | ||
37 | + hideInSearch: true, | ||
38 | + }, | ||
39 | + { | ||
31 | title: '预存账号', | 40 | title: '预存账号', |
32 | dataIndex: 'accounts', | 41 | dataIndex: 'accounts', |
33 | key: 'accounts', | 42 | key: 'accounts', |
@@ -85,6 +94,12 @@ export const RESEARCH_GROUP_COLUMNS = [ | @@ -85,6 +94,12 @@ export const RESEARCH_GROUP_COLUMNS = [ | ||
85 | }, | 94 | }, |
86 | hideInSearch: true, | 95 | hideInSearch: true, |
87 | }, | 96 | }, |
97 | + { | ||
98 | + title: '公司名称', | ||
99 | + dataIndex: 'companyNameLike', | ||
100 | + key: 'companyNameLike', | ||
101 | + hideInTable: true, | ||
102 | + }, | ||
88 | ]; | 103 | ]; |
89 | 104 | ||
90 | export const RESEARCH_GROUP_MEMBER_REQUEST_COLUMNS = [ | 105 | export const RESEARCH_GROUP_MEMBER_REQUEST_COLUMNS = [ |
src/pages/ResearchGroup/index.tsx
@@ -158,7 +158,11 @@ const PrepaidPage = () => { | @@ -158,7 +158,11 @@ const PrepaidPage = () => { | ||
158 | <div>名称:</div> | 158 | <div>名称:</div> |
159 | </Col> | 159 | </Col> |
160 | <Col span={14}> | 160 | <Col span={14}> |
161 | - <div>{accountInfo.realName}</div> | 161 | + <div> |
162 | + {accountInfo.realName === '' | ||
163 | + ? '用户' | ||
164 | + : accountInfo.realName} | ||
165 | + </div> | ||
162 | </Col> | 166 | </Col> |
163 | </Row> | 167 | </Row> |
164 | <Row gutter={4}> | 168 | <Row gutter={4}> |
@@ -196,7 +200,7 @@ const PrepaidPage = () => { | @@ -196,7 +200,7 @@ const PrepaidPage = () => { | ||
196 | loadAccountInfo(accountId, accountPhone); | 200 | loadAccountInfo(accountId, accountPhone); |
197 | }} | 201 | }} |
198 | > | 202 | > |
199 | - {accountName} | 203 | + {accountName === '' ? '用户' : accountName} |
200 | </Tag> | 204 | </Tag> |
201 | </Popconfirm> | 205 | </Popconfirm> |
202 | ); | 206 | ); |