wang_xy 1 gadu atpakaļ
vecāks
revīzija
4dc8473e18

+ 28 - 9
pages/noLogin/PressureRegulatingBox/PressureRegulatingBox.vue

@@ -183,6 +183,17 @@
 				</u-row>
 				<u-row>
 					<u-col>
+						<u-form-item label="是否开启伴热带" labelWidth="140" borderBottom ref="item1">
+							<u-radio-group v-model="form.isNotXtv" :disabled="type==1">
+								<u-radio @change="isNotXtv"
+									v-for="(item, index) in typelist.on_off" :key="index"
+									:name="item.dictValue">
+									{{item.dictLabel}}
+								</u-radio>
+							</u-radio-group>
+						</u-form-item>
+					</u-col>
+					<u-col>
 						<u-form-item label="伴热带" labelWidth="140" borderBottom ref="item1">
 							<u-radio-group v-model="form.xtv" :disabled="type==1">
 								<u-radio @change="xtv"
@@ -268,7 +279,7 @@
 						</u-form-item>
 					</u-col>
 					<u-col span="2" v-if="form.cutterTested==1">
-						<viwe class="danwei" >Mpa</viwe>
+						<viwe class="danwei" >Kpa</viwe>
 					</u-col>
 				</u-row>
 				<view class="small-title">主副路交替部分</view>
@@ -427,7 +438,7 @@
 					businessService:0,
 					administrativeOffice:0,
 					businessService:0,
-					isNotXtv:0,
+					isNotXtv:null,
 					appearance:0,
 					squareBrick:0,
 					foundation:0,
@@ -551,6 +562,11 @@
 						message: "伴热带不能为空",
 						trigger: "change"
 					}],
+					isNotXtv: [{
+						required: true,
+						message: "是否开启伴热带不能为空",
+						trigger: "change"
+					}],
 					thermostat: [{
 						required: true,
 						message: "有无控温器不能为空",
@@ -637,7 +653,7 @@
 				dictlist: ['appearance', 'square_brick', 'guardrail', 'foundation', 'pressure_gage', 'valve',
 					'voltage_regulator', 'xtv', 'disconnector_test_status', 'filter','cutoff_test_certification','secondary_roads',
 					'special_case_of_pressure_regulating_facilities', 'overdue_inspection_days',
-					'reason_for_overdue_inspection', 'valve_well_condition', 'find_problem', 'xtv','administrative_office','yes_and_no','business_service','yes_or_no'
+					'reason_for_overdue_inspection', 'valve_well_condition', 'find_problem', 'on_off','administrative_office','yes_and_no','business_service','yes_or_no'
 				],
 				type: 2,
 				id: null,
@@ -923,11 +939,11 @@
 				this.$refs.form.reasonForOverdueInspection = e
 				console.log(e)
 			},
+			isNotXtv(e) {
+				this.$refs.form.isNotXtv = e
+			},
 			xtv(e) {
 				this.$refs.form.xtv = e
-				// this.form.xtv = e[0].value
-				// this.xtvLabel = e[0].label
-				// console.log(this.xtvLabel)
 			},
 			AdministrativeOffice(e)
 			{
@@ -943,11 +959,14 @@
 
 			save() {
 				let _this = this
-				if(this.imgArr.length==0)
-				{
+				if(this.imgArr.length==0){
 					this.$UTILS.showPrompt('请上传照片或视频!')
 					return
 				}
+				if(this.form.isNotXtv==null){
+					this.$UTILS.showPrompt('请选择是否开启伴热带!')
+					return
+				}
 				this.form.photoList = this.imgArr
 				this.form.unitId = this.unit
 				this.form.areaId =  this.id
@@ -971,7 +990,7 @@
 					administrativeOffice:0,
 
 					businessService:0,
-					isNotXtv:0,
+					isNotXtv:null,
 					appearance:0,
 					squareBrick:0,
 					foundation:0,