|
|
@ -52,6 +52,7 @@ |
|
|
|
:apiCreate="ItempackagingApi.createItempackaging" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
:isBusiness="false" |
|
|
|
@onEnter="onEnter" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -75,6 +76,10 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '../itembasic/itembasic.data' |
|
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
|
import { Packageunit } from '../packageunit/packageunit.data' |
|
|
|
|
|
|
|
defineOptions({ name: 'Itempackaging' }) |
|
|
|
|
|
|
@ -205,6 +210,41 @@ const formsSuccess = async (formType, data) => { |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} |
|
|
|
const onEnter = async (field,value)=>{ |
|
|
|
console.log('onEnter',field,value) |
|
|
|
if('itemCode'==field){ |
|
|
|
//物料代码 |
|
|
|
basicFormRef.value.opensearchTable('itemCode', 'code', '物料基础信息', Itembasic.allSchemas, ItembasicApi.getItembasicPage,[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'code', |
|
|
|
value: value, |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}]) |
|
|
|
|
|
|
|
}else if('packUnit'==field){ |
|
|
|
//包装规格 |
|
|
|
basicFormRef.value.opensearchTable('packUnit', 'code', '包装规格信息', Packageunit.allSchemas, PackageunitApi.getPackageunitPage,[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'code', |
|
|
|
value: value, |
|
|
|
action: '==', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}]) |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|