|
@@ -7,8 +7,7 @@
|
|
<view>
|
|
<view>
|
|
行政区
|
|
行政区
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('xzq',0)">
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;" @click="pickerShow('xzq',0)">
|
|
<span style="color: darkgray;">请选择行政区</span>
|
|
<span style="color: darkgray;">请选择行政区</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
@@ -25,8 +24,7 @@
|
|
小区
|
|
小区
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('xq',0)">
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq',0)">
|
|
<span style="color: darkgray;">请选择小区</span>
|
|
<span style="color: darkgray;">请选择小区</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
@@ -41,8 +39,7 @@
|
|
<view class="uni-list-cell-left">
|
|
<view class="uni-list-cell-left">
|
|
楼栋
|
|
楼栋
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('ld',0)">
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld',0)">
|
|
<span style="color: darkgray;">请选择楼栋</span>
|
|
<span style="color: darkgray;">请选择楼栋</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
@@ -57,8 +54,7 @@
|
|
<view class="uni-list-cell-left">
|
|
<view class="uni-list-cell-left">
|
|
单元
|
|
单元
|
|
</view>
|
|
</view>
|
|
- <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
|
|
|
|
- @click="pickerShow('dy',0)">
|
|
|
|
|
|
+ <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy',0)">
|
|
<span style="color: darkgray;">请选择单元</span>
|
|
<span style="color: darkgray;">请选择单元</span>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
@@ -70,24 +66,19 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
- <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
|
|
|
|
- subtitleKey="id" v-model="name"></SelectPicker>
|
|
|
|
|
|
+ <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id" v-model="name"></SelectPicker>
|
|
|
|
|
|
|
|
|
|
- <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
|
|
|
|
- titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
|
|
|
|
|
|
+ <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="background">
|
|
<view class="background">
|
|
<view>
|
|
<view>
|
|
<view class="uni-list">
|
|
<view class="uni-list">
|
|
- <view
|
|
|
|
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
|
|
|
|
|
|
+ <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
|
|
{{objValue.enginClassValue}}
|
|
{{objValue.enginClassValue}}
|
|
|
|
|
|
- <span
|
|
|
|
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
|
|
|
|
- @click="history">历史</span>
|
|
|
|
|
|
+ <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history">{{historyName}}</span>
|
|
</view>
|
|
</view>
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
|
|
@@ -106,10 +97,7 @@
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
<text class="uni-title uni-common-pl">施工内容</text>
|
|
<text class="uni-title uni-common-pl">施工内容</text>
|
|
<view style="width: 100%;box-sizing: border-box;">
|
|
<view style="width: 100%;box-sizing: border-box;">
|
|
- <textarea class="textarea" placeholder="请输入施工内容" maxlength="255"
|
|
|
|
- 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="projectContent"></textarea>
|
|
|
|
|
|
+ <textarea class="textarea" placeholder="请输入施工内容" maxlength="255" 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="projectContent"></textarea>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -142,13 +130,9 @@
|
|
<text>米 数</text>
|
|
<text>米 数</text>
|
|
<!-- style="margin-left: 10px;text-align: right;" -->
|
|
<!-- style="margin-left: 10px;text-align: right;" -->
|
|
<view style="display: flex; justify-content: right; width: 70%;">
|
|
<view style="display: flex; justify-content: right; width: 70%;">
|
|
- <input class="uni-input" type="number" v-model="a.sl.inputIntegerNumberValue"
|
|
|
|
- maxlength="6"
|
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
|
|
|
|
|
|
+ <input class="uni-input" type="number" v-model="a.sl.inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
|
|
<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
<text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
- <input class="uni-input" type="number" v-model="a.sl.inputDecimalNumberValue"
|
|
|
|
- maxlength="1"
|
|
|
|
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
|
|
|
|
|
|
+ <input class="uni-input" type="number" v-model="a.sl.inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<button v-if="index!=0" @click="this.czggslList.splice(index,1)" class="sc-btn">删除</button>
|
|
<button v-if="index!=0" @click="this.czggslList.splice(index,1)" class="sc-btn">删除</button>
|
|
@@ -163,21 +147,16 @@
|
|
<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
<view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
|
|
<view class="container" style="color: #b2b2b2;">*请上传照片</view>
|
|
<view class="container" style="color: #b2b2b2;">*请上传照片</view>
|
|
<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
|
|
- <image :src="loadImgSrc('updateimg.png')" mode=""
|
|
|
|
- style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()"
|
|
|
|
- v-show="reviewStatus!='1'"></image>
|
|
|
|
|
|
+ <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()" v-show="reviewStatus!='1'"></image>
|
|
<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
|
|
<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
|
|
- <view
|
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
|
- <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
|
|
|
|
- @click="showPhoto(index)">
|
|
|
|
|
|
+ <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
|
|
|
|
+ <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index)">
|
|
</image>
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view v-else>
|
|
<view v-else>
|
|
<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
|
|
<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
|
|
</view>
|
|
</view>
|
|
- <view @click="remove(index)"
|
|
|
|
- style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
|
|
|
|
+ <view @click="remove(index)" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
|
|
<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
|
|
</image>
|
|
</image>
|
|
</view>
|
|
</view>
|
|
@@ -187,12 +166,12 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="action-btn" v-show="reviewStatus!='1'">
|
|
<view class="action-btn" v-show="reviewStatus!='1'">
|
|
- <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
|
|
|
|
|
|
+ <button @click="submit('submit')" class="btn cu-btn block bg-blue lg round">确认上传</button>
|
|
|
|
+ <button @click="submit('save')" class="btn cu-btn block bg-blue lg round" v-if="objValue.enginType == 'old_renovation'">暂存</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<bottom-sheet ref="refShare" :data="historyList" :TitleType="objValue.enginClassValue"></bottom-sheet>
|
|
<bottom-sheet ref="refShare" :data="historyList" :TitleType="objValue.enginClassValue"></bottom-sheet>
|
|
- <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
|
|
|
|
- :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
|
|
|
|
|
|
+ <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099" :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -227,6 +206,9 @@
|
|
data() {
|
|
data() {
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
+
|
|
|
|
+ historyName: '恢复暂存',
|
|
|
|
+ tempState: '',
|
|
headers: {
|
|
headers: {
|
|
Authorization: "Bearer " + getToken()
|
|
Authorization: "Bearer " + getToken()
|
|
},
|
|
},
|
|
@@ -732,8 +714,8 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//提交数据
|
|
//提交数据
|
|
- submit() {
|
|
|
|
-
|
|
|
|
|
|
+ submit(e) {
|
|
|
|
+ this.tempState = e == 'submit' ? '' : '99'
|
|
if (this.isEmpty(this.projectValue.dictValue)) {
|
|
if (this.isEmpty(this.projectValue.dictValue)) {
|
|
this.$modal.msg("请选择工程周期")
|
|
this.$modal.msg("请选择工程周期")
|
|
return
|
|
return
|
|
@@ -779,10 +761,10 @@
|
|
this.$modal.msg('请上传照片或视频')
|
|
this.$modal.msg('请上传照片或视频')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.loading == false) {
|
|
|
|
- this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.loading == false) {
|
|
|
|
+ // this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
this.zEngineeringMaterialBo = [];
|
|
this.zEngineeringMaterialBo = [];
|
|
this.czggslList.forEach((list) => {
|
|
this.czggslList.forEach((list) => {
|
|
this.zEngineeringMaterialBo.push({
|
|
this.zEngineeringMaterialBo.push({
|
|
@@ -823,6 +805,7 @@
|
|
zEngineeringNodeBo: {
|
|
zEngineeringNodeBo: {
|
|
type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
|
|
type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
|
|
zEngineeringInfoBo: {
|
|
zEngineeringInfoBo: {
|
|
|
|
+ state: this.tempState,
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
constructTime: this.time, //施工时间
|
|
constructTime: this.time, //施工时间
|
|
remark: this.projectContent, //施工内容
|
|
remark: this.projectContent, //施工内容
|
|
@@ -853,6 +836,10 @@
|
|
|
|
|
|
},
|
|
},
|
|
history() {
|
|
history() {
|
|
|
|
+ this.imgArr = [];
|
|
|
|
+ this.projectContent = '';
|
|
|
|
+ this.zEngineeringMaterialBo = [];
|
|
|
|
+ this.czggslList = [];
|
|
if (this.isEmpty(this.projectValue.dictValue)) {
|
|
if (this.isEmpty(this.projectValue.dictValue)) {
|
|
this.$modal.msg("请选择工程周期")
|
|
this.$modal.msg("请选择工程周期")
|
|
return
|
|
return
|
|
@@ -893,20 +880,92 @@
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
|
|
|
if (res.data != null) {
|
|
if (res.data != null) {
|
|
-
|
|
|
|
getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
|
|
getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
|
|
res => {
|
|
res => {
|
|
|
|
|
|
this.historyList = res.data
|
|
this.historyList = res.data
|
|
if (res.data.zEngineeringNodeBo != null) {
|
|
if (res.data.zEngineeringNodeBo != null) {
|
|
- this.showHistoryList();
|
|
|
|
|
|
+ //this.showHistoryList();
|
|
|
|
+ if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
|
|
|
|
+ this.$modal.msg("当前步骤以审核通过请谨慎!")
|
|
|
|
+ } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
|
|
|
|
+ let dataJson = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0];
|
|
|
|
+ this.projectContent = dataJson.remark;
|
|
|
|
+ this.time = dataJson.constructTime;
|
|
|
|
+
|
|
|
|
+ this.imgArr = dataJson.zEngiineeringPhotoBoList;
|
|
|
|
+ this.zEngineeringMaterialBo = dataJson.zEngineeringMaterialBo;
|
|
|
|
+
|
|
|
|
+ this.zEngineeringMaterialBo.forEach((item) => {
|
|
|
|
+ this.czggslList.push({
|
|
|
|
+ cz: {
|
|
|
|
+ id: item.materialQuality,
|
|
|
|
+ name: item.materialQualityName
|
|
|
|
+ },
|
|
|
|
+ gg: {
|
|
|
|
+ id: item.specifications,
|
|
|
|
+ name: item.specificationsName
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ sl: {
|
|
|
|
+ inputIntegerNumberValue: this.getIntegerPart(item.number, 0),
|
|
|
|
+ inputDecimalNumberValue: this.getIntegerPart(item.number, 1)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.czggslList.push({
|
|
|
|
+ cz: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ gg: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ sl: {
|
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
|
+ inputDecimalNumberValue: ''
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.$modal.msg("暂无暂存信息")
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
|
|
+ this.czggslList.push({
|
|
|
|
+ cz: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ gg: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ sl: {
|
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
|
+ inputDecimalNumberValue: ''
|
|
|
|
+ }
|
|
|
|
+ });
|
|
this.$modal.msg("暂无历史信息")
|
|
this.$modal.msg("暂无历史信息")
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
+ this.czggslList.push({
|
|
|
|
+ cz: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ gg: {
|
|
|
|
+ id: '',
|
|
|
|
+ name: ''
|
|
|
|
+ },
|
|
|
|
+ sl: {
|
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
|
+ inputDecimalNumberValue: ''
|
|
|
|
+ }
|
|
|
|
+ });
|
|
this.$modal.msg("暂无工程信息")
|
|
this.$modal.msg("暂无工程信息")
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -914,6 +973,9 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getIntegerPart(numStr, i) {
|
|
|
|
+ return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
|
|
|
|
+ },
|
|
showHistoryList() {
|
|
showHistoryList() {
|
|
this.$refs.refShare.handleShowShare();
|
|
this.$refs.refShare.handleShowShare();
|
|
}
|
|
}
|