|
|
@ -41,12 +41,15 @@ |
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm |
|
|
|
ref="basicFormRef" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="itemCode" |
|
|
|
@success="formsSuccess" |
|
|
|
:rules="CustomeritemRules" |
|
|
|
:formAllSchemas="Customeritem.allSchemas" |
|
|
|
:apiUpdate="CustomeritemApi.updateCustomeritem" |
|
|
|
:apiCreate="CustomeritemApi.createCustomeritem" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@onEnter="onEnter" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
|
|
|
@ -66,6 +69,8 @@ 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 '../../itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
defineOptions({ name: 'Customeritem' }) |
|
|
|
|
|
|
@ -199,7 +204,24 @@ const formsSuccess = async (formType,data) => { |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|
const onEnter = async (field,value)=>{ |
|
|
|
console.log(field,value) |
|
|
|
if(field=='itemCode'){ |
|
|
|
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 |
|
|
|
}]) |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|