From 264ecb8f00b3ec84ef6a61e317ae1e4dd0191ca4 Mon Sep 17 00:00:00 2001 From: "zhaoxingchang.sd" Date: Wed, 14 Aug 2024 20:28:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AE=9A=E5=88=B6=E5=8C=96=E8=BF=81?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 13 + src/common/http/baseServiceUrl.js | 7 +- src/common/http/orderApiUrl.js | 37 +- src/common/utils/common.js | 1 - src/common/utils/fpdmListEnum.js | 13 + src/router/order/index.js | 9 +- src/views/order/orderReading.vue | 675 +++++++++++++++++++++++++++ src/views/statistics/invoiceList.vue | 116 ++++- vue.config.js | 13 +- 9 files changed, 863 insertions(+), 21 deletions(-) create mode 100644 src/common/utils/fpdmListEnum.js create mode 100644 src/views/order/orderReading.vue diff --git a/src/App.vue b/src/App.vue index 398af8e..84d2ce4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -303,6 +303,19 @@ export default { systemSign: "XXGL", children: [], }, + { + id: 5047, + parentId: 145, + parentName: null, + name: "订单读入", + url: "/order/orderReading", + perms: "/order/orderReading", + type: 2, + icon: null, + orderNum: 4, + systemSign: "XXGL", + children: [], + }, ], }, { diff --git a/src/common/http/baseServiceUrl.js b/src/common/http/baseServiceUrl.js index 357be5f..cb293e9 100644 --- a/src/common/http/baseServiceUrl.js +++ b/src/common/http/baseServiceUrl.js @@ -451,10 +451,15 @@ export const updateTaxClassCodeHttp = (data) => request({ data }); - //车辆识别代号/车架号查询 export const queryVehiclesVinHttp = (data) => request({ method: 'post', url: '/sims-api/vehiclesVin/queryVehiclesVin', data }); + +export const emailSendPushApi = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/emailSend', + data +}); diff --git a/src/common/http/orderApiUrl.js b/src/common/http/orderApiUrl.js index 929ebed..eb569fb 100644 --- a/src/common/http/orderApiUrl.js +++ b/src/common/http/orderApiUrl.js @@ -872,15 +872,50 @@ export const queryQdZzfppzHttp = (data) => request({ data }); -// 乐企模式 +// 乐企模式 export const queryLqModelHttp = (data) => request({ method: 'post', url: '/sims-api/order/queryLqModel', data }); +// 订单读入 +// 订单读入列表查询 +export const sapOrderList = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/queryList', + data +}); +// SAP读入 +export const readIn = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/orderRead', + data +}); +// SAP发票详情 +export const sapOrderItemListApi = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/queryDetail', + data +}); +export const orderExtractApi = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/orderExtract', + data +}); +//读入数据删除 +export const deleteByIdsApi = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/delOrder', + data +}); +export const createOrderByCopyInvoiceApi = (data) => request({ + method: 'post', + url: '/sims-api/bespoke/order/createOrderByCopyInvoice', + data +}); diff --git a/src/common/utils/common.js b/src/common/utils/common.js index 5564f1d..9531c63 100644 --- a/src/common/utils/common.js +++ b/src/common/utils/common.js @@ -377,7 +377,6 @@ const formatDate = function formatDate() { var timeArr = [] timeArr.push(year + '-' + month + '-01') timeArr.push(year + '-' + month + '-' + date); - timeArr.push(year + '-' + month1 ) return timeArr } //初始化日期,默认为当年 diff --git a/src/common/utils/fpdmListEnum.js b/src/common/utils/fpdmListEnum.js new file mode 100644 index 0000000..770cecf --- /dev/null +++ b/src/common/utils/fpdmListEnum.js @@ -0,0 +1,13 @@ +const fpdmEnum = new Map([ + ["001", "数电专用发票"], + ["002", "数电普通发票"], + ["085", "数电纸票专用发票"], + ["086", "数电纸票普通发票"], + ["004", "增值税专用发票"], + ["005", "机动车销售统一发票"], + ["006", "二手车销售统一发票"], + ["007", "增值税普通发票"], + ["026", "增值税电子普通发票"], + ["028", "增值税电子专用发票"], +]); +export default fpdmEnum; \ No newline at end of file diff --git a/src/router/order/index.js b/src/router/order/index.js index b1d440b..e92913c 100644 --- a/src/router/order/index.js +++ b/src/router/order/index.js @@ -126,6 +126,13 @@ export default [ keepAlive: false } }, - + { + path: '/order/orderReading', + name: "orderReading", + component: () => import(/* webpackChunkName: "orderReading" */ '@views/order/orderReading'), + meta: { + keepAlive: false + } + }, ] diff --git a/src/views/order/orderReading.vue b/src/views/order/orderReading.vue new file mode 100644 index 0000000..e092fae --- /dev/null +++ b/src/views/order/orderReading.vue @@ -0,0 +1,675 @@ + + + diff --git a/src/views/statistics/invoiceList.vue b/src/views/statistics/invoiceList.vue index baaf43e..9bee4e0 100644 --- a/src/views/statistics/invoiceList.vue +++ b/src/views/statistics/invoiceList.vue @@ -135,7 +135,7 @@ 机动车购置税申报表 + 邮箱推送 + 关闭 + + +
+ 数电专票(电子) + 数电普票(电子) +
+ + 取消 + 确定 + +
@@ -320,15 +339,15 @@ import common from "@common/utils/common"; import {showLoading, hideLoading} from "@common/utils/loading"; import setting from "@common/mixins/setting"; import printJS from "print-js"; -import {queryYwlxHttp} from "@common/http/baseServiceUrl"; +import {emailSendPushApi, queryYwlxHttp} from "@common/http/baseServiceUrl"; import { - downInvoiceHttp, + downInvoiceHttp, createOrderByCopyInvoiceApi, downRpaInvoiceHttp, excelExportHttp, exportExcelByInvoicingSoftwareFormatHttp, exportVehicleInvoiceHttp, manualPushInvalidInvoiceHttp, manualPushInvoiceHttp, previewInvoicePngMoreHttp, queryFpzlDmHttp, queryInvoiceAccessPointListHttp, queryInvoiceDetailsHttp, queryVehicleInvoiceListHttp, - downNuoHttp,getSdjfewmHttp,exportExcelJdcXmlHttp + downNuoHttp, getSdjfewmHttp, exportExcelJdcXmlHttp, readIn } from "@common/http/orderApiUrl"; export default { @@ -344,6 +363,9 @@ export default { mixins: [setting], data() { return { + fpzldmType:'', + sureOrderModel:false, + invoiceCopyRow:void 0, qrcodeModel:false, ewmSrc:'', address:'', @@ -890,7 +912,7 @@ export default { prop: "kplx", render: ({row}) => {this.kplxCode(row.kplx)}, }, - + { label: "作废标志", width: "", @@ -935,20 +957,20 @@ export default { width: "250", prop: "invoicePushSbyy", }, - + { label: "开票点", width: "", prop: "sldmc", }, - + { label: "业务类型", width: "", prop: "ywlx", }, - + { label: "销方名称", width: "", @@ -973,7 +995,7 @@ export default { }, { label: "操作", - width: "170", + width: "200", fixed: "right", render: ({row}) => { // return ( @@ -1010,8 +1032,17 @@ export default { 交付二维码 ); + let save = ( + this.saveBtn(row)} + > + 复制 + + ); let showBtn = []; this.buttonCode('xx_fpgl_fplb_xq') ? showBtn.push(detail) : ''; + showBtn.push(save) //全电服务类型为2,表示rpa开票 row.fpzlDm == '01' || row.fpzlDm == '02' || row.fpzlDm == '03' || row.fpzlDm == '04' ? showBtn.push(down) : ''; // RPA下载 row.qdfwlx !='0' && (row.fpzlDm == '01' || row.fpzlDm == '02' || row.fpzlDm == '03' || row.fpzlDm == '04' ) ? showBtn.push(ewm):''; @@ -1157,7 +1188,7 @@ export default { }, immediate: true } - + }, methods: { // toggle() { @@ -1173,6 +1204,37 @@ export default { this.queryYwlx(); this.queryInvoices(); }, + saveBtn(){ + this.sureOrderModel = true; + this.fpzldmType = void 0; + }, + sureCopyBtn(row){ + showLoading() + createOrderByCopyInvoiceApi({ + fpzldm:JSON.stringify(this.fpzldmType), + entList:JSON.stringify([row.entId]), + fpqqlshList:JSON.stringify([row.fpqqlsh]), + xhfNsrsbh:JSON.stringify([row.xhfNsrsbh]), + }).then((response) => { + if (response.code == "0000") { + this.$message({ + message:response.msg, + type: "success", + }); + this.sureOrderModel = false; + this.queryInvoices(); + } else { + this.$message({ + message: response.msg, + type: "error", + }); + } + + + }).finally(()=>{ + hideLoading(); + }) + }, // 业务类型 queryYwlx() { queryYwlxHttp({ @@ -1937,6 +1999,40 @@ export default { this.form.endTime = common.formatDate()[1]; this.queryFpzlDm() }, + emilPushBtn(){ + if (this.multipleSelection.length == "") { + this.$message({ + message: "请至少选择一条数据", + type: "error", + }); + }else { + showLoading() + let argument = { + entId: this.$store.state.system.userInfo.currentDeptId, + nsrsbh: this.$store.state.system.userInfo.dept.taxpayerCode, // "纳税人识别号", + fpqqlshList: this.multipleSelection.map(item => { + return { + fpqqlsh + } + }) + } + emailSendPushApi(argument).then(response => { + if (response.code == "0000") { + this.$message({ + message:response.msg, + type: "success", + }); + } else { + this.$message({ + message: response.msg, + type: "error", + }); + } + }).finally(() => { + hideLoading() + }) + } + }, jdcExport(){ if (this.multipleSelection.length == "") { this.$message({ diff --git a/vue.config.js b/vue.config.js index e3c9c62..246c731 100644 --- a/vue.config.js +++ b/vue.config.js @@ -65,24 +65,23 @@ module.exports = { }, devServer: { port: '9000', - open: true, //项目启动时是否自动打开浏览器,我这里设置为false,不打开,true表示打开 + open: false, //项目启动时是否自动打开浏览器,我这里设置为false,不打开,true表示打开 proxy: { //订单服务 '/sims-api': { // target: 'http://10.1.31.166:18107/sims-api', // 张双超 // target: 'http://10.1.30.104:18108/sims-api', // 姚旭光 - target: 'http://10.1.3.230:10000/sims-api', // 测试环境 + target: 'http://10.18.90.125:10000/sims-api', // 测试环境 + changeOrigin: false, // target: 'http://10.1.3.216:10000/sims-api', //乐企通 - - pathRewrite: { '^/sims-api': '/' - } + }, }, '/management': { - target: 'http://10.1.3.230:10000/management', // 新测试环境 + target: 'http://10.18.90.125:10000/management', // 新测试环境 // target: 'http://10.1.3.216:10000/management', //乐企通 - + changeOrigin: false, pathRewrite: { '^/management': '/', }