From 852610540a6c4e8391a51858fcc9ef8e8397cc6b Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 16 四月 2024 21:25:12 +0800
Subject: [PATCH] #
---
pages/phyz/checkLocDetl/locDetl.vue | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/pages/phyz/checkLocDetl/locDetl.vue b/pages/phyz/checkLocDetl/locDetl.vue
index d5d2dd6..403450c 100644
--- a/pages/phyz/checkLocDetl/locDetl.vue
+++ b/pages/phyz/checkLocDetl/locDetl.vue
@@ -53,7 +53,7 @@
<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
<view class="buttom">
<button size="mini" type="primary" @click="changeSts('warn')">鏇存敼搴撲綅鐘舵��</button>
- <button size="mini" type="primary" @click="agvStart('warn')">绾犳搴撲綅</button>
+ <button size="mini" type="primary" @click="changeStart('warn')">绾犳搴撲綅</button>
</view>
</view>
</template>
@@ -178,6 +178,19 @@
changeCount() {
let _this = this
_this.sourceLoc.locSts = this.locSts2
+ let barcode = _this.barcode
+ if (this.locSts2 == 'O') {
+ barcode = ''
+ }
+ let param = {
+ locNo: _this.sourceLoc.locNo,
+ locSts: _this.sourceLoc.locSts,
+ barcode: _this.barcode,
+ row1: _this.sourceLoc.row1,
+ bay1: _this.sourceLoc.bay1,
+ lev1: _this.sourceLoc.lev1,
+ floor: _this.sourceLoc.floor
+ }
Object.keys(_this.sourceLoc).forEach(function(key){
if (_this.sourceLoc[key] == null) {
_this.sourceLoc[key] = ''
@@ -189,10 +202,38 @@
'token': uni.getStorageSync('token'),
'content-type': 'application/x-www-form-urlencoded'
},
- data: _this.sourceLoc,
+ data: param,
method: 'POST',
success(res) {
res = res.data
+ if (res.code === 200) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ _this.$refs.chageDetl.close()
+ setTimeout(()=> {
+ uni.navigateBack()
+ },1000)
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ }
+ }
+ })
+ },
+ changeStart() {
+ let _this = this
+ let param = {locNo:_this.locNo,containerCode: _this.barcode}
+ uni.request({
+ url: `${_this.baseUrl}/agvMobile/update/detl/v1`,
+ data: param,
+ method: 'POST',
+ success(res) {
+ res = res.data
+ console.log(res);
+ if (res.code === 200) {
+
+ }
}
})
}
--
Gitblit v1.9.1