diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/site.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/site.js
index 21c2cac5..e81de595 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/site.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/site.js
@@ -1,5 +1,3 @@
-import { get, post } from "../request/index.js";
-
async function getLocalizationAsync() {
// const url = "abp/application-configuration";
// const data = (await get(url, null, null, true, true)).data;
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/user.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/user.js
index 238fd097..3a49b0c2 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/user.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/api/user.js
@@ -1,9 +1,7 @@
import router from "../router/index.js";
-import request, { get, post } from "../request/index.js";
+import request from "../request/index.js";
import jwt_decode from "../lib/jwt-decode/jwt-decode.esm.js";
-import qs from "../lib/qs/shim.js";
import { useAppStore } from "../store/index.js";
-import { refreshRouter } from "../router/index.js";
import Enumerable from "linq";
import { connection } from "../signalr/index.js";
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
index b6c7a003..364c1572 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
@@ -1,10 +1,9 @@
import html, { getProp } from "html";
-import request, { get, getUrl, post } from "../../request/index.js";
-import { defineAsyncComponent, ref, reactive, onMounted, watch } from "vue";
+import request, { getUrl } from "../../request/index.js";
+import { defineAsyncComponent, ref, reactive, onMounted, watch, nextTick } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
import { listToTree, schemaToModel, importFunction, format } from "../../utils/index.js";
-import qs from "../../lib/qs/shim.js";
import { camelCase, capitalize } from "lodash";
import { ElMessage, ElMessageBox } from "element-plus";
@@ -17,153 +16,146 @@ export default {
AppFormInput: defineAsyncComponent(() => import("../form/form-input.js")),
},
template: html`
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.meta.title}}
-
-
-
-
- {{$t('筛选')}}
-
-
-
-
-
-
-
-
-
-
- {{ (pageModel.pageIndex - 1) * pageModel.pageSize + scope.$index + 1 }}
-
-
-
-
- {{getProp(scope.row,item.navigation)}}
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+ {{item.meta.title}}
+
+
+
+
+ {{$t('筛选')}}
+
+
+
+
+
+
+
+ {{ (pageModel.pageIndex - 1) * pageModel.pageSize + scope.$index + 1 }}
+
+
+
+
+ {{getProp(scope.row,item.navigation)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row[key]}}
+
+
+
+
+
+
+ {{item.title}}
-
-
-
+
-
-
+
+
+
+
+ {{item2.title}}
- {{scope.row[key]}}
+
+ {{scope.row[key][key2]}}
-
-
-
- {{item.title}}
-
-
-
-
-
-
-
-
-
- {{item2.title}}
-
-
- {{scope.row[key][key2]}}
-
-
+
+
+
+
+
+
+ {{$t('operations')}}
+
+
+
+
+
+
+
+
+ {{item.meta.title}}
+
-
+
+
-
-
-
-
- {{$t('operations')}}
-
-
-
-
-
-
-
-
- {{item.meta.title}}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
{{$t('filter')}}
-
+
o.checked=true)"> {{$t('selectAll')}}
@@ -197,7 +189,7 @@ export default {
{{editFormTitle}}
-
+
{
+ tableRef.value.doLayout();
+ nextTick(() => listScrollbarRef.value.update());
+ });
} catch (error) {
console.log(error);
} finally {
@@ -483,13 +480,6 @@ export default {
if (item.path === "query") {
//list
await load();
- } else if (item.path === "details") {
- //details
- const url = `${baseUrl}/${item.path}?${qs.stringify({ id: rows[0].id })}`;
- editFormSchema.value = (await get(url)).data;
- editFormModel.value = (await post(url)).data;
- editFormTitle.value = `${config.edit.schema.title}${t("details")}`;
- dialogVisible.value = true;
} else if (item.path === "create" || item.path === "update") {
//create
if (item.path === "create") {
@@ -519,17 +509,11 @@ export default {
rows.map((o) => o.id),
{ method: config.edit.deleteMethod }
);
- if (!response.errors) {
- ElMessage({
- type: "info",
- message: "操作完毕",
- });
- }
} catch (error) {
if (error === "cancel") {
ElMessage({
type: "info",
- message: "删除取消",
+ message: "操作取消",
});
}
} finally {
@@ -542,15 +526,11 @@ export default {
type: "warning",
});
await request(url, null, { method: config.edit.deleteMethod });
- ElMessage({
- type: "info",
- message: "操作完毕",
- });
} catch (error) {
if (error === "cancel") {
ElMessage({
type: "info",
- message: "删除取消",
+ message: "操作取消",
});
}
}
@@ -699,11 +679,6 @@ export default {
link.click();
window.URL.revokeObjectURL(downloadUrl);
};
- const getImportTemplate = async () => {
- const url = `${baseUrl}/${editFormMode.value}`;
- const response = await get(url);
- download(url, response.filename);
- };
const getButtonDisabled = async (src, row) => {
if (src) {
const method = await importFunction(src);
@@ -719,10 +694,6 @@ export default {
value: null,
});
};
- const logic = [
- { value: "and", label: "且" },
- { value: "or", label: "或" },
- ];
const operators = [
{
value: "equal",
@@ -825,13 +796,11 @@ export default {
result = method();
}
if (!result.errors) {
- await ElMessage({
- type: "info",
- message: successMessage,
- });
- if (reload) {
- pageModel.pageIndex = 1;
- await load();
+ if (!result.data?.code || result.data.code === 200) {
+ if (reload) {
+ pageModel.pageIndex = 1;
+ await load();
+ }
}
}
} catch (error) {
@@ -865,6 +834,7 @@ export default {
}
});
return {
+ listScrollbarRef,
load,
action,
config,
@@ -890,7 +860,6 @@ export default {
getClass,
sortChange,
getProp,
- getImportTemplate,
importFormRef,
editFormRef,
editFormloading,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/request/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/request/index.js
index 534232f2..2e134bc4 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/request/index.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/request/index.js
@@ -3,7 +3,7 @@ import { isLogin } from "../api/user.js";
import { useAppStore } from "../store/index.js";
import { getFileName } from "../utils/index.js";
import settings from "../config/settings.js";
-import { ElMessageBox } from "element-plus";
+import { ElMessage, ElMessageBox } from "element-plus";
// const requestSettings = {
// baseURL: "/api",
@@ -23,15 +23,6 @@ const getUrl = (url) => {
}
let result = settings.baseURL;
return (result += `/${url}`);
- // let result = requestSettings.baseURL;
- // if (withoutCulture) {
- // result += `/${url}`;
- // } else {
- // const appStore = useAppStore();
- // result += withoutCulture ? "/" : `/${appStore.localization.locale}/`;
- // result += url;
- // }
- // return result;
};
const getResult = async (response) => {
@@ -70,52 +61,6 @@ const getResult = async (response) => {
return result;
};
-const get = async (url, data, options, withoutToken = false) => {
- url = getUrl(url);
- if (data) {
- url = `${url}?${qs.stringify(data)}`;
- }
- const defaultOptions = {
- headers: { "Accept-Language": "zh-Hans" },
- };
- if (options) {
- Object.assign(defaultOptions, options);
- }
- if (!withoutToken) {
- await addToken(defaultOptions);
- }
- const response = await fetch(url, defaultOptions);
- return getResult(response);
-};
-
-const post = async (url, data, options, withoutToken = false) => {
- url = getUrl(url);
- let defaultOptions = {
- method: "POST",
- headers: { "Accept-Language": "zh-Hans" },
- };
- if (!(data instanceof FormData)) {
- defaultOptions.headers["Content-Type"] = "application/json";
- }
- if (options) {
- Object.assign(defaultOptions, options);
- }
- if (data && !defaultOptions.body) {
- if (defaultOptions.headers["Content-Type"]?.startsWith("application/x-www-form-urlencoded")) {
- defaultOptions.body = qs.stringify(data);
- } else if (defaultOptions.headers["Content-Type"]?.startsWith("application/json")) {
- defaultOptions.body = JSON.stringify(data);
- } else {
- defaultOptions.body = data;
- }
- }
- if (!withoutToken) {
- await addToken(defaultOptions);
- }
- const response = await fetch(url, defaultOptions);
- return getResult(response);
-};
-
async function request(url, data, options, withoutToken = false) {
url = getUrl(url);
let defaultOptions = {
@@ -146,8 +91,14 @@ async function request(url, data, options, withoutToken = false) {
await addToken(defaultOptions);
}
const response = await fetch(url, defaultOptions);
+ // if (!result.data?.code || result.data.code === 200) {
+ // ElMessage({
+ // type: "success",
+ // message: "操作成功",
+ // });
+ // }
return getResult(response);
}
export default request;
-export { get, post, getUrl };
+export { getUrl };
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 a32f0b32..8765e124 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
@@ -192,7 +192,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("bbac_jit_pub_sa_detail_jobservice", "ZhiGongJianBBAC", "bbac", "直供件-BBAC EDI、发运与结算对比")],
+ children: [createCompareJieSuan("bbac_jit_pub_sa_detail_jobservice", "ZhiGongJianBBAC", "bbac", "直供件-BBAC 发运与结算对比")],
},
{
...createRoute("settlement", "title=结算开票"),
@@ -217,7 +217,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("bbac_jit_pub_sa_detail_jobservice", "ZhiGongJianHBPO", "hbpo", "直供件-HBPO EDI、发运与结算对比")],
+ children: [createCompareJieSuan("bbac_jit_pub_sa_detail_jobservice", "ZhiGongJianHBPO", "hbpo", "直供件-HBPO 发运与结算对比")],
},
{
...createRoute("settlement", "title=结算开票"),
@@ -247,7 +247,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("bbac_md_pub_sa_detail_jobservice", "MaiDanJianBBAC", "bbac", "买单件-BBAC EDI、发运与结算对比")],
+ children: [createCompareJieSuan("bbac_md_pub_sa_detail_jobservice", "MaiDanJianBBAC", "bbac", "买单件-BBAC 发运与结算对比")],
},
],
},
@@ -263,7 +263,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("hbpo_md_pub_sa_detail_jobservice", "MaiDanJianHBPO", "hbpo", "买单件-HBPO EDI、发运与结算对比")],
+ children: [createCompareJieSuan("hbpo_md_pub_sa_detail_jobservice", "MaiDanJianHBPO", "hbpo", "买单件-HBPO 发运与结算对比")],
},
{
...createRoute("settlement", "title=结算开票"),
@@ -290,7 +290,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("bj_pub_sa_detail_jobservice", "BeiJian", "bbac", "备件-BBAC EDI、发运与结算对比")],
+ children: [createCompareJieSuan("bj_pub_sa_detail_jobservice", "BeiJian", "bbac", "备件-BBAC 发运与结算对比")],
},
{
...createRoute("settlement", "title=结算开票"),
@@ -315,7 +315,7 @@ export default [
},
{
...createRoute("contrast", "title=数据比对"),
- children: [createCompareJieSuan("in_pub_sa_detail_jobservice", "YinDuJian", "bbac", "印度件-BBAC EDI、发运与结算对比")],
+ children: [createCompareJieSuan("in_pub_sa_detail_jobservice", "YinDuJian", "bbac", "印度件-BBAC 发运与结算对比")],
},
{
...createRoute("settlement", "title=结算开票"),
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/store/app.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/store/app.js
index 6076c3d8..b2b9057c 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/store/app.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/store/app.js
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";
import settings from "../config/settings.js";
import { getAccessToken, getUser, isLogin } from "../api/user.js";
-import { get, post } from "../request/index.js";
import { refreshRouter } from "../router/index.js";
import { getLocalizationAsync } from "../api/site.js";
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/styles/site.css b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/styles/site.css
index e8c5c391..146479e7 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/styles/site.css
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/styles/site.css
@@ -50,7 +50,7 @@ a {
}
.el-main {
- min-height: calc(100% - 100px);
+ height: calc(100% - 100px);
overflow: auto;
}
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js
index cfd9753b..9b3b4f4d 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js
@@ -15,7 +15,7 @@ export default {
const onCommand = async (item, rows, load) => {
if (item.path === "open-version" || item.path === "closed-version") {
try {
- await ElMessageBox.confirm(format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length), "提示", {
+ await ElMessageBox.confirm(`确认${item.path === "open-version" ? "启用" : "停用"}选中的${rows.length}行数据吗?`, "提示", {
type: "warning",
});
const url = `${config.baseUrl}/${item.path}`;
@@ -24,7 +24,6 @@ export default {
rows.map((o) => o.id),
{ method: "POST" }
);
- console.log(context);
await load();
} catch (error) {
if (error === "cancel") {
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/login.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/login.js
index d3135b88..6bcb279b 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/login.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/login.js
@@ -35,7 +35,7 @@ export default {
try {
const url = "base/token";
const appStore = useAppStore();
- const result = await request(url, model, { method: "POST" }, true);
+ const result = await request(url, model, { method: "POST" });
if (!result.errors) {
appStore.token = result.data.accessToken;
if (appStore.token) {
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js
index 54c5b71a..bf663539 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js
@@ -7,12 +7,13 @@ import AppTable from "../../components/table/index.js";
import extraProperties from "../../models/_extraProperties.js";
import { getUrl } from "../../request/index.js";
import { ElMessage } from "element-plus";
+import businessTypes from "../../models/_options.js";
export default {
components: { AppForm, AppTable },
template: html`
结算明细
-
+
@@ -51,6 +52,7 @@ export default {
+
@@ -82,28 +84,38 @@ export default {
-
+
- 发票预览
- {{setup3Model}}
+
+ {{setup3Model.invbillNum}}
+ {{businessTypes.options.find(o=>o.value===setup3Model.businesType)?.label}}
+ {{setup3Model.tax}}
+ {{setup3Model.businesType}}
+ {{setup3Model.businesType}}
+
+
-