审批流按钮

This commit is contained in:
‘huanghaiixia’
2026-01-06 17:46:04 +08:00
parent 775e84f610
commit f73ce1a9f1
18 changed files with 1379 additions and 248 deletions

View File

@ -9,7 +9,7 @@ export const searchFormSchema: FormSchema[] = [
{
field: 'kNo',
label: '合同号/合同名称',
label: '合同号/名称',
component: 'Input',
},
{

View File

@ -50,7 +50,7 @@
</a-col>
<a-col :span="8">
<a-form-item label="供应商" name="cpName">
<a-input-search v-model:value="formState.cpName" :disabled="isDisable" placeholder="请选择供应商" readonly @search="onSearcSupplier"/>
<a-input-search v-model:value="formState.cpName" :disabled="isDisable" placeholder="请选择供应商" readonly @search="onSearchSupplier"/>
</a-form-item>
</a-col>
<a-col :span="8">
@ -540,7 +540,7 @@
const onSearch = (val)=> {
openModalDept(true,{isUpdate: false})
}
const onSearcSupplier = () => {
const onSearchSupplier = () => {
openModalSupplier(true,{isUpdate: false})
}
const onSearchUser = (val)=> {
@ -658,9 +658,23 @@
arr[i].qtyM3Month = Number(arr[i].qtyM3Month)*10000
arr[i].qtyM3Day = Number(arr[i].qtyM3Day)*10000
}
let arr1 = []
dataListAppro.value.forEach(v=>{
v.approId = ''
arr1.concat(v.lngContractPurPngPointSalesList || [])
})
let newArr = arr1.map(v=>v.pointDelyCode)
let codeList = dataListPoint.value.map(v =>v.pointUpCode)
const isRepeat=codeList.some((item,index,arr)=>arr.indexOf(item)!=index);
const isRepeatNew=newArr.some((item,index,arr)=>arr.indexOf(item)!=index);
if(isRepeat){
message.warn('上载点不可重复');
return
}
if(isRepeatNew){
message.warn('交割点不可重复');
return
}
let obj = {
...formState,
lngContractPurPngPointList: dataListPoint.value,
@ -676,7 +690,8 @@
"periodTypeCode": formState.periodTypeCode,
"uomCode": formState.uomCode,
}
]
],
approCode: pageType.value=='update' ? 'WTJ' : formState.approCode
}
spinning.value = true;