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 1f656b33..7c829a00 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 @@ -194,7 +194,7 @@ export default { - + diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js index e69de29b..cac0d10f 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/_options.js +++ b/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 }; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bom.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bom.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/bom.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bom.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/cai-gou.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/cai-gou.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/centralized-control.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/centralized-control.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/code-setting.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/code-setting.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/code-setting.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/code-setting.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-item.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-item.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-item.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-item.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-log.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-log.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-log.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/job-log.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/ke-hu.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/ke-hu.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material-relationship.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material-relationship.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material.js similarity index 100% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/material.js diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/parts-relationship.js similarity index 97% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/parts-relationship.js index 642b351e..b4e9bc02 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js +++ b/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 = { title: "客户替换件关系", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/xiaos-hou.js similarity index 97% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/xiaos-hou.js index 1853369d..17fb8522 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js +++ b/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 = { title: "销售价格单", type: "object", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js deleted file mode 100644 index e1476c8e..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js +++ /dev/null @@ -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; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/businessType.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/businessType.js deleted file mode 100644 index d42f18ee..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/businessType.js +++ /dev/null @@ -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; \ No newline at end of file diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/compare/compare.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/compare/compare.js index 0cb3427a..264312e6 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/compare/compare.js +++ b/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 = { title: "数据比对", properties: { - version: Object.assign(version, { rules: [{ required: true }] }), + version: Object.assign(version2, { rules: [{ required: true }] }), seDateTime: { title: "发运日期", type: "array", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/hbpo-edi-se-compare.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/hbpo-edi-se-compare.js deleted file mode 100644 index 6723abbe..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/hbpo-edi-se-compare.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/edi.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/edi.js index 698fadf2..44f0f009 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/edi.js +++ b/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 = { title: "EDI数据", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js index 04841dca..ac6993d3 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan-detail.js +++ b/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 state from "../state.js"; +import { version, state } from "../_options.js"; const schema = { title: "结算数据", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js index f1bbf68f..89972e00 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/input/jie-suan.js @@ -1,6 +1,4 @@ -import version from "../version.js"; -import state from "../state.js"; -import businessType from "../business-type.js"; +import businessType, { version, state } from "../_options.js"; const schema = { title: "结算数据", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js deleted file mode 100644 index 757c5a4e..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js +++ /dev/null @@ -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; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js deleted file mode 100644 index bdc4b2fb..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/job-service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_detail_service.js deleted file mode 100644 index d01b31df..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_detail_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js deleted file mode 100644 index 0598b5a4..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_detail_service.js deleted file mode 100644 index c24d570b..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_detail_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_service.js deleted file mode 100644 index bba28d6e..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_can_sa_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_not_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_not_sa_service.js deleted file mode 100644 index 6f886ab8..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_not_sa_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_detail_service.js deleted file mode 100644 index c2ca013c..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_detail_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_service.js deleted file mode 100644 index 96cd91cf..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_pd_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js deleted file mode 100644 index bfb22975..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_detail_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js deleted file mode 100644 index d4f23cae..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_sa_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js deleted file mode 100644 index f3330d38..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_se_detail_service.js +++ /dev/null @@ -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, - }, - }; -} diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js index 728d01ab..77c76808 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/commerce.js @@ -1,7 +1,4 @@ -import version from "../version.js"; -import { state2 } from "../state.js"; -import businessType from "../businessType.js"; -import invoiceState from "../invoiceState.js"; +import businessType, { version, state2 } from "../_options.js"; const state = Object.assign({}, state2); state.input = "tabs"; @@ -34,7 +31,16 @@ const schema = { }, businessType, state, - invoiceState, + invoiceState: { + title: "发票状态", + type: "string", + input: "select", + options: [ + { value: 1, label: "正常" }, + { value: 2, label: "报废" }, + { value: 3, label: "提交" }, + ], + }, taxDiff: { title: "发票税后尾差", type: "number", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js index 4e53617c..4cef2986 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/detail.js +++ b/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 = { title: "通用代码", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js index 0a60e5df..6c52f974 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/finance-detail.js @@ -1,5 +1,4 @@ -import version from "../version.js"; -import { state3 } from "../state.js"; +import { version, state3 } from "../_options.js"; const schema = { title: "寄售库库存扣减审批", diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js index eca017a1..ea1a6079 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/settle/usable.js @@ -1,5 +1,4 @@ -import version from "../version.js"; -import state from "../state.js"; +import { version, state } from "../_options.js"; const schema = { title: "可结算单", 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 deleted file mode 100644 index 5f29a488..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/state.js +++ /dev/null @@ -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 }; 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 deleted file mode 100644 index f4e26bd0..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js +++ /dev/null @@ -1,9 +0,0 @@ -export default { - title: "期间", - type: "string", - input: "select", - url: "settleaccount/centralized-control/get-all", - value: "version", - label: "version", - clearable: true, -}; diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js index 81e25892..9113a338 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js @@ -1,602 +1,88 @@ +import createRoute, { createPage, createButton } from "./utils.js"; + export default [ { - path: "base-data", - meta: { - type: "group", - title: "基础数据", - icon: "folder", - }, + ...createRoute("base-data", "title=基础数据"), children: [ { - path: "user", - meta: { - type: "page", - title: "用户管理", - icon: "file", - permission: "AbpIdentity.Users", - }, + ...createPage("user", "title=用户管理"), 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", - }, - }, + createButton("query", "title=查询&isTop=true"), + createButton("create", "title=新建&isTop=true"), + createButton("update", "title=编辑"), + createButton("delete", "title=删除&disabled=o=>o.userName==='admin'"), + createButton("%s/reset-password", "title=重置密码&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, - }, - }, - // { - // 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`, - }, - }, - ], + ...createPage("role", "title=角色管理"), + children: [createButton("query", "title=查询&isTop=true"), createButton("create", "title=新建&isTop=true"), createButton("delete", "title=删除&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", - }, - }, - ], - }, + ...createPage("material", "title=物料主数据"), + children: [createButton("query", "title=查询&isTop=true"), createButton("export", "title=导出&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, - }, - }, - ], - }, + ...createPage("centralized-control", "title=期间设置"), + children: [ + createButton("query", "title=查询&isTop=true"), + createButton("create", "title=新建&isTop=true"), + createButton("open-version", "title=启用&isTop=true"), + createButton("closed-version", "title=停用&isTop=true"), + createButton("delete", "title=删除&isTop=true"), + ], }, { - path: "material-relationship", - meta: { - type: "page", - title: "客户零件关系", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("material-relationship", "title=客户零件关系"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "tb_re-parts-relationship_service", - meta: { - type: "page", - title: "厂内替换件关系", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("parts-relationship", "title=厂内替换件关系"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&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", - meta: { - type: "button", - title: "新建", - icon: "file", - isTop: true, - }, - }, - { - path: "delete", - 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", - }, - }, - ], - }, + ...createPage("code-setting", "title=通用代码"), + children: [ + createButton("query", "title=查询&isTop=true"), + createButton("create", "title=新建&isTop=true"), + createButton("delete", "title=删除&isTop=true"), + createButton("import", "title=导入&isTop=true"), + createButton("export", "title=导出&isTop=true&pattern=paged"), + ], }, { - path: "bom", - meta: { - type: "page", - title: "BOM结构", - 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", - }, - }, - ], - }, + ...createPage("bom", "title=BOM结构"), + children: [createButton("query", "title=查询&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "price-list-app-service-bj", - meta: { - type: "page", - title: "备件价格单", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("bei-jian", "title=备件价格单"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "purchase_price_service", - meta: { - type: "page", - title: "采购价格单", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("cai-gou", "title=采购价格单"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "price-list", - meta: { - type: "page", - title: "销售价格单", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("xiao-shou", "title=销售价格单"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "tb_relationdhip", - meta: { - type: "page", - title: "客户库位关系表", - icon: "file", - children: [ - { - path: "query", - 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", - }, - }, - ], - }, + ...createPage("ke-hu", "title=客户库位关系表"), + children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], }, { - path: "job-item", - 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: "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", - }, - }, - ], - }, + ...createPage("job-item", "title=定时任务"), + children: [ + createButton("query", "title=查询&isTop=true"), + createButton("create", "title=新建&isTop=true"), + createButton("delete", "title=删除&isTop=true"), + createButton("update", "title=编辑"), + createButton("log", "title=日志"), + ], }, { - path: "job-log", - meta: { - type: "page", - title: "日志", - icon: "file", - isHidden: true, - children: [ - { - path: "query", - meta: { - type: "button", - title: "查询", - icon: "file", - isTop: true, - }, - }, - { - path: "delete", - meta: { - type: "button", - title: "删除", - icon: "file", - isTop: true, - }, - }, - ], - }, + ...createPage("job-log", "title=任务日志&isHidden=true"), + children: [createButton("query", "title=查询&isTop=true"), createButton("delete", "title=删除&isTop=true")], }, ], }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/purchase_price_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js similarity index 85% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/purchase_price_service.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js index 8799ac9c..1948aa7a 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/purchase_price_service.js +++ b/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 html from "html"; -import useConfig from "../../models/purchase_price_service.js"; +import useConfig from "../../models/base-data/bei-jian.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bom.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bom.js index ccfef1f9..06acdd0d 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bom.js +++ b/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 html from "html"; -import useConfig from "../../models/bom.js"; +import useConfig from "../../models/base-data/bom.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/cai-gou.js similarity index 85% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/cai-gou.js index b2933c2c..59e91206 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_relationdhip.js +++ b/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 html from "html"; -import useConfig from "../../models/tb_relationship.js"; +import useConfig from "../../models/base-data/cai-gou.js"; export default { components: { AppList }, @@ -12,4 +12,4 @@ export default { }; return { config, onCommand }; }, -}; \ No newline at end of file +}; 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 bf48003a..cfd9753b 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 @@ -2,7 +2,7 @@ import html from "html"; import { ref } from "vue"; import request from "../../request/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 { format } from "../../utils/index.js"; @@ -15,13 +15,9 @@ 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), - "提示", - { - type: "warning", - } - ); + await ElMessageBox.confirm(format(`确认${item.path === "open-version" ? "启用" : "停用"}选中的%s行数据吗?`, rows.length), "提示", { + type: "warning", + }); const url = `${config.baseUrl}/${item.path}`; await request( url, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/code-setting.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/code-setting.js index d69aaabe..6130585f 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/code-setting.js +++ b/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 html from "html"; -import useConfig from "../../models/code-setting.js"; +import useConfig from "../../models/base-data/code-setting.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-item.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-item.js index 0d0140c5..d2dadbc7 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-item.js +++ b/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 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 useConfig2 from "../../models/job-log.js"; +import useConfig2 from "../../models/base-data/job-log.js"; export default { components: { AppList }, @@ -11,8 +11,7 @@ export default { const config = useConfig(); const onCommand = async (item, rows, load, showList) => { const config = useConfig2(); - config.query.schema.properties.filters.default[0].value = rows[0].id; - showList({ test: "test" }, "/base-data/job-log", config); + showList({ jobId: rows[0].id }, "/base-data/job-log", config); }; // const appListRef = ref(null); diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-log.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-log.js index 9b36ff26..daa1ebb4 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/job-log.js +++ b/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 html from "html"; -import useConfig from "../../models/job-log.js"; +import useConfig from "../../models/base-data/job-log.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/ke-hu.js similarity index 86% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/ke-hu.js index 66a67ea5..69f6bdec 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list.js +++ b/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 html from "html"; -import useConfig from "../../models/price-list.js"; +import useConfig from "../../models/base-data/ke-hu.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material-relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material-relationship.js index 7187ade7..3cbcb471 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material-relationship.js +++ b/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 html from "html"; -import useConfig from "../../models/material-relationship.js"; +import useConfig from "../../models/base-data/material-relationship.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material.js index 338f7975..20b392a0 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/material.js +++ b/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 html from "html"; -import useConfig from "../../models/material.js"; +import useConfig from "../../models/base-data/material.js"; export default { components: { AppList }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/parts-relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/parts-relationship.js new file mode 100644 index 00000000..3f49b7c6 --- /dev/null +++ b/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``, + 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/base-data/tb_re-parts-relationship_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js deleted file mode 100644 index b677cf27..00000000 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/tb_re-parts-relationship_service.js +++ /dev/null @@ -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``, - 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/base-data/price-list-app-service-bj.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js similarity index 84% rename from code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list-app-service-bj.js rename to code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js index f58a3e48..5f16f792 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/price-list-app-service-bj.js +++ b/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 html from "html"; -import useConfig from "../../models/price-list-app-service-bj.js"; +import useConfig from "../../models/base-data/xiaos-hou.js"; export default { components: { AppList },