|
@ -5,6 +5,7 @@ import * as DeptApi from '@/api/system/dept' |
|
|
import * as UserApi from '@/api/system/user' |
|
|
import * as UserApi from '@/api/system/user' |
|
|
import { EquipmentAccounts,EquipmentAccountsRules } from '../equipmentAccounts/equipmentAccounts.data' |
|
|
import { EquipmentAccounts,EquipmentAccountsRules } from '../equipmentAccounts/equipmentAccounts.data' |
|
|
import * as EquipmentAccountsApi from '@/api/eam/equipmentAccounts' |
|
|
import * as EquipmentAccountsApi from '@/api/eam/equipmentAccounts' |
|
|
|
|
|
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier' |
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
@ -19,6 +20,8 @@ export interface User { |
|
|
nickname: string |
|
|
nickname: string |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const equipmentSupplierList = await EquipmentSupplierApi.getEquipmentSupplierNoPage({}) |
|
|
const allDeptList = await DeptApi.getSimpleDeptList() |
|
|
const allDeptList = await DeptApi.getSimpleDeptList() |
|
|
const deptList = ref<Tree[]>([]) // 树形结构
|
|
|
const deptList = ref<Tree[]>([]) // 树形结构
|
|
|
const userList = ref<User[]>([]) |
|
|
const userList = ref<User[]>([]) |
|
@ -136,13 +139,55 @@ export const EquipmentSigning = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '供应商编号', |
|
|
label: '供应商编号', |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true |
|
|
isSearch: false, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
options: equipmentSupplierList, |
|
|
|
|
|
optionsAlias: { |
|
|
|
|
|
labelField: 'name', |
|
|
|
|
|
valueField: 'number' |
|
|
|
|
|
}, |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '供应商编号',
|
|
|
|
|
|
// field: 'supplierName',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// isSearch: false,
|
|
|
|
|
|
// isForm: true,
|
|
|
|
|
|
// isDetail: false,
|
|
|
|
|
|
// isTable: false,
|
|
|
|
|
|
// isTableForm: false,
|
|
|
|
|
|
// form: {
|
|
|
|
|
|
// component: 'Input',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// disabled: true
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '供应商联系人', |
|
|
label: '供应商联系人', |
|
|
field: 'supplierPeople', |
|
|
field: 'supplierPeople', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true |
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
options: userList.value, |
|
|
|
|
|
optionsAlias: { |
|
|
|
|
|
labelField: 'nickname', |
|
|
|
|
|
valueField: 'id' |
|
|
|
|
|
}, |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '供应商联系方式', |
|
|
label: '供应商联系方式', |
|
@ -296,34 +341,34 @@ export const EquipmentSigning = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
// {
|
|
|
label: '产线编号', |
|
|
// label: '产线编号',
|
|
|
field: 'lineCode', |
|
|
// field: 'lineCode',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
isSearch: true, |
|
|
// isSearch: true,
|
|
|
form: { |
|
|
// form: {
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
// componentProps: {
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
// searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
multiple:true, |
|
|
// multiple:true,
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
// searchField: 'code', // 查询弹窗赋值字段
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
// searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
// searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
// searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
// searchCondition: [{
|
|
|
key:'workshopCode', |
|
|
// key:'workshopCode',
|
|
|
value:'workshopCode', |
|
|
// value:'workshopCode',
|
|
|
message: '请填写车间代码!', |
|
|
// message: '请填写车间代码!',
|
|
|
isMainValue: true |
|
|
// isMainValue: true
|
|
|
},{ |
|
|
// },{
|
|
|
key: 'available', |
|
|
// key: 'available',
|
|
|
value: 'TRUE', |
|
|
// value: 'TRUE',
|
|
|
isMainValue: false |
|
|
// isMainValue: false
|
|
|
}] |
|
|
// }]
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
// {
|
|
|
// {
|
|
|
// label: '工序编号',
|
|
|
// label: '工序编号',
|
|
|
// field: 'processCode',
|
|
|
// field: 'processCode',
|
|
|