xiaojiao
15 小时以前 557f02072fa311eefe3123aa44afebac22adc465
ÏîÄ¿´úÂë/PDA/pages/Outbound/OutboundCall_New.vue
@@ -20,37 +20,41 @@
               <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>
               <u-td width="30%">轴号端防尘板平均值</u-td>
               <u-td>
                  <u-input v-model="zfcbAVG" :border="true" placeholder="请输入..." />
               </u-td>
               <u-td width="30%">右防尘板平均值</u-td>
               <u-td width="30%">非轴号端防尘板平均值</u-td>
               <u-td>
                  <u-input v-model="yfcbAVG" :border="true" placeholder="请输入..." />
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%" height="50px;">左轴颈平均值</u-td>
               <u-td width="30%" height="50px;">轴号端轴颈平均值</u-td>
               <u-td>
                  <u-input v-model="zzjAVG" :border="true" placeholder="请输入..." />
               </u-td>
               <u-td width="30%">右轴颈平均值</u-td>
               <u-td width="30%">非轴号端轴颈平均值</u-td>
               <u-td>
                  <u-input v-model="yzjAVG" :border="true" placeholder="请输入..." />
               </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,14 +73,14 @@
               </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"
                  <xfl-select :list="ManufacturerArray" :initValue="'请选择'" :clearable="false"
                     @change="ManufacturerChange" ref="ManufacturerSelect">
                  </xfl-select> -->
                  <u-td>
                     <u-input v-model="Manufacturer" :border="true" placeholder="请输入厂家" />
                  </u-td>
                  </xfl-select>
                  <!-- <u-td>
                     <u-input v-model="Manufacturer" :border="true" placeholder="请输入轴承品牌" />
                  </u-td> -->
               </u-td>
            </u-tr>
            <u-tr>
@@ -91,6 +95,14 @@
               <u-td>
                  <xfl-select :list="ZCdirectionArray" :initValue="'请选择'" :clearable="false"
                     @change="ZCdirectionChange">
                  </xfl-select>
               </u-td>
            </u-tr>
            <u-tr>
               <u-td width="30%">产地</u-td>
               <u-td>
                  <xfl-select :key="PlaceoforiginKey" :list="PlaceoforiginArray" :initValue="PlaceoforiginValue" :clearable="false" @change="PlaceoforiginChange"
                     ref="StateSelect">
                  </xfl-select>
               </u-td>
            </u-tr>
@@ -114,6 +126,10 @@
   export default {
      data() {
         return {
            CxTypes:[],      //所有车型
            stateInitValueCarmodel:'请选择', // ã€è½¦åž‹ã€‘
            CarmodelKey: 0, //【车型】
            date: '',
            CurrentUser: '', //当前用户
            barcode: '',
@@ -124,35 +140,45 @@
            zydAVG: '',
            yydAVG: '',
            StateArray: [{
                  label: 'RO',
                  label: 'R0',
                  value: '新造'
               },{
                  label: 'R1',
                  value: '检修'
               }],
            ManufacturerArray: [{
                  label: '1号厂家',
                  value: '1号厂家'
               }],
                  label: 'FAG',
                  value: 'FAG'
               },{
                  label: 'SKF',
                  value: 'SKF'
               },{
                  label: 'NTN',
                  value: 'NTN'
               },{
                  label: 'NSK',
                  value: 'NSK'
               },
               ],
            StationArray: [{
                  label: '70101',
                  label: '1号压装位',
                  value: '2线库压装台'
               },
               {
                  label: '70103',
                  label: '2号压装位',
                  value: '3线库压装台'
               }
            ],
            ZCdirectionArray: [{
                  label: 'all',
                  value: '两侧'
                  value: '两端'
               }, {
                  label: 'left',
                  value: '左侧'
                  value: '轴端'
               },
               {
                  label: 'right',
                  value: '右侧'
                  value: '非轴端'
               }
            ],
            zcState: '',
@@ -164,12 +190,25 @@
            //轴承号
            ldCode: '',
            ortherData: '',
            qrcodeFocus: false
            qrcodeFocus: false,
            PlaceoforiginArray: [{
                  label: '国产',
                  value: '国产'
               },{
                  label: '进口',
                  value: '进口'
               }],
            Placeoforigin:'', // äº§åœ°(国产/进口)
            PlaceoforiginKey: 0, // æ–°å¢žï¼šæŽ§åˆ¶ç»„件重建 ã€äº§åœ°ã€‘
            PlaceoforiginValue: '请选择', // åˆå§‹å€¼ï¼ŒåŽç»­åŠ¨æ€ä¿®æ”¹ã€äº§åœ°ã€‘
         }
      },
      methods: {
         UserChange(value) {
         },
         PlaceoforiginChange(value) { // é€‰æ‹©äº§åœ°(国产/进口)
            _this.Placeoforigin = value.orignItem.label;
         },
         setTimer() {
            if (this.timer == null) {
@@ -184,6 +223,7 @@
         },
         StateChange(value) {
            this.zcState = value.orignItem.label;
            console.log(this.zcState)
         },
         StationChange(value) {
            this.targetStation = value.orignItem.label;
@@ -201,30 +241,32 @@
                  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)
                     obj.manufacturerArray.forEach(function(item, index, arr) {
                        _this.ManufacturerArray.push({
                           label: item,
                           value: item
                        })
                        // _this.ManufacturerArray.push({
                        //    label: item,
                        //    value: item
                        // })
                     });
                  if (null != obj.neworold)
                     obj.neworold.forEach(function(item, index, arr) {
@@ -233,12 +275,12 @@
                           name = '新品';
                        }
                        if (null == _this.StateArray.find(r => r.value == name)) {
                           _this.StateArray.push({
                              label: item,
                              value: name
                           })
                        }
                        // if (null == _this.StateArray.find(r => r.value == name)) {
                        //    _this.StateArray.push({
                        //       label: item,
                        //       value: name
                        //    })
                        // }
                     });
                  //console.log(obj);
               } else {
@@ -261,27 +303,29 @@
         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.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 == '' || _this.Placeoforigin == '') {
               uni.showToast({
                  title: "请选择厂家、工位或者选配标准信息.",
                  title: "信息输入不完整",
                  duration: 2000
               });
               return;
@@ -316,7 +360,8 @@
                           targetStation: _this.targetStation,
                           ZCdirection: _this.ZCdirection,
                           ldCode: _this.ldCode,
                           ortherData: _this.ortherData
                           ortherData: _this.ortherData,
                           Placeoforigin:_this.Placeoforigin
                        },
                     };
                     console.log("选好的数据",data)
@@ -348,6 +393,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 +440,7 @@
         _this = this;
         _this.qrcodeFocus = true;
         //_this.queryOrder();
         this.VehicleType();
      },