xiaojiao
2026-03-26 02dd21ca9a064b98aacfdc8c6ffec5a2b575967d
ÏîÄ¿´úÂë/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',