#
whycq
2024-07-16 806007c405aad9c6caa0e9ca31f4e460edb47c53
#
2个文件已修改
28 ■■■■ 已修改文件
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/out/checkOut.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,8 +2,8 @@
    "name" : "中扬WMS",
    "appid" : "__UNI__DA5854D",
    "description" : "",
    "versionName" : "2024031401",
    "versionCode" : "100",
    "versionName" : "2024071601",
    "versionCode" : 101,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/out/checkOut.vue
@@ -135,6 +135,7 @@
                matFocus: false,
                matData: '',
                removeNum: 0,
                targetBatch: ''
            }
        },
        onLoad() {
@@ -152,9 +153,11 @@
            // barcode input 事件
            barcodeInput() {
                let _this = this
                // let barcode =  this.barcode.split(",")
                // _this.barcode = barcode[0]
                // let batch = barcode[0]
                let barcode =  this.barcode.split(" ")
                console.log(barcode);
                this.targetBatch = barcode[1].slice(3)
                console.log(this.targetBatch);
                console.log(this.barcode);
                uni.request({
                    url: _this.baseUrl + '/mobile/wrkDetl/search/batch/auth',
                    header: {'token': uni.getStorageSync('token')},
@@ -165,6 +168,17 @@
                        console.log(res);
                        if (res.code === 200) {
                            _this.dataList.push(res.data)
                        } else if (res.code == 403) {
                            _this.messageText = res.msg
                            _this.messageToggle('error')
                            setTimeout(() => {
                                uni.reLaunch({
                                    url: '../login/login'
                                });
                            }, 1000);
                        } else {
                            _this.messageText = res.data
                            _this.messageToggle('error')
                        }
                        
                    }
@@ -355,7 +369,7 @@
                let that = this;
                uni.request({
                    url: that.baseUrl + '/mobile/order/search/batch/auth',
                    data: that.barcode,
                    data: that.targetBatch,
                    method: 'POST',
                    header: {'token': uni.getStorageSync('token')},
                    method:'POST',
@@ -391,6 +405,7 @@
            resetConfirm() {
                this.dataList = []
                this.barcode = ''
                this.targetBatch = ''
                this.messageText = "重置完成"
                this.messageToggle('success')
            },
@@ -402,6 +417,7 @@
            resst() {
                this.dataList = []
                this.barcode = ''
                this.targetBatch = ''
                this.barcodeFocuss()
            },
        }