From 1301fa3484df4d56f582a46bf29cdf88a1811b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=90=20=E5=BC=A0?= <2366389513@qq.com> Date: Fri, 14 Jan 2022 11:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=87=E4=BB=B6=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E5=8D=95=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/components/ImportExcel-base/index.vue | 6 +- vue/src/router/modules/basedata.js | 10 + .../views/ux/basedata/spareparts/index.vue | 567 ++++++++++++++++++ vue/static/tableFieldForSearch.json | 38 +- 4 files changed, 617 insertions(+), 4 deletions(-) create mode 100644 vue/src/views/ux/basedata/spareparts/index.vue diff --git a/vue/src/components/ImportExcel-base/index.vue b/vue/src/components/ImportExcel-base/index.vue index 080f1eb6..39f5cbf7 100644 --- a/vue/src/components/ImportExcel-base/index.vue +++ b/vue/src/components/ImportExcel-base/index.vue @@ -284,7 +284,7 @@ export default { return this.stepsActive == 1; }, getMoudleDisable() { - if (this.crmType == "priceList") { + if (this.crmType == "priceList" || this.crmType == "spareparts") { //只状态可用 this.isEditYearMont = true; this.isEditFactory = true; @@ -299,6 +299,7 @@ export default { { invoice: "大众发票汇总", priceList: "标准价格单", + spareparts: "备件价格单", vWKanBan: "大众看板结算明细", scrapClaims: "CP7报废和索赔", sparePart: "大众备件结算明细", @@ -340,6 +341,7 @@ export default { { invoice: "/api/settleaccount/Invoices/ExcelImport", //大众发票导入 priceList: "/api/settleaccount/PriceList/ExcelImport-Map", //标准价格单 + spareparts: "/api/SettleAccount/PriceListBJ/ExcelImport-Map", //备件价格单 vWKanBan: "/api/settleaccount/VWKanBan/ExcelImport", //大众看板结算明细导入 scrapClaims: "/api/settleaccount/ScrapClaims/ExcelImport", //CP7报废和索赔导入 sparePart: "/api/settleaccount/SparePart/ExcelImport", //大众备件结算明细导入 @@ -565,7 +567,7 @@ export default { fd.append("period", "03"); fd.append("customerCode", "03"); fd.append("factory", this.YearMonthValue); - if (this.crmType == "priceList") { + if (this.crmType == "priceList" || this.crmType == "spareparts") { fd.append("version", "202110"); } else { fd.append("version", this.versionValue); diff --git a/vue/src/router/modules/basedata.js b/vue/src/router/modules/basedata.js index 6efa7d1c..7937c43f 100644 --- a/vue/src/router/modules/basedata.js +++ b/vue/src/router/modules/basedata.js @@ -49,6 +49,16 @@ const basedataRouter = { icon: '结算' } }, + { + path: 'spareparts', + component: () => import('@/views/ux/basedata/spareparts/index'), + name: 'Spareparts',//命名路由 + meta: { + title: '备件价格单', + roles: ['SettleAccount.PriceLists'], + icon: '结算' + } + }, // { // path: 'wms-kanban', // component: () => import('@/views/ux/vw/dataInput/wmsKanban'), diff --git a/vue/src/views/ux/basedata/spareparts/index.vue b/vue/src/views/ux/basedata/spareparts/index.vue new file mode 100644 index 00000000..0a6c8506 --- /dev/null +++ b/vue/src/views/ux/basedata/spareparts/index.vue @@ -0,0 +1,567 @@ + + + + + + + 导入文件(Excel) + + + + 搜索 + + 导出Excel + + + + + + + + + + + + + {{ scope.column.label }} + + + + + + + + + + + + + + diff --git a/vue/static/tableFieldForSearch.json b/vue/static/tableFieldForSearch.json index f0bb53dd..f201fd3c 100644 --- a/vue/static/tableFieldForSearch.json +++ b/vue/static/tableFieldForSearch.json @@ -1825,8 +1825,7 @@ "setting": [] } ] - } - , + }, "priceList": { "id": "31", "data": [ @@ -1862,6 +1861,41 @@ } ] }, + "spareparts": { + "id": "31", + "data": [ + { + "fieldId": 0, + "formType": "text", + "name": "价格", + "type": 1, + "value": "", + "fieldType": 1, + "fieldName": "price", + "setting": [] + }, + { + "fieldId": 1, + "formType": "text", + "name": "物料编号", + "type": 1, + "value": "", + "fieldType": 1, + "fieldName": "materialCode", + "setting": [] + }, + { + "fieldId": 1, + "formType": "text", + "name": "期间", + "type": 1, + "value": "", + "fieldType": 1, + "fieldName": "version", + "setting": [] + } + ] + }, "invoice": { "id": "31", "data": [