mahao 1 year ago
parent
commit
e3b9feea05
  1. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  2. 41
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js
  3. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js
  4. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bom.js
  5. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/cai-gou.js
  6. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/centralized-control.js
  7. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/code-setting.js
  8. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-item.js
  9. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-log.js
  10. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/ke-hu.js
  11. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material-relationship.js
  12. 0
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material.js
  13. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/parts-relationship.js
  14. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/xiaos-hou.js
  15. 13
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js
  16. 13
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/businessType.js
  17. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/compare/compare.js
  18. 127
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/hbpo-edi-se-compare.js
  19. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/edi.js
  20. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js
  21. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js
  22. 8
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js
  23. 131
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js
  24. 142
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_detail_service.js
  25. 145
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js
  26. 130
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_detail_service.js
  27. 106
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_service.js
  28. 148
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_not_sa_service.js
  29. 101
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_detail_service.js
  30. 114
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_service.js
  31. 112
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js
  32. 114
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js
  33. 159
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js
  34. 16
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js
  35. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js
  36. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js
  37. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js
  38. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js
  39. 9
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
  40. 608
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js
  41. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js
  42. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bom.js
  43. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/cai-gou.js
  44. 10
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js
  45. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/code-setting.js
  46. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-item.js
  47. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-log.js
  48. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/ke-hu.js
  49. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material-relationship.js
  50. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material.js
  51. 15
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/parts-relationship.js
  52. 15
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js
  53. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -194,7 +194,7 @@ export default {
</span> </span>
</template> </template>
</el-drawer> </el-drawer>
<el-dialog v-model="dialogVisible" align-center destroy-on-close style="width:auto;min-width:500px;max-width:1000px;"> <el-dialog v-model="dialogVisible" align-center destroy-on-close :close-on-click-modal="false" style="width:auto;min-width:500px;max-width:1000px;">
<template #header> <span class="el-dialog__title"> {{editFormTitle}} </span> </template> <template #header> <span class="el-dialog__title"> {{editFormTitle}} </span> </template>
<el-row v-loading="editFormloading"> <el-row v-loading="editFormloading">
<el-col style="max-height:calc(100vh - 180px );min-height:100%;"> <el-col style="max-height:calc(100vh - 180px );min-height:100%;">

41
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js

@ -0,0 +1,41 @@
const version = {
title: "期间",
type: "string",
input: "select",
url: "settleaccount/centralized-control/get-all",
value: "version",
label: "version",
clearable: true,
};
const stateOptions = [
{ 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", stateOptions };
const state2 = Object.assign(Object.assign({}, state), { options: stateOptions.filter((a) => parseInt(a.value) > 0) });
const state3 = Object.assign(Object.assign({}, state), { options: stateOptions.filter((a) => parseInt(a.value) > 3) });
const businessType = {
title: "业务类型",
type: "string",
input: "select",
options: [
{ value: 0, label: "未定义" },
{ value: 1, label: "JisBBAC" },
{ value: 2, label: "JisHBPO" },
{ value: 3, label: "直供件BBAC" },
{ value: 4, label: "直供件HBPO" },
{ value: 5, label: "买单件BBAC" },
{ value: 6, label: "买单件HBPO" },
{ value: 7, label: "备件" },
{ value: 8, label: "印度件" },
],
};
export default businessType;
export { version, state, state2, state3 };

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bom.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bom.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/cai-gou.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/centralized-control.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/code-setting.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/code-setting.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-item.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-item.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-log.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-log.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/ke-hu.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material-relationship.js

0
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material.js

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/parts-relationship.js

@ -1,4 +1,4 @@
import businessType from "./business-type.js"; import businessType from "../_options.js";
const schema = { const schema = {
title: "客户替换件关系", title: "客户替换件关系",

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/xiaos-hou.js

@ -1,5 +1,3 @@
import businessTypes from "./business-type.js";
const schema = { const schema = {
title: "销售价格单", title: "销售价格单",
type: "object", type: "object",

13
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js

@ -1,13 +0,0 @@
const options = [
{ value: 0, label: "未定义" },
{ value: 1, label: "JisBBAC" },
{ value: 2, label: "JisHBPO" },
{ value: 3, label: "直供件BBAC" },
{ value: 4, label: "直供件HBPO" },
{ value: 5, label: "买单件BBAC" },
{ value: 6, label: "买单件HBPO" },
{ value: 7, label: "备件" },
{ value: 8, label: "印度件" },
];
const businessType = { title: "业务类型", type: "string", input: "select", options };
export default businessType;

13
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/businessType.js

@ -1,13 +0,0 @@
const options = [
{ value: 0, label: "未定义" },
{ value: 1, label: "JisBBAC" },
{ value: 2, label: "JisHBPO" },
{ value: 3, label: "直供件BBAC" },
{ value: 4, label: "直供件HBPO" },
{ value: 5, label: "买单件BBAC" },
{ value: 6, label: "买单件HBPO" },
{ value: 7, label: "备件" },
{ value: 8, label: "印度件" },
];
const businessType = { title: "业务类型", type: "string", input: "select", options };
export default businessType;

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/compare/compare.js

@ -1,11 +1,11 @@
import defaultVersion from "../version.js"; import { version } from "../_options.js";
const version = Object.assign({}, defaultVersion); const version2 = Object.assign({}, version);
const compareSchema = { const compareSchema = {
title: "数据比对", title: "数据比对",
properties: { properties: {
version: Object.assign(version, { rules: [{ required: true }] }), version: Object.assign(version2, { rules: [{ required: true }] }),
seDateTime: { seDateTime: {
title: "发运日期", title: "发运日期",
type: "array", type: "array",

127
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/hbpo-edi-se-compare.js

@ -1,127 +0,0 @@
import version from "./version.js";
const stateName = {
title: "状态",
type: "string",
input: "select",
options: [
{ label: "执行完成(任务成功)", value: "Succeeded" },
{ label: "执行完成(任务失败)", value: "Failed" },
{ label: "执行中", value: "Processing" },
{ label: "等待执行", value: "Enqueued" },
],
};
const schema = {
title: "数据对比",
type: "object",
properties: {
type: {
title: "版本号",
type: "string",
},
taskId: {
title: "单据流水号",
type: "string",
},
email: {
title: "创建人",
type: "string",
},
createdAt: {
title: "创建时间",
type: "DateTime",
},
remark: {
title: "说明",
type: "string",
},
stateName,
},
};
const queryUrl = "settleaccount/Job/list";
const deleteUrl = "settleaccount/Job/delete";
const exportUrl = "settleaccount/pub_sa_detail_service/export";
const compareUrl = "settleaccount/edi-se-compare/hbpoedi-se-compare";
const queryMethod = "POST";
const deleteMethod = "POST";
const exportMethod = "POST";
const compareMethod = "POST";
export default function () {
return {
query: {
url: queryUrl,
method: queryMethod,
autoSubmit: true,
disableQueryOnLoad: false,
schema: {
title: "数据对比",
type: "object",
properties: {
type: Object.assign({ defaultSelected: false }, version),
name: {
type: "string",
default: null,
hidden: true,
},
stateName,
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: {
deleteUrl,
exportUrl,
compareUrl,
deleteMethod,
exportMethod,
compareMethod,
schema: schema,
},
};
}

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/edi.js

@ -1,4 +1,4 @@
import version from "../version.js"; import { version } from "../_options.js";
const schema = { const schema = {
title: "EDI数据", title: "EDI数据",

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js

@ -1,5 +1,4 @@
import version from "../version.js"; import { version, state } from "../_options.js";
import state from "../state.js";
const schema = { const schema = {
title: "结算数据", title: "结算数据",

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js

@ -1,6 +1,4 @@
import version from "../version.js"; import businessType, { version, state } from "../_options.js";
import state from "../state.js";
import businessType from "../business-type.js";
const schema = { const schema = {
title: "结算数据", title: "结算数据",

8
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js

@ -1,8 +0,0 @@
const options1 = [
{ value: 1, label: "正常" },
{ value: 2, label: "报废" },
{ value: 3, label: "提交" },
];
const invoiceState = { title: "发票状态", type: "string", input: "select", options: options1 };
export default invoiceState;

131
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js

@ -1,131 +0,0 @@
import version from "./version.js";
const stateName = {
title: "状态",
type: "string",
input: "select",
options: [
{ label: "执行完成(任务成功)", value: "Succeeded" },
{ label: "执行完成(任务失败)", value: "Failed" },
{ label: "执行中", value: "Processing" },
{ label: "等待执行", value: "Enqueued" },
],
};
const schema = {
title: "数据对比",
type: "object",
properties: {
type: {
title: "版本号",
type: "string",
},
taskId: {
title: "单据流水号",
type: "string",
},
email: {
title: "创建人",
type: "string",
},
createdAt: {
title: "创建时间",
type: "string",
input: "datetime",
},
remark: {
title: "说明",
type: "string",
},
stateName,
},
};
const queryUrl = "settleaccount/Job/list";
const deleteUrl = "settleaccount/Job/delete";
const exportUrl = "settleaccount/getblobfile/download/%s";
const compareUrl = "settleaccount/pub_sa_detail_service/pub-sa-se-compare";
const queryMethod = "POST";
const deleteMethod = "POST";
const exportMethod = "GET";
const compareMethod = "POST";
export default function () {
return {
query: {
url: queryUrl,
method: queryMethod,
autoSubmit: true,
disableQueryOnLoad: false,
schema: {
title: "数据对比",
type: "object",
properties: {
type: Object.assign({ defaultSelected: false }, version),
name: {
type: "string",
default: null,
hidden: true,
},
stateName,
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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
deleteUrl,
exportUrl,
compareUrl,
deleteMethod,
exportMethod,
compareMethod,
schema: schema,
},
};
}

142
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_detail_service.js

@ -1,142 +0,0 @@
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",
},
businessType: {
title: "业务分类",
type: "EnumBusinessType",
},
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",
},
keycode: {
title: "键值",
type: "string",
},
qty: {
title: "结算数量",
type: "decimal",
},
groupNum: {
title: "结算分组号",
type: "decimal",
},
entend1: {
title: "扩展1",
type: "string",
},
entend2: {
title: "扩展2",
type: "string",
},
entend3: {
title: "扩展3",
type: "string",
},
},
};
const queryUrl = "settleaccount/pub_ba_service/detail-query";
const queryMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
schema: schema,
},
};
}

145
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js

@ -1,145 +0,0 @@
import version from "./version.js";
import { state2, state3 } from "./state.js";
import businessType from "./businessType.js";
import invoiceState from "./invoiceState.js";
const state = Object.assign({}, state2);
state.input = "tabs";
const schema = {
title: "商务审批",
type: "object",
properties: {
version,
realnvBillNum: {
title: "金税发票号",
type: "string",
},
invbillNum: {
title: "系统发票号",
type: "string",
link: true,
},
amt: {
title: "未税金额",
type: "number",
},
taxAmt: {
title: "税后金额",
type: "number",
},
invGroupNum: {
title: "发票分组号",
type: "number",
link: true,
},
businessType,
state,
invoiceState,
taxDiff: {
title: "发票税后尾差",
type: "number",
},
clientCode: {
title: "客户代码",
type: "string",
},
},
};
const queryUrl = "settleaccount/bbac_ba_service/main-query";
const exportUrl = "settleaccount/bbac_ba_service/export";
const invoiceUrl = "settleaccount/bbac_ba_service/generate-invoice";
const receivedUrl = "settleaccount/bbac_ba_service/received";
const rejectUrl = "settleaccount/bbac_ba_service/reject";
const reissueUrl = "settleaccount/bbac_ba_service/reissue-invoice";
const queryMethod = "POST";
const exportMethod = "POST";
const invoiceMethod = "POST";
const receivedMethod = "POST";
const rejectMethod = "POST";
const reissueMethod = "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,
},
{
logic: "and",
column: "state",
action: "equal",
value: null,
readOnly: true,
},
],
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
sorting: {
hidden: true,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
exportUrl,
invoiceUrl,
receivedUrl,
rejectUrl,
reissueUrl,
exportMethod,
invoiceMethod,
receivedMethod,
rejectMethod,
reissueMethod,
schema: schema,
},
};
}

130
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_detail_service.js

@ -1,130 +0,0 @@
import version from "./version.js";
import state from "./state.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
state,
// settleBillNum: {
// title: "关联结算单号",
// type: "string",
// },
// site: {
// title: "工厂地点",
// type: "string",
// },
businessType: {
title: "业务分类",
type: "EnumBusinessType",
},
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",
},
keycode: {
title: "键值",
type: "string",
},
qty: {
title: "结算数量",
type: "decimal",
},
groupNum: {
title: "结算分组号",
type: "decimal",
},
},
};
const queryUrl = "settleaccount/pub_can_sa_service/detail-query";
const queryMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
schema: schema,
},
};
}

106
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_service.js

@ -1,106 +0,0 @@
import version from "./version.js";
import state from "./state.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
version,
state,
settleBillNum: {
title: "关联结算单号",
type: "string",
},
billNum: {
title: "结算单号",
type: "string",
},
invGroupNum: {
title: "发票分组号",
type: "string",
},
businessType: {
title: "业务分类",
type: "EnumBusinessType",
},
},
};
const queryUrl = "settleaccount/pub_can_sa_service/main-query";
const exportUrl = "settleaccount/pub_can_sa_service/export";
const invoiceUrl = "settleaccount/pub_can_sa_service/generate-invoice";
const queryMethod = "POST";
const exportMethod = "POST";
const invoiceMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
exportUrl,
invoiceUrl,
exportMethod,
invoiceMethod,
schema: schema,
},
};
}

148
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_not_sa_service.js

@ -1,148 +0,0 @@
import version from "./version.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
settleBillNum: {
title: "关联结算单号",
type: "string",
},
site: {
title: "工厂地点",
type: "string",
},
businessType: {
title: "业务分类",
type: "EnumBusinessType",
},
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",
},
keycode: {
title: "键值",
type: "string",
},
qty: {
title: "结算数量",
type: "decimal",
},
groupNum: {
title: "结算分组号",
type: "decimal",
},
entend1: {
title: "扩展1",
type: "string",
},
entend2: {
title: "扩展2",
type: "string",
},
entend3: {
title: "扩展3",
type: "string",
},
},
};
const queryUrl = "settleaccount/pub_not_sa_service/detail-query";
const exportUrl = "settleaccount/pub_not_sa_service/export";
const settlementUrl = "settleaccount/pub_not_sa_service/generate-settlement-order";
const queryMethod = "POST";
const exportMethod = "POST";
const settlementMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
exportUrl,
settlementUrl,
exportMethod,
settlementMethod,
schema: schema,
},
};
}

101
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_detail_service.js

@ -1,101 +0,0 @@
import version from "./version.js";
import { state2, state3 } from "./state.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
site: {
title: "工厂地点",
type: "string",
},
version,
billNum: {
title: "结算单号",
type: "string",
},
qty: {
title: "结算单号",
type: "decimal",
},
price: {
title: "结算单号",
type: "decimal",
},
invGroupNum: {
title: "结算单号",
type: "string",
},
},
};
const queryUrl = "settleaccount/p-uB_PD_SERVICE/detail-query";
const queryMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
schema: schema,
},
};
}

114
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_service.js

@ -1,114 +0,0 @@
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",
},
businessType: {
title: "业务类型",
type: "EnumBusinessType",
},
businessType: {
hidden: true,
default: 0,
},
},
};
const queryUrl = "settleaccount/p-uB_PD_SERVICE/main-query";
const exportUrl = "settleaccount/p-uB_PD_SERVICE/export";
const passedUrl = "settleaccount/p-uB_PD_SERVICE/approval-passed";
const rejectUrl = "settleaccount/p-uB_BA_SERVICE/reject";
const queryMethod = "POST";
const exportMethod = "POST";
const passedMethod = "POST";
const rejectMethod = "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: {
exportUrl,
passedUrl,
rejectUrl,
exportMethod,
passedMethod,
rejectMethod,
schema: schema,
},
};
}

112
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js

@ -1,112 +0,0 @@
import version from "./version.js";
import state from "./state.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
version,
state,
settleDate: {
title: "结算日期",
type: "string",
input: "dateTime",
},
groupNum: {
title: "结算分组号",
type: "string",
},
deliveryDate: {
title: "到货日期",
type: "string",
input: "dateTime",
},
lu: {
title: "客户零件号",
type: "string",
},
qty: {
title: "结算数量",
type: "number",
},
pn: {
title: "生产号",
type: "string",
},
},
};
const queryUrl = "settleaccount/pub_sa_detail_service/get-list";
const exportUrl = "settleaccount/pub_sa_detail_service/export";
const queryMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
exportUrl,
exportMethod,
schema: schema,
},
};
}

114
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js

@ -1,114 +0,0 @@
import version from "./version.js";
import state from "./state.js";
const schema = {
title: "结算数据",
type: "object",
properties: {
billNum: {
title: "结算单号",
type: "string",
oneToMany: "/input/jie-suan/detail",
config: "/models/input/jie-suan-detail.js",
},
businessType: {
title: "业务类型",
type: "string",
hidden: true,
default: 0,
},
dnBillNum: {
title: "出库单号",
type: "string",
},
recordCount: {
title: "明细记录行数",
type: "string",
},
site: {
title: "工厂地点",
type: "string",
},
state,
version,
},
};
const queryUrl = "settleaccount/pub_sa_service/get-list";
const deleteUrl = "settleaccount/pub_sa_service/delete-list";
const importUrl = "settleaccount/pub_sa_service/import-by-business-type";
const queryMethod = "POST";
const deleteMethod = "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,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
deleteUrl,
importUrl,
deleteMethod,
importMethod,
schema: schema,
},
};
}

159
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js

@ -1,159 +0,0 @@
const schema = {
title: "结算数据",
type: "object",
properties: {
wmsBillNum: {
title: "发运单号",
type: "string",
},
billTime: {
title: "发货时间",
type: "string",
input: "datetime",
},
partCode: {
title: "零件号",
type: "string",
},
batch: {
title: "批次",
type: "string",
},
oper: {
title: "发货人",
type: "string",
},
dnBillNum: {
title: "DN单据号",
type: "string",
},
dnBillTime: {
title: "DN单据时间",
type: "string",
input: "datetime",
},
dnOper: {
title: "DN单添加人",
type: "string",
},
deliveryIndex: {
title: "交付索引",
type: "string",
},
custId: {
title: "客户",
type: "string",
},
deliveryHose: {
title: "发货仓库",
type: "string",
},
fromLocCode: {
title: "来源库位",
type: "string",
},
fromHose: {
title: "来源仓库",
type: "string",
},
fromErpLocCode: {
title: "来源ERP库存",
type: "string",
},
toLocCode: {
title: "目标库位",
type: "string",
},
toErpLocCode: {
title: "目标Erp库位",
type: "string",
},
toHose: {
title: "目标仓库",
type: "string",
},
remark: {
title: "备注",
type: "string",
},
},
};
const queryUrl = "settleaccount/pub_se_detail_service/get-list";
const exportUrl = "settleaccount/pub_se_detail_service/export";
const syncUrl = "settleaccount/hand-se-sync/sync";
const queryMethod = "POST";
const exportMethod = "POST";
const syncMethod = "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: "wmsBillNum",
action: "like",
value: null,
readOnly: true,
},
],
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
sorting: {
hidden: true,
},
businessType: {
hidden: true,
default: 0,
},
},
},
},
table: {
schema: schema,
},
edit: {
exportUrl,
syncUrl,
exportMethod,
syncMethod,
schema: schema,
},
};
}

16
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js

@ -1,7 +1,4 @@
import version from "../version.js"; import businessType, { version, state2 } from "../_options.js";
import { state2 } from "../state.js";
import businessType from "../businessType.js";
import invoiceState from "../invoiceState.js";
const state = Object.assign({}, state2); const state = Object.assign({}, state2);
state.input = "tabs"; state.input = "tabs";
@ -34,7 +31,16 @@ const schema = {
}, },
businessType, businessType,
state, state,
invoiceState, invoiceState: {
title: "发票状态",
type: "string",
input: "select",
options: [
{ value: 1, label: "正常" },
{ value: 2, label: "报废" },
{ value: 3, label: "提交" },
],
},
taxDiff: { taxDiff: {
title: "发票税后尾差", title: "发票税后尾差",
type: "number", type: "number",

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js

@ -1,4 +1,4 @@
import version from "../version.js"; import { version } from "../_options.js";
const schema = { const schema = {
title: "通用代码", title: "通用代码",

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js

@ -1,5 +1,4 @@
import version from "../version.js"; import { version, state3 } from "../_options.js";
import { state3 } from "../state.js";
const schema = { const schema = {
title: "寄售库库存扣减审批", title: "寄售库库存扣减审批",

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js

@ -1,5 +1,4 @@
import version from "../version.js"; import { version, state } from "../_options.js";
import state from "../state.js";
const schema = { const schema = {
title: "可结算单", title: "可结算单",

14
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js

@ -1,14 +0,0 @@
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) => parseInt(a.value) > 0) });
const state3 = Object.assign(Object.assign({}, state), { options: options.filter((a) => parseInt(a.value) > 3) });
export default state;
export { state2, state3 };

9
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js

@ -1,9 +0,0 @@
export default {
title: "期间",
type: "string",
input: "select",
url: "settleaccount/centralized-control/get-all",
value: "version",
label: "version",
clearable: true,
};

608
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js

@ -1,602 +1,88 @@
export default [ import createRoute, { createPage, createButton } from "./utils.js";
{
path: "base-data",
meta: {
type: "group",
title: "基础数据",
icon: "folder",
},
children: [
{
path: "user",
meta: {
type: "page",
title: "用户管理",
icon: "file",
permission: "AbpIdentity.Users",
},
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
permission: "AbpIdentity.Users.Create",
isTop: true,
},
},
{
path: "update",
meta: {
type: "button",
title: "编辑",
icon: "file",
htmlClass: "el-button--primary",
permission: "AbpIdentity.Users.Update",
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
permission: "AbpIdentity.Users.Delete",
disabled: "o=>o.userName==='admin'",
},
},
{
path: "%s/reset-password",
meta: {
type: "button",
title: "重置密码",
icon: "file",
permission: "reset-password?",
method: "PUT",
},
},
],
},
{
path: "role",
meta: {
type: "page",
title: "角色管理",
icon: "file",
permission: "AbpIdentity.Users",
},
children: [
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
permission: "AbpIdentity.Users.Create",
isTop: true,
},
},
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true, export default [
},
},
// {
// path: "update",
// meta: {
// type: "button",
// title: "编辑",
// icon: "file",
// htmlClass: "el-button--primary",
// permission: "AbpIdentity.Users.Update",
// disabled: `(o) => o.isStatic`,
// },
// },
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
permission: "AbpIdentity.Users.Delete",
disabled: `(o) => o.isStatic`,
},
},
],
},
{
path: "material",
meta: {
type: "page",
title: "物料主数据",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "centralized-control",
meta: {
type: "page",
title: "期间设置",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "open-version",
meta: {
type: "button",
title: "启用",
icon: "file",
isTop: true,
},
},
{
path: "closed-version",
meta: {
type: "button",
title: "停用",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
],
},
},
{ {
path: "material-relationship", ...createRoute("base-data", "title=基础数据"),
meta: {
type: "page",
title: "客户零件关系",
icon: "file",
children: [ children: [
{ {
path: "query", ...createPage("user", "title=用户管理"),
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "tb_re-parts-relationship_service",
meta: {
type: "page",
title: "厂内替换件关系",
icon: "file",
children: [ children: [
{ createButton("query", "title=查询&isTop=true"),
path: "query", createButton("create", "title=新建&isTop=true"),
meta: { createButton("update", "title=编辑"),
type: "button", createButton("delete", "title=删除&disabled=o=>o.userName==='admin'"),
title: "查询", createButton("%s/reset-password", "title=重置密码&method=PUT"),
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
], ],
}, },
},
{
path: "code-setting",
meta: {
type: "page",
title: "通用代码",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{ {
path: "create", ...createPage("role", "title=角色管理"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("create", "title=新建&isTop=true"), createButton("delete", "title=删除&disabled=o => o.isStatic")],
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
}, },
{ {
path: "delete", ...createPage("material", "title=物料主数据"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
}, },
{ {
path: "import", ...createPage("centralized-control", "title=期间设置"),
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "bom",
meta: {
type: "page",
title: "BOM结构",
icon: "file",
children: [ children: [
{ createButton("query", "title=查询&isTop=true"),
path: "query", createButton("create", "title=新建&isTop=true"),
meta: { createButton("open-version", "title=启用&isTop=true"),
type: "button", createButton("closed-version", "title=停用&isTop=true"),
title: "查询", createButton("delete", "title=删除&isTop=true"),
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
], ],
}, },
},
{ {
path: "price-list-app-service-bj", ...createPage("material-relationship", "title=客户零件关系"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "page",
title: "备件价格单",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
}, },
{ {
path: "import", ...createPage("parts-relationship", "title=厂内替换件关系"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
}, },
{ {
path: "purchase_price_service", ...createPage("code-setting", "title=通用代码"),
meta: {
type: "page",
title: "采购价格单",
icon: "file",
children: [ children: [
{ createButton("query", "title=查询&isTop=true"),
path: "query", createButton("create", "title=新建&isTop=true"),
meta: { createButton("delete", "title=删除&isTop=true"),
type: "button", createButton("import", "title=导入&isTop=true"),
title: "查询", createButton("export", "title=导出&isTop=true&pattern=paged"),
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
], ],
}, },
},
{
path: "price-list",
meta: {
type: "page",
title: "销售价格单",
icon: "file",
children: [
{ {
path: "query", ...createPage("bom", "title=BOM结构"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
}, },
{ {
path: "import", ...createPage("bei-jian", "title=备件价格单"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
}, },
{ {
path: "tb_relationdhip", ...createPage("cai-gou", "title=采购价格单"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "page",
title: "客户库位关系表",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
}, },
{ {
path: "import", ...createPage("xiao-shou", "title=销售价格单"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
}, },
{ {
path: "export", ...createPage("ke-hu", "title=客户库位关系表"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")],
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
}, },
{ {
path: "job-item", ...createPage("job-item", "title=定时任务"),
meta: {
type: "page",
title: "定时任务",
icon: "file",
children: [ children: [
{ createButton("query", "title=查询&isTop=true"),
path: "query", createButton("create", "title=新建&isTop=true"),
meta: { createButton("delete", "title=删除&isTop=true"),
type: "button", createButton("update", "title=编辑"),
title: "查询", createButton("log", "title=日志"),
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "update",
meta: {
type: "button",
title: "编辑",
icon: "file",
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
{
path: "log",
meta: {
type: "button",
title: "日志",
icon: "file",
},
},
], ],
}, },
},
{
path: "job-log",
meta: {
type: "page",
title: "日志",
icon: "file",
isHidden: true,
children: [
{ {
path: "query", ...createPage("job-log", "title=任务日志&isHidden=true"),
meta: { children: [createButton("query", "title=查询&isTop=true"), createButton("delete", "title=删除&isTop=true")],
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
],
},
}, },
], ],
}, },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/purchase_price_service.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/purchase_price_service.js"; import useConfig from "../../models/base-data/bei-jian.js";
export default { export default {
components: { AppList }, components: { AppList },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bom.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/bom.js"; import useConfig from "../../models/base-data/bom.js";
export default { export default {
components: { AppList }, components: { AppList },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/cai-gou.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/tb_relationship.js"; import useConfig from "../../models/base-data/cai-gou.js";
export default { export default {
components: { AppList }, components: { AppList },

10
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/centralized-control.js

@ -2,7 +2,7 @@ import html from "html";
import { ref } from "vue"; import { ref } from "vue";
import request from "../../request/index.js"; import request from "../../request/index.js";
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import useConfig from "../../models/centralized-control.js"; import useConfig from "../../models/base-data/centralized-control.js";
import { ElMessage, ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import { format } from "../../utils/index.js"; import { format } from "../../utils/index.js";
@ -15,13 +15,9 @@ export default {
const onCommand = async (item, rows, load) => { const onCommand = async (item, rows, load) => {
if (item.path === "open-version" || item.path === "closed-version") { if (item.path === "open-version" || item.path === "closed-version") {
try { try {
await ElMessageBox.confirm( await ElMessageBox.confirm(format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length), "提示", {
format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length),
"提示",
{
type: "warning", type: "warning",
} });
);
const url = `${config.baseUrl}/${item.path}`; const url = `${config.baseUrl}/${item.path}`;
await request( await request(
url, url,

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/code-setting.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/code-setting.js"; import useConfig from "../../models/base-data/code-setting.js";
export default { export default {
components: { AppList }, components: { AppList },

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-item.js

@ -1,8 +1,8 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/job-item.js"; import useConfig from "../../models/base-data/job-item.js";
import { ref, onMounted, onUnmounted } from "vue"; import { ref, onMounted, onUnmounted } from "vue";
import useConfig2 from "../../models/job-log.js"; import useConfig2 from "../../models/base-data/job-log.js";
export default { export default {
components: { AppList }, components: { AppList },
@ -11,8 +11,7 @@ export default {
const config = useConfig(); const config = useConfig();
const onCommand = async (item, rows, load, showList) => { const onCommand = async (item, rows, load, showList) => {
const config = useConfig2(); const config = useConfig2();
config.query.schema.properties.filters.default[0].value = rows[0].id; showList({ jobId: rows[0].id }, "/base-data/job-log", config);
showList({ test: "test" }, "/base-data/job-log", config);
}; };
// //
const appListRef = ref(null); const appListRef = ref(null);

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-log.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/job-log.js"; import useConfig from "../../models/base-data/job-log.js";
export default { export default {
components: { AppList }, components: { AppList },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/ke-hu.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/price-list.js"; import useConfig from "../../models/base-data/ke-hu.js";
export default { export default {
components: { AppList }, components: { AppList },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material-relationship.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/material-relationship.js"; import useConfig from "../../models/base-data/material-relationship.js";
export default { export default {
components: { AppList }, components: { AppList },

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/material.js"; import useConfig from "../../models/base-data/material.js";
export default { export default {
components: { AppList }, components: { AppList },

15
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/parts-relationship.js

@ -0,0 +1,15 @@
import AppList from "../../components/list/index.js";
import html from "html";
import useConfig from "../../models/base-data/parts-relationship.js";
export default {
components: { AppList },
template: html`<app-list :config="config" @command="onCommand" />`,
setup() {
const config = useConfig();
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
return { config, onCommand };
},
};

15
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js

@ -1,15 +0,0 @@
import AppList from "../../components/list/index.js";
import html from "html";
import useConfig from "../../models/tb_re-parts-relationship_service.js";
export default {
components: { AppList },
template: html`<app-list :config="config" @command="onCommand" />`,
setup() {
const config = useConfig();
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
return { config, onCommand };
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list-app-service-bj.js → code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js

@ -1,6 +1,6 @@
import AppList from "../../components/list/index.js"; import AppList from "../../components/list/index.js";
import html from "html"; import html from "html";
import useConfig from "../../models/price-list-app-service-bj.js"; import useConfig from "../../models/base-data/xiaos-hou.js";
export default { export default {
components: { AppList }, components: { AppList },
Loading…
Cancel
Save