diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
index 24a7112c..93d71b6a 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
@@ -29,7 +29,7 @@ export default {
-
+
({
value: o[props.schema.value],
label: o[props.schema.label],
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/contrast/bj_pub_sa_detail_jobservice.js
similarity index 100%
rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/.js
rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/contrast/bj_pub_sa_detail_jobservice.js
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/contrast/bj_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/contrast/bj_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a6375733
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/contrast/bj_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/code-setting";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_detail_service.js
new file mode 100644
index 00000000..58a4a599
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_service.js
new file mode 100644
index 00000000..79c2422d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_sa_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_se_detail_service.js
new file mode 100644
index 00000000..bd9b82c6
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/input/bj_pub_se_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ version: {
+ title: "版本",
+ type: "string",
+ },
+ shippingDate: {
+ title: "发货时间",
+ type: "string",
+ input: "datetime",
+ },
+ wmsBillNum: {
+ title: "发运单号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ keyCode: {
+ title: "组合键值(LU+PN)",
+ type: "string",
+ },
+ qty: {
+ title: "数量",
+ type: "number",
+ },
+ seqNumber: {
+ title: "日顺序号",
+ type: "string",
+ },
+ assemblyCode: {
+ title: "小总成号",
+ type: "string",
+ },
+ injectionCode: {
+ title: "注塑码",
+ type: "string",
+ },
+ beginDate: {
+ title: "订单时间",
+ type: "string",
+ input: "datetime",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_se_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+// const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+// const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ // deleteUrl,
+ importUrl,
+ exportUrl,
+ // deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_detail_service.js
new file mode 100644
index 00000000..ffb30b0b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_detail_service.js
@@ -0,0 +1,126 @@
+const schema = {
+ title: "可结算单明细",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "int",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version: {
+ title: "版本",
+ type: "int",
+ },
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ settleInvGroupNumDate: {
+ title: "发票组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ materialDesc: {
+ title: "物料描述",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNumy: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/hbpo_can_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号明细",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "billNum",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ detailsMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_service.js
new file mode 100644
index 00000000..122cf94b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_ba_service.js
@@ -0,0 +1,128 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ state2,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_ba_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_can_sa_service.js
new file mode 100644
index 00000000..ae1fd61e
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_can_sa_service.js
@@ -0,0 +1,100 @@
+import version from "../../version.js";
+import state from "../../state.js";
+
+const schema = {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ version,
+ billNum: {
+ title: "结算单据",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ state,
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_can_sa_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_not_sa_service.js
new file mode 100644
index 00000000..40ca61a5
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_not_sa_service.js
@@ -0,0 +1,126 @@
+import version from "../../version.js";
+
+const schema = {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_not_sa_service";
+const queryUrl = `${baseUrl}/detail-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_pd_service.js
new file mode 100644
index 00000000..cc8a6143
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bj/settlement/bj_pub_pd_service.js
@@ -0,0 +1,103 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "寄售库库存扣减审批",
+ type: "object",
+ properties: {
+ version,
+ state3,
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ site: {
+ title: "地点",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_pd_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a6375733
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_pub_sa_detail_jobservice.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/code-setting";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a6375733
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/contrast/in_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/code-setting";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_detail_service.js
new file mode 100644
index 00000000..58a4a599
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_service.js
new file mode 100644
index 00000000..79c2422d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_sa_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_se_detail_service.js
new file mode 100644
index 00000000..bd9b82c6
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/input/in_pub_se_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ version: {
+ title: "版本",
+ type: "string",
+ },
+ shippingDate: {
+ title: "发货时间",
+ type: "string",
+ input: "datetime",
+ },
+ wmsBillNum: {
+ title: "发运单号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ keyCode: {
+ title: "组合键值(LU+PN)",
+ type: "string",
+ },
+ qty: {
+ title: "数量",
+ type: "number",
+ },
+ seqNumber: {
+ title: "日顺序号",
+ type: "string",
+ },
+ assemblyCode: {
+ title: "小总成号",
+ type: "string",
+ },
+ injectionCode: {
+ title: "注塑码",
+ type: "string",
+ },
+ beginDate: {
+ title: "订单时间",
+ type: "string",
+ input: "datetime",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_se_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+// const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+// const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ // deleteUrl,
+ importUrl,
+ exportUrl,
+ // deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_ba_service.js
new file mode 100644
index 00000000..122cf94b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_ba_service.js
@@ -0,0 +1,128 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ state2,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_ba_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_detail_service.js
new file mode 100644
index 00000000..ffb30b0b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_detail_service.js
@@ -0,0 +1,126 @@
+const schema = {
+ title: "可结算单明细",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "int",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version: {
+ title: "版本",
+ type: "int",
+ },
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ settleInvGroupNumDate: {
+ title: "发票组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ materialDesc: {
+ title: "物料描述",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNumy: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/hbpo_can_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号明细",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "billNum",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ detailsMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_service.js
new file mode 100644
index 00000000..ae1fd61e
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_can_sa_service.js
@@ -0,0 +1,100 @@
+import version from "../../version.js";
+import state from "../../state.js";
+
+const schema = {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ version,
+ billNum: {
+ title: "结算单据",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ state,
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_can_sa_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_not_sa_service.js
new file mode 100644
index 00000000..40ca61a5
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_not_sa_service.js
@@ -0,0 +1,126 @@
+import version from "../../version.js";
+
+const schema = {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_not_sa_service";
+const queryUrl = `${baseUrl}/detail-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_pd_service.js
new file mode 100644
index 00000000..cc8a6143
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/in/settlement/in_pub_pd_service.js
@@ -0,0 +1,103 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "寄售库库存扣减审批",
+ type: "object",
+ properties: {
+ version,
+ state3,
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ site: {
+ title: "地点",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_pd_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoice/invoice_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoice/invoice_service.js
new file mode 100644
index 00000000..2a0fb11a
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoice/invoice_service.js
@@ -0,0 +1,107 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "财务管理审核",
+ type: "object",
+ properties: {
+ version,
+ state2,
+ realnvBillNum: {
+ title: "实际纸质发票号",
+ type: "string",
+ },
+ amt: {
+ title: "未税金额",
+ type: "decimal",
+ },
+ taxAmt: {
+ title: "税后金额",
+ type: "decimal",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ fileName: {
+ title: "开票Excel文件",
+ type: "string",
+ },
+ businessType: {
+ title: "业务类别",
+ type: "EnumBusinessType",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/invoice_service";
+const queryUrl = `${baseUrl}/main-query`;
+const importUrl = `${baseUrl}/invoice_service-upload-excel-import`;
+const queryMethod = "POST";
+const importMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "财务管理审核",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ importUrl,
+ importMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/bbac_sa_detail_jobservice.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
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 b416d87a..bd9b82c6 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
@@ -53,11 +53,11 @@ const schema = {
const baseUrl = "settleaccount/bbac_se_detail_service";
const queryUrl = `${baseUrl}/get-list`;
-const deleteUrl = `${baseUrl}/delete-list`;
+// const deleteUrl = `${baseUrl}/delete-list`;
const importUrl = `${baseUrl}/import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
-const deleteMethod = "POST";
+// const deleteMethod = "POST";
const importMethod = "POST";
const exportMethod = "POST";
@@ -120,10 +120,10 @@ export default function () {
schema: schema,
},
edit: {
- deleteUrl,
+ // deleteUrl,
importUrl,
exportUrl,
- deleteMethod,
+ // deleteMethod,
importMethod,
exportMethod,
schema: schema,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js
index 51771cc1..122cf94b 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js
@@ -1,5 +1,8 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
const schema = {
- title: "不可结算单",
+ title: "商务审批",
type: "object",
properties: {
settleBillNum: {
@@ -10,10 +13,8 @@ const schema = {
title: "工厂地点",
type: "string",
},
- version: {
- title: "版本",
- type: "int",
- },
+ version,
+ state2,
price: {
title: "单价",
type: "decimal",
@@ -51,12 +52,8 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_ba_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
-const createUrl = `${baseUrl}/create`;
-const updateUrl = `${baseUrl}/update/%s`;
-const deleteUrl = `${baseUrl}/delete-list`;
-const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
@@ -69,7 +66,7 @@ export default function () {
method: queryMethod,
hasFilter: true,
schema: {
- title: "不可结算单",
+ title: "商务审批",
type: "object",
properties: {
filters: {
@@ -96,8 +93,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js
index 136711b5..90d96069 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_detail_service.js
@@ -54,10 +54,8 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_can_sa_detail_service";
-const queryUrl = `${baseUrl}/get-list`;
-const detailsUrl = `${baseUrl}/get/%s`;
+const queryUrl = `${baseUrl}/detail-query`;
const queryMethod = "POST";
-const detailsMethod = "POST";
export default function () {
return {
@@ -118,8 +116,6 @@ export default function () {
schema: schema,
},
edit: {
- detailsUrl,
- detailsMethod,
schema: schema,
},
};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_service.js
index 72052f47..ae1fd61e 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_can_sa_service.js
@@ -1,11 +1,11 @@
+import version from "../../version.js";
+import state from "../../state.js";
+
const schema = {
title: "发票分组号",
type: "object",
properties: {
- version: {
- title: "期间",
- type: "int",
- },
+ version,
billNum: {
title: "结算单据",
type: "string",
@@ -14,10 +14,7 @@ const schema = {
title: "关联结算单号",
type: "string",
},
- state: {
- title: "状态",
- type: "string",
- },
+ state,
invGroupNum: {
title: "发票分组号",
type: "string",
@@ -26,12 +23,8 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_can_sa_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
-const createUrl = `${baseUrl}/create`;
-const updateUrl = `${baseUrl}/update/%s`;
-const deleteUrl = `${baseUrl}/delete-list`;
-const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
@@ -71,8 +64,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
@@ -100,6 +93,7 @@ export default function () {
exportUrl,
detailsMethod,
exportMethod,
+
schema: schema,
},
};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_not_sa_service.js
index ae8c1a3b..40ca61a5 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_not_sa_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_not_sa_service.js
@@ -1,3 +1,5 @@
+import version from "../../version.js";
+
const schema = {
title: "不可结算单",
type: "object",
@@ -10,10 +12,7 @@ const schema = {
title: "工厂地点",
type: "string",
},
- version: {
- title: "版本",
- type: "int",
- },
+ version,
price: {
title: "单价",
type: "decimal",
@@ -51,7 +50,7 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_not_sa_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/detail-query`;
const detailsUrl = `${baseUrl}/get/%s`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
@@ -92,8 +91,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_pd_service.js
index 8356d93b..9169500b 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_pd_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_pd_service.js
@@ -1,11 +1,12 @@
+import version from "../../version.js";
+import {state2,state3} from "../../state.js";
+
const schema = {
title: "寄售库库存扣减审批",
type: "object",
properties: {
- version: {
- title: "期间",
- type: "int",
- },
+ version,
+ state3,
billNum: {
title: "结算单号",
type: "string",
@@ -26,12 +27,8 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_pd_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
-const createUrl = `${baseUrl}/create`;
-const updateUrl = `${baseUrl}/update/%s`;
-const deleteUrl = `${baseUrl}/delete-list`;
-const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
@@ -71,8 +68,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/first_hbpo_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/first_hbpo_sa_detail_service.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/first_hbpo_sa_detail_service.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/hbpo_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/hbpo_sa_detail_service.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/hbpo_sa_detail_service.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/second_hbpo_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/second_hbpo_sa_detail_service.js
new file mode 100644
index 00000000..b8c925af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/contrast/second_hbpo_sa_detail_service.js
@@ -0,0 +1,137 @@
+const schema = {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ year: {
+ title: "年度",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ period: {
+ title: "期间",
+ type: "string",
+ hidden: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ version: {
+ title: "版本",
+ type: "string",
+ input: "month",
+ format: "YYYYMM",
+ showForList: true,
+ watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}",
+ rules: [
+ {
+ required: true,
+ trigger: "blur",
+ },
+ ],
+ },
+ state: {
+ title: "状态",
+ type: "boolean",
+ showForList: true,
+ default: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/centralized-control";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+
+export default function () {
+ return {
+ baseUrl,
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "期间设置",
+ type: "object",
+ properties: {
+ filters: {
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "year",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ schema: schema,
+ },
+ };
+}
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 c1f75dfe..4be68061 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
@@ -53,11 +53,11 @@ const schema = {
const baseUrl = "settleaccount/hbpo_se_detail_service";
const queryUrl = `${baseUrl}/get-list`;
-const deleteUrl = `${baseUrl}/delete-list`;
+// const deleteUrl = `${baseUrl}/delete-list`;
const importUrl = `${baseUrl}/import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
-const deleteMethod = "POST";
+// const deleteMethod = "POST";
const importMethod = "POST";
const exportMethod = "POST";
@@ -120,10 +120,10 @@ export default function () {
schema: schema,
},
edit: {
- deleteUrl,
+ // deleteUrl,
importUrl,
exportUrl,
- deleteMethod,
+ // deleteMethod,
importMethod,
exportMethod,
schema: schema,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js
index 72d58e0a..39b28e44 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js
@@ -1,7 +1,11 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
const schema = {
title: "不可结算单",
type: "object",
properties: {
+ state2,
settleBillNum: {
title: "关联结算单号",
type: "string",
@@ -10,10 +14,7 @@ const schema = {
title: "工厂地点",
type: "string",
},
- version: {
- title: "版本",
- type: "int",
- },
+ version,
price: {
title: "单价",
type: "decimal",
@@ -51,12 +52,8 @@ const schema = {
};
const baseUrl = "settleaccount/hbpo_ba_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
-const createUrl = `${baseUrl}/create`;
-const updateUrl = `${baseUrl}/update/%s`;
-const deleteUrl = `${baseUrl}/delete-list`;
-const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
@@ -96,8 +93,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_service.js
index 936824cf..e22d081a 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_can_sa_service.js
@@ -1,11 +1,12 @@
+import version from "../../version.js";
+import state from "../../state.js";
+
const schema = {
title: "可结算单",
type: "object",
properties: {
- version: {
- title: "期间",
- type: "int",
- },
+ version,
+ state,
billNum: {
title: "结算单据",
type: "string",
@@ -14,10 +15,6 @@ const schema = {
title: "关联结算单号",
type: "string",
},
- state: {
- title: "状态",
- type: "string",
- },
invGroupNum: {
title: "发票分组号",
type: "string",
@@ -26,12 +23,8 @@ const schema = {
};
const baseUrl = "settleaccount/hbpo_can_sa_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
-const createUrl = `${baseUrl}/create`;
-const updateUrl = `${baseUrl}/update/%s`;
-const deleteUrl = `${baseUrl}/delete-list`;
-const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const detailsMethod = "POST";
@@ -71,8 +64,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_not_sa_service.js
index ae8c1a3b..eb2e743e 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_not_sa_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_not_sa_service.js
@@ -1,3 +1,5 @@
+import version from "../../version.js";
+
const schema = {
title: "不可结算单",
type: "object",
@@ -10,10 +12,7 @@ const schema = {
title: "工厂地点",
type: "string",
},
- version: {
- title: "版本",
- type: "int",
- },
+ version,
price: {
title: "单价",
type: "decimal",
@@ -51,7 +50,7 @@ const schema = {
};
const baseUrl = "settleaccount/bbac_not_sa_service";
-const queryUrl = `${baseUrl}/get-list`;
+const queryUrl = `${baseUrl}/main-query`;
const detailsUrl = `${baseUrl}/get/%s`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
@@ -92,8 +91,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_pd_service.js
index 559b53bb..0fc79ca2 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_pd_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_pd_service.js
@@ -1,11 +1,12 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
const schema = {
title: "寄售库库存扣减审批",
type: "object",
properties: {
- version: {
- title: "期间",
- type: "int",
- },
+ version,
+ state3,
billNum: {
title: "结算单号",
type: "string",
@@ -71,8 +72,8 @@ export default function () {
default: [
{
logic: "and",
- column: "billNum",
- action: "like",
+ column: "version",
+ action: "equal",
value: null,
readOnly: true,
},
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a6375733
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_pub_sa_detail_jobservice.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/code-setting";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a6375733
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/contrast/jit_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/code-setting";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "通用代码",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_jit_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_jit_pub_sa_service.js
new file mode 100644
index 00000000..79c2422d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_jit_pub_sa_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_sa_detail_service.js
new file mode 100644
index 00000000..58a4a599
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_sa_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ project: {
+ title: "项目",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ value: {
+ title: "值",
+ type: "string",
+ readOnly: true,
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ ],
+ },
+ description: {
+ title: "描述",
+ type: "string",
+ input: "textarea",
+ showForList: true,
+ rules: [
+ {
+ required: true,
+ },
+ { max: 60 },
+ ],
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const createUrl = `${baseUrl}/create`;
+const updateUrl = `${baseUrl}/update/%s`;
+const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/code-setting-upload-excel-import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const createMethod = "POST";
+const updateMethod = "POST";
+const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS结算数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "project",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ createUrl,
+ updateUrl,
+ deleteUrl,
+ importUrl,
+ exportUrl,
+ detailsMethod,
+ createMethod,
+ updateMethod,
+ deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_se_detail_service.js
new file mode 100644
index 00000000..bd9b82c6
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/input/jit_pub_se_detail_service.js
@@ -0,0 +1,132 @@
+const schema = {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ version: {
+ title: "版本",
+ type: "string",
+ },
+ shippingDate: {
+ title: "发货时间",
+ type: "string",
+ input: "datetime",
+ },
+ wmsBillNum: {
+ title: "发运单号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ keyCode: {
+ title: "组合键值(LU+PN)",
+ type: "string",
+ },
+ qty: {
+ title: "数量",
+ type: "number",
+ },
+ seqNumber: {
+ title: "日顺序号",
+ type: "string",
+ },
+ assemblyCode: {
+ title: "小总成号",
+ type: "string",
+ },
+ injectionCode: {
+ title: "注塑码",
+ type: "string",
+ },
+ beginDate: {
+ title: "订单时间",
+ type: "string",
+ input: "datetime",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_se_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+// const deleteUrl = `${baseUrl}/delete-list`;
+const importUrl = `${baseUrl}/import`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+// const deleteMethod = "POST";
+const importMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "JIS发运数据",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ // deleteUrl,
+ importUrl,
+ exportUrl,
+ // deleteMethod,
+ importMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_detail_service.js
new file mode 100644
index 00000000..ffb30b0b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_detail_service.js
@@ -0,0 +1,126 @@
+const schema = {
+ title: "可结算单明细",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "int",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version: {
+ title: "版本",
+ type: "int",
+ },
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ settleInvGroupNumDate: {
+ title: "发票组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ materialDesc: {
+ title: "物料描述",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNumy: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/hbpo_can_sa_detail_service";
+const queryUrl = `${baseUrl}/get-list`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号明细",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "billNum",
+ action: "like",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ detailsMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_service.js
new file mode 100644
index 00000000..122cf94b
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_ba_service.js
@@ -0,0 +1,128 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ state2,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_ba_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "商务审批",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_can_sa_service.js
new file mode 100644
index 00000000..ae1fd61e
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_can_sa_service.js
@@ -0,0 +1,100 @@
+import version from "../../version.js";
+import state from "../../state.js";
+
+const schema = {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ version,
+ billNum: {
+ title: "结算单据",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ state,
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_can_sa_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "发票分组号",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_not_sa_service.js
new file mode 100644
index 00000000..40ca61a5
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_not_sa_service.js
@@ -0,0 +1,126 @@
+import version from "../../version.js";
+
+const schema = {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ site: {
+ title: "工厂地点",
+ type: "string",
+ },
+ version,
+ price: {
+ title: "单价",
+ type: "decimal",
+ },
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+
+ settleDate: {
+ title: "结算日期",
+ type: "DateTime",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ lu: {
+ title: "零件号",
+ type: "string",
+ },
+ pn: {
+ title: "生产号",
+ type: "string",
+ },
+ qty: {
+ title: "结算数量",
+ type: "decimal",
+ },
+ groupNum: {
+ title: "结算分组号",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_not_sa_service";
+const queryUrl = `${baseUrl}/detail-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_pd_service.js
new file mode 100644
index 00000000..cc8a6143
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jit/settlement/jit_pub_pd_service.js
@@ -0,0 +1,103 @@
+import version from "../../version.js";
+import { state2, state3 } from "../../state.js";
+
+const schema = {
+ title: "寄售库库存扣减审批",
+ type: "object",
+ properties: {
+ version,
+ state3,
+ billNum: {
+ title: "结算单号",
+ type: "string",
+ },
+ settleBillNum: {
+ title: "关联结算单号",
+ type: "string",
+ },
+ invGroupNum: {
+ title: "发票分组号",
+ type: "string",
+ },
+ site: {
+ title: "地点",
+ type: "string",
+ },
+ },
+};
+
+const baseUrl = "settleaccount/bbac_pd_service";
+const queryUrl = `${baseUrl}/main-query`;
+const detailsUrl = `${baseUrl}/get/%s`;
+const exportUrl = `${baseUrl}/export`;
+const queryMethod = "POST";
+const detailsMethod = "POST";
+const exportMethod = "POST";
+
+export default function () {
+ return {
+ query: {
+ url: queryUrl,
+ method: queryMethod,
+ hasFilter: true,
+ schema: {
+ title: "不可结算单",
+ type: "object",
+ properties: {
+ filters: {
+ title: "项目",
+ type: "array",
+ hidden: true,
+ items: {
+ type: "object",
+ properties: {
+ logic: {
+ type: "int",
+ },
+ column: {
+ type: "string",
+ },
+ action: {
+ type: "int",
+ },
+ value: {
+ type: "string",
+ },
+ },
+ },
+ default: [
+ {
+ logic: "and",
+ column: "version",
+ action: "equal",
+ value: null,
+ readOnly: true,
+ },
+ ],
+ },
+ skipCount: {
+ hidden: true,
+ default: 0,
+ },
+ maxResultCount: {
+ hidden: true,
+ default: 10,
+ },
+ sorting: {
+ hidden: true,
+ },
+ },
+ },
+ },
+ table: {
+ schema: schema,
+ },
+ edit: {
+ detailsUrl,
+ exportUrl,
+ detailsMethod,
+ exportMethod,
+ schema: schema,
+ },
+ };
+}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js
new file mode 100644
index 00000000..f6108ea5
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js
@@ -0,0 +1,14 @@
+const options = [
+ { value: 0, label: "未结状态" },
+ { value: 1, label: "已开票" },
+ { value: 2, label: "商务已审核" },
+ { value: 3, label: "财务已审核" },
+ { value: 4, label: "客户已收票" },
+ { value: 5, label: "已扣减" },
+];
+const state = { title: "状态", type: "string", input: "select", options };
+const state2 = Object.assign(Object.assign({}, state), { options: options.filter((a) => a.value > 0) });
+const state3 = Object.assign(Object.assign({}, state), { options: options.filter((a) => a.value > 3) });
+
+export default state;
+export { state2, state3 };
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
new file mode 100644
index 00000000..794e4987
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
@@ -0,0 +1,8 @@
+export default {
+ title: "期间",
+ type: "string",
+ input: "select",
+ url: "settleaccount/centralized-control/get-all",
+ value: "version",
+ label: "version",
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
index 2907dc4b..23a19515 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
@@ -108,15 +108,15 @@ export default [
isTop: true,
},
},
- {
- path: "delete",
- meta: {
- type: "button",
- title: "删除",
- icon: "file",
- isTop: true,
- },
- },
+ // {
+ // path: "delete",
+ // meta: {
+ // type: "button",
+ // title: "删除",
+ // icon: "file",
+ // isTop: true,
+ // },
+ // },
{
path: "import",
meta: {
@@ -195,7 +195,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -213,7 +213,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -223,7 +223,7 @@ export default [
],
},
{
- path: "bbac_sa_detail_jobservice",
+ path: "first_bbac_sa_detail_jobservice",
meta: {
type: "page",
title: "EDI、发运与结算比对",
@@ -240,7 +240,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -258,7 +258,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -268,7 +268,7 @@ export default [
],
},
{
- path: "bbac_sa_detail_jobservice",
+ path: "second_bbac_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算数据二次比对",
@@ -285,7 +285,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -303,7 +303,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -313,7 +313,7 @@ export default [
],
},
{
- path: "bbac_sa_detail_jobservice",
+ path: "third_bbac_sa_detail_jobservice",
meta: {
type: "page",
title: "买单件发运与结算数据三次比对",
@@ -330,7 +330,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -348,7 +348,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -502,10 +502,10 @@ export default [
},
},
{
- path: "generateInvoice ",
+ path: "received ",
meta: {
type: "button",
- title: "生成发票数据",
+ title: "客户已收票",
icon: "file",
isTop: true,
pattern: "paged",
@@ -674,15 +674,15 @@ export default [
isTop: true,
},
},
- {
- path: "delete",
- meta: {
- type: "button",
- title: "删除",
- icon: "file",
- isTop: true,
- },
- },
+ // {
+ // path: "delete",
+ // meta: {
+ // type: "button",
+ // title: "删除",
+ // icon: "file",
+ // isTop: true,
+ // },
+ // },
{
path: "import",
meta: {
@@ -761,7 +761,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -779,7 +779,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -789,7 +789,7 @@ export default [
],
},
{
- path: "hbpo_sa_detail_jobservice",
+ path: "first_hbpo_sa_detail_jobservice",
meta: {
type: "page",
title: "EDI、发运与结算比对",
@@ -806,7 +806,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -824,7 +824,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -834,7 +834,7 @@ export default [
],
},
{
- path: "hbpo_sa_detail_jobservice",
+ path: "second_hbpo_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算数据二次比对",
@@ -851,7 +851,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -869,7 +869,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -1023,10 +1023,10 @@ export default [
},
},
{
- path: "generateInvoice ",
+ path: "received ",
meta: {
type: "button",
- title: "生成发票数据",
+ title: "客户已收票",
icon: "file",
isTop: true,
pattern: "paged",
@@ -1104,7 +1104,7 @@ export default [
},
children: [
{
- path: "jit_pub_sa_service",
+ path: "jit_jit_pub_sa_service",
meta: {
type: "page",
title: "结算数据",
@@ -1132,7 +1132,7 @@ export default [
],
},
{
- path: "pub_sa_detail_service",
+ path: "jit_pub_sa_detail_service",
meta: {
type: "page",
title: "结算数据明细",
@@ -1180,7 +1180,7 @@ export default [
],
},
{
- path: "pub_se_detail_service",
+ path: "jit_pub_se_detail_service",
meta: {
type: "page",
title: "发运数据",
@@ -1196,15 +1196,15 @@ export default [
isTop: true,
},
},
- {
- path: "delete",
- meta: {
- type: "button",
- title: "删除",
- icon: "file",
- isTop: true,
- },
- },
+ // {
+ // path: "delete",
+ // meta: {
+ // type: "button",
+ // title: "删除",
+ // icon: "file",
+ // isTop: true,
+ // },
+ // },
{
path: "import",
meta: {
@@ -1237,7 +1237,7 @@ export default [
},
children: [
{
- path: "pub_sa_detail_jobservice",
+ path: "jit_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算比对",
@@ -1254,7 +1254,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -1272,7 +1272,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -1282,7 +1282,7 @@ export default [
],
},
{
- path: "pub_sa_detail_jobservice",
+ path: "jit_second_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算二次比对",
@@ -1299,7 +1299,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -1317,7 +1317,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -1337,7 +1337,7 @@ export default [
},
children: [
{
- path: "pub_can_sa_service",
+ path: "jit_pub_can_sa_service",
meta: {
type: "page",
title: "可结算单",
@@ -1376,7 +1376,7 @@ export default [
],
},
{
- path: "pub_not_sa_service",
+ path: "jit_pub_not_sa_service",
meta: {
type: "page",
title: "不可结算单",
@@ -1415,7 +1415,7 @@ export default [
],
},
{
- path: "pub_ba_service",
+ path: "jit_pub_ba_service",
meta: {
type: "page",
title: "商务审批",
@@ -1451,10 +1451,10 @@ export default [
},
},
{
- path: "generateInvoice ",
+ path: "received ",
meta: {
type: "button",
- title: "生成发票数据",
+ title: "客户已收票",
icon: "file",
isTop: true,
pattern: "paged",
@@ -1463,7 +1463,7 @@ export default [
],
},
{
- path: "pub_pd_service",
+ path: "jit_pub_pd_service",
meta: {
type: "page",
title: "寄售库库存扣减审批",
@@ -1532,7 +1532,7 @@ export default [
},
children: [
{
- path: "pub_sa_service",
+ path: "bj_pub_sa_service",
meta: {
type: "page",
title: "结算数据",
@@ -1560,7 +1560,7 @@ export default [
],
},
{
- path: "pub_sa_detail_service",
+ path: "bj_pub_sa_detail_service",
meta: {
type: "page",
title: "结算数据明细",
@@ -1608,7 +1608,7 @@ export default [
],
},
{
- path: "pub_se_detail_service",
+ path: "bj_pub_se_detail_service",
meta: {
type: "page",
title: "发运数据",
@@ -1624,15 +1624,15 @@ export default [
isTop: true,
},
},
- {
- path: "delete",
- meta: {
- type: "button",
- title: "删除",
- icon: "file",
- isTop: true,
- },
- },
+ // {
+ // path: "delete",
+ // meta: {
+ // type: "button",
+ // title: "删除",
+ // icon: "file",
+ // isTop: true,
+ // },
+ // },
{
path: "import",
meta: {
@@ -1665,7 +1665,7 @@ export default [
},
children: [
{
- path: "pub_sa_detail_jobservice",
+ path: "bj_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算比对",
@@ -1682,7 +1682,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -1700,7 +1700,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -1710,7 +1710,7 @@ export default [
],
},
{
- path: "pub_sa_detail_jobservice",
+ path: "bj_second_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算二次比对",
@@ -1727,7 +1727,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -1745,7 +1745,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -1765,7 +1765,7 @@ export default [
},
children: [
{
- path: "pub_can_sa_service",
+ path: "bj_pub_can_sa_service",
meta: {
type: "page",
title: "可结算单",
@@ -1804,7 +1804,7 @@ export default [
],
},
{
- path: "pub_not_sa_service",
+ path: "bj_pub_not_sa_service",
meta: {
type: "page",
title: "不可结算单",
@@ -1831,7 +1831,7 @@ export default [
},
},
{
- path: "generateSettlementOrder",
+ path: "bj_generateSettlementOrder",
meta: {
type: "button",
title: "生成可结算单",
@@ -1843,7 +1843,7 @@ export default [
],
},
{
- path: "pub_ba_service",
+ path: "bj_pub_ba_service",
meta: {
type: "page",
title: "商务审批",
@@ -1879,10 +1879,10 @@ export default [
},
},
{
- path: "generateInvoice ",
+ path: "received ",
meta: {
type: "button",
- title: "生成发票数据",
+ title: "客户已收票",
icon: "file",
isTop: true,
pattern: "paged",
@@ -1891,7 +1891,7 @@ export default [
],
},
{
- path: "pub_pd_service",
+ path: "bj_pub_pd_service",
meta: {
type: "page",
title: "寄售库库存扣减审批",
@@ -1960,7 +1960,7 @@ export default [
},
children: [
{
- path: "pub_sa_service",
+ path: "in_pub_sa_service",
meta: {
type: "page",
title: "结算数据",
@@ -1988,7 +1988,7 @@ export default [
],
},
{
- path: "pub_sa_detail_service",
+ path: "in_pub_sa_detail_service",
meta: {
type: "page",
title: "结算数据明细",
@@ -2036,7 +2036,7 @@ export default [
],
},
{
- path: "pub_se_detail_service",
+ path: "in_pub_se_detail_service",
meta: {
type: "page",
title: "发运数据",
@@ -2052,15 +2052,15 @@ export default [
isTop: true,
},
},
- {
- path: "delete",
- meta: {
- type: "button",
- title: "删除",
- icon: "file",
- isTop: true,
- },
- },
+ // {
+ // path: "delete",
+ // meta: {
+ // type: "button",
+ // title: "删除",
+ // icon: "file",
+ // isTop: true,
+ // },
+ // },
{
path: "import",
meta: {
@@ -2093,7 +2093,7 @@ export default [
},
children: [
{
- path: "pub_sa_detail_jobservice",
+ path: "in_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算比对",
@@ -2110,7 +2110,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -2128,7 +2128,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -2138,7 +2138,7 @@ export default [
],
},
{
- path: "pub_sa_detail_jobservice",
+ path: "in_second_pub_sa_detail_jobservice",
meta: {
type: "page",
title: "发运与结算二次比对",
@@ -2155,7 +2155,7 @@ export default [
},
},
{
- path: "exportEDIJob",
+ path: "export",
meta: {
type: "button",
title: "生成对比",
@@ -2173,7 +2173,7 @@ export default [
},
},
{
- path: "download",
+ path: "export",
meta: {
type: "button",
title: "下载",
@@ -2193,7 +2193,7 @@ export default [
},
children: [
{
- path: "pub_can_sa_service",
+ path: "in_pub_can_sa_service",
meta: {
type: "page",
title: "可结算单",
@@ -2232,7 +2232,7 @@ export default [
],
},
{
- path: "pub_not_sa_service",
+ path: "in_pub_not_sa_service",
meta: {
type: "page",
title: "不可结算单",
@@ -2271,7 +2271,7 @@ export default [
],
},
{
- path: "pub_ba_service",
+ path: "in_pub_ba_service",
meta: {
type: "page",
title: "商务审批",
@@ -2307,10 +2307,10 @@ export default [
},
},
{
- path: "generateInvoice ",
+ path: "received ",
meta: {
type: "button",
- title: "生成发票数据",
+ title: "客户已收票",
icon: "file",
isTop: true,
pattern: "paged",
@@ -2319,7 +2319,7 @@ export default [
],
},
{
- path: "pub_pd_service",
+ path: "in_pub_pd_service",
meta: {
type: "page",
title: "寄售库库存扣减审批",
@@ -2372,15 +2372,15 @@ export default [
},
{
- path: "inspect",
+ path: "invoice",
meta: {
type: "group",
- title: "商务审核",
+ title: "财务审核",
icon: "folder",
},
children: [
{
- path: "invoice_grp_dto",
+ path: "invoice_service",
meta: {
type: "page",
title: "财务管理审核",
@@ -2437,6 +2437,66 @@ export default [
},
],
},
+ {
+ path: "invoice_wait_detail",
+ meta: {
+ type: "page",
+ title: "待开票明细",
+ icon: "file",
+ isHidden: true,
+ },
+ children: [
+ {
+ path: "query",
+ meta: {
+ type: "button",
+ title: "查询",
+ icon: "file",
+ isTop: true,
+ },
+ },
+ ],
+ },
+ {
+ path: "invoice_map_group",
+ meta: {
+ type: "page",
+ title: "发票和结算分组对应关系表",
+ icon: "file",
+ isHidden: true,
+ },
+ children: [
+ {
+ path: "query",
+ meta: {
+ type: "button",
+ title: "查询",
+ icon: "file",
+ isTop: true,
+ },
+ },
+ ],
+ },
+ {
+ path: "invoice_not_settle",
+ meta: {
+ type: "page",
+ title: "不可开票明细清单",
+ icon: "file",
+ isHidden: true,
+ },
+ children: [
+ {
+ path: "query",
+ meta: {
+ type: "button",
+ title: "查询",
+ icon: "file",
+ isTop: true,
+ },
+ },
+ ],
+ },
],
},
//实际采购成本,不知道起什么名
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..b477004c
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/contrast/bj_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..a3013f33
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/contrast/bj_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/contrast/bj_second_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_detail_service.js
new file mode 100644
index 00000000..c863a32f
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/input/bj_pub_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_service.js
new file mode 100644
index 00000000..a16c14c5
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/input/bj_pub_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_se_detail_service.js
new file mode 100644
index 00000000..e032d433
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/input/bj_pub_se_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/input/bj_pub_se_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_ba_service.js
new file mode 100644
index 00000000..16a4e382
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_ba_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/settlement/bj_pub_ba_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_detail_service.js
new file mode 100644
index 00000000..7d04bb09
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/settlement/bj_pub_ba_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_service.js
new file mode 100644
index 00000000..65a85f8f
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_can_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/settlement/bj_pub_can_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_not_sa_service.js
new file mode 100644
index 00000000..1b7de229
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_not_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/settlement/bj_pub_not_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_pd_service.js
new file mode 100644
index 00000000..da8ebd2c
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/bj/settlement/bj_pub_pd_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/bj/settlement/bj_pub_pd_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..46e906ed
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/contrast/in_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..e8dfc9e8
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/contrast/in_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/contrast/in_second_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_detail_service.js
new file mode 100644
index 00000000..8f548a69
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/input/in_pub_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_service.js
new file mode 100644
index 00000000..0c0332ca
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/input/in_pub_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_se_detail_service.js
new file mode 100644
index 00000000..90551432
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/input/in_pub_se_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/input/in_pub_se_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_ba_service.js
new file mode 100644
index 00000000..dbb4b3b4
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_ba_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/settlement/in_pub_ba_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_detail_service.js
new file mode 100644
index 00000000..79269fcd
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index";
+import html from "html";
+import useConfig from "../../../models/in/settlement/in_pub_can_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_service.js
new file mode 100644
index 00000000..a531acde
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_can_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/settlement/in_pub_can_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_not_sa_service.js
new file mode 100644
index 00000000..48373bf8
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_not_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/settlement/in_pub_not_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_pd_service.js
new file mode 100644
index 00000000..cd329d38
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/in/settlement/in_pub_pd_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/in/settlement/in_pub_pd_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/invoice/invoice_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/invoice/invoice_service.js
new file mode 100644
index 00000000..960e2f78
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/invoice/invoice_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/invoice/invoice_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/bbac_sa_detail_jobservice.js
index 2e3946c3..b64dfd9e 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/bbac_sa_detail_jobservice.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/bbac_sa_detail_jobservice.js
@@ -1,6 +1,6 @@
import AppList from "../../../components/list/index.js";
import html from "html";
-import useConfig from "../../../models/bbac_sa_detail_jobservice.js";
+import useConfig from "../../../models/jis-bbac/contrast/bbac_sa_detail_jobservice.js";
export default {
components: { AppList },
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..909d17c2
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-bbac/contrast/first_bbac_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..0bbd59e3
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-bbac/contrast/second_bbac_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js
new file mode 100644
index 00000000..7f7ede4f
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-bbac/contrast/third_bbac_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/first_hbpo_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/first_hbpo_sa_detail_jobservice.js
new file mode 100644
index 00000000..745c0abc
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/first_hbpo_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-hbpo/contrast/first_hbpo_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/hbpo_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/hbpo_sa_detail_jobservice.js
new file mode 100644
index 00000000..f4af77ab
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/hbpo_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-hbpo/contrast/hbpo_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/second_hbpo_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/second_hbpo_sa_detail_jobservice.js
new file mode 100644
index 00000000..32bd33ad
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jis-hbpo/contrast/second_hbpo_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jis-hbpo/contrast/second_hbpo_sa_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..71900cc7
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/contrast/jit_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_second_pub_sa_detail_jobservice.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_second_pub_sa_detail_jobservice.js
new file mode 100644
index 00000000..ea571880
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/contrast/jit_second_pub_sa_detail_jobservice.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/contrast/jit_second_pub_sa_detail_jobservice.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_jit_pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_jit_pub_sa_service.js
new file mode 100644
index 00000000..1bb5136d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_jit_pub_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/input/jit_jit_pub_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_sa_detail_service.js
new file mode 100644
index 00000000..0876d320
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/input/jit_pub_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_se_detail_service.js
new file mode 100644
index 00000000..6834a838
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/input/jit_pub_se_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/input/jit_pub_se_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_ba_service.js
new file mode 100644
index 00000000..dbfe7954
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_ba_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/settlement/jit_pub_ba_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_detail_service.js
new file mode 100644
index 00000000..c3d9b615
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_detail_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/settlement/jit_pub_ba_detail_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_service.js
new file mode 100644
index 00000000..59f77a0d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_can_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/settlement/jit_pub_can_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_not_sa_service.js
new file mode 100644
index 00000000..970a017d
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_not_sa_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/settlement/jit_pub_not_sa_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_pd_service.js
new file mode 100644
index 00000000..e736a16e
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/settlement/jit_pub_pd_service.js
@@ -0,0 +1,15 @@
+import AppList from "../../../components/list/index.js";
+import html from "html";
+import useConfig from "../../../models/jit/settlement/jit_pub_pd_service.js";
+
+export default {
+ components: { AppList },
+ template: html``,
+ setup() {
+ const config = useConfig();
+ const onCommand = async (item, rows) => {
+ console.log(item.path, item, rows);
+ };
+ return { config, onCommand };
+ },
+};
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/ExportReports/ErrorExportDto.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/ExportReports/ErrorExportDto.cs
index db7b7c64..3c760e82 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/ExportReports/ErrorExportDto.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/ExportReports/ErrorExportDto.cs
@@ -1,4 +1,4 @@
-// 闻荫智慧工厂管理套件
+// 闻荫智慧工厂管理套件
// Copyright (c) 闻荫科技 www.ccwin-in.com
using Magicodes.ExporterAndImporter.Core;
@@ -11,6 +11,90 @@ using Win.Sfs.Shared.Enums;
namespace Win.Sfs.SettleAccount.ExportReports
{
+ ///
+ /// 错误信息说明
+ ///
+ public class ERR_EXP_DTO : EntityDto
+ {
+
+ public ERR_EXP_DTO()
+ {
+ }
+
+ public ERR_EXP_DTO(string version, string customCode, string type, string model, string itemCode, string itemDesc, string message, string remark)
+ {
+ Version = version;
+ CustomCode = customCode;
+ Type = type;
+ Model = model;
+ ItemCode = itemCode;
+ ItemDesc = itemDesc;
+ Message = message;
+ Remark = remark;
+ }
+
+ ///
+ /// 版本
+ ///
+ [Display(Name = "版本")]
+ public string Version { set; get; }
+
+
+ ///
+ /// 客户代码
+ ///
+
+ [Display(Name = "客户代码")]
+ public string CustomCode { get; set; }
+
+ ///
+ /// 影响类型
+ ///
+
+ [Display(Name = "错误类型")]
+ public string Type { get; set; }
+
+ ///
+ /// 问题模块
+ ///
+
+ [Display(Name = "问题模块")]
+ public string Model { get; set; }
+
+ ///
+ /// 物料号
+ ///
+ [Display(Name = "物料号")]
+
+ public string ItemCode { get; set; }
+
+ ///
+ /// 物料描述
+ ///
+ [Display(Name = "物料描述")]
+
+ public string ItemDesc { get; set; }
+
+ ///
+ /// 错误信息
+ ///
+
+ [Display(Name = "提醒信息")]
+ public string Message { get; set; }
+
+ ///
+ /// 金额差异
+ ///
+
+ [Display(Name = "备注")]
+ public string Remark { get; set; }
+
+
+ }
+
+
+
+
///
/// 错误信息说明
///
@@ -91,4 +175,4 @@ namespace Win.Sfs.SettleAccount.ExportReports
}
-}
\ No newline at end of file
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BASE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BASE_SERVICE.cs
index 7b37206c..94b1b5b3 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BASE_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BASE_SERVICE.cs
@@ -1,4 +1,4 @@
-using Shouldly;
+using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -23,7 +23,7 @@ namespace Win.Sfs.SettleAccount.Bases
{
- protected readonly IExcelImportAppService _excelImportService;
+ private readonly IExcelImportAppService _excelImportService;
protected readonly ISnowflakeIdGenerator _snowflakeIdGenerator;
@@ -50,7 +50,7 @@ namespace Win.Sfs.SettleAccount.Bases
///
///
///
- protected async Task ExportErrorReportAsync(List errorList, string fileName = "")
+ protected async Task ExportErrorReportAsync(List errorList, string fileName = "")
{
//没有信息返回成功
if (errorList == null || errorList.Count == 0)
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
index 4252da2d..1b0313a8 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
@@ -1,7 +1,10 @@
-using Magicodes.ExporterAndImporter.Core;
+using EFCore.BulkExtensions;
+using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Csv;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.SignalR;
+using NPOI.SS.Formula.Functions;
using SettleAccount.Bases;
using SettleAccount.Domain.BQ;
using Shouldly;
@@ -19,6 +22,7 @@ using Win.Abp.Snowflakes;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.SettleAccount.ExcelImporter;
using Win.Sfs.SettleAccount.ExportReports;
using Win.Sfs.Shared.RepositoryBase;
@@ -31,6 +35,12 @@ namespace Win.Sfs.SettleAccount.Bases
private readonly INormalEfCoreRepository _wRepository;
private readonly INormalEfCoreRepository _sRepository;
private readonly INormalEfCoreRepository _mRepository;
+ private readonly CAN_SA_MNG _pubMng;
+ private readonly CAN_SA_MNG _bbacMng;
+ private readonly CAN_SA_MNG _hbpoMng;
+ private readonly INV_MNG _invMng;
+
+
//private readonly INormalEfCoreRepository _detailRepository;
private readonly IExcelImportAppService _excelImportService;
@@ -40,8 +50,11 @@ namespace Win.Sfs.SettleAccount.Bases
INormalEfCoreRepository wRepository,
INormalEfCoreRepository sRepository,
INormalEfCoreRepository mRepository,
- IExcelImportAppService excelImportService
-
+ IExcelImportAppService excelImportService,
+ CAN_SA_MNG pubMng,
+ CAN_SA_MNG bbacMng,
+ CAN_SA_MNG hbpoMng,
+ INV_MNG invMng
//INormalEfCoreRepository detailRepository
)
@@ -51,7 +64,12 @@ namespace Win.Sfs.SettleAccount.Bases
_repository = repository;
_wRepository = wRepository;
_mRepository = mRepository;
- _sRepository = sRepository;
+ _sRepository = sRepository;
+ _pubMng = pubMng;
+ _bbacMng = bbacMng;
+ _hbpoMng = hbpoMng;
+ _invMng = invMng;
+
}
///
@@ -154,11 +172,22 @@ namespace Win.Sfs.SettleAccount.Bases
}
-
- protected virtual async Task RuleAsync(INVOICE_GRP_REQ_DTO input)
+ [HttpPost]
+ public virtual async Task ReceivedAsync(INVOICE_GRP_REQ_DTO input)
{
+ var entity=await _invMng.GetMainAsync(input.InvGroupNum);
+ if (entity != null)
+ {
+ bool flag = await _invMng.ReceivedAsync(entity.InvGroupNum);
+ if (flag == true)
+ {
+ await _invMng.SetForwardState(entity, InvoiceBillState.客户已收票);
+ }
+ }
+
+
return ApplicationConsts.SuccessStr;
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs
index d73c2735..84fc0451 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/CAN_SA_SERVICE.cs
@@ -1,4 +1,4 @@
-using AutoMapper;
+using AutoMapper;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Csv;
using Magicodes.ExporterAndImporter.Excel;
@@ -54,7 +54,6 @@ namespace Win.Sfs.SettleAccount.Bases
_repository = repository;
_detailRepository = detailRepository;
-
}
///
///查询明细
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
index 64b5dc31..67d2bc41 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
@@ -1,8 +1,9 @@
-using AutoMapper;
+using AutoMapper;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Csv;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore;
using SettleAccount.Bases;
using Shouldly;
using System;
@@ -141,9 +142,20 @@ namespace Win.Sfs.SettleAccount.Bases
return ApplicationConsts.SuccessStr;
}
+ public virtual async Task GetMainByBillNum(string billNum)
+ {
+ return await _repository.Where(p=>p.InvGroupNum == billNum).FirstOrDefaultAsync();
+ }
+
+ public virtual async Task> GetDetailByBillNum(string billNum)
+ {
+ return await _detailRepository.Where(p => p.InvGroupNum == billNum).ToListAsync();
+ }
+
+
+
-
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs
index f875d691..5cdc9c79 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_BA_SERVICE.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using SettleAccount.Domain.BQ;
using System;
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -20,9 +21,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[Route("api/settleaccount/bbac_ba_service")]
public class BBAC_BA_SERVICE : BA_SERVICE
{
- public BBAC_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository,
- INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService)
- : base(repository, wRepository, sRepository, mRepository, excelImportService)
+ public BBAC_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository, INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService, CAN_SA_MNG pubMng, CAN_SA_MNG bbacMng, CAN_SA_MNG hbpoMng, INV_MNG invMng) : base(repository, wRepository, sRepository, mRepository, excelImportService, pubMng, bbacMng, hbpoMng, invMng)
{
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
index d2fdfdf4..f0a3162c 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
@@ -1,4 +1,4 @@
-using EFCore.BulkExtensions;
+using EFCore.BulkExtensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SettleAccount.Domain.BQ;
@@ -46,7 +46,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
billNum: billNum,
settleBillNum: string.Empty,
state: SettleBillState.未结状态,
- invGroupNum: billNum
+ invGroupNum: billNum,
+ site:entitys.FirstOrDefault().Site
+
);
List ls = new List();
@@ -70,6 +72,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
);
}
+
await _detailRepository.DbContext.BulkInsertAsync(ls);
await _detailRepository.DbContext.BulkDeleteAsync(entitys);
await _detailRepository.DbContext.BulkInsertAsync(new List() { bbac});
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs
index 80a19894..1f678b53 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_BA_SERVICE.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using SettleAccount.Domain.BQ;
using System;
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -17,7 +18,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[Route("api/settleaccount/hbpo_ba_service")]
public class HBPO_BA_SERVICE : BA_SERVICE
{
- public HBPO_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository, INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService) : base(repository, wRepository, sRepository, mRepository, excelImportService)
+ public HBPO_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository, INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService, CAN_SA_MNG pubMng, CAN_SA_MNG bbacMng, CAN_SA_MNG hbpoMng, INV_MNG invMng) : base(repository, wRepository, sRepository, mRepository, excelImportService, pubMng, bbacMng, hbpoMng, invMng)
{
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
index 79901c79..d4151a86 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
@@ -1,4 +1,4 @@
-using EFCore.BulkExtensions;
+using EFCore.BulkExtensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -42,7 +42,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
billNum: billNum,
settleBillNum: string.Empty,
state: SettleBillState.未结状态,
- invGroupNum: billNum
+ invGroupNum: billNum,
+ site:entitys.FirstOrDefault().Site
);
List ls = new List();
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
index 37157b6d..6ac5d98c 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
@@ -1,4 +1,4 @@
-using Magicodes.ExporterAndImporter.Core;
+using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Csv;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Authorization;
@@ -15,6 +15,7 @@ using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Win.Sfs.BaseData.ImportExcelCommon;
+using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
@@ -57,15 +58,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
_bbacMng = bbacMng;
_hbpoMng = hbpoMng;
_invMng = invMng;
-
-
-
}
[HttpPost]
public virtual async Task ApprovalPassed(INVOICE_GRP_REQ_DTO input)
{
+ var inv=_repository.Where(p=>p.InvGroupNum == input.InvGroupNum).FirstOrDefault();
- return string.Empty;
+
+
+
+
+ await _invMng.SetForwardState(inv, InvoiceBillState.财务已审核);
+
+
+
+
+ return ApplicationConsts.SuccessStr;
}
[HttpPost]
@@ -82,11 +90,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
{
INVOICE_GRP_DETAIL_DTO _entity = new INVOICE_GRP_DETAIL_DTO();
- var m = await _mRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount);
+ var m = await _mRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
var mdtos = ObjectMapper.Map, List>(m);
- var w = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount);
+ var w = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
var wdtos = ObjectMapper.Map, List>(w);
- var s = await _sRepository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount);
+ var s = await _sRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
var sdtos = ObjectMapper.Map, List>(s);
_entity.INVOICE_NOT_SETTLE = sdtos;
_entity.INVOICE_WAIT_DETAIL = wdtos;
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs
index 3b3c7311..db5e4865 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_BA_SERVICE.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using SettleAccount.Domain.BQ;
using System;
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -17,7 +18,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
[Route("api/settleaccount/pub_ba_service")]
public class PUB_BA_SERVICE : BA_SERVICE
{
- public PUB_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository, INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService) : base(repository, wRepository, sRepository, mRepository, excelImportService)
+ public PUB_BA_SERVICE(INormalEfCoreRepository repository, INormalEfCoreRepository wRepository, INormalEfCoreRepository sRepository, INormalEfCoreRepository mRepository, IExcelImportAppService excelImportService, CAN_SA_MNG pubMng, CAN_SA_MNG bbacMng, CAN_SA_MNG hbpoMng, INV_MNG invMng) : base(repository, wRepository, sRepository, mRepository, excelImportService, pubMng, bbacMng, hbpoMng, invMng)
{
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs
index f1875c55..c07ed12b 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@@ -61,6 +61,9 @@ namespace SettleAccount.Bases
[Display(Name = "发票分组号")]
public virtual string InvGroupNum { get; set; } = null!;
+
+ public virtual string Site { get; set; }
+
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
index ffddc130..0b4b8e87 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
@@ -1,4 +1,4 @@
-using SettleAccount.Bases;
+using SettleAccount.Bases;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
@@ -35,7 +35,7 @@ public class BBAC_CAN_SA : SA_CAN_BASE_MAIN
- public BBAC_CAN_SA(Guid guid, int version, string billNum, string settleBillNum, SettleBillState state, string invGroupNum)
+ public BBAC_CAN_SA(Guid guid, int version, string billNum, string settleBillNum, SettleBillState state, string invGroupNum,string site)
{
Id = guid;
Version = version;
@@ -43,6 +43,7 @@ public class BBAC_CAN_SA : SA_CAN_BASE_MAIN
SettleBillNum = settleBillNum;
State = state;
InvGroupNum = invGroupNum;
+ Site = site;
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs
index 864f8366..7d28d814 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs
@@ -1,4 +1,4 @@
-using SettleAccount.Bases;
+using SettleAccount.Bases;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
@@ -31,16 +31,17 @@ public class HBPO_CAN_SA : SA_CAN_BASE_MAIN
///
/// 工厂地点
///
- [Display(Name = "工厂地点")]
- public string Site { get; set; } = null!;
+ //[Display(Name = "工厂地点")]
+ //public string Site { get; set; } = null!;
- public HBPO_CAN_SA(Guid guid, int version, string settleBillNum, string billNum, SettleBillState state, string invGroupNum)
+ public HBPO_CAN_SA(Guid guid, int version, string settleBillNum, string billNum, SettleBillState state, string invGroupNum,string site)
{
Version = version;
SettleBillNum = settleBillNum;
BillNum = billNum;
State = state;
InvGroupNum = invGroupNum;
+ Site = site;
}
public HBPO_CAN_SA()
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs
index 40416049..27a83ec4 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs
@@ -1,4 +1,4 @@
-using SettleAccount.Bases;
+using SettleAccount.Bases;
using System;
using System.ComponentModel.DataAnnotations;
@@ -45,7 +45,9 @@ public class HBPO_PD_DETAIL :PD_BASE
//[Display(Name = "结算分组")]
//public string GroupNum { get; set; } = null!;
- public HBPO_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string groupNum)
+ public HBPO_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string invGroupNum,
+ DateTime settleDate, string groupNum, string extend1, string extend2, string extend3, string extend4
+ )
{
Id = guid;
KeyCode = keyCode;
@@ -61,6 +63,11 @@ public class HBPO_PD_DETAIL :PD_BASE
InvGroupNum = invGroupNum;
SettleDate = settleDate;
GroupNum = groupNum;
+ Extend1 = extend1;
+ Extend2 = extend2;
+ Extend3 = extend3;
+ Extend4 = extend4;
+
}
public HBPO_PD_DETAIL()
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs
index 7d3c514d..45524521 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs
@@ -1,4 +1,4 @@
-using EFCore.BulkExtensions;
+using EFCore.BulkExtensions;
using Hangfire.Annotations;
using Microsoft.EntityFrameworkCore;
using SettleAccount.Bases;
@@ -41,10 +41,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
{
return true;
}
- else
- {
- return false;
- }
+ return false;
+
}
@@ -89,13 +87,23 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
break;
case SettleBillState.已扣减:
+ if (state == SettleBillState.客户已收票)
+ {
+ p_entiy.State = state;
+ }
+ else
+ {
+ throw new BusinessException("8989", "当前状态不是[客户收票],无法设置成【财务已审核】状态");
+ }
+ break;
+ case SettleBillState.客户已收票:
if (state == SettleBillState.财务已审核)
{
p_entiy.State = state;
}
else
{
- throw new BusinessException("8989", "当前状态不是【商务已审核】,无法设置成【财务已审核】状态");
+ throw new BusinessException("8989", "当前状态不是[财务已审核],无法设置成【客户已收票】状态");
}
break;
}
@@ -110,32 +118,48 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
public virtual async Task SetNewState(TEntity p_entiy)
{
- await SetNewState(p_entiy.BillNum);
-
+
return await SetNewState(p_entiy.BillNum);
}
public virtual async Task SetNewState(string billNum)
{
- var ls = _repository.Where(p => p.InvGroupNum == billNum).ToList();
- foreach (var l in ls)
+ var entity= await GetMainAsync(billNum);
+ if (entity != null )
{
- l.State = SettleBillState.未结状态;
+
+ entity.State = SettleBillState.未结状态;
+
+
+ await _repository.UpdateAsync(entity);
+ return true;
}
-
- await _repository.DbContext.BulkReadAsync(ls);
- return true;
+ return false;
+ ;
}
-
- public virtual async Task> GetAllList(string billNum)
+ ///
+ /// 获得所有明细
+ ///
+ ///
+ ///
+ public virtual async Task> GetDetalListAsync(string billNum)
{
return await _detailRepository.Where(p=>p.InvGroupNum==billNum).ToListAsync();
}
-
+ ///
+ /// 获得主表信息
+ ///
+ ///
+ ///
+ public virtual async Task GetMainAsync(string billNum)
+ {
+ return await _repository.Where(p => p.InvGroupNum == billNum).FirstOrDefaultAsync();
+ }
+
+
-
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs
index 19ae1fd2..034283c4 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs
@@ -1,4 +1,6 @@
-using EFCore.BulkExtensions;
+using EFCore.BulkExtensions;
+using Hangfire;
+using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;
using NPOI.SS.Formula.Functions;
using SettleAccount.Bases;
@@ -9,6 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
+using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
using Win.Sfs.Shared.RepositoryBase;
@@ -18,11 +21,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
{
//private readonly INormalEfCoreRepository _canRepository;
private readonly INormalEfCoreRepository _repository;
+
+
+
+
private readonly INormalEfCoreRepository _groupRepository;
private readonly INormalEfCoreRepository _detailRepository;
private readonly INormalEfCoreRepository _notRepository;
+ private readonly CAN_SA_MNG _pubMng;
+ private readonly CAN_SA_MNG _bbacMng;
+ private readonly CAN_SA_MNG _hbpoMng;
+
public INV_MNG
(
+ CAN_SA_MNG pubMng,
+ CAN_SA_MNG bbacMng,
+ CAN_SA_MNG hbpoMng,
//INormalEfCoreRepository canRepository,
INormalEfCoreRepository repository,
INormalEfCoreRepository groupRepository,
@@ -36,7 +50,23 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
_detailRepository = detailRepository;
_groupRepository = groupRepository;
_notRepository = notRepository;
+ _pubMng = pubMng;
+ _bbacMng = bbacMng;
+ _hbpoMng = hbpoMng;
+
+ }
+ public virtual async Task SetForwardState(string p_groupBillnum , InvoiceBillState p_State)
+ {
+ var _first=_repository.Where(p => p.InvbillNum == p_groupBillnum).FirstOrDefault();
+ if (_first != null)
+ {
+ return await SetForwardState(_first, p_State);
+ }
+ return false;
+
}
+
+
public virtual async Task SetForwardState(INVOICE_GRP p_entiy, InvoiceBillState p_State)
{
var state = p_State;
@@ -63,13 +93,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
break;
case InvoiceBillState.已扣减:
- if (state == InvoiceBillState.财务已审核)
+ if (state == InvoiceBillState.客户已收票)
{
p_entiy.State = state;
}
else
{
- throw new BusinessException("8989", "当前状态不是【商务已审核】,无法设置成【财务已审核】状态");
+ throw new BusinessException("8989", "当前状态不是【客户已收票】状态,无法设置成【已扣减】状态");
}
break;
}
@@ -77,10 +107,175 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
return true;
}
- public virtual async Task GetEntityByBillNum(string p_billNum)
+
+
+ ///
+ /// 获得发票主表
+ ///
+ ///
+ ///
+ public virtual async Task GetMainAsync(string p_groupbillNum)
{
- return await _repository.Where(p => p.InvGroupNum == p_billNum).FirstOrDefaultAsync();
+ return await _repository.Where(p => p.InvbillNum == p_groupbillNum).FirstOrDefaultAsync();
}
+ ///
+ /// 已收票
+ ///
+ /// 发票分组号
+ ///
+ public virtual async Task ReceivedAsync(string p_groupbillnum)
+ {
+ var inv = _repository.Where(p => p.InvGroupNum == p_groupbillnum).FirstOrDefault();
+ if (inv.BusinessType == EnumBusinessType.BBAC)
+ {
+ var entity = await _bbacMng.GetMainAsync(inv.InvGroupNum);
+ if (entity == null)
+ {
+
+ var entityDetail = await _bbacMng.GetDetalListAsync(inv.InvGroupNum);
+ var bbac = new BBAC_PD(
+ guid: entity.Id,
+ version: entity.Version,
+ billNum: entity.BillNum,
+ settleBillNum: entity.SettleBillNum,
+ state: SettleBillState.客户已收票,
+ invGroupNum: entity.InvGroupNum,
+ site: entity.Site
+ );
+ var bbacDetail = new List();
+ foreach (var itm in entityDetail)
+ {
+ bbacDetail.Add(
+ new BBAC_PD_DETAIL(
+ guid: itm.Id,
+ keyCode: itm.KeyCode,
+ version: itm.Version,
+ billNum: itm.BillNum,
+ lU: itm.LU,
+ rELU: string.Empty,
+ pN: itm.PN,
+ rEPN: string.Empty,
+ site: itm.Site,
+ qty: itm.Qty,
+ price: itm.Price,
+ invGroupNum: itm.InvGroupNum,
+ settleDate: itm.SettleDate,
+ groupNum: itm.GroupNum,
+ extend1: string.Empty,
+ extend2: string.Empty,
+ extend3: string.Empty,
+ extend4: string.Empty
+ ));
+ await _repository.DbContext.BulkInsertAsync(new List() { bbac });
+ await _repository.DbContext.BulkInsertAsync(bbacDetail);
+ return true;
+ }
+ }
+ }
+ else if (inv.BusinessType == EnumBusinessType.HBPO)
+ {
+ var entity = await _hbpoMng.GetMainAsync(inv.InvGroupNum);
+ if (entity != null)
+ {
+
+ var entityDetail = await _hbpoMng.GetDetalListAsync(inv.InvGroupNum);
+ if (entityDetail != null && entityDetail.Count() > 0)
+ {
+ var hbpo = new HBPO_PD(
+ guid: entity.Id,
+ version: entity.Version,
+ billNum: entity.BillNum,
+ settleBillNum: entity.SettleBillNum,
+ state: SettleBillState.客户已收票,
+ invGroupNum: entity.InvGroupNum,
+ site: entity.Site
+ );
+ var hbpoDetail = new List();
+ foreach (var itm in entityDetail)
+ {
+ hbpoDetail.Add(
+ new HBPO_PD_DETAIL(
+ guid: itm.Id,
+ keyCode: itm.KeyCode,
+ version: itm.Version,
+ billNum: itm.BillNum,
+ lU: itm.LU,
+ rELU: string.Empty,
+ pN: itm.PN,
+ rEPN: string.Empty,
+ site: itm.Site,
+ qty: itm.Qty,
+ price: itm.Price,
+ invGroupNum: itm.InvGroupNum,
+ settleDate: itm.SettleDate,
+ groupNum: itm.GroupNum,
+ extend1: string.Empty,
+ extend2: string.Empty,
+ extend3: string.Empty,
+ extend4: string.Empty
+ ));
+ }
+ await _repository.DbContext.BulkInsertAsync(new List() { hbpo });
+ await _repository.DbContext.BulkInsertAsync(hbpoDetail);
+
+ return true;
+ }
+ }
+ }
+ else
+ {
+ var entity = await _pubMng.GetMainAsync(inv.InvGroupNum);
+ if (entity != null)
+ {
+ var entityDetail = await _pubMng.GetDetalListAsync(inv.InvGroupNum);
+ if (entityDetail != null && entityDetail.Count() > 0)
+ {
+ var pub = new PUB_PD(
+ guid: entity.Id,
+ version: entity.Version,
+ billNum: entity.BillNum,
+ settleBillNum: entity.SettleBillNum,
+ state: SettleBillState.客户已收票,
+ invGroupNum: entity.InvGroupNum,
+ site: entity.Site
+ );
+ var pubDetail = new List();
+ foreach (var itm in entityDetail)
+ {
+ pubDetail.Add(
+ new PUB_PD_DETAIL(
+ guid: itm.Id,
+ keyCode: itm.KeyCode,
+ version: itm.Version,
+ billNum: itm.BillNum,
+ lU: itm.LU,
+ rELU: string.Empty,
+ pN: itm.PN,
+ rEPN: string.Empty,
+ site: itm.Site,
+ qty: itm.Qty,
+ price: itm.Price,
+ invGroupNum: itm.InvGroupNum,
+ settleDate: itm.SettleDate,
+ groupNum: itm.GroupNum,
+ extend1: string.Empty,
+ extend2: string.Empty,
+ extend3: string.Empty,
+ extend4: string.Empty,
+ businessType: itm.BusinessType
+ ));
+ }
+ await _repository.DbContext.BulkInsertAsync(new List() { pub });
+ await _repository.DbContext.BulkInsertAsync(pubDetail);
+ return true;
+ }
+ }
+ }
+
+ return false;
+
+ }
+
@@ -95,11 +290,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
-
- public virtual async Task Reject(string billNum)
+ ///
+ /// 退回
+ ///
+ /// 发票分组号
+ ///
+ public virtual async Task Reject(string groupbillNum)
{
- var _ls=await _repository.Where(p => p.InvGroupNum == billNum).ToListAsync();
+ var _ls=await _repository.Where(p => p.InvGroupNum == groupbillNum).ToListAsync();
if (_ls != null && _ls.Count > 0)
{
@@ -145,6 +344,74 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
+ ///
+ /// 返回到财务审核状态
+ ///
+ ///
+ ///
+ public virtual async Task Back(string billNum)
+ {
+
+ var _ls = await _repository.Where(p => p.InvGroupNum == billNum).ToListAsync();
+ if (_ls != null && _ls.Count > 0)
+ {
+ foreach (var p_entity in _ls)
+ {
+
+ }
+
+ }
+
+
+
+
+ //if (_ls != null && _ls.Count > 0)
+ //{
+ // foreach (var p_entity in _ls)
+ // {
+ // if (p_entity.State == InvoiceBillState.财务已审核
+ // || p_entity.State == InvoiceBillState.已开票 || p_entity.State == InvoiceBillState.商务已审核)
+ // {
+ // var entList = _repository.Where(p => p.InvGroupNum == p_entity.InvGroupNum).ToList();
+ // var groupList = _groupRepository.Where(p => p.InvGroupNum == p_entity.InvGroupNum).ToList();
+ // var notList = _notRepository.Where(p => p.InvGroupNum == p_entity.InvGroupNum).ToList();
+ // var detailList = _detailRepository.Where(p => p.InvGroupNum == p_entity.InvGroupNum).ToList();
+ // //var canList = _canRepository.Where(p => p.InvGroupNum == p_entity.InvGroupNum).ToList();
+ // //foreach (var itm in canList)
+ // //{
+ // // itm.State = SettleBillState.未结状态;
+ // //}
+ // await _repository.DbContext.BulkDeleteAsync(entList);
+ // await _repository.DbContext.BulkDeleteAsync(groupList);
+ // await _repository.DbContext.BulkDeleteAsync(notList);
+ // await _repository.DbContext.BulkDeleteAsync(detailList);
+ // //await _repository.DbContext.BulkUpdateAsync(canList);
+
+
+
+ // }
+ // if (p_entity.State == InvoiceBillState.已扣减)
+ // {
+
+ // }
+ // }
+
+ //}
+ //else
+ //{
+
+ //}
+
+
+
+
+ return true;
+
+
+ }
+
+
+
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PD_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PD_MNG.cs
new file mode 100644
index 00000000..4ceab066
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PD_MNG.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Win.Sfs.SettleAccount.Entities.BQ.Managers;
+public class PD_MNG
+{
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs
index c4543567..055047a3 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs
@@ -1,4 +1,4 @@
-using SettleAccount.Bases;
+using SettleAccount.Bases;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs
index e804b30e..56083cdc 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs
@@ -1,4 +1,4 @@
-using SettleAccount.Bases;
+using SettleAccount.Bases;
using System;
using System.ComponentModel.DataAnnotations;
using Win.Sfs.SettleAccount;
@@ -52,7 +52,12 @@ public class PUB_PD_DETAIL :PD_BASE
//[Display(Name = "结算分组")]
//public string GroupNum { get; set; } = null!;
- public PUB_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, EnumBusinessType businessType, string invGroupNum, DateTime settleDate, string groupNum)
+ public PUB_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, EnumBusinessType businessType, string invGroupNum, DateTime settleDate, string groupNum
+ , string extend1, string extend2, string extend3, string extend4
+
+
+
+ )
{
Id = guid;
KeyCode = keyCode;
@@ -69,6 +74,12 @@ public class PUB_PD_DETAIL :PD_BASE
InvGroupNum = invGroupNum;
SettleDate = settleDate;
GroupNum = groupNum;
+ Extend1 = extend1;
+ Extend2 = extend2;
+ Extend3 = extend3;
+ Extend4 = extend4;
+
+
}
public PUB_PD_DETAIL()
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBillState.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBillState.cs
index a0527952..46667bad 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBillState.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBillState.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
@@ -27,7 +27,9 @@ namespace Win.Sfs.SettleAccount
[Description("财务已审核")]
财务已审核 = 3,
[Description("已扣减")]
- 已扣减 = 4,
+ 已扣减 = 5,
+ [Description("客户已收票")]
+ 客户已收票 = 4,
}
@@ -40,7 +42,11 @@ namespace Win.Sfs.SettleAccount
[Description("财务已审核")]
财务已审核 = 3,
[Description("已扣减")]
- 已扣减 = 4,
+ 已扣减 = 5,
+ [Description("客户已收票")]
+ 客户已收票 = 4,
+
+
}
diff --git a/docs/ui.rp b/docs/ui.rp
index dbf10740..a0f18912 100644
Binary files a/docs/ui.rp and b/docs/ui.rp differ