|
|
@ -232,7 +232,6 @@ export const tableFormBlurVer = async (headerItem, val, row, index,routeName,for |
|
|
|
export const FormBlur = async (formField, val,routeName,formRef,detailData,formSchema,callback) => { |
|
|
|
let pageApi = ref() |
|
|
|
let params = ref() |
|
|
|
console.log(1111,val) |
|
|
|
let setV = {} |
|
|
|
setV[formField] = '' |
|
|
|
if (val && isString(val)) { |
|
|
@ -256,7 +255,6 @@ export const FormBlur = async (formField, val,routeName,formRef,detailData,formS |
|
|
|
) { |
|
|
|
// 销售价格单
|
|
|
|
if (routeName == 'Saleprice') { |
|
|
|
console.log(22222,formRef.formModel.customerCode) |
|
|
|
params.value = { |
|
|
|
customerCode: formRef.formModel.customerCode, |
|
|
|
itemCodes: val?.trim() |
|
|
@ -377,7 +375,6 @@ export const FormBlur = async (formField, val,routeName,formRef,detailData,formS |
|
|
|
formRef.setValues(setV) |
|
|
|
return |
|
|
|
} |
|
|
|
console.log(23232323) |
|
|
|
// emit('searchTableSuccess', formField, searchField, list.value, formRef.value, 'form')
|
|
|
|
callback(searchField,list.value) |
|
|
|
}) |
|
|
@ -430,7 +427,6 @@ export const getListByBottonInput = async (headerItem, val,row,routeName,formRef |
|
|
|
pageApi.value = getItemListByCodes |
|
|
|
} |
|
|
|
let searchCondition1 = headerItem.tableForm.searchCondition //获取data.ts参数信息
|
|
|
|
console.log(98888,searchCondition1) |
|
|
|
// 循环参数设置参数为key:value格式
|
|
|
|
if (searchCondition1 && searchCondition1.length > 0) { |
|
|
|
for (let i = 0; i < searchCondition1.length; i++) { |
|
|
@ -493,20 +489,15 @@ export const getListByBottonInput = async (headerItem, val,row,routeName,formRef |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(788,params.value) |
|
|
|
await pageApi.value(params.value).then(async (res) => { |
|
|
|
list.value = res ? res : [] |
|
|
|
let arr1 = val.split(',').map(item=>item.trim()) |
|
|
|
console.log(res) |
|
|
|
console.log(arr1) |
|
|
|
if (arr1.length != res.length) { |
|
|
|
let arr2 = res.map((item) => item[field]) |
|
|
|
console.log(arr2) |
|
|
|
let str = [ |
|
|
|
...arr1.filter((item) => !arr2.includes(item)), |
|
|
|
...arr2.filter((item) => !arr1.includes(item)) |
|
|
|
].join(',') |
|
|
|
console.log(str) |
|
|
|
message.alert('代码' + str + '没有找到对应数据') |
|
|
|
return |
|
|
|
} else { |
|
|
|