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', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
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', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题
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', // 查询弹窗赋值字段
searchTitle: '生产线信息', // 查询弹窗标题
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,
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
},
@ -24,18 +23,12 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
field: 'configurationCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '配置名称',
field: 'configurationName',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '数据类型',
@ -44,33 +37,21 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '值范围',
field: 'valueScope',
sort: 'custom',
table: {
width: 150
},
},
{
label: '关联到',
field: 'relatedTo',
sort: 'custom',
table: {
width: 150
},
},
{
label: '描述',
field: 'description',
sort: 'custom',
table: {
width: 150
},
},
{
label: '必填',
@ -79,9 +60,6 @@ export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',

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

@ -99,7 +99,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'wms:rule:create' }), //
// defaultButtons.defaultAddBtn({ hasPermi: 'wms:rule:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'wms:rule:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'wms:rule:export' }), //
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',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch:true
@ -20,9 +19,6 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
label: '优先级',
field: 'priority',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
@ -34,46 +30,34 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
label: '代码',
field: 'code',
sort: 'custom',
table: {
width: 150
},
isSearch:true
},
{
label: '名称',
field: 'name',
sort: 'custom',
table: {
width: 150
},
isSearch:true
},
{
label: '条件',
field: 'condition',
sort: 'custom',
table: {
width: 150
},
},
{
label: '配置',
field: 'configuration',
sort: 'custom',
table: {
width: 150
},
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
}
}
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// isForm: false ,
// table: {
// width: 150,
// fixed: 'right'
// }
// }
]))
//表单校验

Loading…
Cancel
Save