surge_tank.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view class="uni-list">
  5. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  6. <view>
  7. 行政区
  8. </view>
  9. <view v-if="this.isEmpty(this.XZQValue.dictValue)" @click="pickerShow('xzq',0)">
  10. <span style="color: darkgray;">请选择行政区</span>
  11. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  12. </view>
  13. <view v-else class="uni-list-cell-db" @click="pickerShow('xzq',0)">
  14. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  15. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="uni-list">
  20. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  21. <view>
  22. 小区
  23. </view>
  24. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" @click="pickerShow('xq',0)">
  25. <span style="color: darkgray;">请选择小区</span>
  26. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  27. </view>
  28. <view v-else class="uni-list-cell-db" @click="pickerShow('xq',0)">
  29. <span style="color: black;">{{XQValue.name}}</span>
  30. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="uni-list">
  35. <view class="container">
  36. <view class="uni-list-cell-left">
  37. 楼栋
  38. </view>
  39. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" @click="pickerShow('ld',0)">
  40. <span style="color: darkgray;">请选择楼栋</span>
  41. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  42. </view>
  43. <view v-else class="uni-list-cell-db" @click="pickerShow('ld',0)">
  44. <span style="color: black;">{{LDValue.name}}</span>
  45. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  46. </view>
  47. </view>
  48. </view>
  49. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  50. subtitleKey="id" v-model="name"></SelectPicker>
  51. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  52. titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  53. </view>
  54. <view class="background">
  55. <view>
  56. <view class="uni-list">
  57. <view
  58. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  59. {{objValue.enginClassValue}}
  60. <span
  61. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  62. @click="history">历史</span>
  63. </view>
  64. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  65. <view>
  66. 施工时间
  67. </view>
  68. <view @click="openDatetimePicker('sg')">
  69. <span style="color: black;">{{time}}</span>
  70. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  71. </view>
  72. </view>
  73. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  74. <view class="uni-common-mt" style="width: 100%;">
  75. <text class="uni-title uni-common-pl">施工内容</text>
  76. <view style="width: 100%;box-sizing: border-box;">
  77. <textarea class="textarea" placeholder="请输入施工内容" maxlength="255"
  78. placeholder-style="padding: 10rpx;"
  79. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  80. auto-height v-model="projectContent"></textarea>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  86. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  87. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  88. <image :src="loadImgSrc('updateimg.png')" mode=""
  89. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()"
  90. v-show="reviewStatus!='1'"></image>
  91. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  92. <view
  93. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  94. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  95. @click="showPhoto(index)">
  96. </image>
  97. </view>
  98. <view v-else>
  99. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  100. </view>
  101. <view @click="remove(index)"
  102. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  103. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  104. </image>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="action-btn" v-show="reviewStatus!='1'">
  114. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
  115. </view>
  116. <bottom-sheet ref="refShare" :data="historyList" :TitleType="objValue.enginClassValue"></bottom-sheet>
  117. <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
  118. :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
  119. </scroll-view>
  120. </template>
  121. <script>
  122. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  123. import bottomSheet from '../../components/bottomSheet/bottomSheetMoreNew.vue'
  124. import {
  125. getDicts
  126. } from "@/api/system/dict/data";
  127. import {
  128. getAreaList,
  129. getBuildingList,
  130. addTearOldPipe,
  131. getEnginMaterialQualityList,
  132. getEnginSpecificationsList,
  133. getRoomProjectList,
  134. getRoomProjectId,
  135. } from '@/api/common'
  136. import {
  137. getToken
  138. } from '../../utils/auth';
  139. export default {
  140. components: {
  141. SelectPicker,
  142. bottomSheet,
  143. },
  144. data() {
  145. return {
  146. headers: {
  147. Authorization: "Bearer " + getToken()
  148. },
  149. type: '',
  150. reviewStatus: '', //是否可以点击
  151. open: false,
  152. objValue: '', //上一页面传过来的值 新增接口用
  153. openDict: false,
  154. selectList: [],
  155. dictOptions: [],
  156. imgArr: [],
  157. videoArr: [],
  158. XQValue: {},
  159. XZQValue: {},
  160. SelectIndex: '', //选择的索引值
  161. projectValue: {
  162. 'dictValue': '0'
  163. },
  164. LevelValue: {},
  165. isOkValue: '', //分段打压是否合格
  166. isOkLabel: '', //分段打压是否合格label
  167. LDValue: {},
  168. time: '', //施工时间
  169. timeType: '', //时间类型
  170. BackfillingTime: '', //回填时间
  171. showTime: false,
  172. specificationValue: {}, //规格
  173. projectContent: '', //施工内容
  174. materialValue: {}, //材质
  175. brandValue: {}, //品牌
  176. doorValue: {}, //上门类型
  177. SelfClosValve: {}, //自闭阀类型
  178. materialList: '', //材质list
  179. XQList: '',
  180. LDList: '',
  181. progress: 0, //上传图片进度百分比
  182. loading: false,
  183. inputNumberValue: '',
  184. title: '',
  185. historyList: {} //历史数据
  186. }
  187. },
  188. created() {
  189. this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
  190. },
  191. onLoad(options) {
  192. if ('params' in options) {
  193. this.objValue = JSON.parse(decodeURIComponent(options.params));
  194. if (this.objValue.enginType == `old_renovation`) {
  195. this.title = '旧改工程-调压柜'
  196. } else if (this.objValue.enginType == `new_built`) {
  197. this.title = '新建工程-调压柜'
  198. }
  199. uni.setNavigationBarTitle({
  200. title: this.title
  201. })
  202. }
  203. },
  204. methods: {
  205. // 打开picker
  206. openDatetimePicker(type) {
  207. this.timeType = type;
  208. this.$refs.myPicker.show();
  209. },
  210. // 关闭picker
  211. closeDatetimePicker() {
  212. this.$refs.myPicker.hide();
  213. },
  214. handleSubmit(e) {
  215. if (this.timeType == 'ht') {
  216. this.BackfillingTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  217. } else {
  218. this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  219. }
  220. },
  221. //获取当前时间
  222. traversalTime(timestamp) {
  223. //timestamp(时间戳)是整数,否则要parseInt转换
  224. let time = new Date(timestamp);
  225. let y = time.getFullYear();
  226. let m = time.getMonth() + 1;
  227. let d = time.getDate();
  228. let h = time.getHours();
  229. let mm = time.getMinutes();
  230. let s = time.getSeconds();
  231. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  232. mm) + ':' + this.addTimes(s);
  233. },
  234. addTimes(m) {
  235. return m < 10 ? '0' + m : m
  236. },
  237. //判断是否选择
  238. isEmpty(str) {
  239. return (!str || 0 === str.length);
  240. },
  241. // 显示历史弹窗
  242. handleShowSheet() {
  243. this.shareState = true;
  244. },
  245. // 隐藏历史弹窗
  246. handleHiddenShare() {
  247. this.shareState = false;
  248. },
  249. showPhoto(index) {
  250. let newArr = [];
  251. this.imgArr.forEach((item, index) => {
  252. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  253. item.substring(item.length - 4) == 'jpeg') {
  254. newArr.push(item)
  255. }
  256. });
  257. uni.previewImage({
  258. current: index,
  259. urls: newArr,
  260. })
  261. },
  262. remove(index) {
  263. uni.showModal({
  264. title: '提示',
  265. content: '是否删除该图片或视频',
  266. success: (res) => {
  267. if (res.confirm) {
  268. this.imgArr.splice(index, 1)
  269. }
  270. }
  271. })
  272. },
  273. choose() {
  274. uni.showActionSheet({
  275. title: '上传',
  276. itemList: ['图片', '视频'],
  277. success: (res) => {
  278. if (res.tapIndex == 0) {
  279. this.chooseimage()
  280. } else {
  281. this.choosevideo()
  282. }
  283. }
  284. })
  285. },
  286. chooseimage() {
  287. let _this = this;
  288. uni.chooseImage({
  289. sizeType: ['album', 'camera'],
  290. success(resp) {
  291. resp.tempFiles.forEach((item, index) => {
  292. const task = uni.uploadFile({
  293. url: _this.$HTTP + `/obs`,
  294. filePath: item.path,
  295. name: 'file',
  296. formData: {},
  297. header: _this.headers,
  298. success: res => {
  299. // 判断是否json字符串,将其转为json格式
  300. let data = JSON.parse(res.data);
  301. if (![200].includes(data.code)) {
  302. _this.$modal.msg(data.msg)
  303. } else {
  304. if (_this.progress === 100) {
  305. _this.imgArr.push(data.data.url)
  306. _this.$modal.msg('上传成功!')
  307. }
  308. }
  309. },
  310. fail: e => {
  311. _this.$modal.msg('上传失败!')
  312. //_this.uploadError(index, e);
  313. },
  314. complete: res => {
  315. uni.hideLoading();
  316. _this.uploading = false;
  317. }
  318. });
  319. task.onProgressUpdate(res => {
  320. _this.progress = res.progress;
  321. uni.showLoading({
  322. title: '上传中'
  323. })
  324. if (_this.progress != 100) {
  325. _this.loading = false
  326. } else {
  327. _this.loading = true
  328. }
  329. });
  330. })
  331. },
  332. })
  333. },
  334. choosevideo() {
  335. let _this = this;
  336. uni.chooseVideo({
  337. sourceType: ['album', 'camera'],
  338. maxDuration: 30,
  339. success(resp) {
  340. const task = uni.uploadFile({
  341. url: _this.$HTTP + `/obs`,
  342. filePath: resp.tempFilePath,
  343. name: 'file',
  344. formData: {},
  345. header: _this.headers,
  346. success: res => {
  347. // 判断是否json字符串,将其转为json格式
  348. let data = JSON.parse(res.data);
  349. if (![200].includes(res.statusCode)) {
  350. this.uploadError(index, data);
  351. } else {
  352. //上传成功
  353. if (_this.progress === 100) {
  354. _this.imgArr.push(data.data.url)
  355. _this.$modal.msg('上传成功!')
  356. }
  357. }
  358. },
  359. fail: e => {
  360. _this.$modal.msg('上传失败!')
  361. this.uploadError(index, e);
  362. },
  363. complete: res => {
  364. uni.hideLoading();
  365. _this.uploading = false;
  366. }
  367. });
  368. task.onProgressUpdate(res => {
  369. _this.progress = res.progress;
  370. uni.showLoading({
  371. title: '上传中'
  372. })
  373. if (_this.progress != 100) {
  374. _this.loading = false
  375. } else {
  376. _this.loading = true
  377. }
  378. });
  379. },
  380. })
  381. },
  382. pickerShow(e, index) {
  383. this.SelectIndex = index;
  384. this.type = e; //赋值类型
  385. if (e == 'cz') { //材质
  386. this.open = true;
  387. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  388. .objValue.enginClassValue).then(
  389. response => {
  390. this.selectList = response.data;
  391. });
  392. } else if (e == 'gg') { //规格
  393. if (this.isEmpty(this.czggslList[index].cz.id)) {
  394. this.$modal.msg('请选择材质')
  395. // this.czggslList[index].cz = this.materialValue.id
  396. } else {
  397. this.open = true;
  398. this.selectList = this.materialList;
  399. }
  400. } else if (e == 'gczq') { //工程周期
  401. this.openDict = true;
  402. getDicts("engin_cycle").then(response => {
  403. this.dictOptions = response.data;
  404. });
  405. } else if (e == 'xzq') { //行政区
  406. if (this.isEmpty(this.projectValue.dictValue)) {
  407. this.$modal.msg('请选择工程周期')
  408. } else {
  409. this.openDict = true;
  410. getDicts("district").then(response => {
  411. this.dictOptions = response.data;
  412. });
  413. }
  414. } else if (e == 'xq') { //小区
  415. if (this.isEmpty(this.XZQValue.dictValue)) {
  416. this.$modal.msg('请选择行政区')
  417. } else {
  418. this.open = true;
  419. this.selectList = this.XQList;
  420. }
  421. } else if (e == 'ld') { //楼栋
  422. if (this.isEmpty(this.XQValue.id)) {
  423. this.$modal.msg('请选择小区')
  424. } else {
  425. this.open = true;
  426. this.selectList = this.LDList;
  427. }
  428. }
  429. },
  430. changeSelectDict(item, index) {
  431. this.openDict = false;
  432. if (this.type == 'isok') {
  433. this.isOkValue = item
  434. } else if (this.type == 'gczq') {
  435. this.projectValue = item
  436. if (!this.isEmpty(this.XQValue.id)) {
  437. //房间选完 判断 工程周期 工程周期切换
  438. this.getStatus();
  439. }
  440. } else if (this.type == 'xzq') {
  441. this.XZQValue = item;
  442. //根据行政区id获取小区数据
  443. this.XQValue = ''; //重置小区数据
  444. this.LDValue = ''; //重置楼栋数据
  445. getAreaList(item.dictValue).then(res => {
  446. this.XQList = res.data;
  447. })
  448. }
  449. },
  450. changeSelect(item, index) {
  451. this.open = false;
  452. if (this.type == 'xq') {
  453. this.XQValue = item;
  454. if (!this.isEmpty(this.projectValue.dictValue)) {
  455. //小区选完 判断 工程周期
  456. this.getStatus();
  457. }
  458. //根据小区id 获取楼栋数据
  459. this.LDValue = ''; //重置楼栋数据
  460. this.DYValue = ''; //重置单元数据
  461. this.FJValue = ''; //重置房间数据
  462. getBuildingList(item.id).then(res => {
  463. this.LDList = res.data
  464. })
  465. } else if (this.type == 'ld') {
  466. this.LDValue = item;
  467. if (!this.isEmpty(this.projectValue.dictValue)) {
  468. //楼栋选完 判断 工程周期
  469. this.getStatus();
  470. }
  471. }
  472. },
  473. //关闭弹窗
  474. close(e) {
  475. this.open = false
  476. },
  477. //关闭弹窗
  478. closeDict(e) {
  479. this.openDict = false
  480. },
  481. getStatus() {
  482. let unitId = '';
  483. let houseId = '';
  484. let buildingId = '';
  485. if (this.isEmpty(this.LDValue.id)) {
  486. buildingId = '';
  487. } else {
  488. buildingId = this.LDValue.id
  489. }
  490. let param = {
  491. areaId: this.XQValue.id, // 小区id
  492. buildingId: buildingId, // 楼宇id
  493. unitId: unitId,
  494. houseId: houseId, //传空
  495. enginCycle: this.projectValue.dictValue, // 工程周期
  496. enginType: this.objValue.enginType, //写死 上一页面传过来的
  497. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  498. }
  499. getRoomProjectId(param).then(res => {
  500. if (res.code == '200') {
  501. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  502. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  503. if (this.objValue.enginClassValue == item.type) {
  504. this.reviewStatus = item.reviewStatus;
  505. if (item.reviewStatus == '1')
  506. this.$modal.msg('当前工程已结束')
  507. }
  508. })
  509. } else {
  510. this.reviewStatus = '' //置空
  511. }
  512. } else {
  513. this.$modal.msg(res.msg)
  514. this.reviewStatus = '' //置空
  515. }
  516. })
  517. },
  518. //提交数据
  519. submit() {
  520. if (this.isEmpty(this.projectValue.dictValue)) {
  521. this.$modal.msg("请选择工程周期")
  522. return
  523. }
  524. if (this.isEmpty(this.XZQValue.dictValue)) {
  525. this.$modal.msg("请选择行政区")
  526. return
  527. }
  528. if (this.isEmpty(this.XQValue.id)) {
  529. this.$modal.msg("请选择小区")
  530. return
  531. }
  532. // else if (this.isEmpty(this.LDValue.id)) {
  533. // this.$modal.msg("请选择楼栋")
  534. // }
  535. if (this.imgArr.length <= 0) {
  536. this.$modal.msg('请上传照片')
  537. return
  538. }
  539. if (this.loading == false) {
  540. this.$modal.msg('照片或视频未上传完毕,无法提交!')
  541. return
  542. }
  543. //提交
  544. this.onsubmit();
  545. },
  546. onsubmit() {
  547. let unitId = '';
  548. let houseId = '';
  549. let buildingId = '';
  550. if (this.isEmpty(this.LDValue.id)) {
  551. buildingId = '';
  552. } else {
  553. buildingId = this.LDValue.id
  554. }
  555. //提交
  556. let param = {
  557. district: this.XZQValue.dictValue,
  558. areaId: this.XQValue.id,
  559. buildingId: buildingId, //不必传 如果没有传 ' '
  560. unitId: unitId,
  561. houseId: houseId, //传空
  562. enginType: this.objValue.enginType, //写死 上一页面传过来的
  563. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  564. enginCycle: this.projectValue.dictValue, //工程周期
  565. zEngineeringNodeBo: {
  566. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  567. zEngineeringInfoBo: {
  568. constructTime: this.time, //施工时间
  569. remark: this.projectContent, //施工内容
  570. zEngiineeringPhotoBoList: this.imgArr,
  571. }
  572. }
  573. }
  574. uni.showLoading()
  575. addTearOldPipe(param).then(res => {
  576. if (res.code == '200') {
  577. uni.hideLoading()
  578. uni.showToast({
  579. title: res.msg,
  580. icon: 'none',
  581. //显示持续时间为 3秒
  582. duration: 2000
  583. });
  584. setTimeout(function() {
  585. uni.navigateBack();
  586. }, 1000)
  587. }
  588. })
  589. },
  590. history() {
  591. if (this.isEmpty(this.projectValue.dictValue)) {
  592. this.$modal.msg("请选择工程周期")
  593. return
  594. }
  595. if (this.isEmpty(this.XZQValue.dictValue)) {
  596. this.$modal.msg("请选择行政区")
  597. return
  598. }
  599. if (this.isEmpty(this.XQValue.id)) {
  600. this.$modal.msg("请选择小区")
  601. return
  602. }
  603. let unitId = '';
  604. let houseId = '';
  605. let buildingId = '';
  606. if (this.isEmpty(this.LDValue.id)) {
  607. buildingId = '';
  608. } else {
  609. buildingId = this.LDValue.id
  610. }
  611. let param = {
  612. areaId: this.XQValue.id, // 小区id
  613. buildingId: buildingId, // 楼宇id
  614. enginCycle: this.projectValue.dictValue, // 工程周期
  615. unitId: unitId,
  616. houseId: houseId, //传空
  617. enginType: this.objValue.enginType, //写死 上一页面传过来的
  618. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  619. }
  620. getRoomProjectId(param).then(res => {
  621. if (res.code == '200') {
  622. if (res.data != null) {
  623. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
  624. res => {
  625. this.historyList = res.data
  626. if (res.data.zEngineeringNodeBo != null) {
  627. this.showHistoryList();
  628. } else {
  629. this.$modal.msg("暂无历史信息")
  630. }
  631. })
  632. } else {
  633. this.$modal.msg("暂无工程信息")
  634. }
  635. } else {
  636. this.$modal.msg(res.msg)
  637. }
  638. })
  639. },
  640. showHistoryList() {
  641. this.$refs.refShare.handleShowShare();
  642. }
  643. }
  644. }
  645. </script>
  646. <style lang="scss">
  647. .container {
  648. display: flex;
  649. align-items: center;
  650. justify-content: space-between;
  651. padding: 10px;
  652. position: relative;
  653. }
  654. .uni-list {
  655. border: 1xp solid #eee;
  656. }
  657. .to-right-icon {
  658. width: 15px;
  659. height: 15px;
  660. position: absolute;
  661. top: 50%;
  662. transform: translateY(-50%);
  663. }
  664. .text {
  665. font-size: 16px;
  666. color: #333;
  667. }
  668. .background {
  669. // border: 15px solid hsla(0, 0%, 100%, .5);
  670. background: white;
  671. background-clip: padding-box;
  672. padding: 20rpx;
  673. border-radius: 20rpx;
  674. margin: 20rpx;
  675. /*从padding开始往外面裁剪背景*/
  676. }
  677. .btn {
  678. width: 715rpx;
  679. height: 69rpx;
  680. background: #79A4F0;
  681. border-radius: 6rpx;
  682. font-size: 25rpx;
  683. font-family: Microsoft YaHei;
  684. font-weight: 400;
  685. color: #FFFFFF;
  686. line-height: 69rpx;
  687. margin-top: 40rpx;
  688. margin-bottom: 100rpx;
  689. }
  690. .number {
  691. display: flex;
  692. /* 水平居中显示子元素 */
  693. align-items: flex-start;
  694. /* 垂直居中显示子元素 */
  695. justify-content: space-between;
  696. /* 左右间距等于间距大小 */
  697. padding: 10px;
  698. /* 设置padding以提高视觉效果 */
  699. }
  700. .textarea {
  701. margin-top: 10upx;
  702. width: 100%;
  703. border: 1rpx solid red;
  704. min-height: 100upx;
  705. line-height: 20px;
  706. }
  707. .tj-btn {
  708. height: 69rpx;
  709. background: #3184f0;
  710. border-radius: 6rpx;
  711. font-size: 25rpx;
  712. font-weight: 400;
  713. color: #FFFFFF;
  714. line-height: 69rpx;
  715. margin: 40rpx 70rpx;
  716. }
  717. .sc-btn {
  718. height: 69rpx;
  719. background: #f0686b;
  720. border-radius: 6rpx;
  721. font-size: 25rpx;
  722. font-weight: 400;
  723. color: #FFFFFF;
  724. line-height: 69rpx;
  725. margin: 40rpx;
  726. }
  727. .num-style {
  728. background: #e8f4f9;
  729. margin: 20rpx;
  730. padding: 10rpx;
  731. border-radius: 20rpx;
  732. border: 1px solid #d4e3f0;
  733. }
  734. </style>