Browse Source

自贡随手拍——字段修改

zhaojiaqi 3 months ago
parent
commit
613303b404

+ 1 - 1
pagesBase/Write/LivelihoodFacts.vue

@@ -155,7 +155,7 @@
 					address: '',
 					fullAddress: '',
 					industryId: '',
-					jobType: '',
+					jobType: null,
 					businessUnitType: '',
 					workplace: '',
 					workplaceName: '',

+ 1 - 1
pagesBase/Write/ReportHiddenDanger.vue

@@ -160,7 +160,7 @@
 					address: '',
 					fullAddress: '',
 					industryId: '',
-					jobType: '',
+					jobType: null,
 					businessUnitType: '',
 					workplace: '',
 					workplaceName: '',

+ 3 - 2
pagesBase/Write/WeldingOperations.vue

@@ -87,7 +87,7 @@
 											<input type="text" disabled class="fway-form-input" placeholder="请准确标记施工作业地具体位置" v-model="data.address" />
 										</view>
 										<view class="fway-form-input-inline" v-if="data.address" style="width: 100%;">
-											<input type="text" class="fway-form-input" placeholder="请填写详细地址" v-model="data.fullAddress" @tap="inputTap" data-focus="fullAddress" :focus="focusID == 'fullAddress' ? true : false" />
+											<input type="text" class="fway-form-input" placeholder="请填写详细地址" v-model="data.fullAddress" @tap="inputTap" data-focus="fullAddress" :focus="focusID == 'fullAddress' ? true : false" maxlength="100" />
 										</view>
 									</view>
 								</view>
@@ -113,7 +113,7 @@
 										<view class="fway-form-item">
 											<view class="fway-form-lable"><text class="mustTips">*</text>姓名</view>
 											<view class="fway-form-input-inline">
-												<input type="text" class="fway-form-input" placeholder="请录入申报人姓名" v-model="data.name" @tap="inputTap" data-focus="name" :focus="focusID == 'name' ? true : false" />
+												<input type="text" class="fway-form-input" placeholder="请录入申报人姓名" v-model="data.name" @tap="inputTap" data-focus="name" :focus="focusID == 'name' ? true : false" maxlength="20" />
 											</view>
 										</view>
 										<view class="fway-form-item">
@@ -558,6 +558,7 @@
 				if(that.data.jobType != '气割'){
 					that.data.companyName = '';
 				}
+				that.data.jobType = that.data.jobType == '气割' ? '1' : (that.data.jobType == '电焊' ? '0' : null) 
 				let params = that.data;
 				console.log(JSON.stringify(params))
 				that.$admin.req({

+ 1 - 1
pagesCare/Write/LivelihoodFacts.vue

@@ -155,7 +155,7 @@
 					address: '',
 					fullAddress: '',
 					industryId: '',
-					jobType: '',
+					jobType: null,
 					businessUnitType: '',
 					workplace: '',
 					workplaceName: '',

+ 1 - 1
pagesCare/Write/ReportHiddenDanger.vue

@@ -160,7 +160,7 @@
 					address: '',
 					fullAddress: '',
 					industryId: '',
-					jobType: '',
+					jobType: null,
 					businessUnitType: '',
 					workplace: '',
 					workplaceName: '',

+ 3 - 2
pagesCare/Write/WeldingOperations.vue

@@ -87,7 +87,7 @@
 											<input type="text" disabled class="fway-form-input" placeholder="请准确标记施工作业地具体位置" v-model="data.address" />
 										</view>
 										<view class="fway-form-input-inline" v-if="data.address" style="width: 100%;">
-											<input type="text" class="fway-form-input" placeholder="请填写详细地址" v-model="data.fullAddress" @tap="inputTap" data-focus="fullAddress" :focus="focusID == 'fullAddress' ? true : false" />
+											<input type="text" class="fway-form-input" placeholder="请填写详细地址" v-model="data.fullAddress" @tap="inputTap" data-focus="fullAddress" :focus="focusID == 'fullAddress' ? true : false" maxlength="100" />
 										</view>
 									</view>
 								</view>
@@ -113,7 +113,7 @@
 										<view class="fway-form-item">
 											<view class="fway-form-lable"><text class="mustTips">*</text>姓名</view>
 											<view class="fway-form-input-inline">
-												<input type="text" class="fway-form-input" placeholder="请录入申报人姓名" v-model="data.name" @tap="inputTap" data-focus="name" :focus="focusID == 'name' ? true : false" />
+												<input type="text" class="fway-form-input" placeholder="请录入申报人姓名" v-model="data.name" @tap="inputTap" data-focus="name" :focus="focusID == 'name' ? true : false" maxlength="20" />
 											</view>
 										</view>
 										<view class="fway-form-item">
@@ -558,6 +558,7 @@
 				if(that.data.jobType != '气割'){
 					that.data.companyName = '';
 				}
+				that.data.jobType = that.data.jobType == '气割' ? '1' : (that.data.jobType == '电焊' ? '0' : null)
 				let params = that.data;
 				console.log(JSON.stringify(params))
 				that.$admin.req({