diff --git a/src/views/modules/pms/blenderOrder/components/ListViewWithHead.vue b/src/views/modules/pms/blenderOrder/components/ListViewWithHead.vue new file mode 100644 index 0000000..f4cecfd --- /dev/null +++ b/src/views/modules/pms/blenderOrder/components/ListViewWithHead.vue @@ -0,0 +1,313 @@ + + + + + + diff --git a/src/views/modules/pms/blenderOrder/components/edit-dialog.vue b/src/views/modules/pms/blenderOrder/components/edit-dialog.vue new file mode 100644 index 0000000..dcc6b00 --- /dev/null +++ b/src/views/modules/pms/blenderOrder/components/edit-dialog.vue @@ -0,0 +1,311 @@ + + + + + diff --git a/src/views/modules/pms/blenderOrder/config.js b/src/views/modules/pms/blenderOrder/config.js index d59dd5d..0d79697 100644 --- a/src/views/modules/pms/blenderOrder/config.js +++ b/src/views/modules/pms/blenderOrder/config.js @@ -11,7 +11,11 @@ export default function () { { prop: "orderCode", label: "主订单号" }, { width: 120, prop: "orderCate", label: "主订单子号" }, { width: 160, prop: "code", label: "混料订单号" }, - { prop: "statusDictValue", label: "订单状态", filter: (val) => (val !== null && val !== undefined ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝"][val] : "-"), }, + { + prop: "statusDictValue", + label: "订单状态", + filter: (val) => (val !== null && val !== undefined ? ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝"][val] : "-"), + }, // { prop: "startTime", label: "开始时间" }, // { prop: "shapeCode", label: "砖型" }, { prop: "bomCode", label: "配方" }, @@ -31,10 +35,10 @@ export default function () { width: 180, subcomponent: TableOperaionComponent, options: [ - { name: 'edit-blender-order', label: '编辑' }, - { name: 'view-batch', label: '查看批次', color: '#ff8000' }, - { name: 'detach', label: '下发', color: '#099' }, - ] // , url: '/pms/trans/pressDeli' }] + { name: "edit", label: "编辑", emitFull: true }, + { name: "view-batch", label: "查看批次", color: "#ff8000" }, + { name: "detach", label: "下发", color: "#099" }, + ], // , url: '/pms/trans/pressDeli' }] // options: ["copy", "edit", { name: "delete", emitFull: true, permission: "pms:blenderStep:delete" }], }, ]; @@ -67,15 +71,6 @@ export default function () { // placeholder: "请输入配方号", // }, // }, - // { - // prop: 'bom', - // label: '配方号', - // input: true, - // default: { value: '' }, - // bind: { - // placeholder: '请输入配方号' - // } - // }, { button: { type: "primary", @@ -91,6 +86,37 @@ export default function () { // }, ]; + const dialogConfigs = { + form: { + rows: [ + [ + { + forceDisabled: true, + prop: 'code', + label: '混料订单号' + }, + ], + [ + { + select: true, + label: "混料机", + prop: "blender", + options: [], + optionLabelProp: 'code', + fetchData: () => this.$http.get('/pms/equipment/list', { params: { workSequenceName: '混料工序' } }), + rules: { required: true, message: "必填项不能为空", trigger: "blur" }, + elparams: { clearable: true, filterable: true, placeholder: "请选择混料机" }, + }, + ], + ], + operations: [ + { name: "add", label: "保存", type: "primary", permission: "", showOnEdit: false }, + { name: "update", label: "更新", type: "primary", permission: "", showOnEdit: true }, + // { name: "reset", label: "重置", type: "warning", showAlways: true }, + ] + }, + }; + // const dialogConfigs = { // extraIds: { wsId: 3 }, // 工艺管理里面的相关模块的 dialogWithMenu 需要额外的工序 id // menu: [ @@ -215,7 +241,7 @@ export default function () { // }; return { - // dialogConfigs, + dialogConfigs, tableConfig: { table: null, // 此处可省略,el-table 上的配置项 column: tableProps, // el-column-item 上的配置项 @@ -229,6 +255,7 @@ export default function () { page: "/pms/blenderOrder/pageView", detach: "/pms/trans/blenderDeli", pageIsPostApi: true, // 使用post接口来获取page数据,极少用,目前基本上只有工艺管理模块里在用 + changeBlender: '/pms/order/changeBlender' // subase: "/pms/equipmentTechParam", // subpage: "/pms/equipmentTechParam/page", // copyUrl: "/pms/equipmentTech/copy", diff --git a/src/views/modules/pms/blenderOrder/index.vue b/src/views/modules/pms/blenderOrder/index.vue index 2451fad..6f01574 100644 --- a/src/views/modules/pms/blenderOrder/index.vue +++ b/src/views/modules/pms/blenderOrder/index.vue @@ -9,10 +9,10 @@