审批流按钮
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user