Browse Source

Merge remote-tracking branch 'remotes/origin/intex_pandian' into intex

intex_online20250327
songguoqiang 3 weeks ago
parent
commit
bb9d763436
  1. 60
      src/views/wms/countManage/count/countConfig/countConfig.data.ts
  2. 15
      src/views/wms/countManage/count/countConfig/index.vue

60
src/views/wms/countManage/count/countConfig/countConfig.data.ts

@ -1,5 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as ItembasicApi from '@/api/wms/itembasic'
// 表单校验
export const CountConfigRules = reactive({
@ -10,7 +12,7 @@ export const CountConfigRules = reactive({
export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '物品代码',
label: '品番',
field: 'itemCode',
sort: 'custom',
table: {
@ -18,14 +20,44 @@ export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left'
},
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择物料基本信息',
searchField: 'code',
searchTitle: '物料基本信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
{
label: '物料名称',
label: '品名',
field: 'itemName',
sort: 'custom',
table: {
width: 180
},
form:{
componentProps:{
disabled: true
}
}
},
{
label: '背番',
@ -34,14 +66,26 @@ export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 100
},
form:{
componentProps:{
disabled: true
}
}
},
{
label: '计量单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
table: {
width: 100
},
form:{
componentProps:{
disabled: true
}
}
},
{
label: '包装规格',
@ -50,6 +94,11 @@ export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 100
},
form:{
componentProps:{
disabled: true
}
}
},
{
label: '包装数量',
@ -58,6 +107,11 @@ export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 100
},
form:{
componentProps:{
disabled: true
}
}
},
{
label: '盘点模式',
@ -79,6 +133,8 @@ export const CountConfig = useCrudSchemas(reactive<CrudSchema[]>([
label: '是否可用',
field: 'available',
sort: 'custom',
isForm:false,
isTable: false
},
{
label: '备注',

15
src/views/wms/countManage/count/countConfig/index.vue

@ -65,6 +65,7 @@ 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 { debug } from 'console'
defineOptions({ name: 'CountConfig' })
@ -77,10 +78,18 @@ routeName.value = route.name
const tableColumns = ref(CountConfig.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
if (formField == 'itemCode') {
setV['itemName'] = val[0].name
setV['desc1'] = val[0].backNumber
setV['uom'] = val[0].uom
setV['packUnit'] = val[0].defaultPackUnit
setV['packQty'] = val[0].defaultPackQty
}
formRef.setValues(setV)
})
}
@ -133,8 +142,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:countConfig:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:countConfig:delete'}), //
defaultButtons.mainListEditBtn(), //
defaultButtons.mainListDeleteBtn(), //
]
// -

Loading…
Cancel
Save