Commit 9a53b89e8cf20cc6ca594371cc7d85773ba8ffe6
1 parent
00553e68
1.处理历史记录传参
Showing
3 changed files
with
8 additions
and
5 deletions
src/components/Common/CommonBillEvent.js
| ... | ... | @@ -2605,8 +2605,10 @@ export default (ChildComponent) => { |
| 2605 | 2605 | } |
| 2606 | 2606 | const sOldData = commonUtils.getOldDataFromProps(this.props); |
| 2607 | 2607 | console.log('组装后的原始数据', sOldData); |
| 2608 | + const sOperationType = masterData?.handleType === 'add' ? '1' : '2' ; | |
| 2608 | 2609 | |
| 2609 | - this.handleSaveData({ data, sClientType: '1', sSysLogSrcId: masterData.sId, sOldData }); | |
| 2610 | + this.handleSaveData({ data, sClientType: '1', sSysLogSrcId: masterData.sId, | |
| 2611 | + sOldData, sOperationType, sBillNo: masterData.sBillNo }); | |
| 2610 | 2612 | } |
| 2611 | 2613 | }); |
| 2612 | 2614 | }; |
| ... | ... | @@ -3125,7 +3127,8 @@ export default (ChildComponent) => { |
| 3125 | 3127 | sMasterTable: masterConfig.sTbName, |
| 3126 | 3128 | sId: [masterData.sId], |
| 3127 | 3129 | }, |
| 3128 | - sOldData | |
| 3130 | + sOldData, | |
| 3131 | + sSysLogSrcId: masterData.sId, | |
| 3129 | 3132 | }; |
| 3130 | 3133 | const sSlaveTable = []; |
| 3131 | 3134 | if (commonUtils.isNotEmptyObject(slaveConfig)) { | ... | ... |
src/components/Common/commonBusiness.js
| ... | ... | @@ -285,7 +285,7 @@ export async function saveData(param) { |
| 285 | 285 | * delTmpData 表单删除数据 |
| 286 | 286 | * bAll 不过滤增加数据还是修改数据 */ |
| 287 | 287 | export function mergeData(name, sTbName, saveTmpData, delTmpData, bAll) { |
| 288 | - if (name === 'master' && commonUtils.isNotEmptyArr(saveTmpData)) { | |
| 288 | + if (name === 'master' && commonUtils.isNotEmptyArr(saveTmpData) && sTbName?.toLowerCase()?.includes('quoquo')) { | |
| 289 | 289 | saveTmpData[0].handleType = saveTmpData[0].handleType ? saveTmpData[0].handleType : 'update'; |
| 290 | 290 | } |
| 291 | 291 | const delData = commonUtils.isEmptyArr(delTmpData) ? [] : delTmpData; | ... | ... |
src/utils/config.js
| ... | ... | @@ -9,11 +9,11 @@ const API = process.env.API; |
| 9 | 9 | const bHttps = false; |
| 10 | 10 | export const webSite = { |
| 11 | 11 | faceAddress: isDev ? '//118.178.19.35:8088/xlyFace' : '//' + location.host + '/xlyFace', |
| 12 | - ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/', | |
| 12 | + ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//192.168.2.19:8080/xlyEntry/' : '//' + location.host + '/xlyEntry/', | |
| 13 | 13 | // ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//118.178.19.35:8088/xlyEntry/' : '//' + location.host + '/xlyEntry/', |
| 14 | 14 | // ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//8.130.144.93:8088/xlyEntry/' : '//' + location.host + '/xlyEntry/', |
| 15 | 15 | interfaceAddress: localStorage.apiAddress ? localStorage.apiAddress : isDev ? '//118.178.19.35:8088/xlyApi/' : '//' + location.host + '/xlyApi/', // 接口地址 |
| 16 | - fileAddress: isDev ? '//118.178.19.35:8088/xlyReport/' : '//' + location.host + '/xlyReport/', // 接口地址 | |
| 16 | + fileAddress: isDev ? '//118.178.19.35:8088/xlyReport/' : '//' + location.host + '/xlyReport/', // 接口地址1 | |
| 17 | 17 | fileAddressEbc: isDev ? '//118.178.19.35:8088/xlyReport/' : '//' + location.host + '/xlyReport/', |
| 18 | 18 | }; |
| 19 | 19 | ... | ... |