diff --git a/.env.production b/.env.production index ea448bb3..25945ae2 100644 --- a/.env.production +++ b/.env.production @@ -30,7 +30,7 @@ ENV = 'production' # 平和县医院 # VUE_APP_BASE_API = 'http://192.168.0.43:9150/UDI_WMS_MC/' -# VUE_APP_BASE_API = 'http://dm.xmglxp.com:81/UDI_WMS_MC/' +VUE_APP_BASE_API = 'http://sjld.jiyunas.icu:81/UDI_WMS_MC/' # 长泰医院 # VUE_APP_BASE_API = 'http://192.168.6.189:9160/UDI_WMS_MC/' @@ -76,7 +76,7 @@ ENV = 'production' # VUE_APP_BASE_API = 'http://116.204.116.198:9160/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/' # 湖里妇幼 - VUE_APP_BASE_API = 'http://192.168.158.151:9150/UDI_WMS_MC/' +# VUE_APP_BASE_API = 'http://192.168.158.151:9150/UDI_WMS_MC/' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/UDI_WMS_NEW/' diff --git a/package.json b/package.json index 44df32ce..ec09cf30 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Glxp", "license": "MIT", "scripts": { - "build:prod": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", + "build:prod": "vue-cli-service build", "build:test": "vue-cli-service build --mode test", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", diff --git a/src/views/inoutDrug/DialogCreateDrugOrder.vue b/src/views/inoutDrug/DialogCreateDrugOrder.vue index 9926d889..c0322c68 100644 --- a/src/views/inoutDrug/DialogCreateDrugOrder.vue +++ b/src/views/inoutDrug/DialogCreateDrugOrder.vue @@ -364,7 +364,6 @@ - 扫码添加 - - 下载码上放心追溯码 - - - 库存选入 - + 扫码添加 + + 下载码上放心追溯码 + + + 库存选入 + @@ -435,17 +434,17 @@ v-if="isCodeDetailAlive" > - - - - - - - - - - - + + + + + + + + + + + { + batchAddCode(tQuery).then((response) => { if (response.code === 20000) { this.orderFormData.billNo = response.data.orderId; if (response.data.errMsg != null) { @@ -1391,9 +1400,10 @@ export default { } this.corpOrderIdDisabled = true; this.refreshCodesPanel(); + this.orderFormData.relId = null; + this.printMutiCodeResult(response.data.vailCodeResultResponses) this.$refs.inputRef.focus(); this.$refs.inputRef.select(); - this.orderFormData.relId = null; } else { if (response.code == 502) { //该产品绑定多个产品ID处理 @@ -1524,6 +1534,27 @@ export default { } }, + async printMutiCodeResult(vailCodeResultResponses) { + let result = "" + let warnResult = "" + for (let i = 0; i < vailCodeResultResponses.length; i++) { + let data = vailCodeResultResponses[i] + if (data.status == 1) { + result = result + ';' + vailCodeResultResponses[i].code + } else if (data.status == 2) { + if (result == '') { + } + warnResult = warnResult + '\n' + vailCodeResultResponses[i].code + ':' + vailCodeResultResponses[i].errMsg + } else if (data.status == 3) { + result = result + '\n' + vailCodeResultResponses[i].code + } + } + if (!isBlank(warnResult)) { + this.$message.error(warnResult) + } + }, + + refreshOrder(orderQuery) { this.orderFormData = orderQuery; }, @@ -1841,29 +1872,11 @@ export default { event.preventDefault(); event.stopPropagation(); }; - var that = this; - var inputer = document.getElementById("inputer"); - window.sc = new A.KeyScaner(inputer); //传入要监听的DOM节点 - sc.onInput = function (text) { - if (text.includes("delete")) { - that.codeFormData.code = ""; - that.sictomText = ""; - that.originCode = ""; - return; - } - if (that.sitcomScan) { - let tempTxt = text; - let str = tempTxt.replace(/[\r]/g, ""); - that.sictomText = that.sictomText + str; - that.codeFormData.code = that.sictomText; - } else { - that.codeFormData.code = text; - } - }; - inputer.focus(); }, created() { //页面初始化 + this.orderQuery.fromCorp = this.fromCorp + console.log(this.orderQuery.fromCorp) this.codeFormData.code = ""; //页面类型 if (this.viewType == 2) { @@ -1936,29 +1949,6 @@ export default { diff --git a/src/views/inoutDrug/IoCreateOrder.vue b/src/views/inoutDrug/IoCreateOrder.vue index 247df133..b314bcb5 100644 --- a/src/views/inoutDrug/IoCreateOrder.vue +++ b/src/views/inoutDrug/IoCreateOrder.vue @@ -6,73 +6,73 @@ @@ -208,6 +208,7 @@ :orderQuery="idQuery" :viewType="viewType" :errView="errView" + :fromCorp="idQuery.fromCorp" > { @@ -480,10 +481,18 @@ export default { _this.idQuery = {}; if (row != null && row.status === 4) { _this.errView = 1; - _this.idQuery = row; + _this.idQuery = Object.assign( + JSON.parse(JSON.stringify(row)) + ); + _this.idQuery.fromCorp = row.fromCorp; + } + if (row != null) { + _this.idQuery = Object.assign( + JSON.parse(JSON.stringify(row)) + ); + _this.idQuery.fromCorp = row.fromCorp; } - if (row != null) - _this.idQuery = row; + _this.addOrderVisible = true; }, closeDialog() { diff --git a/src/views/inoutDrug/PanelCreateOrderCodesDrugBiz.vue b/src/views/inoutDrug/PanelCreateOrderCodesDrugBiz.vue index 2186a24e..f3ebfeb0 100644 --- a/src/views/inoutDrug/PanelCreateOrderCodesDrugBiz.vue +++ b/src/views/inoutDrug/PanelCreateOrderCodesDrugBiz.vue @@ -27,12 +27,6 @@ width="120" show-overflow-tooltip > - - - - - - - - - - - - - - - - - - -