| | |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({ |
| | | areaId: "", |
| | | warehouseId: "", |
| | | materielCode: "", |
| | | materielName: "", |
| | | materielDes: "", |
| | |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | | title: "区域", |
| | | title: "物料id", |
| | | required: true, |
| | | field: "areaId", |
| | | type: "string", |
| | | field: "materielId", |
| | | type: "int", |
| | | }, |
| | | { |
| | | title: "物料编号", |
| | |
| | | field: "materielCode", |
| | | type: "string", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "物料名称", |
| | | required: true, |
| | |
| | | type: "string", |
| | | }, |
| | | { |
| | | title: "计量单位", |
| | | title: "物料规格", |
| | | required: true, |
| | | field: "unit", |
| | | field: "materielSpec", |
| | | type: "string", |
| | | }, |
| | | ], |
| | | [ |
| | | |
| | | { |
| | | title: "物料描述", |
| | | field: "materielDes", |
| | | type: "textarea", |
| | | title: "物料基本分类", |
| | | required: true, |
| | | field: "materielType", |
| | | type: "string", |
| | | |
| | | |
| | | }, |
| | | { |
| | | field: "materielSourceType", |
| | | title: "物料属性分类", |
| | | required: true, |
| | | type: "string", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "基本单位", |
| | | required: true, |
| | | field: "materielUnit", |
| | | type: "string", |
| | | }, |
| | | { |
| | | title: "物料状态", |
| | | required: true, |
| | | field: "materielState", |
| | | type: "select", |
| | | data:[{key:'Enable',value:'启用'},{key:'Disable',value:'禁用'}] |
| | | }, |
| | | |
| | | ], |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | materielCode: "", |
| | | materielName: "", |
| | | areaId: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "物料编号", field: "materielCode", type: "like" }, |
| | | { title: "物料名称", field: "materielName", type: "like" }, |
| | | { title: "设备状态", field: "deviceStatus" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "areaId", |
| | | title: "区域主键", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | title: "物料id", |
| | | field: "materielId", |
| | | type: "int", |
| | | width:80, |
| | | align:"left" |
| | | }, |
| | | { |
| | | field: "materielCode", |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "materielDes", |
| | | title: "物料描述", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "cotainerType", |
| | | title: "容器类型", |
| | | field: "materielSpec", |
| | | title: "物料规格", |
| | | type: "string", |
| | | width: 90, |
| | | width: 240, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "packspes", |
| | | title: "包装规格", |
| | | type: "int", |
| | | field: "materielSourceType", |
| | | title: "物料属性分类", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "materielSourceTypeEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "materielType", |
| | | title: "物料基本分类", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | |
| | | }, |
| | | { |
| | | field: "materielUnit", |
| | | title: "基本单位", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "attribute", |
| | | title: "物料属性", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "unit", |
| | | title: "计量单位", |
| | | type: "string", |
| | | field: "materielSize", |
| | | title: "物料尺寸", |
| | | type: "float", |
| | | width: 180, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "validity", |
| | | title: "有效期", |
| | | type: "string", |
| | | field: "materielLength", |
| | | title: "物料长度", |
| | | type: "float", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "safetyStock", |
| | | title: "安全库存", |
| | | type: "string", |
| | | field: "materielThickness", |
| | | title: "物料厚度", |
| | | type: "float", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "materielState", |
| | | title: "物料状态", |
| | | type: "select", |
| | | width: 100, |
| | | bind:{key:"",data: [{key:'Enable',value:'启用'},{key:'Disable',value:'禁用'}] }, |
| | | align: "left", |
| | | }, |
| | | |
| | | { |
| | | field: "creater", |
| | | title: "创建人", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden:true |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | hidden:true |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "备注", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |