xiaojiao
2 天以前 557f02072fa311eefe3123aa44afebac22adc465
ÏîÄ¿´úÂë/PDA/pages/Outbound/OutboundCall_New.vue
@@ -34,21 +34,21 @@
               
            </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>
@@ -73,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>
@@ -95,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>
@@ -139,9 +147,19 @@
                  value: '检修'
               }],
            ManufacturerArray: [{
                  label: '1号厂家',
                  value: '1号厂家'
               }],
                  label: 'FAG',
                  value: 'FAG'
               },{
                  label: 'SKF',
                  value: 'SKF'
               },{
                  label: 'NTN',
                  value: 'NTN'
               },{
                  label: 'NSK',
                  value: 'NSK'
               },
               ],
            StationArray: [{
                  label: '1号压装位',
                  value: '2线库压装台'
@@ -153,14 +171,14 @@
            ],
            ZCdirectionArray: [{
                  label: 'all',
                  value: '两侧'
                  value: '两端'
               }, {
                  label: 'left',
                  value: '左侧'
                  value: '轴端'
               },
               {
                  label: 'right',
                  value: '右侧'
                  value: '非轴端'
               }
            ],
            zcState: '',
@@ -172,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) {
@@ -232,10 +263,10 @@
                  _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) {
@@ -244,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 {
@@ -282,7 +313,7 @@
            //_this.StateArray = [];
            _this.ldCode = '';
            _this.ortherData = '';
            _this.ManufacturerArray = [];
            //_this.ManufacturerArray = [];
            _this.$refs.StateSelect.setInput("请选择");
            _this.$refs.StateSelect.clearItemActive();
            //_this.$refs.ManufacturerSelect.setInput("请选择");
@@ -291,16 +322,12 @@
         SaveInfomation() {
            var _this = this;
            if (_this.barcode == '' || _this.Manufacturer == '' ||
               _this.zcState == '' || _this.targetStation == '' || _this.materiel == '') {
               _this.zcState == '' || _this.targetStation == '' ||
               _this.materiel == '' || _this.Placeoforigin == '') {
               uni.showToast({
                  title: "请选择厂家、工位或者选配标准信息.",
                  title: "信息输入不完整",
                  duration: 2000
               });
               alert(_this.Manufacturer)
               alert(_this.materiel)
               alert(_this.barcode)
               alert(_this.zcState)
               alert(_this.targetStation)
               return;
            }
            if (_this.yfcbAVG == '' && _this.zfcbAVG == '' &&
@@ -333,7 +360,8 @@
                           targetStation: _this.targetStation,
                           ZCdirection: _this.ZCdirection,
                           ldCode: _this.ldCode,
                           ortherData: _this.ortherData
                           ortherData: _this.ortherData,
                           Placeoforigin:_this.Placeoforigin
                        },
                     };
                     console.log("选好的数据",data)