From 02dd21ca9a064b98aacfdc8c6ffec5a2b575967d Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期四, 26 三月 2026 09:54:56 +0800
Subject: [PATCH] PDA优化选配确认页面
---
项目代码/PDA/pages/Outbound/OutboundCheck.vue | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 53 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCheck.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCheck.vue"
index c5deff6..d44ab07 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCheck.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutboundCheck.vue"
@@ -16,7 +16,17 @@
<view style="padding: 0rpx 0rpx">
<u-table>
<u-tr>
- <u-td width="30%">杞存壙缂栧彿</u-td>
+ <u-td width="30%">鎵嬭緭杞存壙缂栧彿</u-td>
+ <u-td>
+ <u-input v-model="recordInfo.record_materielNumber" :border="true" placeholder="濡傞渶鍙互鎵嬪姩杈撳叆"
+ :focus="qrcodeFocus" />
+ </u-td>
+ <u-td style="width:80px">
+ <u-button style="width:100px" type="primary" @click="SelectZCXP">鏌ヨ</u-button>
+ </u-td>
+ </u-tr>
+ <u-tr>
+ <u-td width="30%">鎵弿杞存壙缂栧彿</u-td>
<u-td>
<u-input v-model="recordInfo.record_materielNumber" :border="true" placeholder="璇锋壂鎻忚酱鎵跨紪鍙�"
@input="barcodeChange" :focus="qrcodeFocus" />
@@ -185,12 +195,52 @@
}
},
+ SelectZCXP(){
+ if (_this.recordInfo.record_materielNumber == '' || _this.recordInfo.record_materielNumber == null) {
+ _this.initAVG();
+ return;
+ }
+ let data = {
+ MainData: {
+ record_materielNumber: _this.recordInfo.record_materielNumber
+ },
+ };
+ //console.log(data);
+ _this.$AjaxRequest.Params('post', 'ToAPP/QuerySelecttionInfo',
+ data, _user.token);
+ _this.$AjaxRequest.Request().then(function(result) {
+ if (result.data.status) {
+ _this.recordInfo = result.data.data;
+ _this.aaabb();
+ } else {
+ uni.showToast({
+ icon: 'none',
+ title: "璇锋眰閿欒:" + result.data.message,
+ duration: 2000
+ });
+ _this.initAVG();
+ }
+ }).catch(function(err) {
+ uni.showToast({
+ icon: 'none',
+ title: "璇锋眰鍚庡彴寮傚父,閿欒淇℃伅." + err.errMsg,
+ duration: 2000
+ });
+ _this.initAVG();
+ });
+ },
+ aaabb(){
+ var dict1 = {"2鍙峰帇瑁呬綅":"3绾垮簱鍘嬭鍙�","1鍙峰帇瑁呬綅":"2绾垮簱鍘嬭鍙�"}
+ var dict2 = {"R0":"鏂伴��","R1":"妫�淇�"}
+ _this.recordInfo.record_outstation = dict1[_this.recordInfo.record_outstation] ?? _this.recordInfo.record_outstation;
+ _this.recordInfo.record_standa = dict2[_this.recordInfo.record_standa] ?? _this.recordInfo.record_standa;
+ },
barcodeChange() {
if (_this.recordInfo.record_materielNumber == '' || _this.recordInfo.record_materielNumber == null) {
_this.initAVG();
return;
}
- alert('111')
+ //alert('111')
if(this.recordInfo.record_materielNumber.length > 20){
const rawStr = _this.recordInfo.record_materielNumber;
// 2. 淇鏍煎紡锛堝崟寮曞彿鈫掑弻寮曞彿 + 鍒犲熬閫楀彿锛�
@@ -216,6 +266,7 @@
_this.$AjaxRequest.Request().then(function(result) {
if (result.data.status) {
_this.recordInfo = result.data.data;
+ _this.aaabb();
} else {
uni.showToast({
icon: 'none',
--
Gitblit v1.9.3