123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143 |
- <template>
- <view>
- <view v-if="isLeader=='sys_user'">
- <scroll-view>
- <view class="view-bg">
- <text class="title-txt">工程用料统计</text>
- <view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 行政区
- </view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('xzq')">
- <span style="color: darkgray;">请选择行政区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="margin-top: 10;" @click="pickerShow('xzq')">
- <span style="color: black;">{{XZQValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 小区
- </view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.XQValue.id)" style="margin-top: 10;"
- @click="pickerShow('xq')">
- <span style="color: darkgray;">请选择小区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="margin-top: 10;" @click="pickerShow('xq')">
- <span style="color: black;">{{XQValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 材料
- </view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.materialValue.name)" style="margin-top: 10;"
- @click="pickerShow('cz')">
- <span style="color: darkgray;">请选择材料</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
- <view style="margin-top: 10; " @click="pickerShow('cz')">
- <span style="color: black;">{{materialValue.name}}</span>
- <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
- </view>
- <image :src="loadImgSrc('icon_close.png')"
- style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
- @click="clearMaterialInfo">
- </image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 规格
- </view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.specificationValue.name)" style="margin-top: 10;"
- @click="pickerShow('gg')">
- <span style="color: darkgray;">请选择规格</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
- <view style="margin-top: 10;" @click="pickerShow('gg')">
- <span style="color: black;">{{specificationValue.name}}</span>
- <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
- </view>
- <image :src="loadImgSrc('icon_close.png')"
- style=" width: 15px; height: 15px;margin-left:20rpx ;margin-right: -20rpx;"
- @click="clearSpecificationInfo">
- </image>
- </view>
- </view>
- </view>
- </view>
- <view class="table">
- <view class="felx-row">
- <view class="h-tr" style="flex: 1">名称</view>
- <view class="h-tr" style="flex: 1;align-items: center;">预计用量</view>
- <view class="h-tr" style="flex: 1">实际用量</view>
- </view>
- </view>
- <view class="felx-row" v-for="(item, index) in materialUsageList" :key="index">
- <view class="h-td" style="flex: 1">{{ item.materialQuality }}</view>
- <view class="h-td" style="flex: 1">{{ item.estimatedSize }}</view>
- <view class="h-td" style="flex: 1">{{ item.realitySize }}</view>
- </view>
- </view>
- <view class="view-bg" style="margin-bottom: 40rpx;">
- <text class="title-txt">工程进度统计</text>
- <view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 行政区
- </view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.XZQValue2.dictValue)" style="margin-top: 10;"
- @click="pickerShow('xzq2')">
- <span style="color: darkgray;">请选择行政区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="margin-top: 10;" @click="pickerShow('xzq2')">
- <span style="color: black;">{{XZQValue2.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left"> 小区</view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.XQValue2.id)" style="margin-top: 10;"
- @click="pickerShow('xq2')">
- <span style="color: darkgray;">请选择小区</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="margin-top: 10;" @click="pickerShow('xq2')">
- <span style="color: black;">{{XQValue2.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">楼栋</view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.LDValue2.id)" style="margin-top: 10;"
- @click="pickerShow('ld2')">
- <span style="color: darkgray;">请选择楼栋</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view style="margin-top: 10;" @click="pickerShow('ld2')">
- <span style="color: black;">{{LDValue2.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">单元</view>
- <view class="uni-list-cell-db">
- <view v-if="this.isEmpty(this.DYValue2.id)" style="margin-top: 10;"
- @click="pickerShow('dy2')">
- <span style="color: darkgray;">请选择单元</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- <view v-else style="margin-top: 10;" @click="pickerShow('dy2')">
- <span style="color: black;">{{DYValue2.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <image :src="loadImgSrc('lou-img-bg.png')" style="width: 110%;
- height: 121px;
- position: absolute;
- bottom: 15px;
- left: -5px;
- z-index: 1;
- "></image>
- <scroll-view :scroll-x="true" class="view_bg_build" v-if="roomList.length > 0">
- <view class="HuaDongBiao">
- <view class="NeiRong" v-for="(item,index) in roomList" :key="index">
- <view class="Fang" v-for="(item2, index2) in roomList[index]" :key="index2">
- <view v-if="item2.roomStatus=='施工中'" class="ShiGongZhong">{{ item2.roomName }}
- </view>
- <view v-else-if="item2.roomStatus=='未施工'" class="WeiShiGong">{{ item2.roomName }}
- </view>
- <view v-else class="JunGong">{{ item2.roomName }}</view>
- </view>
- </view>
- </view>
- <view
- style="width: 48rpx;height: 63rpx;background: #C7EAFF; position:relative; left: 50%; transform: translateX(-50%); bottom: -10rpx;">
- </view>
- </scroll-view>
- <view v-if="roomList.length == 0" style="padding:50rpx;text-align: center;">暂无数据</view>
- <view style="align-items: center; margin-top: 20rpx;">
- <view style="display: flex;align-items: center;justify-content:center">
- <image class="block-iv" :src="loadImgSrc('ic_legend.png')"></image>
- <text style="margin-right: 20px;margin-left: 5px;">图例: </text>
- <div class="block-iv" style="background-color: #80d9ae;"></div>
- <text style="margin-right: 20px;margin-left: 5px;">竣工</text>
- <div class="block-iv" style="background-color: #5bd3ff;"></div>
- <text style="margin-right: 20px;margin-left: 5px;">施工中</text>
- <div class="block-iv" style="background-color: #ffc881;"></div>
- <text style="margin-right: 20px;margin-left: 5px;">未施工</text>
- </view>
- </view>
- </view>
- <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
- subtitleKey="id" v-model="name"></SelectPicker>
- <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict"
- titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
- </scroll-view>
- </view>
- <view v-else-if="isLeader=='app_user'">
- <!-- <view class="grid-body">
- <view class="Grid">
- <view class="Grid-Item" v-for="item in List" :key="item.id" @click="changeTab(item.id)"
- hover-class="click-hover" hover-start-time="50" hover-stay-time="50"
- v-if="userRole.includes(item.title)">
- <button class="icon-item" v-if="item.title == '民用工程'">民用工程</button>
- <button class="icon-item" v-if="item.title == '工业工程'">工业工程</button>
- <button class="icon-item" v-if="item.title == '市政工程'">市政工程</button>
- <button class="icon-item" v-if="item.title == '危险作业工程'">危险作业工程</button>
- <button class="icon-item" v-if="item.title == '顶管工程'">顶管工程</button>
- <button class="icon-item" v-if="item.title == '基建工程'">基建工程</button>
- <button class="icon-item" v-if="item.title == '开栓'">开栓</button>
- </view>
- </view>
- </view> -->
- <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
- <view class="notice" v-for="(item,index) in list" :key="index">
- <view class="justify-content" @click="chooseNode(item)">
- <view class="font-forty">
- {{item.areaName+item.buildingName+item.unitName+item.houseName+(item.enginType=='new_built'? '-新建':'-旧改')+'-'+item.enginClassificationName}}
- </view>
- <view class="font-twenty-eight gray">
- {{item.createTime}}
- </view>
- </view>
- </view>
- </cc-pullScroolView>
- <view class="share">
- <view :class="{'share-box': shareState}" @click="handleHiddenShare">
- </view>
- <view class="share-item" :class="{'share-show': shareState}">
- <view class="share-to">
- <text>请选择</text>
- </view>
- <scroll-view scroll-y="true" class="scroll-Y">
- <view class="content">
- <view class="block" v-for="(item, index) in typeList" :key="index"
- @click="showTypeSheet(item)" v-if="item.Type!='开栓'">
- <text>{{item.Type}}</text>
- </view>
- </view>
- </scroll-view>
- <view class="cancel" @click.stop="handleHiddenShare">
- <text>取消</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import SelectPicker from '../../components/selectPicker/select_picker.vue'
- import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
- import {
- gethistoryList,
- } from '@/api/common'
- import {
- getUserType,
- getUserRole
- } from '@/utils/auth';
- import {
- getDicts
- } from "@/api/system/dict/data";
- import user from '@/store/modules/user'
- import {
- getAreaList,
- getBuildingList,
- getUnitList,
- getHousesList,
- getEnginMaterialQualityList,
- getEnginSpecificationsList,
- getMunicipalStatisticsData,
- getObtainRoomcCompletionInformationList,
- } from '@/api/common'
- export default {
- components: {
- SelectPicker,
- CCBProjectList,
- },
- data() {
- return {
- userRole: getUserRole(),
- tabValue: ['旧改', '新建'],
- tabIndex: 0,
- isLeader: '',
- list: [],
- newlist: [],
- pageSize: 10, // 条数
- totalNum: '',
- pageNum: 1, // 页数
- typeList: '', //二次弹窗数据
- villageIndex: 0,
- specificationIndex: 0,
- materialIndex: 0,
- villageIndex2: 0,
- buildIndex: 0,
- unitIndex: 0,
- open: false,
- openDict: false,
- selectList: [],
- dictOptions: [],
- XQList: [],
- LDList: [],
- DYList: [],
- projectValue: {
- 'dictValue': '0'
- },
- XZQValue: {},
- XQValue: {},
- XQList2: [],
- LDList2: [],
- DYList2: [],
- projectValue2: {
- 'dictValue': '0'
- },
- shareState: false,
- XZQValue2: {},
- XQValue2: {},
- LDValue2: {},
- DYValue2: {},
- specificationValue: {},
- specificationList: [],
- materialValue: {},
- materialList: [],
- materialUsageList: [],
- roomList: [],
- roomCount: 4,
- nodeId: '',
- nodeType: '',
- // List: [{
- // id: 1,
- // title: '民用工程'
- // },
- // {
- // id: 2,
- // title: '工业工程'
- // },
- // {
- // id: 3,
- // title: '市政工程'
- // },
- // {
- // id: 4,
- // title: '危险作业工程'
- // },
- // {
- // id: 5,
- // title: '顶管工程'
- // },
- // {
- // id: 6,
- // title: '基建工程'
- // },
- // {
- // id: 7,
- // title: '开栓'
- // },
- // ]
- }
- },
- created() {},
- onLoad() {
- this.isLeader = getUserType()
- this.changeTab();
- },
- // 上拉加载
- onReachBottom() {
- // 数据全部加载完
- if (this.pageNum * 10 >= this.totalNum) {
- } else {
- // 显示加载中
- this.$refs.pullScroll.showUpLoading();
- this.pageNum++;
- this.requestData();
- }
- },
- methods: {
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- // 显示二次弹窗
- handleShowSheet() {
- this.shareState = true;
- },
- // 隐藏二次弹窗
- handleHiddenShare() {
- this.shareState = false;
- },
- chooseNode(item) {
- this.typeList = item.nodeReViewStateList
- this.nodeId = item.id;
- this.nodeType = item.enginClassification;
- if (this.nodeType == 'bottom_leg') { //底腿
- let obj = {
- id: this.nodeId,
- type: item.Type
- };
- uni.navigateTo({
- url: '/pages/statistics/history_details_bottom_leg?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else {
- this.handleShowSheet();
- }
- },
- showTypeSheet(item) {
- let obj = {
- id: this.nodeId,
- type: item.Type
- };
- this.handleHiddenShare();
- if (this.nodeType == 'indoor_engin') { //室内
- uni.navigateTo({
- url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (this.nodeType == 'overhead') { //架空
- uni.navigateTo({
- url: '/pages/statistics/historyDetails?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- } else if (this.nodeType == 'courtyard') { //庭院
- uni.navigateTo({
- url: '/pages/statistics/historyDetailsCourtyard?params=' + encodeURIComponent(JSON
- .stringify(
- obj))
- })
- }
- },
- pickerShow(e) {
- this.type = e; //赋值类型
- if (e == 'gczq') { //工程周期
- this.openDict = true;
- getDicts("engin_cycle").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'xzq') {
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg('请选择工程周期')
- } else {
- this.openDict = true;
- getDicts("district").then(response => {
- this.dictOptions = response.data;
- });
- }
- } else if (e == 'xq') { //小区
- if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg('请选择行政区')
- } else {
- this.open = true;
- this.selectList = this.XQList;
- }
- } else if (e == 'ld') { //楼栋
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg('请选择小区')
- } else {
- this.open = true;
- this.selectList = this.LDList;
- }
- } else if (e == 'dy') { //单元
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg('请选择楼栋')
- } else {
- this.open = true;
- this.selectList = this.DYList;
- }
- } else if (e == 'gczq2') { //工程周期
- this.openDict = true;
- getDicts("engin_cycle").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'xzq2') { //行政区2
- if (this.isEmpty(this.projectValue2.dictValue)) {
- this.$modal.msg('请选择工程周期')
- } else {
- this.openDict = true;
- getDicts("district").then(response => {
- this.dictOptions = response.data;
- });
- }
- } else if (e == 'xq2') { //小区2
- if (this.isEmpty(this.XZQValue2.dictValue)) {
- this.$modal.msg('请选择行政区')
- } else {
- this.open = true;
- this.selectList = this.XQList2;
- }
- } else if (e == 'ld2') { //楼栋2
- if (this.isEmpty(this.XQValue2.id)) {
- this.$modal.msg('请选择小区')
- } else {
- this.open = true;
- this.selectList = this.LDList2;
- }
- } else if (e == 'dy2') { //单元2
- if (this.isEmpty(this.LDValue2.id)) {
- this.$modal.msg('请选择楼栋')
- } else {
- this.open = true;
- this.selectList = this.DYList2;
- }
- } else if (e == 'gg') { //规格
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg('请选择材料')
- } else {
- this.open = true;
- this.selectList = this.materialList;
- }
- } else if (e == 'cz') { //材料
- this.open = true;
- getEnginMaterialQualityList("民用工程").then(response => {
- this.selectList = response.data;
- });
- }
- },
- changeSelect(item, index) {
- // this.index = index;
- // this.address = item.communityName;
- this.open = false;
- this.openDict = false;
- if (this.type == 'xzq') {
- this.XZQValue = item;
- //根据行政区id获取小区数据
- this.XQValue = ''; //重置小区数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- getAreaList(item.dictValue).then(res => {
- this.XQList = res.data;
- })
- } else if (this.type == 'gczq') {
- this.projectValue = item
- } else if (this.type == 'xq') {
- this.XQValue = item;
- //根据小区id 获取楼栋数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- this.queryMaterialsUsedList();
- } else if (this.type == 'ld') {
- this.LDValue = item;
- //根据楼栋ID 获取单元数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- getUnitList(item.id).then(res => {
- this.DYList = res.data
- })
- } else if (this.type == 'dy') {
- this.DYValue = item;
- } else if (this.type == 'gczq2') {
- this.projectValue2 = item
- } else if (this.type == 'xzq2') {
- this.XZQValue2 = item;
- //根据行政区id获取小区数据
- this.XQValue2 = ''; //重置小区数据
- this.LDValue2 = ''; //重置楼栋数据
- this.DYValue2 = ''; //重置单元数据
- this.FJValue2 = ''; //重置房间数据
- getAreaList(item.dictValue).then(res => {
- this.XQList2 = res.data;
- })
- } else if (this.type == 'xq2') { //小区2
- this.XQValue2 = item;
- //根据小区id 获取楼栋数据
- this.LDValue2 = ''; //重置楼栋数据
- this.DYValue2 = ''; //重置单元数据
- this.FJValue2 = ''; //重置房间数据
- getBuildingList(item.id).then(res => {
- this.LDList2 = res.data
- })
- } else if (this.type == 'ld2') {
- this.LDValue2 = item;
- //根据楼栋ID 获取单元数据
- this.DYValue2 = ''; //重置单元数据
- this.FJValue2 = ''; //重置房间数据
- getUnitList(item.id).then(res => {
- this.DYList2 = res.data
- })
- } else if (this.type == 'dy2') {
- this.DYValue2 = item;
- this.queryProjectStatisticsList();
- } else if (this.type == 'gg') { //规格
- this.specificationValue = item;
- this.queryMaterialsUsedList();
- } else if (this.type == 'cz') { //材料
- this.materialValue = item;
- this.specificationValue = ''; //重置规格
- this.queryMaterialsUsedList();
- //根据材质ID 获取规格数据
- getEnginSpecificationsList(item.id).then(res => {
- this.materialList = res.data
- })
- }
- },
- //关闭弹窗
- close(e) {
- this.open = false
- },
- //关闭弹窗
- closeDict(e) {
- this.openDict = false
- },
- queryMaterialsUsedList() {
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg('请选择小区')
- return;
- }
- let param = {
- enginCycle: this.projectValue.dictValue, //工程周期
- areaId: this.XQValue.id,
- realityQuality: this.materialValue.id,
- realitySpecifications: this.specificationValue.id,
- };
- getMunicipalStatisticsData(param).then(res => {
- this.materialUsageList = res.data;
- })
- },
- queryProjectStatisticsList() {
- let param = {
- enginCycle: this.projectValue.dictValue, //工程周期
- areaId: this.XQValue2.id,
- buildingId: this.LDValue2.id,
- unitId: this.DYValue2.id,
- };
- getObtainRoomcCompletionInformationList(param).then(res => {
- this.roomList = res.data[0].roomStatusVoList;
- this.roomCount = res.data[0].roomStatusVoList.length;
- })
- },
- getColorByStatus(status) {
- if (this.isEmpty(status)) {
- return "#fff";
- }
- if (status == '施工中') {
- return "#5bd3ff";
- } else if (status == '未施工') {
- return "#ffc881";
- } else if (status == '竣工') {
- return "#80d9ae";
- }
- },
- //材料清空val
- clearMaterialInfo() {
- this.materialValue = '';
- this.specificationValue = '';
- this.queryMaterialsUsedList();
- },
- clearSpecificationInfo() {
- this.specificationValue = '';
- this.queryMaterialsUsedList();
- },
- // 下拉刷新
- pullDown(pullScroll) {
- this.pageNum = 1;
- setTimeout(() => {
- this.requestData(pullScroll);
- }, 1000);
- },
- getList() {
- let myThis = this;
- this.$nextTick(() => {
- myThis.$refs.pullScroll.refresh();
- });
- },
- changeTab(e) {
- this.pageSize = 10; // 条数
- this.totalNum = '';
- this.pageNum = 1; // 页数
- this.tabIndex = e;
- this.requestData();
- },
- requestData() {
- uni.showLoading()
- let type = ''
- gethistoryList(user.state.name, this.pageNum, this.pageSize).then(res => {
- this.totalNum = res.total
- if (res.code == '200') {
- uni.hideLoading()
- if (res.rows.length !== 0) {
- //首次加载10条数据,后进行拼接
- if (this.pageNum == 1) {
- this.list = [];
- this.list = res.rows
- } else {
- this.list = this.list.concat(res.rows)
- }
- // 如果是最后一页
- if (this.pageNum * 10 >= this.totalNum) {
- this.$refs.pullScroll.finish();
- } else {
- // 不是最后一页
- this.$refs.pullScroll.success();
- }
- } else {
- this.list = [];
- this.$refs.pullScroll.empty();
- }
- } else {
- this.$modal.msg(res.msg + "")
- this.$refs.pullScroll.error();
- }
- })
- },
- }
- }
- </script>
- <style lang="scss">
- .to-right-icon {
- width: 15px;
- height: 15px;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- }
- .no-click {
- pointer-events: none;
- }
- .marginLeft5 {
- margin-left: 5px;
- }
- .title-txt {
- font-size: 15px;
- font-weight: bold;
- color: black;
- padding: 20rpx 0;
- }
- .content-txt {
- font-size: 10px;
- font-weight: bold;
- color: black;
- }
- .view-bg {
- margin-left: 8px;
- margin-right: 8px;
- margin-top: 8px;
- background-color: #fff;
- border-radius: 5px;
- padding: 20px;
- display: flex;
- flex-direction: column;
- }
- .uni-list {
- background-color: #FFFFFF;
- position: relative;
- width: 100%;
- display: flex;
- flex-direction: column;
- }
- .uni-list-cell {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px 0;
- position: relative;
- }
- .uni-list-cell-left {
- white-space: nowrap;
- font-size: 28rpx;
- }
- .centered {
- text-align: center;
- background-color: #e2f4ff;
- }
- .text {
- background-color: #e2f4ff;
- height: 20rpx;
- }
- .view_bg_build {
- background-color: #e2f4ff;
- padding: 10px 10px 0 10px;
- margin: 0 auto;
- border: 1px solid #5bd3ff;
- white-space: nowrap;
- position: relative;
- z-index: 2;
- }
- .grid-text {
- font-size: 14px;
- color: #000000;
- text-align: center;
- padding-left: 30rpx;
- padding-right: 30rpx;
- padding-top: 20rpx;
- padding-bottom: 20rpx;
- }
- .name {
- flex: 0;
- font-size: 14px;
- color: #000000;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .table-item {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .block-iv {
- width: 20px;
- height: 20px;
- }
- .table {
- width: 100%;
- border-radius: 8rpx;
- background: #FFFFFF;
- /* border: 1rpx solid #EFEFEF; */
- font-size: 28rpx;
- margin-top: 40rpx;
- }
- .felx-row {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .h-tr {
- box-sizing: border-box;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- border-color: #ccc;
- border-style: solid;
- border-width: 0;
- border-width: 1px;
- color: #3d7dd7;
- }
- .h-td {
- box-sizing: border-box;
- padding: 3px;
- word-break: break-all;
- border-color: #ccc;
- border-style: solid;
- border-width: 1px;
- border-right-width: 1px;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- min-height: 64rpx;
- }
- .LouCeng {
- font-size: 30rpx;
- background-color: #4a4b52;
- color: #FFEB3B;
- font-weight: bold;
- }
- .Fang {
- width: 100%;
- display: inline-block;
- line-height: 50rpx;
- text-align: center;
- margin-right: 10px;
- margin-bottom: 10px;
- background-color: red;
- }
- .HuaDongBiao {
- display: flex;
- flex-direction: column-reverse;
- position: relative;
- }
- .NeiRong {
- display: flex;
- flex-wrap: nowrap;
- }
- .NeiRong :last-child {
- margin-right: 0 !important;
- }
- .ShiGongZhong {
- background-color: #5bd3ff;
- color: #000;
- }
- .WeiShiGong {
- background-color: #ffc881;
- color: #000;
- }
- .JunGong {
- background-color: #80d9ae;
- color: #000;
- }
- .container {
- display: flex;
- margin-left: 10px;
- width: 100%;
- margin-top: 10px;
- margin-right: 10px;
- justify-content: space-between;
- }
- .notice {
- margin: 20rpx;
- padding: 20rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
- border-radius: 10rpx;
- }
- .text {
- border-left: 15rpx solid #3857F3;
- padding-left: 20rpx;
- }
- .share {
- width: 100%;
- height: 100%;
- }
- .share-box {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- bottom: 0rpx;
- right: 0rpx;
- background-color: rgba(0, 0, 0, 0.4);
- transition: .3s;
- z-index: 999;
- }
- .share-show {
- transition: all 0.3s ease;
- transform: translateY(0%) !important;
- }
- .scroll-Y {
- height: 350rpx;
- }
- .share-item {
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- height: auto;
- background-color: #FFFFFF;
- transition: all 0.3s ease;
- transform: translateY(100%);
- z-index: 1999;
- border-top-left-radius: 40rpx;
- border-top-right-radius: 40rpx;
- .share-to {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- &::after {
- content: '';
- width: 240rpx;
- height: 0rpx;
- border-top: 1px solid #E4E7ED;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- margin-left: 30rpx;
- }
- &::before {
- content: '';
- width: 240rpx;
- height: 0rpx;
- border-top: 1px solid #E4E7ED;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- margin-right: 30rpx;
- }
- }
- .content {
- width: 100%;
- height: 50%;
- display: flex;
- flex-wrap: wrap;
- .block {
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 80rpx;
- text {
- margin-top: 16rpx;
- font-size: 28rpx;
- color: #606266;
- }
- }
- }
- .cancel {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- border-top: 1rpx solid #E4E7ED;
- }
- }
- </style>
|