diff --git a/src/views/atomViews/ListViewWithHead.vue b/src/views/atomViews/ListViewWithHead.vue index e4b0c75..3c2095b 100644 --- a/src/views/atomViews/ListViewWithHead.vue +++ b/src/views/atomViews/ListViewWithHead.vue @@ -666,10 +666,23 @@ export default { } case "同步": case "全部同步": - this.$http.post(this.urls.syncUrl).then(({ data: res }) => { - console.log("同步", res); - this.$message({ message: res.msg, type: res.code === 0 ? "success" : "error" }); - this.getList(); + this.$confirm("是否同步数据?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then(() => { + this.overlayVisible = true; + this.$http + .post(this.urls.syncUrl) + .then(({ data: res }) => { + console.log("同步", res); + this.$message({ message: res.msg, type: res.code === 0 ? "success" : "error" }); + this.getList(); + this.overlayVisible = false; + }) + .catch((err) => { + this.overlayVisible = false; + }); }); break; } diff --git a/src/views/modules/pms/blenderBatch/config.js b/src/views/modules/pms/blenderBatch/config.js index 72b52e4..b21614b 100644 --- a/src/views/modules/pms/blenderBatch/config.js +++ b/src/views/modules/pms/blenderBatch/config.js @@ -7,11 +7,11 @@ export default function () { const tableProps = [ { type: "index", label: "序号" }, { prop: "batchNo", label: "批次编码" }, - { prop: "batchSize", label: "批次重量 [kg]" }, + { width: 108, prop: "batchSize", label: "批次重量 [kg]" }, { prop: "status", label: "状态" }, // { prop: "startTime", label: "开始时间" }, - { prop: "endTime", label: "结束时间" }, - { prop: "task", label: "任务分类" }, + { prop: "endTime", label: "结束时间", filter: timeFilter }, + { width: 108, prop: "task", label: "任务分类" }, { prop: "blenderCode", label: "混料机" }, // { width: 120, prop: "orderCate", label: "主订单子号" }, // { width: 160, prop: "code", label: "压制订单号" }, @@ -22,10 +22,11 @@ export default function () { // { prop: "goodqty", label: "合格数量" }, // { width: 120, prop: "badqty", label: "不合格数量" }, // { prop: "remark", label: "备注" }, - // { prop: 'version', label: '配方号' }, // { prop: 'status', label: '状态', subcomponent: StatusComponent }, // subcomponent - { prop: "description", label: "详情", subcomponent: TableTextComponent, actionName: 'view-blender-batch-details' }, - { width: 160, prop: "createTime", label: "添加时间", filter: timeFilter }, + { prop: "description", label: "详情", subcomponent: TableTextComponent, actionName: "view-blender-batch-details" }, + { prop: 'bomName', label: '牌号' }, + { prop: 'bomVersion', label: '版本号' }, + // { width: 160, prop: "createTime", label: "添加时间", filter: timeFilter }, { prop: "operations", name: "操作", @@ -36,17 +37,32 @@ export default function () { // 只有 injectRow.task 为手动时,才允许编辑 // { name:"edit", label: "编辑", icon: "edit-outline", enable: injectRow => { return 'task' in injectRow && injectRow.task === 'Manual' } }, // { name: 'delete', icon: 'delete', enable: injectRow => { return 'task' in injectRow && injectRow.task === 'Manual' } }, - + // 只有 injectRow.status 为 waiting 时,才允许编辑 - { name:"edit", label: "编辑", icon: "edit-outline", enable: injectRow => { return 'status' in injectRow && injectRow.status === 'Waiting' } }, - { name: 'delete', icon: 'delete', emitFull: true, promptField: 'batchNo', enable: injectRow => { return 'status' in injectRow && injectRow.status === 'Waiting' } }, - ] + { + name: "edit", + label: "编辑", + icon: "edit-outline", + enable: (injectRow) => { + return "status" in injectRow && injectRow.status === "Waiting"; + }, + }, + { + name: "delete", + icon: "delete", + emitFull: true, + promptField: "batchNo", + enable: (injectRow) => { + return "status" in injectRow && injectRow.status === "Waiting"; + }, + }, + ], }, ]; const headFormFields = [ { - label: '订单批次' + label: "订单批次", }, { button: { diff --git a/src/views/modules/pms/blenderOrder/config.js b/src/views/modules/pms/blenderOrder/config.js index 77309ea..08d0d18 100644 --- a/src/views/modules/pms/blenderOrder/config.js +++ b/src/views/modules/pms/blenderOrder/config.js @@ -7,11 +7,11 @@ export default function () { const tableProps = [ { type: "index", label: "序号" }, // { prop: "kilnCode", label: "窑炉" }, - { width: 160, prop: "orderCode", label: "主订单号" }, + { width: 128, prop: "orderCode", label: "主订单号" }, { width: 60, prop: "orderCate", label: "子号" }, - { width: 160, prop: "code", label: "混料订单号" }, + { width: 128, prop: "code", label: "混料订单号" }, { - width: 60, + width: 80, prop: "percent", label: "进度", filter: (val) => (val !== null && val !== undefined ? val + " %" : "-"), @@ -25,9 +25,10 @@ export default function () { // { prop: "startTime", label: "开始时间" }, // { prop: "shapeCode", label: "砖型" }, { prop: "bomCode", label: "配方" }, + { prop: "bomName", label: "牌号" }, + { width: 60, prop: "ai", label: "版本" }, { width: 120, prop: "qty", label: "混料总量 [kg]" }, { width: 120, prop: "comqty", label: "已完成量 [kg]" }, - { width: 60, prop: "ai", label: "版本" }, { prop: "blenderCode", label: "混料机" }, { width: 160, prop: "createTime", label: "添加时间", filter: timeFilter }, // { width: 120, prop: "badqty", label: "不合格数量" }, diff --git a/src/views/modules/pms/bomTechAndFiring/config.js b/src/views/modules/pms/bomTechAndFiring/config.js index d6001f0..67ee4c5 100644 --- a/src/views/modules/pms/bomTechAndFiring/config.js +++ b/src/views/modules/pms/bomTechAndFiring/config.js @@ -11,7 +11,7 @@ export default function () { // { prop: "createTime", label: "添加时间", filter: timeFilter }, { prop: "techCode", label: "烧制曲线" }, { prop: "description", label: "详情", subcomponent: TableTextComponent, emitFullData: true }, - // { prop: "remark", label: "备注" }, + { prop: "techRemark", label: "烧制曲线备注" }, { prop: "operations", name: "操作", diff --git a/src/views/modules/pms/carHistory/components/ListViewWithHead.vue b/src/views/modules/pms/carHistory/components/ListViewWithHead.vue index 060c456..4707127 100644 --- a/src/views/modules/pms/carHistory/components/ListViewWithHead.vue +++ b/src/views/modules/pms/carHistory/components/ListViewWithHead.vue @@ -508,7 +508,7 @@ export default { } } else if (typeof cond === "object") { Object.keys(cond).forEach((key) => { - this.cachedSearchCondition[key] = cond[key]; + this.cachedSearchCondition[key] = payload[key] ? payload[key] : cond[key]; }); } }); diff --git a/src/views/modules/pms/carHistory/config.js b/src/views/modules/pms/carHistory/config.js index 9e461ee..71ea583 100644 --- a/src/views/modules/pms/carHistory/config.js +++ b/src/views/modules/pms/carHistory/config.js @@ -18,7 +18,7 @@ export default function () { prop: "operations", name: "操作", fixed: "right", - width: 150, + width: 180, subcomponent: TableOperaionComponent, options: [ { name: "temperature", label: "烧制温度", }, @@ -29,15 +29,24 @@ export default function () { ]; const headFormFields = [ - // { - // prop: 'code', - // label: "窑车号", - // input: true, - // default: { value: "" }, - // bind: { - // placeholder: '请输入窑车号' - // } - // }, + { + input: true, + prop: 'code', + label: "窑车号", + default: { value: "" }, + bind: { + placeholder: '请输入窑车号' + } + }, + { + input: true, + prop: 'orderCode', + label: "订单号", + default: { value: "" }, + bind: { + placeholder: '请输入订单号' + } + }, { timerange: true, prop: "timerange", diff --git a/src/views/modules/pms/carHistory/index.vue b/src/views/modules/pms/carHistory/index.vue index aeac545..bdd77fd 100644 --- a/src/views/modules/pms/carHistory/index.vue +++ b/src/views/modules/pms/carHistory/index.vue @@ -4,10 +4,9 @@ :head-config="headFormConfigs" :dialog-configs="dialogConfigs" :car-payload-dialog-configs="carPayloadDialogConfigs" - :listQueryExtra="[{ code }]" + :listQueryExtra="[{ code, orderCode: '' }]" attach-list-query-data="code" - :trigger-update="triggerUpdateKey" - /> + :trigger-update="triggerUpdateKey" />