diff --git a/src/App.vue b/src/App.vue index 71d547a..8a9e0b1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -35,7 +35,8 @@ export default { diff --git a/src/views/modules/pms/order/config.js b/src/views/modules/pms/order/config.js index e9bdaec..7c13a35 100644 --- a/src/views/modules/pms/order/config.js +++ b/src/views/modules/pms/order/config.js @@ -150,9 +150,15 @@ export default function () { plain: true } }, - + ], 'finished': [ + { + label: '订单号', + prop: 'code', + input: true, + bind: { placeholder: '请输入订单号' } + }, { // 查询 button: { @@ -160,88 +166,10 @@ export default function () { name: "查询", }, }, - { - label: '订单号', - prop: 'code', - input: true, - bind: { placeholder: '请输入订单号' } - }, ] })[type] - // const headFormFields = [ - // { - // label: '订单号', - // prop: 'code', - // input: true, - // bind: { placeholder: '请输入订单号' } - // }, - // // { - // // label: '子订单号', - // // prop: 'cate', - // // input: true, - // // bind: { placeholder: '请输入子订单号', rules: [{ type: 'number', message: '请输入整数', trigger: 'blur', transform: val => Number(val) }] } - // // }, - // // { - // // label: "配方", - // // prop: "bomId", - // // select: [], - // // fn: () => this.$http.get('/pms/bom/page', { params: { key: '', limit: 999, page: 1 } }), - // // bind: { placeholder: "请选择配方" }, - // // }, - // // { - // // label: '砖型', - // // prop: 'shapeId', - // // select: [], - // // fn: () => this.$http.get('/pms/shape/page', { params: { key: '', limit: 999, page: 1 } }), - // // bind: { placeholder: "请选择砖型" }, - // // }, - // // { - // // label: '工艺', - // // prop: 'techId', - // // select: [], - // // fn: () => this.$http.post('/pms/equipmentTech/pageView', { key: '', shape: '', wsId: 0, limit: 999, page: 1 }), - // // bind: { placeholder: "请选择砖型" }, - // // }, - // // { - // // label: '订单状态', - // // prop: 'types', // 0等待, 1确认, 2生产,3暂停, 4结束, 5接受, 6拒绝 - // // select: [ - // // {label: '等待', value: 0}, - // // {label: '确认', value: 1}, - // // {label: '生产', value: 2}, - // // {label: '暂停', value: 3}, - // // {label: '结束', value: 4}, - // // {label: '接受', value: 5}, - // // {label: '拒绝', value: 6}, - // // ], - // // // fn: () => this.$http.post('/pms/equipmentTech/pageView', { key: '', shape: '', wsId: 0, limit: 999, page: 1 }), - // // bind: { placeholder: "请选择订单状态" }, - // // }, - // { - // button: { - // type: "primary", - // name: "查询", - // }, - // }, - // { - // button: { - // type: "primary", - // name: "新增", - // permission: "", - // }, - // bind: { - // plain: true, - // }, - // }, - // ]; - - /** - * dialog config 有两个版本,一个适用于 DialogWithMenu 组件,另一个适用于 DialogJustForm 组件 - * 适用于 DialogWithMenu 组件的配置示例详见 blenderStep/config.js - * 此为后者的配置: - */ const dictList = JSON.parse(localStorage.getItem("dictList")); const dialogConfigs = { menu: [ @@ -417,3 +345,72 @@ export default function () { }, }; } + + + + // const headFormFields = [ + // { + // label: '订单号', + // prop: 'code', + // input: true, + // bind: { placeholder: '请输入订单号' } + // }, + // // { + // // label: '子订单号', + // // prop: 'cate', + // // input: true, + // // bind: { placeholder: '请输入子订单号', rules: [{ type: 'number', message: '请输入整数', trigger: 'blur', transform: val => Number(val) }] } + // // }, + // // { + // // label: "配方", + // // prop: "bomId", + // // select: [], + // // fn: () => this.$http.get('/pms/bom/page', { params: { key: '', limit: 999, page: 1 } }), + // // bind: { placeholder: "请选择配方" }, + // // }, + // // { + // // label: '砖型', + // // prop: 'shapeId', + // // select: [], + // // fn: () => this.$http.get('/pms/shape/page', { params: { key: '', limit: 999, page: 1 } }), + // // bind: { placeholder: "请选择砖型" }, + // // }, + // // { + // // label: '工艺', + // // prop: 'techId', + // // select: [], + // // fn: () => this.$http.post('/pms/equipmentTech/pageView', { key: '', shape: '', wsId: 0, limit: 999, page: 1 }), + // // bind: { placeholder: "请选择砖型" }, + // // }, + // // { + // // label: '订单状态', + // // prop: 'types', // 0等待, 1确认, 2生产,3暂停, 4结束, 5接受, 6拒绝 + // // select: [ + // // {label: '等待', value: 0}, + // // {label: '确认', value: 1}, + // // {label: '生产', value: 2}, + // // {label: '暂停', value: 3}, + // // {label: '结束', value: 4}, + // // {label: '接受', value: 5}, + // // {label: '拒绝', value: 6}, + // // ], + // // // fn: () => this.$http.post('/pms/equipmentTech/pageView', { key: '', shape: '', wsId: 0, limit: 999, page: 1 }), + // // bind: { placeholder: "请选择订单状态" }, + // // }, + // { + // button: { + // type: "primary", + // name: "查询", + // }, + // }, + // { + // button: { + // type: "primary", + // name: "新增", + // permission: "", + // }, + // bind: { + // plain: true, + // }, + // }, + // ]; diff --git a/src/views/modules/pms/order/index.vue b/src/views/modules/pms/order/index.vue index e624d7a..2e1e784 100644 --- a/src/views/modules/pms/order/index.vue +++ b/src/views/modules/pms/order/index.vue @@ -1,5 +1,5 @@