Commit 7581eedf6d175351e308c873f080bea4e4c6ac6f
1 parent
3010ed6c
fix(invoice): 修复状态过滤导致的核销问题
取消了对银行状态查询的异常状态过滤,以允许正常状态的银行记录被正确核销。此更改确保了核销流程能够顺利进行,不再因错误的状态过滤而受到影响。
Showing
5 changed files
with
55 additions
and
45 deletions
src/pages/Invoice/Invoice/components/BankChooseModal.tsx
... | ... | @@ -276,7 +276,7 @@ export default ({ loadInvoiceData, invoiceId, setVisible, onClose }) => { |
276 | 276 | }} |
277 | 277 | request={async (params) => { |
278 | 278 | const res = await postServiceBankStatementQueryBankStatement({ |
279 | - data: { ...params, status: 'ABNORMAL' }, | |
279 | + data: { ...params }, | |
280 | 280 | }); |
281 | 281 | if (res) { |
282 | 282 | return { | ... | ... |
src/pages/Invoice/constant.tsx
... | ... | @@ -58,6 +58,18 @@ export const INVOICE_COLUMNS = [ |
58 | 58 | dataIndex: 'statusText', |
59 | 59 | valueType: 'text', |
60 | 60 | width: 180, |
61 | + hideInSearch: true, | |
62 | + }, | |
63 | + { | |
64 | + title: '状态', | |
65 | + dataIndex: 'status', | |
66 | + valueType: 'select', | |
67 | + width: 100, | |
68 | + valueEnum: enumToProTableEnumValue({ | |
69 | + UNVERIFIED: '未核销', | |
70 | + VERIFIED: '已核销', | |
71 | + }), | |
72 | + hideInTable: true, | |
61 | 73 | }, |
62 | 74 | { |
63 | 75 | title: '购买方', | ... | ... |
src/pages/Order/components/OrderDrawer.tsx
... | ... | @@ -11,6 +11,7 @@ import { |
11 | 11 | postKingdeeRepMaterialUnit, |
12 | 12 | postKingdeeRepMeasureUnit, |
13 | 13 | postPrepaidPhoneAvailableList, |
14 | + postResearchGroupsNameSet, | |
14 | 15 | postServiceOrderAddOrder, |
15 | 16 | postServiceOrderAfterSalesQuerySnapshotOrder, |
16 | 17 | postServiceOrderApplyAfterSales, |
... | ... | @@ -1207,45 +1208,45 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1207 | 1208 | placeholder="请输入单位" |
1208 | 1209 | rules={[{ required: true, message: '单位必填' }]} |
1209 | 1210 | /> |
1210 | - <ProFormText | |
1211 | + {/*<ProFormText | |
1211 | 1212 | width="lg" |
1212 | 1213 | key="institutionContactName" |
1213 | 1214 | name="institutionContactName" |
1214 | 1215 | label="课题组" |
1215 | 1216 | placeholder="请输入课题组" |
1216 | 1217 | rules={[{ required: true, message: '课题组必填' }]} |
1217 | - /> | |
1218 | - {/*<ProFormSelect | |
1219 | - key={'institutionContactName'} | |
1220 | - width="md" | |
1221 | - showSearch | |
1222 | - name="institutionContactName" | |
1223 | - rules={[{ required: true, message: '请输入课题组名称!' }]} | |
1224 | - request={async (value) => { | |
1225 | - const keywords = value.keyWords; | |
1226 | - const res = await postResearchGroupsNameSet({ | |
1227 | - data: { | |
1228 | - groupName: keywords, | |
1229 | - }, | |
1230 | - }); | |
1231 | - let options = res?.data?.map((c: any) => { | |
1232 | - return { | |
1233 | - label: c, | |
1234 | - value: c, | |
1235 | - key: c, | |
1236 | - }; | |
1237 | - }); | |
1238 | - return options; | |
1239 | - }} | |
1240 | - fieldProps={{ | |
1241 | - filterOption() { | |
1242 | - return true; | |
1243 | - }, | |
1244 | - }} | |
1245 | - debounceTime={1000} | |
1246 | - label="课题组名称" | |
1247 | - placeholder="请输入名称" | |
1248 | 1218 | />*/} |
1219 | + <ProFormSelect | |
1220 | + key={'institutionContactName'} | |
1221 | + width="md" | |
1222 | + showSearch | |
1223 | + name="institutionContactName" | |
1224 | + rules={[{ required: true, message: '请输入课题组名称!' }]} | |
1225 | + request={async (value) => { | |
1226 | + const keywords = value.keyWords; | |
1227 | + const res = await postResearchGroupsNameSet({ | |
1228 | + data: { | |
1229 | + groupName: keywords, | |
1230 | + }, | |
1231 | + }); | |
1232 | + let options = res?.data?.map((c: any) => { | |
1233 | + return { | |
1234 | + label: c, | |
1235 | + value: c, | |
1236 | + key: c, | |
1237 | + }; | |
1238 | + }); | |
1239 | + return options; | |
1240 | + }} | |
1241 | + fieldProps={{ | |
1242 | + filterOption() { | |
1243 | + return true; | |
1244 | + }, | |
1245 | + }} | |
1246 | + debounceTime={1000} | |
1247 | + label="课题组名称" | |
1248 | + placeholder="请输入名称" | |
1249 | + /> | |
1249 | 1250 | <div |
1250 | 1251 | style={{ |
1251 | 1252 | display: 'flex', | ... | ... |
src/pages/Order/components/ReissueModal_old.tsx
src/pages/ResearchGroup/components/ResearchGroupAddModal.tsx
... | ... | @@ -343,6 +343,12 @@ export default ({ setVisible, researchGroupId, onClose }) => { |
343 | 343 | placeholder="请输入课题组名称" |
344 | 344 | rules={[{ required: true, message: '请输入课题组名称' }]} |
345 | 345 | /> |
346 | + <ProFormText | |
347 | + name="companyName" | |
348 | + label="单位名称" | |
349 | + placeholder="请输入单位名称" | |
350 | + rules={[{ required: true, message: '请输入单位名称' }]} | |
351 | + /> | |
346 | 352 | <ProFormSelect |
347 | 353 | name="leaderName" |
348 | 354 | key="leaderName" |
... | ... | @@ -350,15 +356,9 @@ export default ({ setVisible, researchGroupId, onClose }) => { |
350 | 356 | showSearch |
351 | 357 | label="负责人" |
352 | 358 | placeholder="请输入课题组负责人" |
353 | - rules={[{ required: true, message: '请输入课题组负责人' }]} | |
359 | + //rules={[{ required: true, message: '请输入课题组负责人' }]} | |
354 | 360 | options={salesCodeOptions} |
355 | 361 | /> |
356 | - <ProFormText | |
357 | - name="companyName" | |
358 | - label="单位名称" | |
359 | - placeholder="请输入单位名称" | |
360 | - rules={[{ required: true, message: '请输入单位名称' }]} | |
361 | - /> | |
362 | 362 | </ProForm.Group> |
363 | 363 | |
364 | 364 | <ProFormSelect |
... | ... | @@ -371,7 +371,7 @@ export default ({ setVisible, researchGroupId, onClose }) => { |
371 | 371 | onChange={(_, option) => { |
372 | 372 | autoAccountSelectOptions(option); |
373 | 373 | }} |
374 | - rules={[{ required: true, message: '请至少选择绑定一个预存账号' }]} | |
374 | + //rules={[{ required: true, message: '请至少选择绑定一个预存账号' }]} | |
375 | 375 | fieldProps={{ |
376 | 376 | mode: 'multiple', |
377 | 377 | filterOption() { | ... | ... |