Browse Source

弹层限制条件添加

master
李胜楠 1 year ago
parent
commit
bd220d97c1
  1. 7
      src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts
  2. 7
      src/views/wms/basicDataManage/factoryModeling/process/process.data.ts
  3. 7
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts
  4. 22
      src/views/wms/basicDataManage/strategySetting/configurationsetting/configurationsetting.data.ts
  5. 2
      src/views/wms/basicDataManage/strategySetting/rule/index.vue
  6. 36
      src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts

7
src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts

@ -67,7 +67,12 @@ export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题 searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类 searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法 searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法
searchCondition: [{
key:'warehouseCode',
value:'warehouseCode',
isMainValue: true
}]
} }
} }
}, },

7
src/views/wms/basicDataManage/factoryModeling/process/process.data.ts

@ -78,7 +78,12 @@ export const Process = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题 searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类 searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法 searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
key:'workshopCode',
value:'workshopCode',
isMainValue: true
}]
} }
} }
}, },

7
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -82,7 +82,12 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题 searchTitle: '生产线信息', // 查询弹窗标题
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类 searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法 searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
key:'workshopCode',
value:'workshopCode',
isMainValue: true
}]
} }
} }
}, },

22
src/views/wms/basicDataManage/strategySetting/configurationsetting/configurationsetting.data.ts

@ -15,7 +15,6 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150,
fixed: 'left' fixed: 'left'
}, },
}, },
@ -24,18 +23,12 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
field: 'configurationCode', field: 'configurationCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '配置名称', label: '配置名称',
field: 'configurationName', field: 'configurationName',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '数据类型', label: '数据类型',
@ -44,33 +37,21 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '值范围', label: '值范围',
field: 'valueScope', field: 'valueScope',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '关联到', label: '关联到',
field: 'relatedTo', field: 'relatedTo',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '描述', label: '描述',
field: 'description', field: 'description',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '必填', label: '必填',
@ -79,9 +60,6 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',

2
src/views/wms/basicDataManage/strategySetting/rule/index.vue

@ -99,7 +99,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'wms:rule:create' }), // // defaultButtons.defaultAddBtn({ hasPermi: 'wms:rule:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'wms:rule:import' }), // defaultButtons.defaultImportBtn({ hasPermi: 'wms:rule:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'wms:rule:export' }), // defaultButtons.defaultExportBtn({ hasPermi: 'wms:rule:export' }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //

36
src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts

@ -11,7 +11,6 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
field: 'strategyCode', field: 'strategyCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150,
fixed: 'left' fixed: 'left'
}, },
isSearch:true isSearch:true
@ -20,9 +19,6 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
label: '优先级', label: '优先级',
field: 'priority', field: 'priority',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -34,46 +30,34 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
label: '代码', label: '代码',
field: 'code', field: 'code',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch:true isSearch:true
}, },
{ {
label: '名称', label: '名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch:true isSearch:true
}, },
{ {
label: '条件', label: '条件',
field: 'condition', field: 'condition',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '配置', label: '配置',
field: 'configuration', field: 'configuration',
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
}, // {
{ // label: '操作',
label: '操作', // field: 'action',
field: 'action', // isDetail: false,
isDetail: false, // isForm: false ,
isForm: false , // table: {
table: { // width: 150,
width: 150, // fixed: 'right'
fixed: 'right' // }
} // }
}
])) ]))
//表单校验 //表单校验

Loading…
Cancel
Save