合同相对方序号调整
This commit is contained in:
@ -603,10 +603,15 @@
|
||||
message.warn('相对方信息个数必须在1-20间')
|
||||
return
|
||||
}
|
||||
let arr = JSON.parse(JSON.stringify(dataList.value))
|
||||
arr.sort((a, b) => a.sort - b.sort)
|
||||
arr.forEach((v,idx) => {
|
||||
v.sort = idx +1
|
||||
})
|
||||
let obj = {
|
||||
...formState,
|
||||
lngFileUploadList: dataFile.value,
|
||||
lngContractFactCpList: dataList.value,
|
||||
lngContractFactCpList: arr,
|
||||
lngContractApproRelList: dataListAppro.value,
|
||||
approCode: pageType.value=='update' ? 'WTJ' : formState.approCode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user