Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI
| | |
| | | ENV = 'development' |
| | | |
| | | # 智云迈思L-MOM管理系统/开发环境 |
| | | VUE_APP_BASE_API = http://localhost:81/API/ |
| | | # VUE_APP_BASE_API = http://localhost:81/API/ |
| | | # VUE_APP_BASE_API = 'http://47.96.97.237/API/' |
| | | # VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/' |
| | | # VUE_APP_BASE_API = 'http://localhost:8082/LuBaoAPI/' |
| | | #锦隆 |
| | | # VUE_APP_BASE_API = 'http://192.168.1.11/API/' |
| | | VUE_APP_BASE_API = http://61.174.29.234:8880/API/ |
| | | #杜贺 |
| | | # VUE_APP_BASE_API = http://localhost:8082/API/ |
| | | # 内网地址测试 |
| | | VUE_APP_BASE_API_INNER = http://192.168.1.11/API/ |
| | | # VUE_APP_BASE_API_INNER = http://192.168.1.11/API/ |
| | | # 路由懒加载 |
| | | VUE_CLI_BABEL_TRANSPILE_MODULES = true |
| | |
| | | # 生产环境配置 |
| | | ENV = 'production' |
| | | |
| | | # 宁波 四维尔 内外网 |
| | | VUE_APP_BASE_API_INNER = http://192.168.0.236:9010/API/ |
| | | VUE_APP_BASE_API = http://220.189.218.155:9010/API/ |
| | | # 宁波 四维尔 |
| | | # VUE_APP_BASE_API = http://192.168.0.236:9010/API/ |
| | | # VUE_APP_BASE_API = http://220.189.218.155:9010/API/ |
| | | # 余姚 锦隆 智能家居 |
| | | # VUE_APP_BASE_API = http://192.168.1.11/API/ |
| | | # VUE_APP_BASE_API = http://61.174.29.234:8880/API/ |
| | | VUE_APP_BASE_API = http://61.174.29.234:8880/API/ |
| | | # 智云迈思L-MOM管理系统/生产环境 |
| | | # VUE_APP_BASE_API = http://47.96.97.237/API/ |
| | | #杜贺 |
| | |
| | | const initAPP = async () => { |
| | | console.log("开始执行服务健康检查..."); |
| | | // 健康检查:获取可用的服务地址 |
| | | let availableBaseUrl = await findAvailableService() |
| | | // const sessionUrl = sessionStorage["cacheUrl"] |
| | | // if(sessionUrl){ |
| | | // availableBaseUrl = sessionUrl |
| | | // }else { |
| | | // sessionUrl = await findAvailableService(); |
| | | // sessionStorage["cacheUrl"] = sessionUrl |
| | | // } |
| | | let availableBaseUrl = "" |
| | | let sessionUrl = sessionStorage.getItem("cacheUrl") |
| | | if(sessionUrl){ |
| | | console.log("使用缓存的地址: ", sessionUrl) |
| | | availableBaseUrl = sessionUrl |
| | | }else { |
| | | sessionUrl = await findAvailableService(); |
| | | sessionStorage.setItem("cacheUrl", sessionUrl) |
| | | availableBaseUrl = sessionUrl |
| | | } |
| | | |
| | | // 注入 Axios 全局 baseURL |
| | | setAxiosBaseUrl(availableBaseUrl); |
| | |
| | | "/FbStepFoldOutBillList", |
| | | "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong", |
| | | "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin", |
| | | "/warehouse/barcodeMaster/Gy_BarCodeBillList_JinLong_AutoLogin" |
| | | ]; // no redirect whitelist |
| | | |
| | | const isWhiteList = (path) => { |
| | |
| | | ], |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 条码主档_锦隆_自动登录 |
| | | { |
| | | path: "/warehouse/barcodeMaster/Gy_BarCodeBillList_JinLong_AutoLogin", |
| | | component: () => import("@/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue"), |
| | | hidden: true, |
| | | }, |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //#region 仓存管理 |
| | |
| | | healthPath: "/Health", |
| | | }, |
| | | { |
| | | name: "API_INNER", |
| | | name: "API_OUTER", |
| | | baseUrl: process.env.VUE_APP_BASE_API, // 外网地址 |
| | | healthPath: "/Health", |
| | | }, |
| | |
| | | const healthCheckPromises = serviceList.map((item) => { |
| | | return checkServiceHealth(item) |
| | | }); |
| | | const healthResult = await Promise.race(healthCheckPromises); // 竞速模式,检测到健康的链接就立刻返回 |
| | | // 筛选可用的 baseUrl(取第一个有效地址) |
| | | const healthResult = await Promise.any(healthCheckPromises); // 检测到健康的链接就立刻返回 |
| | | // 筛选可用的 baseUrl |
| | | const availableBaseUrl = healthResult |
| | | |
| | | if (availableBaseUrl) { |
| | |
| | | return; |
| | | } |
| | | |
| | | const response = await axios.get(this.baseURL + '/WLYayBillController/GetMesByOrginBill', { |
| | | const response = await axios.get(this.$baseUrl + '/WLYayBillController/GetMesByOrginBill', { |
| | | params: { |
| | | "ListMaterial": ListMaterial |
| | | }, |
| | |
| | | //改为异步方法,返回Promise |
| | | async getPushSeOutStockBillInit(HSourceInterID, HSourceEntryID) { |
| | | try { |
| | | const response = await axios.get(this.baseURL + '/Kf_SellOutBill/loadXs_SeOutStockBill_Push', { |
| | | const response = await axios.get(this.$baseUrl + '/Kf_SellOutBill/loadXs_SeOutStockBill_Push', { |
| | | params: { |
| | | "HInterID": HSourceInterID, |
| | | "HSubID": HSourceEntryID |
| | |
| | | formData.append('HRemark', ''); |
| | | formData.append('HUserName', sessionStorage["HUserName"]); |
| | | // 设置上传URL |
| | | this.uploadUrl = this.baseURL + '/Gy_QCVerificationBillMain/UploadFile_Gy_QCVerification'; |
| | | this.uploadUrl = this.$baseUrl + '/Gy_QCVerificationBillMain/UploadFile_Gy_QCVerification'; |
| | | // 发送上传请求 |
| | | axios.post(this.uploadUrl, formData, { |
| | | headers: { |
| | |
| | | formData.append('HUserName', sessionStorage.getItem('HUserName') || ''); |
| | | |
| | | // 设置上传URL |
| | | this.uploadUrl = this.baseURL + '/Gy_QCVerificationBillMain/UploadFile_Gy_QCVerification'; |
| | | this.uploadUrl = this.$baseUrl + '/Gy_QCVerificationBillMain/UploadFile_Gy_QCVerification'; |
| | | |
| | | // 发送上传请求 |
| | | axios.post(this.uploadUrl, formData, { |
| | |
| | | |
| | | } |
| | | this.$modal.confirm(confirmMes).then(() => { |
| | | axios.get(this.baseURL + "/WLYayBillController/ConfrimBillNo", { |
| | | axios.get(this.$baseUrl + "/WLYayBillController/ConfrimBillNo", { |
| | | params: { 'HInterID': this.rowForm.HInterID.toString(), "IsAudit": 0, 'CurUserName': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | confirmMes = "是否确认承运商确认时间?" |
| | | } |
| | | this.$modal.confirm(confirmMes).then(() => { |
| | | axios.get(this.baseURL + "/WLYayBillController/ConfrimOtherBillNo", { |
| | | axios.get(this.$baseUrl + "/WLYayBillController/ConfrimOtherBillNo", { |
| | | params: { 'HInterID': this.rowForm.HInterID.toString(), "IsAudit": nums, 'CurUserName': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | //#region 维护零单占用体积重置 |
| | | handleVolume(form) { |
| | | this.resetVolume() |
| | | axios.get(this.baseURL + "/WLYayBillController/WL_YayBillDetail", { |
| | | axios.get(this.$baseUrl + "/WLYayBillController/WL_YayBillDetail", { |
| | | params: { 'HID': form.HInterID } |
| | | }).then(response => { |
| | | console.log(response.data.data.h_v_WL_YayBillEdit) |
| | |
| | | }, |
| | | //#region 维护零单占用体积提交 |
| | | set_HScatteredVolumeList() { |
| | | axios.get(this.baseURL + "/WLYayBillController/updateBillMEs", { |
| | | axios.get(this.$baseUrl + "/WLYayBillController/updateBillMEs", { |
| | | params: { |
| | | 'HInterID': this.formVolume.HInterID.toString(), |
| | | "HEntryID": this.formVolume.HEntryID.toString(), |
| | |
| | | if (this.queryParams.HOrgID) { |
| | | this.sWhere += " and HStockOrgID = ''" + this.queryParams.HOrgID + "''"; |
| | | } |
| | | |
| | | //如果是自动登录,则只能查看供应商自己的条码。 |
| | | if (sessionStorage["HAutoLogin"] == "1") { |
| | | this.sWhere += " and 供应商 = ''" + sessionStorage["HUserName"] + "''"; |
| | | } |
| | | |
| | | this.getList() |
| | | }, |
| | | //#endregion |
| | |
| | | <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;"> |
| | | <el-button type="primary" @click="onClickMethod_BarCodeProduce" :disabled="disabledFlag_BarCodeProduce">生成</el-button> |
| | | <el-button type="primary" @click="get_PrintReport">打印</el-button> |
| | | <!-- <el-button type="primary" @click="close">退 出</el-button> --> |
| | | <el-button type="primary" @click="get_BarCodeBillList">条码档案</el-button> |
| | | </div> |
| | | <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">条码生成</div> |
| | | <el-form :model="initMainData" label-width="80px"> |
| | |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 条码档案按钮点击事件 |
| | | get_BarCodeBillList(){ |
| | | this.$router.push({ path: "/warehouse/barcodeMaster/Gy_BarCodeBillList_JinLong_AutoLogin" }).catch(() => { }); |
| | | }, |
| | | //#endregion |
| | | |
| | | //#region 条码列表复选框选择状态变更监听事件 |
| | | onSelectionChange_BarCode(selection){ |
| | | this.selectedData_BarCode = selection; |