Explorar o código

添加是否有雷达

renmy hai 5 meses
pai
achega
a80a80901f
Modificáronse 1 ficheiros con 23 adicións e 1 borrados
  1. 23 1
      pages/basic-data/index.vue

+ 23 - 1
pages/basic-data/index.vue

@@ -50,12 +50,15 @@
 						<uni-forms-item label="换电站连接方式:" label-width="128px" label-align="right">
 							<uni-data-checkbox v-model="connWayArr" multiple :localdata="connWays" />
 						</uni-forms-item>
-						<uni-forms-item label="中转仓:" label-width="80px" label-align="right">
+						<uni-forms-item label="中转仓:" label-width="116px" label-align="right">
 							<uni-data-checkbox v-model="queryParamsSet.transitWarehouse" :localdata="transitWarehouse" />
 						</uni-forms-item>
 						<uni-forms-item v-if="queryParamsSet.transitWarehouse==1">
 							<uni-easyinput type="text" class="tempIpt" :clearable="false" :maxlength="2" v-model.trim="queryParamsSet.positionNumber" placeholder="中转仓仓位号" />
 						</uni-forms-item>
+						<uni-forms-item label="雷达:" label-width="116px" label-align="right">
+							<uni-data-checkbox v-model="queryParamsSet.radar" :localdata="radarList" />
+						</uni-forms-item>
 						<view class="search-btn" @click="handleSave">保存</view>
 					</uni-forms>
 				</view>
@@ -176,6 +179,7 @@
 					fourLink:0,//四连:0未启用,1启用
 					transitWarehouse:null,//中转仓:0无中转仓,1有固定中转仓
 					positionNumber:null,//固定中转仓位号
+					radar: null,//雷达  0-无, 1-有
 				},
 				connWayArr:[],
 				basicFrom: {
@@ -348,6 +352,14 @@
 					text: '四连',
 					value: 4
 				}],
+				//雷达
+				radarList: [{
+					text: '有雷达',
+					value: 1
+				}, {
+					text: '无雷达',
+					value: 0
+				}],
 				//是否可换电
 				rangePower: [{
 						value: 1,
@@ -538,6 +550,11 @@
 						this.connWayArr.push(1)
 					}
 				});
+				this.$http.getOtherStation(8+'').then((res) => {
+					if(res.data && res.data.content && (res.data.content=='0' || res.data.content=='1')){
+						this.queryParamsSet.radar = Number(res.data.content)
+					}
+				});
 				this.$http.getOtherStation(5+'').then((res) => {
 					if(res.data.content==1){
 						this.connWayArr.push(4)
@@ -596,6 +613,10 @@
 					this.ExchangeMessage('warn', '请选择中转仓!')
 					return
 				}
+				if(this.queryParamsSet.radar==null){
+					this.ExchangeMessage('warn', '请选择是否有雷达!')
+					return
+				}
 				if(this.queryParamsSet.transitWarehouse==1){
 					if(!this.queryParamsSet.positionNumber){
 						this.ExchangeMessage('warn', '请输入中转仓仓位号!')
@@ -1331,6 +1352,7 @@
 				::v-deep .formSet {
 					span {
 						display: flex;
+						flex-wrap: wrap;
 						align-items: center;
 					}
 					.uni-forms-item__content{