From e0c38e054793918d8fd1b3127fca00cd51a71709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Tue, 18 Apr 2023 17:54:05 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=A2=84=E9=AA=8C=E6=94=B6=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E9=80=89=E5=85=A5=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/api/inout/order.js | 9 +- src/views/inout/DialogCreateOrder.vue | 576 ++++++++------- src/views/inout/DialogCreateOrderSelect.vue | 732 ++++++++++++++++++++ vue.config.js | 2 +- 5 files changed, 1075 insertions(+), 245 deletions(-) create mode 100644 src/views/inout/DialogCreateOrderSelect.vue diff --git a/package.json b/package.json index 203c7865..57441c3d 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "clipboard": "2.0.8", "core-js": "3.19.1", "echarts": "4.9.0", - "element-china-area-data": "^5.0.2", "element-ui": "2.15.8", "file-saver": "2.0.5", "fuse.js": "6.4.3", diff --git a/src/api/inout/order.js b/src/api/inout/order.js index b9bd4988..25cce1da 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -421,8 +421,13 @@ export function getOrderList(params) { params: params }); } - - +export function getOrderFilter(params) { + return axios({ + url: "udiwms/inout/preInorder/filter", + method: "get", + params: params + }); +} export function updateStatus(query) { return axios({ url: "/spms/inout/order/web/updateStatus", diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 1e187225..59006fdf 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -1,30 +1,39 @@ diff --git a/vue.config.js b/vue.config.js index 5b064d38..2a85f322 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:9991/`, + target: `http://192.168.0.166:9991/`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' From abf0ad2dda0aca5e6974bb8a3cd7bb8d36df7645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Tue, 18 Apr 2023 18:01:27 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E9=A2=84=E9=AA=8C=E6=94=B6=E5=8D=95?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 14 +- src/api/inout/acceptOrder.js | 7 + src/api/inout/order.js | 3 + src/api/inout/statData.js | 10 + src/api/system/invRemindSet.js | 16 + src/api/system/systemPDFTemplate.js | 62 +- src/views/inout/DialogNewReviewOrder.vue | 507 ++++++++++ src/views/inout/IoCheckAuditOrder.vue | 30 +- src/views/inout/receive/DialogNewReceive.vue | 64 +- src/views/inout/stat/IoStatDaySearch.vue | 24 +- src/views/inout/stat/IoStatMonthSearch.vue | 24 +- src/views/inout/stat/IoStatQuarterSearch.vue | 22 +- src/views/inout/stat/IoStatYearSearch.vue | 22 +- src/views/inventory/InvProducts.vue | 40 +- src/views/inventory/addInvRemindSetDialog.vue | 212 ++++ .../purchase/purApply/purApplyEditDiaolog.vue | 953 +++++++++--------- .../purchase/purOrder/purOrderEditDialog.vue | 6 +- .../purchase/purPlan/purPlanEditDialog.vue | 6 +- src/views/remind/addInvRemindSetDialog.vue | 335 ++++++ src/views/remind/invRemindSet.vue | 174 ++-- src/views/remind/invRemindSetModify.vue | 105 +- src/views/sync/SysUdimsConfig.vue | 764 ++++++++++---- src/views/system/print/pdfBizPrintSet.vue | 759 ++++++++++++++ src/views/system/print/pdfCodePrintSet.vue | 759 ++++++++++++++ src/views/system/print/pdfLabelPrintSet.vue | 758 ++++++++++++++ src/views/system/print/pdfPrintSet.vue | 836 +-------------- .../system/print/pdfStatementPrintSet.vue | 758 ++++++++++++++ src/views/system/print/pdfTmpleateManage.vue | 54 +- vue.config.js | 161 ++- 29 files changed, 5715 insertions(+), 1770 deletions(-) create mode 100644 src/views/inout/DialogNewReviewOrder.vue create mode 100644 src/views/inventory/addInvRemindSetDialog.vue create mode 100644 src/views/remind/addInvRemindSetDialog.vue create mode 100644 src/views/system/print/pdfBizPrintSet.vue create mode 100644 src/views/system/print/pdfCodePrintSet.vue create mode 100644 src/views/system/print/pdfLabelPrintSet.vue create mode 100644 src/views/system/print/pdfStatementPrintSet.vue diff --git a/.env.production b/.env.production index f0e1c16d..85178235 100644 --- a/.env.production +++ b/.env.production @@ -6,11 +6,19 @@ ENV = 'production' # VUE_APP_BASE_API = 'http://116.204.71.86:9150/UDI_WMS_MC/' -#林纪裕 -VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_WMS_MC/' +#林纪裕cd +# VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_WMS_MC/' +# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/' +VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5004/UDI_WMS_MC/' -# VUE_APP_BASE_API = 'http://192.168.0.66:9160/UDI_WMS_MC/' +# 测试服务器 +# VUE_APP_BASE_API = 'http://192.168.0.66:9150/UDI_WMS_MC/' + + +# 吴总测试服务器 +# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/' + # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/UDI_WMS_NEW/' diff --git a/src/api/inout/acceptOrder.js b/src/api/inout/acceptOrder.js index 750d0416..191a30ab 100644 --- a/src/api/inout/acceptOrder.js +++ b/src/api/inout/acceptOrder.js @@ -35,3 +35,10 @@ export function getAcceptStatus(query) { }); } +export function reviewSpms(query) { + return axios({ + url: "/udiwms/order/reviewSpms", + method: "post", + data: query + }); +} diff --git a/src/api/inout/order.js b/src/api/inout/order.js index 25cce1da..59da4dc4 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -511,3 +511,6 @@ export function orderChange(query) { } + + + diff --git a/src/api/inout/statData.js b/src/api/inout/statData.js index b12cf6c4..5506cfa0 100644 --- a/src/api/inout/statData.js +++ b/src/api/inout/statData.js @@ -39,3 +39,13 @@ export function filterYearList(params) { params: params }); } + + export function excelImport(params) { + return axios({ + url: "/udiwms/inv/excelExportOut", + method: "get", + responseType: 'blob', + params: params + }); + } + diff --git a/src/api/system/invRemindSet.js b/src/api/system/invRemindSet.js index 47659f93..6ff6bc2c 100644 --- a/src/api/system/invRemindSet.js +++ b/src/api/system/invRemindSet.js @@ -23,3 +23,19 @@ export function deleteInvRemindSet(data){ data: data }); } + +export function getInfoByInvId(params) { + return axios({ + url: "/udiwms/inv/remind/set/getInfoByInvId", + method: "get", + params: params + }); +} + +export function batchAddInvRemindSet(data) { + return axios({ + url: "/udiwms/inv/remind/set/batchAddInvRemindSet", + method: "post", + data: data + }); +} diff --git a/src/api/system/systemPDFTemplate.js b/src/api/system/systemPDFTemplate.js index 2a2325ae..f4eca062 100644 --- a/src/api/system/systemPDFTemplate.js +++ b/src/api/system/systemPDFTemplate.js @@ -59,18 +59,70 @@ export function systemPDFTemplateDeleteById(query) { }); } -export function moduleDetail(query) { +export function moduleBizDetail(query) { return axios({ - url: "/system/pdf/module/detail", - method: "get", - params: query + url: "/system/pdf/templateRelevanceBiz/getListByModelId", + method: "post", + data: query }); } export function updateDetailRel(query) { return axios({ - url: "/system/pdf/module/updateRl", + url: "/system/pdf/templateRelevanceBiz/updateRl", + method: "post", + data: query + }); +} + +export function moduleCodeDetail(query) { + return axios({ + url: "/system/pdf/templateRelevanceCode/getListByModelId", + method: "post", + data: query + }); +} + + +export function updateCodeDetailRel(query) { + return axios({ + url: "/system/pdf/templateRelevanceCode/updateRl", + method: "post", + data: query + }); +} + +export function moduleLabelDetail(query) { + return axios({ + url: "/system/pdf/templateRelevanceLabel/getListByModelId", + method: "post", + data: query + }); +} + + +export function updateLabelDetailRel(query) { + return axios({ + url: "/system/pdf/templateRelevanceLabel/updateRl", + method: "post", + data: query + }); +} + + +export function moduleStatementDetail(query) { + return axios({ + url: "/system/pdf/templateRelevanceStatement/getListByModelId", + method: "post", + data: query + }); +} + + +export function updateStatementDetailRel(query) { + return axios({ + url: "/system/pdf/templateRelevanceStatement/updateRl", method: "post", data: query }); diff --git a/src/views/inout/DialogNewReviewOrder.vue b/src/views/inout/DialogNewReviewOrder.vue new file mode 100644 index 00000000..2a1f0cc0 --- /dev/null +++ b/src/views/inout/DialogNewReviewOrder.vue @@ -0,0 +1,507 @@ + + + + + diff --git a/src/views/inout/IoCheckAuditOrder.vue b/src/views/inout/IoCheckAuditOrder.vue index 301316f5..00af5928 100644 --- a/src/views/inout/IoCheckAuditOrder.vue +++ b/src/views/inout/IoCheckAuditOrder.vue @@ -51,7 +51,6 @@ - @@ -84,6 +83,10 @@ >查询 + 新增单据审核 + @@ -421,7 +424,7 @@ + + + + @@ -451,6 +468,7 @@ import {getBizDetailList} from "@/api/inout/orderDetailBiz"; import {getCodeDetailList} from "@/api/inout/orderDetailCode"; import {getCodeList} from "@/api/inout/code"; import AcceptOrder from "@/views/inout/DialogReviewOrder"; +import NewAcceptOrder from "@/views/inout/DialogNewReviewOrder"; import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" @@ -585,9 +603,10 @@ export default { resultDetailList: [], acceptQuery: null, acceptOrderVisible: false, + newAcceptOrderVisible: false, }; }, - components: {AcceptOrder}, + components: {AcceptOrder, NewAcceptOrder}, methods: { onReset() { this.$router.push({ @@ -907,6 +926,11 @@ export default { this.acceptOrderVisible = true; }, + + newReview() { + this.newAcceptOrderVisible = true; + }, + parentByFn: function (childValue) { this.getList(); }, diff --git a/src/views/inout/receive/DialogNewReceive.vue b/src/views/inout/receive/DialogNewReceive.vue index 989077c2..f58e005b 100644 --- a/src/views/inout/receive/DialogNewReceive.vue +++ b/src/views/inout/receive/DialogNewReceive.vue @@ -128,8 +128,12 @@ @@ -158,7 +162,7 @@ + + + diff --git a/src/views/purchase/purApply/purApplyEditDiaolog.vue b/src/views/purchase/purApply/purApplyEditDiaolog.vue index 79c77019..208d8169 100644 --- a/src/views/purchase/purApply/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApply/purApplyEditDiaolog.vue @@ -1,166 +1,174 @@ diff --git a/src/views/purchase/purOrder/purOrderEditDialog.vue b/src/views/purchase/purOrder/purOrderEditDialog.vue index 1f47340e..6d642305 100644 --- a/src/views/purchase/purOrder/purOrderEditDialog.vue +++ b/src/views/purchase/purOrder/purOrderEditDialog.vue @@ -212,6 +212,7 @@ export default { billNo: null, billDate: "", remark: "", + billType: "CGDD", deptCode: null, locStorageCode: null, invWarehouseCode: null, @@ -281,10 +282,10 @@ export default { if (this.formData.invCode == "" || this.formData.invCode == null) { return this.$message.error("采购仓库不能为空!"); } - if(this.formData.emergency=="" || this.formData.emergency==null){ + if (this.formData.emergency == "" || this.formData.emergency == null) { return this.$message.error("紧急程度不能为空!"); } - if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){ + if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) { return this.$message.error("到货时间不能为空!"); } for (let i = 0; i < this.codeArray.length; i++) { @@ -500,6 +501,7 @@ export default { billNo: null, billDate: "", remark: "", + billType: "CGDD", deptCode: null, incCode: null, }; diff --git a/src/views/purchase/purPlan/purPlanEditDialog.vue b/src/views/purchase/purPlan/purPlanEditDialog.vue index 63b0ffbe..3486ed63 100644 --- a/src/views/purchase/purPlan/purPlanEditDialog.vue +++ b/src/views/purchase/purPlan/purPlanEditDialog.vue @@ -212,6 +212,7 @@ export default { billNo: null, billDate: "", remark: "", + billType: "CGJH", deptCode: null, locStorageCode: null, invWarehouseCode: null, @@ -281,10 +282,10 @@ export default { if (this.formData.invCode == "" || this.formData.invCode == null) { return this.$message.error("采购仓库不能为空!"); } - if(this.formData.emergency=="" || this.formData.emergency==null){ + if (this.formData.emergency == "" || this.formData.emergency == null) { return this.$message.error("紧急程度不能为空!"); } - if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){ + if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) { return this.$message.error("到货时间不能为空!"); } for (let i = 0; i < this.codeArray.length; i++) { @@ -499,6 +500,7 @@ export default { billNo: null, billDate: "", remark: "", + billType: "CGJH", deptCode: null, incCode: null, }; diff --git a/src/views/remind/addInvRemindSetDialog.vue b/src/views/remind/addInvRemindSetDialog.vue new file mode 100644 index 00000000..0669992b --- /dev/null +++ b/src/views/remind/addInvRemindSetDialog.vue @@ -0,0 +1,335 @@ + + + + diff --git a/src/views/remind/invRemindSet.vue b/src/views/remind/invRemindSet.vue index e445901e..01b53978 100644 --- a/src/views/remind/invRemindSet.vue +++ b/src/views/remind/invRemindSet.vue @@ -1,53 +1,81 @@ - + - + @@ -102,8 +102,8 @@ - - + + @@ -111,6 +111,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -133,7 +157,7 @@ 选取文件 -
只能上传 jasper 文件,且不超过 2 +
只能上传 jasper 文件,且不超过 10 MB
{{ formData.path }}
@@ -160,7 +184,7 @@ 选取文件
只能上传 jrxml - 文件,且不超过 2 MB + 文件,且不超过 10 MB
{{ formData.jrxmlPath }}
@@ -268,6 +292,8 @@ const formJson = { rowCount: 10, qrcodeCount: 1, remark: "", + bussinessType:null, + bussinessStatusList:[], }; const moduleFormJson = { id: "", @@ -364,6 +390,12 @@ export default { }; this.getList(); }, + isCleck(){ + if(this.formData.module!="2"){ + this.formData.bussinessStatusList=[]; + this.formData.bussinessType=null; + } + }, onSubmit() { this.query.page = 1; this.getList(); @@ -561,9 +593,11 @@ export default { submitUpload() { if (this.$refs.uploadJasper.uploadFiles.length < 1 && !this.uploadDisabled) { this.$message.warning(`请选择jasper文件`); + return } if (this.$refs.uploadJrxml.uploadFiles.length < 1 && !this.uploadDisabled) { this.$message.warning(`请选择jasper文件`); + return } console.log(this.formName) this.$refs["dataForm"].validate(valid => { @@ -590,9 +624,9 @@ export default { return; } // 限制上传文件的大小 - const isLt = file.size / 1024 / 1024 / 2 <= 1; + const isLt = file.size / 1024 / 1024 / 30 <= 1; if (!isLt) { - this.$message.error("上传文件大小不能超过 2MB"); + this.$message.error("上传文件大小不能超过 30MB"); for (let i = 0; i < fileList.length; i++) { if (fileList[i].uid === uid) { fileList.splice(i, 1) @@ -629,9 +663,9 @@ export default { return; } // 限制上传文件的大小 - const isLt = file.size / 1024 / 1024 / 2 <= 1; + const isLt = file.size / 1024 / 1024 / 30 <= 1; if (!isLt) { - this.$message.error("上传文件大小不能超过 2MB"); + this.$message.error("上传文件大小不能超过 30MB"); for (let i = 0; i < fileList.length; i++) { if (fileList[i].uid === uid) { fileList.splice(i, 1) diff --git a/vue.config.js b/vue.config.js index 2a85f322..0c3feeb1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,15 +1,15 @@ -'use strict' -const path = require('path') +"use strict"; +const path = require("path"); function resolve(dir) { - return path.join(__dirname, dir) + return path.join(__dirname, dir); } -const CompressionPlugin = require('compression-webpack-plugin') +const CompressionPlugin = require("compression-webpack-plugin"); -const name = process.env.VUE_APP_TITLE || 'UDI管理系统' // 网页标题 +const name = process.env.VUE_APP_TITLE || "UDI管理系统"; // 网页标题 -const port = process.env.port || process.env.npm_config_port || 80 // 端口 +const port = process.env.port || process.env.npm_config_port || 80; // 端口 // vue.config.js 配置说明 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions @@ -20,117 +20,116 @@ module.exports = { // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 publicPath: process.env.VUE_APP_CONTEXT_PATH, // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist) - outputDir: 'UDI_WMS_NEW', + outputDir: "UDI_WMS_NEW", // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下) - assetsDir: 'static', + assetsDir: "static", // 是否开启eslint保存检测,有效值:ture | false | 'error' - lintOnSave: process.env.NODE_ENV === 'development', + lintOnSave: process.env.NODE_ENV === "development", // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, // webpack-dev-server 相关配置 devServer: { - host: '0.0.0.0', + host: "0.0.0.0", port: port, open: false, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { +<<<<<<< HEAD target: `http://192.168.0.166:9991/`, +======= + target: `http://192.168.0.66:9150/UDI_WMS_MC/`, +>>>>>>> 9888474ccf2da85118a27d3e30da15957c8302ff changeOrigin: true, pathRewrite: { - ['^' + process.env.VUE_APP_BASE_API]: '' - } - } + ["^" + process.env.VUE_APP_BASE_API]: "", + }, + }, }, - disableHostCheck: true + disableHostCheck: true, }, css: { loaderOptions: { sass: { - sassOptions: { outputStyle: "expanded" } - } - } + sassOptions: { outputStyle: "expanded" }, + }, + }, }, configureWebpack: { name: name, resolve: { alias: { - '@': resolve('src') - } + "@": resolve("src"), + }, }, plugins: [ // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 new CompressionPlugin({ - cache: false, // 不启用文件缓存 - test: /\.(js|css|html)?$/i, // 压缩文件格式 - filename: '[path].gz[query]', // 压缩后的文件名 - algorithm: 'gzip', // 使用gzip压缩 - minRatio: 0.8 // 压缩率小于1才会压缩 - }) + cache: false, // 不启用文件缓存 + test: /\.(js|css|html)?$/i, // 压缩文件格式 + filename: "[path].gz[query]", // 压缩后的文件名 + algorithm: "gzip", // 使用gzip压缩 + minRatio: 0.8, // 压缩率小于1才会压缩 + }), ], }, chainWebpack(config) { - config.plugins.delete('preload') // TODO: need test - config.plugins.delete('prefetch') // TODO: need test + config.plugins.delete("preload"); // TODO: need test + config.plugins.delete("prefetch"); // TODO: need test // set svg-sprite-loader + config.module.rule("svg").exclude.add(resolve("src/assets/icons")).end(); config.module - .rule('svg') - .exclude.add(resolve('src/assets/icons')) - .end() - config.module - .rule('icons') + .rule("icons") .test(/\.svg$/) - .include.add(resolve('src/assets/icons')) + .include.add(resolve("src/assets/icons")) .end() - .use('svg-sprite-loader') - .loader('svg-sprite-loader') + .use("svg-sprite-loader") + .loader("svg-sprite-loader") .options({ - symbolId: 'icon-[name]' + symbolId: "icon-[name]", }) - .end() + .end(); - config - .when(process.env.NODE_ENV !== 'development', - config => { - config - .plugin('ScriptExtHtmlWebpackPlugin') - .after('html') - .use('script-ext-html-webpack-plugin', [{ - // `runtime` must same as runtimeChunk name. default is `runtime` - inline: /runtime\..*\.js$/ - }]) - .end() - config - .optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm - }, - commons: { - name: 'chunk-commons', - test: resolve('src/components'), // can customize your rules - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true - } - } - }) - config.optimization.runtimeChunk('single'), - { - from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 - to: './' //到根目录下 - } - } - ) - } -} + config.when(process.env.NODE_ENV !== "development", (config) => { + config + .plugin("ScriptExtHtmlWebpackPlugin") + .after("html") + .use("script-ext-html-webpack-plugin", [ + { + // `runtime` must same as runtimeChunk name. default is `runtime` + inline: /runtime\..*\.js$/, + }, + ]) + .end(); + config.optimization.splitChunks({ + chunks: "all", + cacheGroups: { + libs: { + name: "chunk-libs", + test: /[\\/]node_modules[\\/]/, + priority: 10, + chunks: "initial", // only package third parties that are initially dependent + }, + elementUI: { + name: "chunk-elementUI", // split elementUI into a single package + priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm + }, + commons: { + name: "chunk-commons", + test: resolve("src/components"), // can customize your rules + minChunks: 3, // minimum common number + priority: 5, + reuseExistingChunk: true, + }, + }, + }); + config.optimization.runtimeChunk("single"), + { + from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件 + to: "./", //到根目录下 + }; + }); + }, +}; From 7d2731439bc01cfff22380cf1b58ba37c0c22023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 19 Apr 2023 11:01:56 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=84=E9=80=89?= =?UTF-8?q?=E5=8D=95=E9=80=89=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 34 +++++++++---- src/views/inout/DialogCreateOrderSelect.vue | 53 ++++++++++----------- vue.config.js | 6 +-- 3 files changed, 53 insertions(+), 40 deletions(-) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 59006fdf..67ccebb9 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -14,6 +14,7 @@ 选入预验收库单 @@ -184,10 +185,13 @@ - + - + @@ -284,7 +288,10 @@ append-to-body @close="closeDialogtwo" > - +
@@ -346,7 +353,7 @@ export default { remark: null, fromType: 2, errMsg: null, - Acceptance: null, + checkPreInOrders: null, }, errView: 0, //选入相关 @@ -419,6 +426,8 @@ export default { viewBizVisible: false, viewCodeVisible: false, viewCodeDetailVisible: false, + + documentShow:false,//控制预选单显示隐藏 }; }, components: { @@ -446,14 +455,18 @@ export default { }) .catch(() => {}); }, - //接收预选单传值 - giveselectbox(val){ - this.orderFormData.Acceptance=val + //接收预选单传值 + giveselectbox(val) { + this.orderFormData.checkPreInOrders = val; }, //仓库改变 changeInv() { this.orderFormData.action = null; this.getBusTypeByInv(); + + // if(scanPreIn = true && backPreinType === 1){ + + // } }, //根据仓库,用户获取单据类型 @@ -552,6 +565,11 @@ export default { this.orderFormData.fromInvCode = null; this.findFromInvList(); } + if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ + this.documentShow=true + } + + }, //获取往来仓库列表 @@ -914,7 +932,7 @@ export default { created() { //页面初始化 this.codeFormData.code = ""; - this.giveselectbox() + this.giveselectbox(); //页面类型 if (this.viewType == 2) { //2.新增扫码单据页面,1、新增业务单据页面,3、正常页面 diff --git a/src/views/inout/DialogCreateOrderSelect.vue b/src/views/inout/DialogCreateOrderSelect.vue index ce28b099..74f699d3 100644 --- a/src/views/inout/DialogCreateOrderSelect.vue +++ b/src/views/inout/DialogCreateOrderSelect.vue @@ -125,7 +125,7 @@ border @row-click="handleSelectionChange" > - + { - // 每一项的单号 - return item.billNo - }) - this.selectbox=qwe - }, - //关闭对话框 - closeLocalDialog(){ - + combine() { + this.closeDialogtwo(); + this.$emit("giveselectbox", this.currentRow.billNo); }, + // //选择 + // select(selection,row){ + + // // console.log(row); + // this.selectboxs.push(row) + // let nerArr = JSON.parse(JSON.stringify(this.selectboxs)) + // let qwe = nerArr.map(item=>{ + // // 每一项的单号 + // return item.billNo + // }) + // this.selectbox=qwe + // }, + //关闭对话框 + closeLocalDialog() {}, hideSearch() { this.showSearch = !this.showSearch; }, @@ -437,7 +434,7 @@ export default { }, handleSelectionChange(val) { this.currentRow = val; - console.log(this.currentRow); + console.log(this.currentRow.billNo); this.getOrderDetails(); }, // 获取单据 业务详情、扫码详情、扫码明细 diff --git a/vue.config.js b/vue.config.js index 0c3feeb1..bf23e227 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,11 +35,9 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { -<<<<<<< HEAD - target: `http://192.168.0.166:9991/`, -======= + + target: `http://192.168.0.66:9150/UDI_WMS_MC/`, ->>>>>>> 9888474ccf2da85118a27d3e30da15957c8302ff changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "", From 5b8631e39d7a646a4aff2b502435107bc930ea0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 19 Apr 2023 11:08:58 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E9=A2=84=E9=AA=8C=E5=8D=95show=20bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 67ccebb9..403e8fc4 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -567,6 +567,8 @@ export default { } if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ this.documentShow=true + }else{ + this.documentShow=false } From cde95abe15bf9d724394841a4be798c1cd08f805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 19 Apr 2023 11:48:13 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E9=A2=84=E9=AA=8C=E6=94=B6=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E6=A8=A1=E5=9D=97bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 403e8fc4..6ce24f20 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -187,8 +187,9 @@
- + @@ -398,6 +399,9 @@ export default { action: [ { required: true, message: "请选择单据类型", trigger: "change" }, ], + acceptance:[ + {required: true, message: "请选入预验收单据", trigger: "blur"}, + ] }, isScan: true, scanText: "扫码录入:", @@ -463,10 +467,6 @@ export default { changeInv() { this.orderFormData.action = null; this.getBusTypeByInv(); - - // if(scanPreIn = true && backPreinType === 1){ - - // } }, //根据仓库,用户获取单据类型 @@ -567,10 +567,13 @@ export default { } if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ this.documentShow=true - }else{ + }else if(this.orderFormData.action===""){ this.documentShow=false } - + else{ + this.documentShow=false + } + this.giveselectbox(); }, @@ -934,7 +937,6 @@ export default { created() { //页面初始化 this.codeFormData.code = ""; - this.giveselectbox(); //页面类型 if (this.viewType == 2) { //2.新增扫码单据页面,1、新增业务单据页面,3、正常页面 From bfb6b7eb28e17bd568e6966a692bbc44ea8b4893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 19 Apr 2023 11:59:59 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 6ce24f20..24ea270d 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -466,6 +466,9 @@ export default { //仓库改变 changeInv() { this.orderFormData.action = null; + if(this.documentShow=true){ + this.documentShow=false + } this.getBusTypeByInv(); }, @@ -567,8 +570,6 @@ export default { } if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ this.documentShow=true - }else if(this.orderFormData.action===""){ - this.documentShow=false } else{ this.documentShow=false