Commit 04358c9abad24c3a014fe2c3010c21603d2f6ec0

Authored by 曾国涛
2 parents f1f64d22 cfbeebda

Merge branch 'master' into zgt

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