From b6a08b4e13cf446a3228e2d6055392ceaef04382 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 22 九月 2022 17:02:21 +0800
Subject: [PATCH] #
---
pages/basics/checkout.vue | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/pages/basics/checkout.vue b/pages/basics/checkout.vue
index 32ecde1..27f32b9 100644
--- a/pages/basics/checkout.vue
+++ b/pages/basics/checkout.vue
@@ -73,6 +73,7 @@
export default {
data() {
return {
+ commonUrl:null,
barcode: '',
barcodeFocus:true,
focus:false,
@@ -105,15 +106,22 @@
this.baseIP = UIP;
const UPORT = uni.getStorageSync('UPORT');
this.basePORT = UPORT
-
+ const PROJ = uni.getStorageSync('UPROJ');
+ this.baseUrl = PROJ
+ this.getUrl()
},
methods: {
+ // 鑾峰彇url
+ getUrl() {
+ this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
+ },
huanghang() {
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- this.matnr = ''
+ this.matnr = ''
+ this.focus = false;
+ this.$nextTick(function() {
+ this.focus = true;
+ });
+
},
messageToggle(type) {
this.msgType = type
@@ -130,6 +138,7 @@
this.matList = []
this.barcode = ''
this.matnr = ''
+ this.matCount = ''
uni.vibrateShort();
},
removeBarcode() {
@@ -179,7 +188,7 @@
findBarcode() {
let that = this
uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/barcode/auth',
+ url: that.commonUrl + '/mobile/pakout/confirm/barcode/auth',
data: {
barcode:that.barcode
},
@@ -221,7 +230,7 @@
findMat() {
let that = this
uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/pick/auth',
+ url: that.commonUrl + '/mobile/pakout/confirm/pick/auth',
data: {
wrkNo:that.wrkNo,
matnr:that.matnr
@@ -230,7 +239,6 @@
'token':uni.getStorageSync('token')
},
success(result) {
- console.log(result)
var res = result.data;
if(res.code === 200 ) {
if(res.data) {
@@ -301,7 +309,7 @@
}
uni.showLoading();
uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth',
+ url: that.commonUrl + '/mobile/pakout/confirm/auth',
data: that.matList,
method: 'POST',
header: {
--
Gitblit v1.9.1