合同相对方序号调整
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="相对方序号" name="sort">
|
||||
<input-number v-model:value="formState.sort" style="width: 100%" :digits="0" :min="0" :step="1"/>
|
||||
<input-number v-model:value="formState.sort" style="width: 100%" :digits="0" :min="1" :step="1"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@ -151,6 +151,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
message.warning('相对方名称:'+ arr[0].cpName + '已重复')
|
||||
return
|
||||
}
|
||||
formState.sort = Number(formState.sort)
|
||||
emit('success', formState);
|
||||
notification.success({
|
||||
message: t('操作'),
|
||||
|
||||
@ -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