diff --git a/src/types/descriptions.d.ts b/src/types/descriptions.d.ts
index 35c0b81be..70be082d8 100644
--- a/src/types/descriptions.d.ts
+++ b/src/types/descriptions.d.ts
@@ -9,5 +9,6 @@ export interface DescriptionsSchema {
className?: string
labelClassName?: string
dateFormat?: string // add by 星语:支持时间的格式化
+ valueFilter?: function // 展示的过滤函数
dictType?: string // add by 星语:支持 dict 字典数据
}
diff --git a/src/views/wms/buttMesManage/mesBarCode/index.vue b/src/views/wms/buttMesManage/mesBarCode/index.vue
index 0a1eebafe..8fcfd22b5 100644
--- a/src/views/wms/buttMesManage/mesBarCode/index.vue
+++ b/src/views/wms/buttMesManage/mesBarCode/index.vue
@@ -27,6 +27,13 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
+
+
+
+ {{ row.type == 'P'?'未加密标签':'加密标签'}}
+
+ {{ row.type }}
+
{{ row.plnt }}
diff --git a/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts b/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts
index 0124386fa..e59718da6 100644
--- a/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts
+++ b/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts
@@ -1,6 +1,8 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
-
+import { getTenantId } from '@/utils/auth'
+let names =[{"text":"1379","value":1},{"text":"1397","value":2},{"text":"2379","value":3}]
+let tenant = names.find(item=>item.value == getTenantId())
// 表单校验
export const MesBarCodeRules = reactive({
available: [required],
@@ -11,79 +13,106 @@ export const MesBarCodeRules = reactive({
export const MesBarCode = useCrudSchemas(reactive([
{
- label: 'Plnt',
+ label: '租户',
field: 'plnt',
sort: 'custom',
table: {
width: 120
},
form: {
- component: 'InputNumber',
- value: 0
- },
- },
- {
- label: 'Counter',
- field: 'counter',
- sort: 'custom',
- table: {
- width: 150
- },
- isSearch:true
- },
- {
- label: 'SIGN',
- field: 'sign',
- sort: 'custom',
- table: {
- width: 120
- },
- },
- {
- label: 'Option',
- field: 'option',
- sort: 'custom',
- table: {
- width: 120
+ componentProps: {
+ disabled:true,
+ value: tenant?.text
+ },
},
},
+ // {
+ // label: 'Counter',
+ // field: 'counter',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // isSearch:true
+ // },
+ // {
+ // label: 'SIGN',
+ // field: 'sign',
+ // sort: 'custom',
+ // table: {
+ // width: 120
+ // },
+ // },
+ // {
+ // label: 'Option',
+ // field: 'option',
+ // sort: 'custom',
+ // table: {
+ // width: 120
+ // },
+ // },
{
- label: 'Lower Lim.',
+ label: 'WMS物料代码',
field: 'lowerLim',
sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'UpperLimit',
- field: 'upperLimit',
- sort: 'custom',
- table: {
+ isSearch: true,
+ table: {
width: 150
},
},
+ // {
+ // label: 'UpperLimit',
+ // field: 'upperLimit',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: 'ITAC',
+ // field: 'itac',
+ // sort: 'custom',
+ // table: {
+ // width: 120
+ // },
+ // },
{
- label: 'ITAC',
- field: 'itac',
- sort: 'custom',
- table: {
- width: 120
- },
- },
- {
- label: 'Type',
+ label: '灯码标签类型',
field: 'type',
sort: 'custom',
- table: {
+ table: {
width: 120
},
+ form: {
+ component: 'Select',
+ componentProps: {
+ options: [{
+ label:'未加密标签',
+ value:'P'
+ },{
+ label:'加密标签',
+ value:'Q'
+ }],
+ }
+ },
+ detail:{
+ valueFilter:(value)=>{
+ if(value=='P'){
+ return `未加密标签`
+ }else if(value=='Q'){
+ return '加密标签'
+ }else{
+ return value
+ }
+ }
+ }
+
},
{
- label: 'Length BC',
+ label: '灯码标签字符总长度',
field: 'lengthBc',
sort: 'custom',
- table: {
+ table: {
width: 150
},
form: {
@@ -91,19 +120,19 @@ export const MesBarCode = useCrudSchemas(reactive([
value: 0
},
},
+ // {
+ // label: 'Pos. mat',
+ // field: 'posMat',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
{
- label: 'Pos. mat',
- field: 'posMat',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'Length mat',
+ label: '客户物料代码字符长度',
field: 'lengthMat',
sort: 'custom',
- table: {
+ table: {
width: 150
},
form: {
@@ -111,76 +140,77 @@ export const MesBarCode = useCrudSchemas(reactive([
value: 0
},
},
+ // {
+ // label: 'Pos. revlv',
+ // field: 'posRevlv',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
{
- label: 'Pos. revlv',
- field: 'posRevlv',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'Part number',
+ label: '客户物料代码',
field: 'partNumber',
sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'Pack Label',
- field: 'packLabel',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'OES-Label',
- field: 'oesLabel',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'Check Rvl',
- field: 'checkRvl',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: 'Days',
- field: 'days',
- sort: 'custom',
- table: {
- width: 120
- },
- form: {
- component: 'InputNumber',
- value: 0
- },
- },
- {
- label: '是否可用',
- field: 'available',
- sort: 'custom',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
+ isSearch: true,
table: {
- width: 120
+ width: 150
},
- form: {
- component: 'Switch',
- value: 'TRUE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
- }
- }
},
+ // {
+ // label: 'Pack Label',
+ // field: 'packLabel',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: 'OES-Label',
+ // field: 'oesLabel',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: 'Check Rvl',
+ // field: 'checkRvl',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // },
+ // {
+ // label: 'Days',
+ // field: 'days',
+ // sort: 'custom',
+ // table: {
+ // width: 120
+ // },
+ // form: {
+ // component: 'InputNumber',
+ // value: 0
+ // },
+ // },
+ // {
+ // label: '是否可用',
+ // field: 'available',
+ // sort: 'custom',
+ // dictType: DICT_TYPE.TRUE_FALSE,
+ // dictClass: 'string',
+ // table: {
+ // width: 120
+ // },
+ // form: {
+ // component: 'Switch',
+ // value: 'TRUE',
+ // componentProps: {
+ // inactiveValue: 'FALSE',
+ // activeValue: 'TRUE'
+ // }
+ // }
+ // },
{
label: '创建时间',
field: 'createTime',
@@ -245,14 +275,14 @@ export const MesBarCode = useCrudSchemas(reactive([
width: 150
}
},
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- table: {
- width: 120
- },
- },
+ // {
+ // label: '备注',
+ // field: 'remark',
+ // sort: 'custom',
+ // table: {
+ // width: 120
+ // },
+ // },
{
label: '操作',
field: 'action',