Browse Source

配置文件修改

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

128
src/utils/disposition/tableColumns.ts

@ -1,12 +1,22 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
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'
const userStore = useUserStore()
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 = {
pageSize:10,
@ -616,7 +626,15 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
table: {
width: 120
}
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '生效时间',
@ -3737,6 +3755,14 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '生效时间',
@ -10524,7 +10550,18 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true
isTable: true,
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '创建者',
@ -10564,11 +10601,21 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '要货计划单号',
field: 'ppNumber'
field: 'ppNumber',
form:{
componentProps:{
disabled:true,
}
}
},
{
label: '供应商代码',
field: 'supplierCode'
field: 'supplierCode',
form:{
componentProps:{
disabled:true,
}
}
},
{
label: '单据号',
@ -10632,7 +10679,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
isTable: true,
form: {
value:'NEW',
value:'1',
componentProps:{
disabled:true,
}
@ -10679,11 +10726,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
value:requestsettingData.autoCommit,
componentProps:{
disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
@ -10694,11 +10746,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
value:requestsettingData.autoAgree,
componentProps:{
disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
@ -10709,11 +10766,16 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
value:requestsettingData.autoExecute,
componentProps:{
disabled:true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
@ -10724,13 +10786,27 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isSearch: false,
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
value:requestsettingData.available,
componentProps:{
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}
*/
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '批次',
field: 'batch'
},
{
label: '替代批次',
field: 'altBatch'
},
{
label: '订单号',
field: 'poNumber'
@ -10781,6 +10849,14 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '订单行',
field: 'poLine'
},
{
label: '批次',
field: 'batch'
},
{
label: '替代批次',
field: 'altBatch'
},
{
label: '原因',
field: 'reason',
@ -10985,7 +11061,17 @@ export const PurchaseclaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
componentProps:{
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '创建者',
@ -11065,7 +11151,17 @@ export const PurchaseclaimRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true
isTable: true,
table: {
width: 150
},
form:{
component:'Switch',
componentProps:{
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '创建者',

Loading…
Cancel
Save