piping_record.vue 20 KB

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