原始数据: obj1
obj1: {
beginFlag: false,
checkUserCode: "1043",
consumableFiledNum: 0,
id: "",
stockRegisterDetailList: [{
batch: "1",
checkStatus: true,
contractCode: null,
sourceCodeList: [
{
originalCode: 1001,
checkStatus: 1,
rejectionProcessType: 1,
rejectionDescription: '退货理由1111'
},
{
originalCode: 1002,
checkStatus: 0,
rejectionProcessType: 1,
rejectionDescription: '退货理由222'
}, {
originalCode: 1003,
checkStatus: 0,
rejectionProcessType: 2,
rejectionDescription: '退货理由333'
}
]
},
{
batch: "2",
checkStatus: true,
contractCode: 222,
sourceCodeList: [
{
originalCode: 100111,
checkStatus: 1,
rejectionProcessType: 1,
rejectionDescription: '退货理由1111'
},
{
originalCode: 100222,
checkStatus: 0,
rejectionProcessType: 1,
rejectionDescription: '退货理由222'
}
]
},
]
},
理想数据: obj2
obj2: {
beginFlag: false,
checkUserCode: "1043",
consumableFiledNum: 0,
id: "",
stockRegisterDetailList: [
{
originalCode: 1001,
checkStatus: 1,
rejectionProcessType: 1,
rejectionDescription: '退货理由1111',
batch: "1",
checkStatus: true,
contractCode: null,
},
{
batch: "1",
checkStatus: true,
contractCode: null,
originalCode: 1002,
checkStatus: 0,
rejectionProcessType: 1,
rejectionDescription: '退货理由222'
},
{
batch: "1",
checkStatus: true,
contractCode: null,
originalCode: 1003,
checkStatus: 0,
rejectionProcessType: 2,
rejectionDescription: '退货理由333'
},
{
batch: "2",
checkStatus: true,
contractCode: 222,
originalCode: 100111,
checkStatus: 1,
rejectionProcessType: 1,
rejectionDescription: '退货理由1111'
},
{
batch: "2",
checkStatus: true,
contractCode: 222,
originalCode: 100222,
checkStatus: 0,
rejectionProcessType: 1,
rejectionDescription: '退货理由222'
},
]
},