Browse Source

去掉console

master_hella_20240701
zhang_li 5 months ago
parent
commit
b871e8ecbd
  1. 9
      src/api/wms/business/business.ts
  2. 1
      src/components/BasicForm/src/BasicForm.vue

9
src/api/wms/business/business.ts

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

1
src/components/BasicForm/src/BasicForm.vue

@ -343,7 +343,6 @@ const route = useRoute() // 路由信息
const routeName = ref('') const routeName = ref('')
routeName.value = route.name routeName.value = route.name
const isExecute = ref(true)//true const isExecute = ref(true)//true
console.log(44332322, routeName.value)
// - // -
// const buttondata = [ // const buttondata = [

Loading…
Cancel
Save