xiaojiao
2026-03-23 f02d3a8ffc05a10a64859b2a16d5d43c8abb0fb9
ÏîÄ¿´úÂë/PDA/pages/Outbound/OutboundCall_New.vue
@@ -20,14 +20,18 @@
               <u-td width="30%">轮对条码</u-td>
               <u-td>
                  <u-input v-model="barcode" :focus="qrcodeFocus" :border="true" placeholder="请扫描轮对条码"
                     />
                     @input="barcodeChange" />
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">车型</u-td>
               <u-td>
                  <u-input v-model="materiel" :border="true" placeholder="请手动输入车型" />
                  <!-- <u-input v-model="materiel" :border="true" placeholder="请手动输入车型" /> -->
                  <xfl-select :list="CxTypes" :initValue="stateInitValueCarmodel" :clearable="false" @change="Get_VehicleType_Alls"
                     ref="Get_VehicleType_All" :key="CarmodelKey">
                  </xfl-select>
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">左防尘板平均值</u-td>
@@ -50,7 +54,7 @@
               </u-td>
            </u-tr>
            <u-tr>
            <!-- <u-tr>
               <u-td width="30%">左挡油环平均值</u-td>
               <u-td>
                  <u-input v-model="zydAVG" :border="true" placeholder="请输入..." />
@@ -59,7 +63,7 @@
               <u-td>
                  <u-input v-model="yydAVG" :border="true" placeholder="请输入..." />
               </u-td>
            </u-tr>
            </u-tr> -->
            <u-tr>
               <u-td width="30%">轴承类别:</u-td>
               <u-td>
@@ -69,13 +73,13 @@
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">厂家:</u-td>
               <u-td width="30%">轴承品牌:</u-td>
               <u-td>
                  <!-- <xfl-select :list="ManufacturerArray" :initValue="'请选择'" :clearable="false"
                     @change="ManufacturerChange" ref="ManufacturerSelect">
                  </xfl-select> -->
                  <u-td>
                     <u-input v-model="Manufacturer" :border="true" placeholder="请输入厂家" />
                     <u-input v-model="Manufacturer" :border="true" placeholder="请输入轴承品牌" />
                  </u-td>
               </u-td>
            </u-tr>
@@ -114,6 +118,10 @@
   export default {
      data() {
         return {
            CxTypes:[],      //所有车型
            stateInitValueCarmodel:'请选择', // ã€è½¦åž‹ã€‘
            CarmodelKey: 0, //【车型】
            date: '',
            CurrentUser: '', //当前用户
            barcode: '',
@@ -184,6 +192,7 @@
         },
         StateChange(value) {
            this.zcState = value.orignItem.label;
            console.log(this.zcState)
         },
         StationChange(value) {
            this.targetStation = value.orignItem.label;
@@ -201,22 +210,24 @@
                  barcode: _this.barcode
               },
            };
            // let data = {
            //    barcode: _this.barcode
            // };
            _this.$AjaxRequest.Params('post', 'ToMes/Mes_GetBearingNeckSizeInfo',
               data, _user.token);
            _this.$AjaxRequest.Request().then(function(result) {
               //console.log(result);
               console.log('获取的接口数据');
               console.log(result);
               if (result.data.status) {
                  let obj = JSON.parse(JSON.stringify(result.data.data));
                  _this.yfcbAVG = obj.yfcbAVG;
                  _this.zfcbAVG = obj.zfcbAVG;
                  _this.zydAVG = obj.zydAVG;
                  _this.yydAVG = obj.yydAVG;
                  //_this.zydAVG = obj.zydAVG;
                  // _this.yydAVG = obj.yydAVG;
                  _this.zzjAVG = obj.zzjAVG;
                  _this.yzjAVG = obj.yzjAVG;
                  _this.materiel = obj.materiel;
                  //_this.materiel = obj.materiel;
                  _this.ldCode = obj.ldCode;
                  _this.ortherData = obj.ortherData;
                  if (null != obj.manufacturerArray)
@@ -261,29 +272,35 @@
         initAVG() {
            _this.yfcbAVG = '';
            _this.zfcbAVG = '';
            _this.zydAVG = '';
            _this.yydAVG = '';
            // _this.zydAVG = '';
            // _this.yydAVG = '';
            _this.zzjAVG = '';
            _this.yzjAVG = '';
            _this.materiel = '';
            _this.Manufacturer = '';
            _this.zcState = '';
            _this.StateArray = [];
            //_this.StateArray = [];
            _this.ldCode = '';
            _this.ortherData = '';
            _this.ManufacturerArray = [];
            _this.$refs.StateSelect.setInput("请选择");
            _this.$refs.StateSelect.clearItemActive();
            _this.$refs.ManufacturerSelect.setInput("请选择");
            _this.$refs.ManufacturerSelect.clearItemActive();
            //_this.$refs.ManufacturerSelect.setInput("请选择");
            //_this.$refs.ManufacturerSelect.clearItemActive();
         },
         SaveInfomation() {
            var _this = this;
            if (_this.barcode == '' || _this.Manufacturer == '' ||
               _this.zcState == '' || _this.targetStation == '') {
               _this.zcState == '' || _this.targetStation == '' || _this.materiel == '') {
               uni.showToast({
                  title: "请选择厂家、工位或者选配标准信息.",
                  duration: 2000
               });
               alert(_this.Manufacturer)
               alert(_this.materiel)
               alert(_this.barcode)
               alert(_this.zcState)
               alert(_this.targetStation)
               return;
            }
            if (_this.yfcbAVG == '' && _this.zfcbAVG == '' &&
@@ -348,6 +365,34 @@
               }
            });
         },
         VehicleType(){
            let data = {};
            _this.$AjaxRequest.Params('post', 'Dt_materielinfo/Get_VehicleType_All',
               data, _user.token);
            _this.$AjaxRequest.Request().then(function(result) {
               if (result.data.status) {
                  _this.CxTypes = result.data.data
               } else {
                  uni.showToast({
                     icon: 'none',
                     title: "请求错误:" + result.data.message,
                     duration: 2000
                  });
               }
               console.log("车型的所有数据",result)
            }).catch(function(err) {
               uni.showToast({
                  icon: 'none',
                  title: "请求后台异常,错误信息." + err.errMsg,
                  duration: 2000
               });
            });
         },
         Get_VehicleType_Alls(value){
            _this = this;
            _this.materiel = value.orignItem; // ç»™è½¦åž‹èµ‹å€¼
            console.log(_this.materiel)
         },
      },
      created: function() {
         // æ¯æ¬¡è¿›å…¥ç•Œé¢æ—¶ï¼Œå…ˆæ¸…除之前的所有定时器,然后启动新的定时器
@@ -367,6 +412,7 @@
         _this = this;
         _this.qrcodeFocus = true;
         //_this.queryOrder();
         this.VehicleType();
      },