|
@@ -154,28 +154,19 @@
|
|
|
</view>
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl">立杠气密测试 </text>
|
|
|
<view style="width: 100%;box-sizing: border-box;">
|
|
|
- <textarea class="textarea" placeholder="请输入立杠气密测试 " maxlength="100"
|
|
|
- placeholder-style="padding: 10rpx;"
|
|
|
- style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
|
|
|
- auto-height v-model="barTestValue"></textarea>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
- <view class="uni-common-mt" style="width: 100%;">
|
|
|
- <text class="uni-title uni-common-pl">单户气密测试</text>
|
|
|
- <view style="width: 100%;box-sizing: border-box;">
|
|
|
- <textarea class="textarea" placeholder="请输入单户气密测试" maxlength="100"
|
|
|
- placeholder-style="padding: 10rpx;"
|
|
|
- style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
|
|
|
- auto-height v-model="singleValue"></textarea>
|
|
|
+ <checkbox-group @change="checkboxChange">
|
|
|
+ <checkbox style="margin-right: 30rpx;" v-for="(item, index) in checkItems" :key="index"
|
|
|
+ :value="item.dictValue" :checked="item.checked">{{ item.dictLabel }}</checkbox>
|
|
|
+ </checkbox-group>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<view class="container" style="color: #b2b2b2;">*请上传照片</view>
|
|
|
<view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
|
<image :src="loadImgSrc('updateimg.png')" mode=""
|
|
@@ -227,28 +218,38 @@
|
|
|
style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="uni-list-cell-left">
|
|
|
品牌
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="uni-list-cell-db" style="margin-top: 10;">
|
|
|
- <input class="uni-input" type="text" v-model="brankValue" maxlength="50" placeholder="请输入品牌"
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
+ <view v-if="this.isEmpty(this.brankValue.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
+ @click="pickerShow('brank')">
|
|
|
+ <span style="color: darkgray;">请选择品牌</span>
|
|
|
+ <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
+ </view>
|
|
|
+ <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brank')">
|
|
|
+ <span style="color: black;">{{brankValue.dictLabel}}</span>
|
|
|
+ <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="uni-list-cell-left">
|
|
|
型号
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="uni-list-cell-db" style="margin-top: 10;">
|
|
|
- <input class="uni-input" type="text" v-model="tableModel" maxlength="50" placeholder="请输入型号"
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
+ <view v-if="this.isEmpty(this.tableModel.dictValue)" class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
+ @click="pickerShow('Model')">
|
|
|
+ <span style="color: darkgray;">请选择型号</span>
|
|
|
+ <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
+ </view>
|
|
|
+ <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('Model')">
|
|
|
+ <span style="color: black;">{{tableModel.dictLabel}}</span>
|
|
|
+ <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="uni-list-cell-left">
|
|
|
进气方向
|
|
@@ -564,6 +565,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ checkItems: [],
|
|
|
+ checkedValues: [],
|
|
|
title: '',
|
|
|
name: '开栓',
|
|
|
headers: {
|
|
@@ -644,6 +647,16 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '开栓'
|
|
|
})
|
|
|
+ getDicts("vertical_bar").then(response => {
|
|
|
+
|
|
|
+
|
|
|
+ response.data.forEach((obj, index) => {
|
|
|
+ obj.checked = false;
|
|
|
+ });
|
|
|
+ this.checkItems = response.data;
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
if ('params' in options) {
|
|
|
let e = JSON.parse(decodeURIComponent(options.params));
|
|
|
|
|
@@ -675,15 +688,32 @@
|
|
|
this.imgArr = response.gasCylinderPic;
|
|
|
|
|
|
|
|
|
- this.barTestValue = response.verticalBarTest;
|
|
|
- this.singleValue = response.householdTest;
|
|
|
+ // this.barTestValue = response.verticalBarTest;
|
|
|
+ // this.singleValue = response.householdTest;
|
|
|
+
|
|
|
+
|
|
|
+ var arr = response.verticalBarTest.split(",");
|
|
|
+ arr.forEach((obj, index) => {
|
|
|
+ this.checkItems.forEach((item, index2) => {
|
|
|
+
|
|
|
+ if (obj == item.dictLabel) {
|
|
|
+ this.checkItems[index2].checked = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ });
|
|
|
this.imgArr2 = response.pressureTestPic;
|
|
|
|
|
|
this.tableNumber = response.gasMeterNumber;
|
|
|
this.tableCharacters = response.gasMeterCount;
|
|
|
- this.brankValue = response.gasMeterBrand;
|
|
|
- this.tableModel = response.gasMeterType;
|
|
|
-
|
|
|
+ this.brankValue = {
|
|
|
+ dictValue: response.gasMeterBrand,
|
|
|
+ dictLabel: response.gasMeterBrand
|
|
|
+ };
|
|
|
+ this.tableModel = {
|
|
|
+ dictValue: response.gasMeterType,
|
|
|
+ dictLabel: response.gasMeterType
|
|
|
+ };
|
|
|
this.direction = {
|
|
|
dictValue: response.gasMeterDirection,
|
|
|
dictLabel: response.gasMeterDirectionName
|
|
@@ -738,6 +768,9 @@
|
|
|
isEmpty(str) {
|
|
|
return (!str || 0 === str.length);
|
|
|
},
|
|
|
+ checkboxChange(e) {
|
|
|
+ this.checkedValues = e.detail.value;
|
|
|
+ },
|
|
|
submit() {
|
|
|
if (this.isEmpty(this.XZQValue.dictValue)) {
|
|
|
this.$modal.msg("请选择行政区")
|
|
@@ -756,11 +789,15 @@
|
|
|
} else if (this.imgArr.length <= 0) {
|
|
|
this.$modal.msg("请上传燃气立杠照片")
|
|
|
|
|
|
- } else if (this.isEmpty(this.barTestValue)) {
|
|
|
- this.$modal.msg("请输入立杠气密测试")
|
|
|
- } else if (this.isEmpty(this.singleValue)) {
|
|
|
- this.$modal.msg("请输入单户气密测试")
|
|
|
- } else if (this.imgArr2.length <= 0) {
|
|
|
+ } else if (this.isEmpty(this.checkedValues)) {
|
|
|
+ this.$modal.msg("请选择气密测试")
|
|
|
+ }
|
|
|
+ // else if (this.isEmpty(this.barTestValue)) {
|
|
|
+ // this.$modal.msg("请输入立杠气密测试")
|
|
|
+ // } else if (this.isEmpty(this.singleValue)) {
|
|
|
+ // this.$modal.msg("请输入单户气密测试")
|
|
|
+ // }
|
|
|
+ else if (this.imgArr2.length <= 0) {
|
|
|
this.$modal.msg("请上传气密测试照片")
|
|
|
} else if (this.imgArr3.length <= 0) {
|
|
|
this.$modal.msg("请上传燃气表照片")
|
|
@@ -792,14 +829,14 @@
|
|
|
gasCylinderPic: this.imgArr,
|
|
|
|
|
|
|
|
|
- verticalBarTest: this.barTestValue,
|
|
|
- householdTest: this.singleValue,
|
|
|
+ verticalBarTest: this.checkedValues.toString(),
|
|
|
+ //householdTest: this.singleValue,
|
|
|
pressureTestPic: this.imgArr2,
|
|
|
|
|
|
gasMeterNumber: this.tableNumber,
|
|
|
gasMeterCount: this.tableCharacters,
|
|
|
- gasMeterBrand: this.brankValue,
|
|
|
- gasMeterType: this.tableModel,
|
|
|
+ gasMeterBrand: this.brankValue.dictValue,
|
|
|
+ gasMeterType: this.tableModel.dictValue,
|
|
|
gasMeterDirection: this.direction.dictValue,
|
|
|
gasMeterPic: this.imgArr3,
|
|
|
|
|
@@ -859,16 +896,22 @@
|
|
|
this.openBoltValue = this.dictOptions[res.tapIndex].dictLabel;
|
|
|
} else if (type == 'barClamptKey') {
|
|
|
this.barClamptKey = this.dictOptions[res.tapIndex].dictValue;
|
|
|
- this.barClamptValue = this.dictOptions[res.tapIndex].dictLabel;
|
|
|
+ this.barClamptValue = this.dictOptions[res.tapIndex]
|
|
|
+ .dictLabel;
|
|
|
} else if (type == 'isFixationId') {
|
|
|
this.isFixationId = this.dictOptions[res.tapIndex].dictValue;
|
|
|
- this.isFixationValue = this.dictOptions[res.tapIndex].dictLabel;
|
|
|
+ this.isFixationValue = this.dictOptions[res.tapIndex]
|
|
|
+ .dictLabel;
|
|
|
} else if (type == 'isPipeChangeId') {
|
|
|
- this.isPipeChangeId = this.dictOptions[res.tapIndex].dictValue;
|
|
|
- this.isPipeChangeValue = this.dictOptions[res.tapIndex].dictLabel;
|
|
|
+ this.isPipeChangeId = this.dictOptions[res.tapIndex]
|
|
|
+ .dictValue;
|
|
|
+ this.isPipeChangeValue = this.dictOptions[res.tapIndex]
|
|
|
+ .dictLabel;
|
|
|
} else if (type == 'isUseWindproofId') {
|
|
|
- this.isUseWindproofId = this.dictOptions[res.tapIndex].dictValue;
|
|
|
- this.isUseWindproofValue = this.dictOptions[res.tapIndex].dictLabel;
|
|
|
+ this.isUseWindproofId = this.dictOptions[res.tapIndex]
|
|
|
+ .dictValue;
|
|
|
+ this.isUseWindproofValue = this.dictOptions[res.tapIndex]
|
|
|
+ .dictLabel;
|
|
|
}
|
|
|
},
|
|
|
fail: (err) => {
|
|
@@ -902,7 +945,8 @@
|
|
|
}
|
|
|
|
|
|
typeArr.forEach((item, index) => {
|
|
|
- if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
|
|
|
+ if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) ==
|
|
|
+ 'jpg' ||
|
|
|
item.substring(item.length - 4) == 'jpeg') {
|
|
|
newArr.push(item)
|
|
|
}
|
|
@@ -1099,7 +1143,17 @@
|
|
|
},
|
|
|
pickerShow(e) {
|
|
|
this.type = e; //赋值类型
|
|
|
- if (e == 'fglx') {
|
|
|
+ if (e == 'Model') {
|
|
|
+ this.openDict = true;
|
|
|
+ getDicts("gas_meter_type").then(response => {
|
|
|
+ this.dictOptions = response.data;
|
|
|
+ });
|
|
|
+ } else if (e == 'brank') {
|
|
|
+ this.openDict = true;
|
|
|
+ getDicts("gas_meter_brand").then(response => {
|
|
|
+ this.dictOptions = response.data;
|
|
|
+ });
|
|
|
+ } else if (e == 'fglx') {
|
|
|
|
|
|
this.openDict = true;
|
|
|
getDicts("gas_change_type").then(response => {
|
|
@@ -1125,17 +1179,17 @@
|
|
|
} else if (e == 'xq') { //小区
|
|
|
// if (this.isEmpty(this.XZQValue.dictValue)) {
|
|
|
// this.$modal.msg('请选择行政区')
|
|
|
- //
|
|
|
+ //
|
|
|
// } else {
|
|
|
- //根据行政区id获取小区数据
|
|
|
- this.XQValue = ''; //重置小区数据
|
|
|
- this.LDValue = ''; //重置楼栋数据
|
|
|
- this.DYValue = ''; //重置单元数据
|
|
|
- getAreaList('').then(res => {
|
|
|
- this.XQList = res.data;
|
|
|
- this.open = true;
|
|
|
- this.selectList = this.XQList;
|
|
|
- })
|
|
|
+ //根据行政区id获取小区数据
|
|
|
+ this.XQValue = ''; //重置小区数据
|
|
|
+ this.LDValue = ''; //重置楼栋数据
|
|
|
+ this.DYValue = ''; //重置单元数据
|
|
|
+ getAreaList('').then(res => {
|
|
|
+ this.XQList = res.data;
|
|
|
+ this.open = true;
|
|
|
+ this.selectList = this.XQList;
|
|
|
+ })
|
|
|
|
|
|
// }
|
|
|
} else if (e == 'ld') { //楼栋
|
|
@@ -1184,6 +1238,10 @@
|
|
|
getAreaList(item.dictValue).then(res => {
|
|
|
this.XQList = res.data;
|
|
|
})
|
|
|
+ } else if (this.type == 'brank') {
|
|
|
+ this.brankValue = item;
|
|
|
+ } else if (this.type == 'Model') {
|
|
|
+ this.tableModel = item
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -1191,7 +1249,10 @@
|
|
|
this.open = false;
|
|
|
|
|
|
if (this.type == 'xq') {
|
|
|
- this.XZQValue = {dictValue:item.district,dictLabel:item.districtName};
|
|
|
+ this.XZQValue = {
|
|
|
+ dictValue: item.district,
|
|
|
+ dictLabel: item.districtName
|
|
|
+ };
|
|
|
this.XQValue = item;
|
|
|
//根据小区id 获取楼栋数据
|
|
|
this.LDValue = '';
|
|
@@ -1303,4 +1364,19 @@
|
|
|
min-height: 100upx;
|
|
|
line-height: 20px;
|
|
|
}
|
|
|
- </style>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ checkbox .wx-checkbox-input {
|
|
|
+ // border-radius: 50%;
|
|
|
+ border-color: #AAAAAA !important;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
|
|
+ background: #2D6EFC;
|
|
|
+ border-color: #2D6EFC !important;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ </style>
|