diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js index 0951985a..045a2190 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js @@ -535,9 +535,8 @@ export default { if (item.meta.isTop) { // 批量删除 try { - await ElMessageBox.confirm("删除", "提示", { + await ElMessageBox.confirm(format("确认删除选中的%s行数据吗?", rows.length), "提示", { type: "warning", - message: format("确认删除选中的%s行数据吗?", rows.length), }); const response = await request( url, @@ -561,9 +560,8 @@ export default { } else { // 单个删除 try { - await ElMessageBox.confirm("删除", "提示", { + await ElMessageBox.confirm(format("确认删除当前行数据吗?", rows[0]), "提示", { type: "warning", - message: format("确认删除当前行数据吗?", rows[0]), }); await request(url, null, { method: config.edit.deleteMethod }); ElMessage({ diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js index 41586761..b8c925af 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js @@ -122,7 +122,6 @@ export default function () { table: { schema: schema, }, - edit: { detailsUrl, createUrl, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js index 84149e1a..ce588c53 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/input/bbac_se_detail_service.js @@ -1,51 +1,111 @@ -import version from "../../version.js"; - const schema = { title: "JIS发运数据", type: "object", properties: { - version, - shippingDate: { + wmsBillNum: { + title: "发货单号", + type: "string", + }, + num: { + title: "单据编号", + type: "string", + }, + billTime: { title: "发货时间", type: "string", input: "datetime", }, - wmsBillNum: { - title: "发运单号", + oper: { + title: "发货人", + type: "string", + }, + orderNum: { + title: "排序单号", + type: "string", + }, + seq: { + title: "订单序号", + type: "string", + }, + realCode: { + title: "实际生产码", + type: "string", + }, + vinCode: { + title: "订单生产码", + type: "string", + }, + codeType: { + title: "生产码类型", + type: "string", + }, + realPartCode: { + title: "实际零件号", type: "string", }, - lu: { + partCode: { title: "零件号", type: "string", }, - pn: { - title: "生产号", + batch: { + title: "批次", type: "string", }, - keyCode: { - title: "组合键值(LU+PN)", + mesConfigCode: { + title: "MES配置码", type: "string", }, - qty: { - title: "数量", - type: "number", + fromLoc: { + title: "来源库位", + type: "string", }, - seqNumber: { - title: "日顺序号", + toLoc: { + title: "目标库位", type: "string", }, - assemblyCode: { - title: "小总成号", + refVinCode: { + title: "参照订单生产码", type: "string", }, - injectionCode: { - title: "注塑码", + billCharacter: { + title: "单据性质", type: "string", }, - beginDate: { - title: "订单时间", + refBillNum: { + title: "发货关联单号", + type: "string", + }, + erpToLoc: { + title: "Erp目标库位", + type: "string", + }, + origiCode: { + title: "原生产码", + type: "string", + }, + remark: { + title: "备注", + type: "string", + }, + uniqueCode: { + title: "塑件唯一码", + type: "string", + }, + pjsNum: { + title: "PJS顺序号", + type: "string", + }, + matchNumber: { + title: "虚拟小总成", + type: "string", + }, + deliverCode: { + title: "发货条码", + type: "string", + }, + position: { + title: "客户位置", type: "string", - input: "datetime", }, }, }; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js index 9b22c3b3..d7bb45fc 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/input/hbpo_se_detail_service.js @@ -4,48 +4,110 @@ const schema = { title: "JIS发运数据", type: "object", properties: { - version, - shippingDate: { + wmsBillNum: { + title: "发货单号", + type: "string", + }, + num: { + title: "单据编号", + type: "string", + }, + billTime: { title: "发货时间", type: "string", input: "datetime", }, - wmsBillNum: { - title: "发运单号", + oper: { + title: "发货人", + type: "string", + }, + orderNum: { + title: "排序单号", + type: "string", + }, + seq: { + title: "订单序号", + type: "string", + }, + realCode: { + title: "实际生产码", + type: "string", + }, + vinCode: { + title: "订单生产码", + type: "string", + }, + codeType: { + title: "生产码类型", + type: "string", + }, + realPartCode: { + title: "实际零件号", type: "string", }, - lu: { + partCode: { title: "零件号", type: "string", }, - pn: { - title: "生产号", + batch: { + title: "批次", type: "string", }, - keyCode: { - title: "组合键值(LU+PN)", + mesConfigCode: { + title: "MES配置码", type: "string", }, - qty: { - title: "数量", - type: "number", + fromLoc: { + title: "来源库位", + type: "string", }, - seqNumber: { - title: "日顺序号", + toLoc: { + title: "目标库位", type: "string", }, - assemblyCode: { - title: "小总成号", + refVinCode: { + title: "参照订单生产码", type: "string", }, - injectionCode: { - title: "注塑码", + billCharacter: { + title: "单据性质", type: "string", }, - beginDate: { - title: "订单时间", + refBillNum: { + title: "发货关联单号", + type: "string", + }, + erpToLoc: { + title: "Erp目标库位", + type: "string", + }, + origiCode: { + title: "原生产码", + type: "string", + }, + remark: { + title: "备注", + type: "string", + }, + uniqueCode: { + title: "塑件唯一码", + type: "string", + }, + pjsNum: { + title: "PJS顺序号", + type: "string", + }, + matchNumber: { + title: "虚拟小总成", + type: "string", + }, + deliverCode: { + title: "发货条码", + type: "string", + }, + position: { + title: "客户位置", type: "string", - input: "datetime", }, }, }; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js index f501aca5..e8fa348b 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js @@ -78,7 +78,6 @@ export default function () { table: { schema: schema, }, - edit: { importUrl, exportUrl, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js index afd243f5..bf48003a 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js @@ -15,10 +15,13 @@ export default { const onCommand = async (item, rows, load) => { if (item.path === "open-version" || item.path === "closed-version") { try { - await ElMessageBox.confirm("删除", "提示", { - type: "warning", - message: format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length), - }); + await ElMessageBox.confirm( + format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length), + "提示", + { + type: "warning", + } + ); const url = `${config.baseUrl}/${item.path}`; await request( url, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/user.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/user.js index e6df244e..837804b7 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/user.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/user.js @@ -3,7 +3,7 @@ import html from "html"; import useConfig from "../../models/user.js"; import request from "../../request/index.js"; import { format } from "../../utils/index.js"; -import { ElMessage } from "element-plus"; +import { ElMessage, ElMessageBox } from "element-plus"; export default { components: { AppList }, @@ -17,10 +17,30 @@ export default { if (item.path === "%s/reset-password") { const url = format(item.path, rows[0].id); await request(`base/user/${url}`, null, { method: item.meta.method }); - ElMessage({ - type: "info", - message: format("用户%s的密码已经成功重置为123456", rows[0].userName), - }); + try { + await ElMessageBox.confirm(format("是否重置用户%s密码", rows[0].userName), "提示", { + type: "warning", + }); + await ElMessage({ + type: "info", + message: "密码已经成功重置为123456", + }); + const url = `${config.baseUrl}/${item.path}`; + await request( + url, + rows.map((o) => o.id), + { method: "POST" } + ); + console.log(context); + await load(); + } catch (error) { + if (error === "cancel") { + ElMessage({ + type: "info", + message: "操作取消", + }); + } + } } }; return { config, onCommand };