Browse Source

配置文件修改

master
陈薪名 1 year ago
parent
commit
fbdf4dcabb
  1. 126
      src/utils/disposition/tableColumns.ts

126
src/utils/disposition/tableColumns.ts

@ -1,12 +1,22 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts' import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts'
// import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
// import { h } from 'vue'
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// console.log(12, h(BasicForm))
// const BasicFormType = h(BasicForm).type
// const { formLoading } = BasicFormType.setup
// console.log(12, formLoading)
// BasicFormType.setup.opensearchTable('asnNumber', 'asnNumber')
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
pageSize:10, pageSize:10,
@ -616,6 +626,14 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
table: { table: {
width: 120 width: 120
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
} }
}, },
{ {
@ -3737,6 +3755,14 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '生效时间', label: '生效时间',
@ -10524,7 +10550,18 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '创建者', label: '创建者',
@ -10564,11 +10601,21 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '要货计划单号', label: '要货计划单号',
field: 'ppNumber' field: 'ppNumber',
form:{
componentProps:{
disabled:true,
}
}
}, },
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode' field: 'supplierCode',
form:{
componentProps:{
disabled:true,
}
}
}, },
{ {
label: '单据号', label: '单据号',
@ -10632,7 +10679,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isTable: true, isTable: true,
form: { form: {
value:'NEW', value:'1',
componentProps:{ componentProps:{
disabled:true, disabled:true,
} }
@ -10679,11 +10726,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
table: {
width: 150
},
form:{ form:{
component:'Switch', component:'Switch',
value:requestsettingData.autoCommit, value:requestsettingData.autoCommit,
componentProps:{ componentProps:{
disabled:true, disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
} }
}, },
@ -10694,11 +10746,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
table: {
width: 150
},
form:{ form:{
component:'Switch', component:'Switch',
value:requestsettingData.autoAgree, value:requestsettingData.autoAgree,
componentProps:{ componentProps:{
disabled:true, disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
} }
}, },
@ -10709,11 +10766,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
table: {
width: 150
},
form:{ form:{
component:'Switch', component:'Switch',
value:requestsettingData.autoExecute, value:requestsettingData.autoExecute,
componentProps:{ componentProps:{
disabled:true, disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
} }
}, },
@ -10724,13 +10786,27 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, isTable: true,
table: {
width: 150
},
form:{ form:{
component:'Switch', component:'Switch',
value:requestsettingData.available,
componentProps:{ componentProps:{
disabled:true, disabled:true,
value:requestsettingData.available, inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
} }
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150
}
} }
])) ]))
// 表单校验 // 表单校验
@ -10765,14 +10841,6 @@ export const PurchaseclaimRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '批次',
field: 'batch'
},
{
label: '替代批次',
field: 'altBatch'
},
{ {
label: '订单号', label: '订单号',
field: 'poNumber' field: 'poNumber'
@ -10781,6 +10849,14 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '订单行', label: '订单行',
field: 'poLine' field: 'poLine'
}, },
{
label: '批次',
field: 'batch'
},
{
label: '替代批次',
field: 'altBatch'
},
{ {
label: '原因', label: '原因',
field: 'reason', field: 'reason',
@ -10985,7 +11061,17 @@ export const PurchaseclaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
componentProps:{
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '创建者', label: '创建者',
@ -11065,7 +11151,17 @@ export const PurchaseclaimRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
componentProps:{
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '创建者', label: '创建者',

Loading…
Cancel
Save