合同相对方序号调整

This commit is contained in:
‘huanghaiixia’
2026-03-11 16:38:40 +08:00
parent b36a9b2186
commit 4ec1b5b466
2 changed files with 8 additions and 2 deletions

View File

@ -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