Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
ljlong_2630 5 months ago
parent
commit
54da36fa29
  1. 1
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  2. 24
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

1
src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts

@ -53,6 +53,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段

24
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -55,6 +55,7 @@
callmaterialQtySum:qty*callmaterialQty, callmaterialQtySum:qty*callmaterialQty,
}) })
}" }"
@onEnter="onEnter"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -75,7 +76,9 @@ import Detail from '@/components/Detail/src/Detail.vue'
import { formatTime } from '@/utils/index' import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import * as PackageApi from '@/api/wms/package' import * as PackageApi from '@/api/wms/package'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
//
defineOptions({ name: 'Callmaterials' }) defineOptions({ name: 'Callmaterials' })
const message = useMessage() // const message = useMessage() //
@ -86,6 +89,25 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(Callmaterials.allSchemas.tableColumns) const tableColumns = ref(Callmaterials.allSchemas.tableColumns)
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) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {

Loading…
Cancel
Save