123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404 |
- <template>
- <scroll-view>
- <view class="background">
- <view class="uni-list">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 行政区
- </view>
- <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 class="uni-list-cell-db" 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">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 小区
- </view>
- <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" 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 class="uni-list-cell-db" 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">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 楼栋
- </view>
- <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('ld')">
- <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('ld')">
- <span style="color: black;">{{LDValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list" style="margin-top: 10;">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 单元
- </view>
- <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('dy')">
- <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('dy')">
- <span style="color: black;">{{DYValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <view class="uni-list">
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view class="uni-list-cell-left">
- 房间
- </view>
- <view v-if="this.isEmpty(this.FJValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
- @click="pickerShow('fj')">
- <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('fj')">
- <span style="color: black;">{{FJValue.name}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- <!-- <view class="container" style="">
- <view class="title">是否按照施工图纸施工</view>
- <span style="color: black;">{{this.form}}</span>
- <switch style="transform: scale(0.6,0.6);" @change="switchChange" checked="isChick" />
- </view> -->
- <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>
- </view>
- <!--报警器切断阀-->
- <view class="background">
- <view v-if="objValue.enginClassValue=='报警器切断阀'">
- <view class="uni-list">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
- 报警器切断阀
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>厂 家</text>
- <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('brand')">
- <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('brand')">
- <span style="color: black;">{{brandValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <!--拆旧管-->
- <view v-if="objValue.enginClassValue=='拆旧管'">
- <view class="uni-list">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 拆旧管
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
- <view>
- 腐蚀等级
- </view>
- <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('fsdj')">
- <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('fsdj')">
- <span style="color: black;">{{LevelValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <view v-if="objValue.enginClassValue=='打孔'">
- <view class="uni-list">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 打孔
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
- <view>
- 孔距
- </view>
- <view v-if="this.isEmpty(this.LevelValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('kj')">
- <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('kj')">
- <span style="color: black;">{{LevelValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <!--立杠-->
- <view v-else-if="objValue.enginClassValue=='立杠'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 立杠
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 材 质
- </view>
- <view v-if="this.isEmpty(this.materialValue.id)" 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 class="uni-list-cell-db" 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>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" 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 class="uni-list-cell-db" 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>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <!-- style="margin-left: 10px;text-align: right;" -->
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="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>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- </view>
- </view>
- <!--挂表-->
- <view v-else-if="objValue.enginClassValue=='挂表'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 挂表
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 品 牌
- </view>
- <view v-if="this.isEmpty(this.brandValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('brand')">
- <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('brand')">
- <span style="color: black;">{{brandValue.dictLabel}}</span>
- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
- </view>
- </view>
- </view>
- </view>
- <!--表后管-->
- <view v-else-if="objValue.enginClassValue=='表后管'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 表后管
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 材 质
- </view>
- <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;"
- @click="pickerShow('cz')">
- <span style="color: darkgray;">请选择材质</span>
- </view>
- <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
- <span style="color: black;">{{materialValue.name}}</span>
- </view>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" 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 class="uni-list-cell-db" 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>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <!-- style="margin-left: 10px;text-align: right;" -->
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="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>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
-
- </view>
- </view>
- </view>
- <!--阀管-->
- <view v-else-if="objValue.enginClassValue=='阀管'">
- <view class="uni-list" style="margin-bottom: 20px;">
- <view
- style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
- 阀管
- <span
- style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
- @click="history">历史</span>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 上门类型
- </view>
- <view v-if="this.isEmpty(this.doorValue.dictValue)" style="margin-top: 10;"
- @click="pickerShow('door')">
- <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('door')">
- <span style="color: black;">{{doorValue.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>
- 自闭阀类型
- </view>
- <view v-if="this.isEmpty(this.SelfClosValve.dictValue)" style="margin-top: 10;"
- @click="pickerShow('zbf')">
- <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('zbf')">
- <span style="color: black;">{{SelfClosValve.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>
- 材 质
- </view>
- <view v-if="this.isEmpty(this.materialValue.id)" 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 class="uni-list-cell-db" 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>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <view>
- 规 格
- </view>
- <view v-if="this.isEmpty(this.specificationValue.id)" 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 class="uni-list-cell-db" 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>
- </view>
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
- <text>米 数</text>
- <!-- style="margin-left: 10px;text-align: right;" -->
- <view style="display: flex; justify-content: right; width: 70%;">
- <input class="uni-input" type="number" v-model="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>
- <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
- style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
- </view>
- </view>
- </view>
- </view>
- <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
- <view class="container" style="color: #b2b2b2;">*请上传照片</view>
- <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>
- <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: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index)">
- </image>
- </view>
- <view v-else>
- <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- <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>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="action-btn" v-show="reviewStatus!='1'">
- <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
- </view>
- <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
- </scroll-view>
- </template>
- <script>
- import SelectPicker from '../../../components/selectPicker/select_picker.vue'
- import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
- import {
- getDicts
- } from "@/api/system/dict/data";
- import {
- getAreaList,
- getBuildingList,
- getUnitList,
- getHousesList,
- addTearOldPipe,
- getEnginMaterialQualityList,
- getEnginSpecificationsList,
- getRoomProjectList,
- getRoomProjectId,
- } from '@/api/common'
- import {
- getToken
- } from '../../../utils/auth';
- import {
- showConfirm
- } from '../../../utils/common';
- export default {
- components: {
- SelectPicker,
- bottomSheet
- },
- data() {
- return {
- headers: {
- Authorization: "Bearer " + getToken()
- },
- type: '',
- open: false,
- reviewStatus: '', //是否可以点击
- objValue: '', //上一页面传过来的值 新增接口用
- openDict: false,
- selectList: [],
- dictOptions: [],
- imgArr: [],
- XQValue: {},
- XZQValue: {},
- projectValue: {
- 'dictValue': '0'
- },
- LevelValue: {},
- LDValue: {},
- DYValue: {},
- FJValue: {},
- FSValue: {},
- specificationValue: {}, //规格
- materialValue: {}, //材质
- brandValue: {}, //品牌
- doorValue: {}, //上门类型
- SelfClosValve: {}, //自闭阀类型
- materialList: '', //材质list
- XQList: '',
- LDList: '',
- DYList: '',
- FJList: '',
- progress: 0, //上传图片进度百分比
- loading: false,
- isCheck: true, //是否按照施工图纸施工
- inputNumberValue: '',
- inputIntegerNumberValue: '',
- inputDecimalNumberValue: '',
- title: '',
- historyList: {} //历史数据
- }
- },
- created() {
- },
- onLoad(options) {
- if ('params' in options) {
- this.objValue = JSON.parse(decodeURIComponent(options.params));
- if (this.objValue.enginType == `old_renovation`) {
- this.title = '旧改工程-室内'
- } else if (this.objValue.enginType == `new_built`) {
- this.title = '新建工程-室内'
- }
- uni.setNavigationBarTitle({
- title: this.title
- })
- }
- },
- methods: {
- //判断是否选择
- isEmpty(str) {
- return (!str || 0 === str.length);
- },
- // 显示历史弹窗
- handleShowSheet() {
- this.shareState = true;
- },
- // 隐藏历史弹窗
- handleHiddenShare() {
- this.shareState = false;
- },
- showPhoto(index) {
- uni.previewImage({
- current: index,
- urls: this.imgArr,
- })
- },
- remove(index) {
- uni.showModal({
- title: '提示',
- content: '是否删除该图片或视频?',
- success: (res) => {
- if (res.confirm) {
- this.imgArr.splice(index, 1)
- if (this.imgArr.length <= 0) {
- this.photo = true;
- }
- }
- }
- })
- },
- choose() {
- let _this = this;
- uni.showActionSheet({
- title: '上传',
- itemList: ['图片', '视频'],
- success: (res) => {
- if (res.tapIndex == 0) {
- this.chooseimage()
- } else {
- this.choosevideo()
- }
- }
- })
- },
- chooseimage() {
- let _this = this;
- uni.chooseImage({
- sizeType: ['album', 'camera'],
- success(resp) {
- resp.tempFiles.forEach((item, index) => {
- const task = uni.uploadFile({
- url: _this.$HTTP + `/obs`,
- filePath: item.path,
- name: 'file',
- formData: {},
- header: _this.headers,
- success: res => {
- // 判断是否json字符串,将其转为json格式
- // let data = _this.$u.test.jsonString(res
- // .data) ? JSON.parse(res.data) : res.data;
- let data = JSON.parse(res.data);
- if (![200].includes(data.code)) {
- // this.uploadError(index, data);
- _this.$modal.msg(data.msg)
- } else {
- if (_this.progress === 100) {
- _this.imgArr.push(data.data.url)
- _this.$modal.msg('上传成功!')
- _this.photo = false;
- }
- }
- },
- fail: e => {
- _this.$modal.msg('上传失败!')
- //_this.uploadError(index, e);
- },
- complete: res => {
- uni.hideLoading();
- _this.uploading = false;
- }
- });
- task.onProgressUpdate(res => {
- _this.progress = res.progress;
- uni.showLoading({
- title: '上传中'
- })
- if (_this.progress != 100) {
- _this.loading = false
- } else {
- _this.loading = true
- }
- });
- })
- },
- })
- },
- choosevideo() {
- let _this = this;
- uni.chooseVideo({
- sourceType: ['album', 'camera'],
- maxDuration: 30,
- success(resp) {
- const task = uni.uploadFile({
- url: _this.$HTTP + `/obs`,
- filePath: resp.tempFilePath,
- name: 'file',
- formData: {},
- header: _this.headers,
- success: res => {
- // 判断是否json字符串,将其转为json格式
- let data = JSON.parse(res.data);
- if (![200].includes(res.statusCode)) {
- this.uploadError(index, data);
- } else {
- //上传成功
- if (_this.progress === 100) {
- _this.imgArr.push(data.data.url)
- _this.$modal.msg('上传成功!')
- _this.photo = false;
- }
- }
- },
- fail: e => {
- _this.$modal.msg('上传失败!')
- this.uploadError(index, e);
- },
- complete: res => {
- uni.hideLoading();
- _this.uploading = false;
- }
- });
- task.onProgressUpdate(res => {
- _this.progress = res.progress;
- uni.showLoading({
- title: '上传中'
- })
- if (_this.progress != 100) {
- _this.loading = false
- } else {
- _this.loading = true
- }
- });
- },
- })
- },
- pickerShow(e) {
- this.type = e; //赋值类型
- if (e == 'door') { //上门类型
- this.openDict = true;
- getDicts("visit_type").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'zbf') { //自闭阀类型
- this.openDict = true;
- getDicts("self_closing_valve_type").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'brand') { //品牌
- this.openDict = true;
- getDicts("brand").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'cz') { //材质
- this.open = true;
- getEnginMaterialQualityList("民用工程").then(response => {
- this.selectList = response.data;
- });
- } else if (e == 'gg') { //规格
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg('请选择材质')
- } else {
- this.open = true;
- this.selectList = this.materialList;
- }
- } else if (e == 'fsdj') {
- //腐蚀等级
- this.openDict = true;
- //腐蚀等级
- getDicts("corrosion_level").then(response => {
- this.dictOptions = response.data;
- });
- } else if (e == 'kj') {
- //孔距
- this.openDict = true;
- getDicts("perforated_pipe_diameter").then(response => {
- this.dictOptions = response.data;
- });
- } else 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;
- });
- }
- //this.selectList = this.dictOptions;
- } 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 == 'fj') { //房间
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg('请选择单元')
- } else {
- this.open = true;
- this.selectList = this.FJList;
- }
- }
- },
- switchChange(e) {
- //'switch 发生 change 事件,携带值为', e.detail.value)
- this.isCheck = e.detail.value;
- },
- changeSelectDict(item, index) {
- this.openDict = false;
- if (this.type == 'door') {
- this.doorValue = item
- } else if (this.type == 'zbf') {
- this.SelfClosValve = item
- } else if (this.type == 'brand') {
- this.brandValue = item
- } else if (this.type == 'gczq') {
- this.projectValue = item
- if (!this.isEmpty(this.FJValue.id)) {
- //房间选完 判断 工程周期 工程周期切换
- this.getStatus();
- }
- } else 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 {
- this.LevelValue = item;
- }
- },
- changeSelect(item, index) {
- // this.index = index;
- // this.address = item.communityName;
- this.open = false;
- if (this.type == 'cz') {
- this.materialValue = item;
- this.specificationValue = ''; //重置规格
- //根据材质ID 获取规格数据
- getEnginSpecificationsList(item.id).then(res => {
- this.materialList = res.data
- })
- } else if (this.type == 'gg') {
- this.specificationValue = item;
- } else if (this.type == 'xq') {
- this.XQValue = item;
- //根据小区id 获取楼栋数据
- this.LDValue = ''; //重置楼栋数据
- this.DYValue = ''; //重置单元数据
- this.FJValue = ''; //重置房间数据
- getBuildingList(item.id).then(res => {
- this.LDList = res.data
- })
- } 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;
- //根据单元数据 获取房间数据
- this.FJValue = ''; //重置房间数据
- getHousesList(item.id).then(res => {
- this.FJList = res.data
- })
- } else if (this.type == 'fj') {
- this.FJValue = item;
- if (!this.isEmpty(this.projectValue.dictValue)) {
- //房间选完 判断 工程周期
- this.getStatus();
- }
- }
- },
- //关闭弹窗
- close(e) {
- this.open = false
- },
- //关闭弹窗
- closeDict(e) {
- this.openDict = false
- },
- getStatus() {
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: this.LDValue.id, // 楼宇id
- unitId: this.DYValue.id, // 单元id
- houseId: this.FJValue.id, // 房间id
- enginCycle: this.projectValue.dictValue, // 工程周期
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- }
- getRoomProjectId(param).then(res => {
- if (res.code == '200') {
- if (res.data != null && res.data.zEngineeringNodeBoList != null) {
- res.data.zEngineeringNodeBoList.forEach((item, index) => {
- if (this.objValue.enginClassValue == item.type) {
- this.reviewStatus = item.reviewStatus;
- if (item.reviewStatus == '1')
- this.$modal.msg('当前工程已结束')
- }
- })
- } else {
- this.reviewStatus = '' //置空
- }
- } else {
- this.$modal.msg(res.msg)
- this.reviewStatus = '' //置空
- }
- })
- },
- //提交数据
- submit() {
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg("请选择工程周期")
- } else if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg("请选择行政区")
- } else if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg("请选择小区")
- } else if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg("请选择楼栋")
- } else if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg("请选择单元")
- } else if (this.isEmpty(this.FJValue.id)) {
- this.$modal.msg("请选择房间")
- } else if (this.objValue.enginClassValue == '报警器切断阀') {
- if (this.isEmpty(this.brandValue.dictValue)) {
- this.$modal.msg("请选择厂家")
- } else {
- this.onsubmit();
- }
- } else if (this.objValue.enginClassValue == '打孔') {
- if (this.isEmpty(this.LevelValue.dictValue)) {
- this.$modal.msg("请选择孔距") //打孔 判断孔距
- } else {
- this.onsubmit();
- }
- } else if (this.objValue.enginClassValue == '拆旧管') {
- if (this.isEmpty(this.LevelValue.dictValue)) {
- this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
- } else {
- this.onsubmit();
- }
- } else if (this.objValue.enginClassValue == '立杠') {
- //立杠 判断 材质 规格 米数
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择材质")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
- this.$modal.msg("请输入米数")
- } else {
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- this.onsubmit();
- }
- } else if (this.objValue.enginClassValue == '挂表') {
- //挂表 判断 品牌
- if (this.isEmpty(this.brandValue.dictValue)) {
- this.$modal.msg("请选择品牌")
- } else {
- this.onsubmit();
- }
- } else if (this.objValue.enginClassValue == '表后管') {
- //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
- if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择材质")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
- this.$modal.msg("请输入米数")
- } else if (this.imgArr.length <= 0) {
- this.$modal.msg('请上传照片或视频')
- } else if (this.loading == false) {
- this.$modal.msg('照片或视频未上传完毕,无法提交!')
- } else {
- const hasImage = this.imgArr.some(item => item.endsWith('.jpg') || item.endsWith(
- '.png') || item
- .endsWith('.jpeg') || item.endsWith('.JPG') || item.endsWith('.PNG') || item
- .endsWith('.JPEG'));
- const hasVideo = this.imgArr.some(item => item.endsWith('.mp4') || item.endsWith('.MP4'));
- if (hasImage && hasVideo) {
- //表后管 特殊 提交
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- let param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: this.inputNumberValue //米数
- }]
- }
- }
- }
- uni.showLoading()
- addTearOldPipe(param).then(res => {
- if (res.code == '200') {
- uni.hideLoading()
- uni.showToast({
- title: res.msg,
- icon: 'none',
- //显示持续时间为 1秒
- duration: 1000
- });
- uni.navigateBack();
- }
- })
- } else {
- this.$modal.msg('请至少上传一张照片和一个视频')
- }
- }
- } else if (this.objValue.enginClassValue == '阀管') {
- //阀管 判断 材质 规格 米数
- if (this.isEmpty(this.doorValue.dictValue)) {
- this.$modal.msg("请选择上门类型")
- } else if (this.isEmpty(this.SelfClosValve.dictValue)) {
- this.$modal.msg("请选择自闭阀类型")
- } else if (this.isEmpty(this.materialValue.id)) {
- this.$modal.msg("请选择材质")
- } else if (this.isEmpty(this.specificationValue.id)) {
- this.$modal.msg("请选择规格")
- } else if (this.isEmpty(this.inputIntegerNumberValue)) {
- this.$modal.msg("请输入米数")
- } else {
- if (this.isEmpty(this.inputDecimalNumberValue)) {
- this.inputNumberValue = this.inputIntegerNumberValue;
- } else {
- this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
- }
- this.onsubmit();
- }
- }
- },
- onsubmit() {
- if (this.imgArr.length <= 0) {
- this.$modal.msg('请上传照片或视频')
- } else if (this.loading == false) {
- this.$modal.msg('照片或视频未上传完毕,无法提交!')
- } else {
- //提交
- let param = ';'
- if (this.objValue.enginClassValue == '拆旧管' || this.objValue.enginClassValue ==
- '打孔') { //拆旧管 打孔
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- corrosionLevel: this.LevelValue.dictValue //腐蚀等级 //孔距
- }]
- }
- }
- }
- //this.onsubmit(param)
- } else if (this.objValue.enginClassValue == '报警器切断阀') { //报警器切断阀
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- brand: this.brandValue.dictValue, //品牌
- // number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '立杠') { //立杠
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '挂表') { //挂表
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- brand: this.brandValue.dictValue, //品牌
- //number: this.inputNumberValue //米数
- }]
- }
- }
- }
- } else if (this.objValue.enginClassValue == '阀管') { //自闭阀
- param = {
- district: this.XZQValue.dictValue,
- areaId: this.XQValue.id,
- buildingId: this.LDValue.id,
- unitId: this.DYValue.id,
- houseId: this.FJValue.id,
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- enginCycle: this.projectValue.dictValue, //工程周期
- zEngineeringNodeBo: {
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
- zEngineeringInfoBo: {
- constructAccordingDrawings: this.isCheck, //是否按图纸施工
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
- zEngineeringMaterialBo: [{
- visitType: this.doorValue.dictValue, //上门类型
- selfClosingValveType: this.SelfClosValve.dictValue, //自闭阀类型
- materialQuality: this.materialValue.id, //材质
- specifications: this.specificationValue.id, //规格
- number: this.inputNumberValue //米数
- }]
- }
- }
- }
- }
- uni.showLoading()
- addTearOldPipe(param).then(res => {
- if (res.code == '200') {
- nui.hideLoading()
- uni.showToast({
- title: res.msg,
- icon: 'none',
- //显示持续时间为 3秒
- duration: 2000
- });
- setTimeout(function() {
- uni.navigateBack();
- }, 1000)
- }
- })
- }
- },
- history() {
- if (this.isEmpty(this.projectValue.dictValue)) {
- this.$modal.msg("请选择工程周期")
- return
- }
- if (this.isEmpty(this.XZQValue.dictValue)) {
- this.$modal.msg("请选择行政区")
- return
- }
- if (this.isEmpty(this.XQValue.id)) {
- this.$modal.msg("请选择小区")
- return
- }
- if (this.isEmpty(this.LDValue.id)) {
- this.$modal.msg("请选择楼栋")
- return
- }
- if (this.isEmpty(this.DYValue.id)) {
- this.$modal.msg("请选择单元")
- return
- }
- if (this.isEmpty(this.FJValue.id)) {
- this.$modal.msg("请选择房间")
- return
- }
- let param = {
- areaId: this.XQValue.id, // 小区id
- buildingId: this.LDValue.id, // 楼宇id
- unitId: this.DYValue.id, // 单元id
- houseId: this.FJValue.id, // 房间id
- enginCycle: this.projectValue.dictValue, // 工程周期
- enginType: this.objValue.enginType, //写死 上一页面传过来的
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
- }
- getRoomProjectId(param).then(res => {
- if (res.code == '200') {
- if (res.data != null) {
- getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(res => {
- this.historyList = res.data
- if (res.data.zEngineeringNodeBo != null) {
- this.showHistoryList();
- } else {
- this.$modal.msg("暂无历史信息")
- }
- })
- } else {
- this.$modal.msg("暂无工程信息")
- }
- } else {
- this.$modal.msg(res.msg)
- }
- })
- },
- showHistoryList() {
- this.$refs.refShare.handleShowShare();
- }
- }
- }
- </script>
- <style lang="scss">
- .container {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px;
- position: relative;
- }
- .uni-list {
- border: 1xp solid #eee;
- }
- .to-right-icon {
- width: 15px;
- height: 15px;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- }
- .text {
- font-size: 16px;
- color: #333;
- }
- .background {
- // border: 15px solid hsla(0, 0%, 100%, .5);
- background: white;
- background-clip: padding-box;
- padding: 20rpx;
- border-radius: 20rpx;
- margin: 20rpx;
- /*从padding开始往外面裁剪背景*/
- }
- .btn {
- width: 715rpx;
- height: 69rpx;
- background: #79A4F0;
- border-radius: 6rpx;
- font-size: 25rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 69rpx;
- margin-top: 40rpx;
- margin-bottom: 100rpx;
- }
- .number {
- display: flex;
- /* 水平居中显示子元素 */
- align-items: flex-start;
- /* 垂直居中显示子元素 */
- justify-content: space-between;
- /* 左右间距等于间距大小 */
- padding: 10px;
- /* 设置padding以提高视觉效果 */
- }
- .textarea {
- margin-top: 10upx;
- width: 100%;
- border: 1rpx solid red;
- min-height: 100upx;
- line-height: 20px;
- }
- </style>
|