equipment-inspection-report.vue 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961
  1. <!--
  2. * @Title:
  3. * @Description: 巡检填报
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <view class="container">
  11. <uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="返回"
  12. @clickLeft="toBack">
  13. <view class="nav-title">
  14. <text>{{title}}</text>
  15. </view>
  16. </uni-nav-bar>
  17. <uni-forms ref="baseForm" :model="formData">
  18. <!-- <uni-section title="移动网络信号" ftitleFontSize="0.8rem" style="width: 100%;">
  19. <template v-slot:decoration>
  20. <view class="decoration"></view>
  21. </template>
  22. <view style="padding-top: 10px;padding-bottom: 10px;padding-left: 15px;padding-right: 15px;">
  23. <uni-forms-item name="networkSignalStatus" label="手机网络信号" label-width="130px" required>
  24. <uni-data-checkbox v-model="formData.networkSignalStatus" :localdata="ispItems.items">
  25. </uni-data-checkbox>
  26. </uni-forms-item>
  27. <view
  28. style="margin-top: 10px;margin-bottom: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.6rem;color:skyblue;">
  29. 备注:如以下物联网卡信息发生变化,请仔细核对修改</view>
  30. <uni-forms-item name='networkPayer' label="物联网卡运营商" label-width="130px">
  31. <uni-easyinput v-model="formData.networkPayer" placeholder="请录入物联网卡运营商名称" />
  32. </uni-forms-item>
  33. <uni-forms-item name='networkSimId' label="物联网卡号" label-width="130px">
  34. <uni-easyinput v-model="formData.networkSimId" placeholder="请录入物联网卡号" />
  35. </uni-forms-item>
  36. </view>
  37. </uni-section> -->
  38. <!-- <uni-section title="基础信息" titleFontSize="0.8rem" style="width: 100%;">
  39. <template v-slot:decoration>
  40. <view class="decoration"></view>
  41. </template>
  42. <view style="padding-top: 10px;padding-bottom: 10px;padding-left: 15px;padding-right: 15px;">
  43. <uni-forms-item label="测站名称:" label-width="100px">
  44. <view class="view-flex-rs" style="height: 100%;">
  45. <view class="view-flex-cc"><text>{{rtuInfo.rtuName}}</text></view>
  46. </view>
  47. </uni-forms-item>
  48. <uni-forms-item label="测站编码:" label-width="100px">
  49. <view class="view-flex-rs" style="height: 100%;">
  50. <view class="view-flex-cc"><text>{{rtuInfo.rtuCode}}</text></view>
  51. </view>
  52. </uni-forms-item>
  53. <uni-forms-item label="测站类型:" label-width="100px">
  54. <view class="view-flex-rs" style="height: 100%;">
  55. <view class="view-flex-cc">
  56. <text>{{toRtuKind()}}</text>
  57. </view>
  58. </view>
  59. </uni-forms-item>
  60. </view>
  61. </uni-section> -->
  62. <!-- <uni-section title="地理信息" titleFontSize="0.8rem" style="width: 100%;">
  63. <template v-slot:decoration>
  64. <view class="decoration"></view>
  65. </template>
  66. <view style="padding-top: 10px;padding-bottom: 10px;padding-left: 15px;padding-right: 15px;">
  67. <uni-forms-item label="测站安装地址:" label-width="100px">
  68. <view class="view-flex-rs" style="height: 100%;">
  69. <view class="view-flex-cc"><text>{{data.locationDesc}}</text></view>
  70. </view>
  71. </uni-forms-item>
  72. <uni-forms-item label="经纬度:" label-width="100px">
  73. <view class="view-flex-rs" style="height: 100%;">
  74. <view class="view-flex-cc"><text>{{data.lng}}/{{data.lat}}</text></view>
  75. </view>
  76. </uni-forms-item>
  77. </view>
  78. </uni-section> -->
  79. <!-- <uni-section title="站点状态检查" titleFontSize="0.8rem" style="width: 100%;">
  80. <template v-slot:decoration>
  81. <view class="decoration"></view>
  82. </template>
  83. <uni-card title="检查项(单选)" :is-shadow="false">
  84. <radio-group @change="onSiteCheckStatusRadioChange" class="view-flex-rs">
  85. <label style="margin-right: 10px;width:80px" class="view-flex-rs"
  86. v-for="(item, index) in data.siteCheckStatus.items" :key="item.id">
  87. <view>
  88. <radio :value="item.id" :checked="index === data.siteCheckStatus.current" />
  89. </view>
  90. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  91. </label>
  92. </radio-group>
  93. </uni-card>
  94. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  95. <view
  96. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  97. 备注:必填项,至少要拍一张照片</view>
  98. <view class="view-flex-rs-flex-wrap">
  99. <view v-for="(item, index) in data.siteCheckPhotos" :key="index" class="view-flex-cc"
  100. style="width: 100px;">
  101. <view class="img-container">
  102. <view class="note-image-box">
  103. <view class="note-image-item">
  104. <view class="close-icon" @click="onSiteCheckPhotoDel(index)">
  105. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  106. </view>
  107. <view class="image-box">
  108. <image :src="toOss(item)" mode="widthFix">
  109. </image>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="view-flex-cc" style="width: 80px;">
  116. <view class="img-container">
  117. <view class="note-image-box">
  118. <view class="note-image-item" @click="onSiteCheckPhotoAdd()">
  119. <view class="image-box">
  120. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </uni-card>
  128. <uni-card title="站点检查补充说明:" :is-shadow="false">
  129. <uni-easyinput type="textarea" v-model="data.siteCheckRemark" placeholder="请输入站点检查补充说明" />
  130. </uni-card>
  131. </uni-section> -->
  132. <!-- <uni-section v-if="rtuInfo.isRain" title="雨量站检查" titleFontSize="0.8rem" style="width: 100%;">
  133. <template v-slot:decoration>
  134. <view class="decoration"></view>
  135. </template>
  136. <uni-card title="检查项(多选)" :is-shadow="false">
  137. <checkbox-group @change="onRainSiteCheckboxChange" class="view-flex-rs">
  138. <label class="view-flex-rs" style="margin-right: 10px;font-size: 0.7rem;"
  139. v-for="(item, index) in data.rainSiteCheckItems.items" :key="item.id">
  140. <view>
  141. <checkbox v-if="item.checked" :value="item.id" checked="true" />
  142. <checkbox v-else :value="item.id" />
  143. </view>
  144. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  145. </label>
  146. </checkbox-group>
  147. </uni-card>
  148. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  149. <view class="view-flex-rs-flex-wrap">
  150. <view v-for="(item, index) in data.rainSiteCheckPhotos" :key="index" class="view-flex-cc"
  151. style="width: 80px;">
  152. <view class="img-container">
  153. <view class="note-image-box">
  154. <view class="note-image-item">
  155. <view class="close-icon" @click="onRainSitePhotoDel(index)">
  156. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  157. </view>
  158. <view class="image-box">
  159. <image :src="toOss(item)" mode="widthFix">
  160. </image>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="view-flex-cc" style="width: 80px;">
  167. <view class="img-container">
  168. <view class="note-image-box">
  169. <view class="note-image-item" @click="onRainSiteCheckPhotoAdd()">
  170. <view class="image-box">
  171. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. </uni-card>
  179. <uni-card title="巡检结果" :is-shadow="false">
  180. <radio-group @change="onRainSiteCheckStatusRadioChange" class="view-flex-rs">
  181. <label style="margin-right: 10px;width:80px" class="view-flex-rs"
  182. v-for="(item, index) in data.rainSiteCheckStatus.items" :key="item.id">
  183. <view>
  184. <radio :value="item.id" :checked="index === data.rainSiteCheckStatus.current" />
  185. </view>
  186. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  187. </label>
  188. </radio-group>
  189. </uni-card>
  190. <uni-card title="雨量站检查补充说明:" :is-shadow="false">
  191. <uni-easyinput type="textarea" v-model="data.rainSiteCheckRemark" placeholder="请输入雨量站检查补充说明" />
  192. </uni-card>
  193. </uni-section> -->
  194. <!-- <uni-section v-if="rtuInfo.isRiver || rtuInfo.isRes" title="水位站检查" titleFontSize="0.8rem"
  195. style="width: 100%;">
  196. <template v-slot:decoration>
  197. <view class="decoration"></view>
  198. </template>
  199. <uni-card title="检查项(多选)" :is-shadow="false">
  200. <checkbox-group @change="onWaterSiteCheckboxChange" class="view-flex-rs">
  201. <label class="view-flex-rs" style="margin-right: 10px;font-size: 0.7rem;"
  202. v-for="(item, index) in data.waterSiteCheckItems.items" :key="item.id">
  203. <view>
  204. <checkbox v-if="item.checked" :value="item.id" checked="true" />
  205. <checkbox v-else :value="item.id" />
  206. </view>
  207. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  208. </label>
  209. </checkbox-group>
  210. </uni-card>
  211. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  212. <view class="view-flex-rs-flex-wrap">
  213. <view v-for="(item, index) in data.waterSiteCheckPhotos" :key="index" class="view-flex-cc"
  214. style="width: 80px;">
  215. <view class="img-container">
  216. <view class="note-image-box">
  217. <view class="note-image-item">
  218. <view class="close-icon" @click="onWaterSitePhotoDel(index)">
  219. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  220. </view>
  221. <view class="image-box">
  222. <image :src="toOss(item)" mode="widthFix">
  223. </image>
  224. </view>
  225. </view>
  226. </view>
  227. </view>
  228. </view>
  229. <view class="view-flex-cc" style="width: 80px;">
  230. <view class="img-container">
  231. <view class="note-image-box">
  232. <view class="note-image-item" @click="onWaterSiteCheckPhotoAdd()">
  233. <view class="image-box">
  234. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. </view>
  241. </uni-card>
  242. <uni-card title="巡检结果" :is-shadow="false">
  243. <radio-group @change="onWaterSiteCheckStatusRadioChange" class="view-flex-rs">
  244. <label style="margin-right: 10px;width:80px" class="view-flex-rs"
  245. v-for="(item, index) in data.waterSiteCheckStatus.items" :key="item.id">
  246. <view>
  247. <radio :value="item.id" :checked="index === data.waterSiteCheckStatus.current" />
  248. </view>
  249. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  250. </label>
  251. </radio-group>
  252. </uni-card>
  253. <uni-card title="水位站检查补充说明:" :is-shadow="false">
  254. <uni-easyinput type="textarea" v-model="data.waterSiteCheckRemark" placeholder="请输入水位站检查补充说明" />
  255. </uni-card>
  256. </uni-section> -->
  257. <!-- <uni-section v-if="rtuInfo.isGround" title="墒情站检查" titleFontSize="0.8rem" style="width: 100%;">
  258. <template v-slot:decoration>
  259. <view class="decoration"></view>
  260. </template>
  261. <uni-card title="检查项(多选)" :is-shadow="false">
  262. <checkbox-group @change="onGroundSiteCheckboxChange" class="view-flex-rs">
  263. <label class="view-flex-rs" style="margin-right: 10px;font-size: 0.7rem;"
  264. v-for="(item, index) in data.groundSiteCheckItems.items" :key="item.id">
  265. <view>
  266. <checkbox v-if="item.checked" :value="item.id" checked="true" />
  267. <checkbox v-else :value="item.id" />
  268. </view>
  269. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  270. </label>
  271. </checkbox-group>
  272. </uni-card>
  273. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  274. <view class="view-flex-rs-flex-wrap">
  275. <view v-for="(item, index) in data.groundSiteCheckPhotos" :key="index" class="view-flex-cc"
  276. style="width: 80px;">
  277. <view class="img-container">
  278. <view class="note-image-box">
  279. <view class="note-image-item">
  280. <view class="close-icon" @click="onGroundSitePhotoDel(index)">
  281. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  282. </view>
  283. <view class="image-box">
  284. <image :src="toOss(item)" mode="widthFix">
  285. </image>
  286. </view>
  287. </view>
  288. </view>
  289. </view>
  290. </view>
  291. <view class="view-flex-cc" style="width: 80px;">
  292. <view class="img-container">
  293. <view class="note-image-box">
  294. <view class="note-image-item" @click="onGroundSiteCheckPhotoAdd()">
  295. <view class="image-box">
  296. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  297. </view>
  298. </view>
  299. </view>
  300. </view>
  301. </view>
  302. </view>
  303. </uni-card>
  304. <uni-card title="巡检结果" :is-shadow="false">
  305. <radio-group @change="onGroundSiteCheckStatusRadioChange" class="view-flex-rs">
  306. <label style="margin-right: 10px;width:80px" class="view-flex-rs"
  307. v-for="(item, index) in data.groundSiteCheckStatus.items" :key="item.id">
  308. <view>
  309. <radio :value="item.id" :checked="index === data.groundSiteCheckStatus.current" />
  310. </view>
  311. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  312. </label>
  313. </radio-group>
  314. </uni-card>
  315. <uni-card title="墒情站检查补充说明:" :is-shadow="false">
  316. <uni-easyinput type="textarea" v-model="data.groundSiteCheckRemark" placeholder="请输入墒情站检查补充说明" />
  317. </uni-card>
  318. </uni-section> -->
  319. <!-- <uni-section title="其他设备检查" titleFontSize="0.8rem" style="width: 100%;">
  320. <template v-slot:decoration>
  321. <view class="decoration"></view>
  322. </template>
  323. <uni-card title="检查项(多选)" :is-shadow="false">
  324. <checkbox-group @change="onOthersEquipmentCheckboxChange" class="view-flex-rs-flex-wrap">
  325. <label class="view-flex-rs"
  326. style="width: 140px;margin-bottom: 10px;margin-right: 10px;font-size: 0.7rem;"
  327. v-for="(item, index) in data.othersEquipmentCheckItems.items" :key="item.id">
  328. <view>
  329. <checkbox v-if="item.checked" :value="item.id" checked="true" />
  330. <checkbox v-else :value="item.id" />
  331. </view>
  332. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  333. </label>
  334. </checkbox-group>
  335. </uni-card>
  336. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  337. <view class="view-flex-rs-flex-wrap">
  338. <view v-for="(item, index) in data.othersEquipmentCheckPhotos" :key="index" class="view-flex-cc"
  339. style="width: 80px;">
  340. <view class="img-container">
  341. <view class="note-image-box">
  342. <view class="note-image-item">
  343. <view class="close-icon" @click="onOthersEquipmentPhotoDel(index)">
  344. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  345. </view>
  346. <view class="image-box">
  347. <image :src="toOss(item)" mode="widthFix">
  348. </image>
  349. </view>
  350. </view>
  351. </view>
  352. </view>
  353. </view>
  354. <view class="view-flex-cc" style="width: 80px;">
  355. <view class="img-container">
  356. <view class="note-image-box">
  357. <view class="note-image-item" @click="onOthersEquipmentCheckPhotoAdd()">
  358. <view class="image-box">
  359. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  360. </view>
  361. </view>
  362. </view>
  363. </view>
  364. </view>
  365. </view>
  366. </uni-card>
  367. <uni-card title="巡检结果" :is-shadow="false">
  368. <radio-group @change="onOthersEquipmentCheckStatusRadioChange" class="view-flex-rs">
  369. <label style="margin-right: 10px;width:80px" class="view-flex-rs"
  370. v-for="(item, index) in data.othersEquipmentCheckStatus.items" :key="item.id">
  371. <view>
  372. <radio :value="item.id" :checked="index === data.othersEquipmentCheckStatus.current" />
  373. </view>
  374. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  375. </label>
  376. </radio-group>
  377. </uni-card>
  378. <uni-card title="其他设备检查补充说明:" :is-shadow="false">
  379. <uni-easyinput type="textarea" v-model="data.othersEquipmentCheckRemark"
  380. placeholder="请输入其他设备检查补充说明" />
  381. </uni-card>
  382. </uni-section> -->
  383. <!-- <uni-section title="设备更换" titleFontSize="0.8rem" style="width: 100%;">
  384. <template v-slot:decoration>
  385. <view class="decoration"></view>
  386. </template>
  387. <uni-card title="设备项(多选)" :is-shadow="false">
  388. <checkbox-group @change="onEquipmentReplaceCheckboxChange" class="view-flex-rs-flex-wrap">
  389. <label class="view-flex-rs"
  390. style="width: 140px;margin-bottom: 10px;margin-right: 10px;font-size: 0.7rem;"
  391. v-for="(item, index) in data.equipmentsReplaceItems.items" :key="item.id">
  392. <view>
  393. <checkbox v-if="item.checked" :value="item.id" checked="true" />
  394. <checkbox v-else :value="item.id" />
  395. </view>
  396. <view style="font-size: 0.7rem;">{{item.dictValue}}</view>
  397. </label>
  398. </checkbox-group>
  399. </uni-card>
  400. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.rtuReplace" title="RTU型号说明" :is-shadow="false">
  401. <uni-easyinput v-model="data.rtuModelRemark" placeholder="请录入RTU型号说明" />
  402. </uni-card>
  403. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.rtuReplace" title="RTU更换照片" extra="点击下方按钮开始拍摄"
  404. :is-shadow="false">
  405. <view
  406. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  407. 备注:必填项</view>
  408. <view class="view-flex-rs-flex-wrap">
  409. <view v-for="(item, index) in data.rtuReplacePhotos" :key="index" class="view-flex-cc"
  410. style="width: 80px;">
  411. <view class="img-container">
  412. <view class="note-image-box">
  413. <view class="note-image-item">
  414. <view class="close-icon" @click="onRtuReplacePhotoDel(index)">
  415. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  416. </view>
  417. <view class="image-box">
  418. <image :src="toOss(item)" mode="widthFix">
  419. </image>
  420. </view>
  421. </view>
  422. </view>
  423. </view>
  424. </view>
  425. <view class="view-flex-cc" style="width: 80px;">
  426. <view class="img-container">
  427. <view class="note-image-box">
  428. <view class="note-image-item" @click="onRtuReplacePhotoAdd()">
  429. <view class="image-box">
  430. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  431. </view>
  432. </view>
  433. </view>
  434. </view>
  435. </view>
  436. </view>
  437. </uni-card>
  438. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.rainSensorReplace" title="雨量计型号说明"
  439. :is-shadow="false">
  440. <uni-easyinput v-model="data.rainSensorModelRemark" placeholder="请录入雨量计型号说明" />
  441. </uni-card>
  442. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.rainSensorReplace" title="雨量计更换照片"
  443. extra="点击下方按钮开始拍摄" :is-shadow="false">
  444. <view
  445. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  446. 备注:必填项</view>
  447. <view class="view-flex-rs-flex-wrap">
  448. <view v-for="(item, index) in data.rainSensorReplacePhotos" :key="index" class="view-flex-cc"
  449. style="width: 80px;">
  450. <view class="img-container">
  451. <view class="note-image-box">
  452. <view class="note-image-item">
  453. <view class="close-icon" @click="onRainSensorReplacePhotoDel(index)">
  454. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  455. </view>
  456. <view class="image-box">
  457. <image :src="toOss(item)" mode="widthFix">
  458. </image>
  459. </view>
  460. </view>
  461. </view>
  462. </view>
  463. </view>
  464. <view class="view-flex-cc" style="width: 80px;">
  465. <view class="img-container">
  466. <view class="note-image-box">
  467. <view class="note-image-item" @click="onRainSensorReplacePhotoAdd()">
  468. <view class="image-box">
  469. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  470. </view>
  471. </view>
  472. </view>
  473. </view>
  474. </view>
  475. </view>
  476. </uni-card>
  477. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.waterSensorReplace" title="水位计型号说明"
  478. :is-shadow="false">
  479. <uni-easyinput v-model="data.waterSensorModelRemark" placeholder="请录入水位计型号说明" />
  480. </uni-card>
  481. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.waterSensorReplace" title="水位计更换照片"
  482. extra="点击下方按钮开始拍摄" :is-shadow="false">
  483. <view
  484. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  485. 备注:必填项</view>
  486. <view class="view-flex-rs-flex-wrap">
  487. <view v-for="(item, index) in data.waterSensorReplacePhotos" :key="index" class="view-flex-cc"
  488. style="width: 80px;">
  489. <view class="img-container">
  490. <view class="note-image-box">
  491. <view class="note-image-item">
  492. <view class="close-icon" @click="onWaterSensorReplacePhotoDel(index)">
  493. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  494. </view>
  495. <view class="image-box">
  496. <image :src="toOss(item)" mode="widthFix">
  497. </image>
  498. </view>
  499. </view>
  500. </view>
  501. </view>
  502. </view>
  503. <view class="view-flex-cc" style="width: 80px;">
  504. <view class="img-container">
  505. <view class="note-image-box">
  506. <view class="note-image-item" @click="onWaterSensorReplacePhotoAdd()">
  507. <view class="image-box">
  508. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  509. </view>
  510. </view>
  511. </view>
  512. </view>
  513. </view>
  514. </view>
  515. </uni-card>
  516. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.groundSensorReplace" title="墒情计型号说明"
  517. :is-shadow="false">
  518. <uni-easyinput v-model="data.groundSensorModelRemark" placeholder="请录入墒情计型号说明" />
  519. </uni-card>
  520. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.groundSensorReplace" title="墒情计更换照片"
  521. extra="点击下方按钮开始拍摄" :is-shadow="false">
  522. <view
  523. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  524. 备注:必填项</view>
  525. <view class="view-flex-rs-flex-wrap">
  526. <view v-for="(item, index) in data.groundSensorReplacePhotos" :key="index" class="view-flex-cc"
  527. style="width: 80px;">
  528. <view class="img-container">
  529. <view class="note-image-box">
  530. <view class="note-image-item">
  531. <view class="close-icon" @click="onGroundSensorReplacePhotoDel(index)">
  532. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  533. </view>
  534. <view class="image-box">
  535. <image :src="toOss(item)" mode="widthFix">
  536. </image>
  537. </view>
  538. </view>
  539. </view>
  540. </view>
  541. </view>
  542. <view class="view-flex-cc" style="width: 80px;">
  543. <view class="img-container">
  544. <view class="note-image-box">
  545. <view class="note-image-item" @click="onGroundSensorReplacePhotoAdd()">
  546. <view class="image-box">
  547. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  548. </view>
  549. </view>
  550. </view>
  551. </view>
  552. </view>
  553. </view>
  554. </uni-card>
  555. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.batteryReplace" title="蓄电池型号说明" :is-shadow="false">
  556. <uni-easyinput v-model="data.batteryModelRemark" placeholder="请录入蓄电池型号说明" />
  557. </uni-card>
  558. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.batteryReplace" title="蓄电池更换照片" extra="点击下方按钮开始拍摄"
  559. :is-shadow="false">
  560. <view
  561. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  562. 备注:必填项</view>
  563. <view class="view-flex-rs-flex-wrap">
  564. <view v-for="(item, index) in data.batteryReplacePhotos" :key="index" class="view-flex-cc"
  565. style="width: 80px;">
  566. <view class="img-container">
  567. <view class="note-image-box">
  568. <view class="note-image-item">
  569. <view class="close-icon" @click="onBatteryReplacePhotoDel(index)">
  570. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  571. </view>
  572. <view class="image-box">
  573. <image :src="toOss(item)" mode="widthFix">
  574. </image>
  575. </view>
  576. </view>
  577. </view>
  578. </view>
  579. </view>
  580. <view class="view-flex-cc" style="width: 80px;">
  581. <view class="img-container">
  582. <view class="note-image-box">
  583. <view class="note-image-item" @click="onBatteryReplacePhotoAdd()">
  584. <view class="image-box">
  585. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  586. </view>
  587. </view>
  588. </view>
  589. </view>
  590. </view>
  591. </view>
  592. </uni-card>
  593. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.sunPowerReplace" title="太阳能板型号说明"
  594. :is-shadow="false">
  595. <uni-easyinput v-model="data.sunPowerModelRemark" placeholder="请录入太阳能板型号说明" />
  596. </uni-card>
  597. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.sunPowerReplace" title="太阳能板更换照片" extra="点击下方按钮开始拍摄"
  598. :is-shadow="false">
  599. <view
  600. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  601. 备注:必填项</view>
  602. <view class="view-flex-rs-flex-wrap">
  603. <view v-for="(item, index) in data.sunPowerReplacePhotos" :key="index" class="view-flex-cc"
  604. style="width: 80px;">
  605. <view class="img-container">
  606. <view class="note-image-box">
  607. <view class="note-image-item">
  608. <view class="close-icon" @click="onSunPowerReplacePhotoDel(index)">
  609. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  610. </view>
  611. <view class="image-box">
  612. <image :src="toOss(item)" mode="widthFix">
  613. </image>
  614. </view>
  615. </view>
  616. </view>
  617. </view>
  618. </view>
  619. <view class="view-flex-cc" style="width: 80px;">
  620. <view class="img-container">
  621. <view class="note-image-box">
  622. <view class="note-image-item" @click="onSunPowerReplacePhotoAdd()">
  623. <view class="image-box">
  624. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  625. </view>
  626. </view>
  627. </view>
  628. </view>
  629. </view>
  630. </view>
  631. </uni-card>
  632. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.batteryControllerReplace" title="充电控制器型号说明"
  633. :is-shadow="false">
  634. <uni-easyinput v-model="data.batteryControlModelRemark" placeholder="请录入充电控制器型号说明" />
  635. </uni-card>
  636. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.batteryControllerReplace" title="充电控制器更换照片"
  637. extra="点击下方按钮开始拍摄" :is-shadow="false">
  638. <view
  639. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  640. 备注:必填项</view>
  641. <view class="view-flex-rs-flex-wrap">
  642. <view v-for="(item, index) in data.batteryControlReplacePhotos" :key="index"
  643. class="view-flex-cc" style="width: 80px;">
  644. <view class="img-container">
  645. <view class="note-image-box">
  646. <view class="note-image-item">
  647. <view class="close-icon" @click="onBatteryControllerReplacePhotoDel(index)">
  648. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  649. </view>
  650. <view class="image-box">
  651. <image :src="toOss(item)" mode="widthFix">
  652. </image>
  653. </view>
  654. </view>
  655. </view>
  656. </view>
  657. </view>
  658. <view class="view-flex-cc" style="width: 80px;">
  659. <view class="img-container">
  660. <view class="note-image-box">
  661. <view class="note-image-item" @click="onBatteryControllerReplacePhotoAdd()">
  662. <view class="image-box">
  663. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  664. </view>
  665. </view>
  666. </view>
  667. </view>
  668. </view>
  669. </view>
  670. </uni-card>
  671. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace" title="其他设备说明"
  672. :is-shadow="false">
  673. <uni-easyinput v-model="data.otherEquipmentModelRemark" placeholder="请录入其他设备说明" />
  674. </uni-card>
  675. <uni-card v-if="data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace" title="其他设备更换照片"
  676. extra="点击下方按钮开始拍摄" :is-shadow="false">
  677. <view
  678. style="padding-top: 10px;padding-left: 0px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  679. 备注:必填项</view>
  680. <view class="view-flex-rs-flex-wrap">
  681. <view v-for="(item, index) in data.otherEquipmentReplacePhotos" :key="index"
  682. class="view-flex-cc" style="width: 80px;">
  683. <view class="img-container">
  684. <view class="note-image-box">
  685. <view class="note-image-item">
  686. <view class="close-icon" @click="onOtherEquipmentReplacePhotoDel(index)">
  687. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  688. </view>
  689. <view class="image-box">
  690. <image :src="toOss(item)" mode="widthFix">
  691. </image>
  692. </view>
  693. </view>
  694. </view>
  695. </view>
  696. </view>
  697. <view class="view-flex-cc" style="width: 80px;">
  698. <view class="img-container">
  699. <view class="note-image-box">
  700. <view class="note-image-item" @click="onOtherEquipmentReplacePhotoAdd()">
  701. <view class="image-box">
  702. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  703. </view>
  704. </view>
  705. </view>
  706. </view>
  707. </view>
  708. </view>
  709. </uni-card>
  710. </uni-section> -->
  711. <uni-section title="巡检工作内容描述" titleFontSize="0.8rem" style="width: 100%;">
  712. <template v-slot:decoration>
  713. <view class="decoration"></view>
  714. </template>
  715. <uni-group>
  716. <uni-forms-item name='inspectionDesc' label-width="0px" required>
  717. <uni-easyinput type="textarea" :autoHeight="true" v-model="formData.inspectionDesc"
  718. placeholder="录入内容" />
  719. </uni-forms-item>
  720. </uni-group>
  721. <!-- <view style="padding-top: 10px;padding-bottom: 10px;padding-left: 15px;padding-right: 15px;">
  722. <uni-easyinput type="textarea" v-model="formData.inspectionDesc" placeholder="录入内容" />
  723. </view> -->
  724. </uni-section>
  725. <uni-section title="巡检留存照片/视频" titleFontSize="0.8rem" style="width: 100%;">
  726. <template v-slot:decoration>
  727. <view class="decoration"></view>
  728. </template>
  729. <view
  730. style="padding-top: 10px;padding-left: 15px;padding-right: 15px;font-size: 0.7rem;color:lightcoral;">
  731. 备注:必填项,至少要拍一张整体的站点照片</view>
  732. <uni-card title="拍摄照片" extra="点击下方按钮开始拍摄" :is-shadow="false">
  733. <view class="view-flex-rs-flex-wrap">
  734. <view v-for="(item, index) in inspectionWorkPhotos" :key="index" class="view-flex-cc"
  735. style="width: 80px;">
  736. <view class="img-container">
  737. <view class="note-image-box">
  738. <view class="note-image-item">
  739. <view class="close-icon" @click="onInspectionWorkPhotoDel(index)">
  740. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  741. </view>
  742. <view class="image-box">
  743. <image :src="toOss(item)" mode="widthFix">
  744. </image>
  745. </view>
  746. </view>
  747. </view>
  748. </view>
  749. </view>
  750. <view class="view-flex-cc" style="width: 80px;">
  751. <view class="img-container">
  752. <view class="note-image-box">
  753. <view class="note-image-item" @click="onInspectionWorkCheckPhotoAdd()">
  754. <view class="image-box">
  755. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  756. </view>
  757. </view>
  758. </view>
  759. </view>
  760. </view>
  761. </view>
  762. </uni-card>
  763. <uni-card title="拍摄视频" extra="点击下方按钮开始拍摄" :is-shadow="false">
  764. <view class="view-flex-rs-flex-wrap">
  765. <view v-for="(item, index) in orderVideos" :key="index" class="view-flex-cc"
  766. style="width: 80px;">
  767. <view class="img-container">
  768. <view class="note-image-box">
  769. <view class="note-image-item">
  770. <view class="close-icon" @click="onVideoDel(index)">
  771. <uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
  772. </view>
  773. <view class="image-box">
  774. <image :src="videoImg" mode="widthFix" @click="openVideo(item)">
  775. </image>
  776. </view>
  777. </view>
  778. </view>
  779. </view>
  780. </view>
  781. <view class="view-flex-cc" style="width: 80px;">
  782. <view class="img-container">
  783. <view class="note-image-box">
  784. <view class="note-image-item" @click="onCheckVideoAdd()">
  785. <view class="image-box">
  786. <uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
  787. </view>
  788. </view>
  789. </view>
  790. </view>
  791. </view>
  792. </view>
  793. </uni-card>
  794. </uni-section>
  795. </uni-forms>
  796. <view class="footer">
  797. <view class="control">
  798. <view class="view-flex-rc">
  799. <!-- <view class="block"
  800. style="width: 120px;height:28px;margin-left: 10px;margin-right: 10px;border-radius:7px;background-color:lightblue"
  801. @click="toSave()">
  802. <view class="view-flex-cc">
  803. <uni-icons class="input-uni-icon" type="folder-add" size="18" color="#999" />
  804. </view>
  805. <view class="view-flex-cc" style="padding-left:5px;">
  806. <text style="color:black;font-size:0.7rem">暂存</text>
  807. </view>
  808. </view> -->
  809. <view class="block"
  810. style="width: 120px;height:28px;margin-left: 10px;margin-right: 10px;border-radius:7px;background-color:lightpink"
  811. @click="toSubmit()">
  812. <view class="view-flex-cc">
  813. <uni-icons class="input-uni-icon" type="checkmarkempty" size="18" color="#999" />
  814. </view>
  815. <view class="view-flex-cc" style="padding-left:5px;">
  816. <text style="color:black;font-size:0.7rem">立即提交</text>
  817. </view>
  818. </view>
  819. </view>
  820. </view>
  821. </view>
  822. </view>
  823. </template>
  824. <script>
  825. import http from '@/http/api.js';
  826. import {
  827. pathToBase64,
  828. base64ToPath
  829. } from '@/js_sdk/mmmm-image-tools/index.js';
  830. import {
  831. oss,
  832. devUrl,
  833. prodUrl
  834. } from '@/common/setting';
  835. export default {
  836. components: {
  837. },
  838. data() {
  839. return {
  840. formData: {
  841. inspectionId:'',
  842. inspectionDesc: ''
  843. },
  844. rules: {
  845. inspectionDesc: {
  846. rules: [{
  847. required: true,
  848. errorMessage: '必填项',
  849. }]
  850. },
  851. },
  852. title: '设备巡检填报',
  853. baseURL: '',
  854. baseOSS: '',
  855. inspectionId:'',
  856. rtuCode: '',
  857. ispItems: {
  858. items: [{
  859. 'value': 0,
  860. 'text': '正常'
  861. }, {
  862. 'value': 1,
  863. 'text': '三大运营商均无信号'
  864. }],
  865. current: -1,
  866. },
  867. rtuInfo: {
  868. isRain: 0,
  869. isRiver: 0,
  870. isRes: 0,
  871. isGround: 0,
  872. rtuCode: '',
  873. rtuName: '',
  874. lng: '',
  875. lat: '',
  876. locationDesc: '',
  877. isRain: false,
  878. isWaterLevel: false,
  879. isGround: false,
  880. isCamera: false,
  881. },
  882. orderVideos: [],
  883. inspectionWorkPhotos: [],
  884. data: {
  885. lng: '',
  886. lat: '',
  887. locationDesc: '',
  888. //站点状态检查项
  889. siteCheckStatus: {
  890. items: [{
  891. 'id': '0',
  892. 'dictValue': '水毁'
  893. }, {
  894. 'id': '1',
  895. 'dictValue': '丢失'
  896. }, {
  897. 'id': '2',
  898. 'dictValue': '损坏'
  899. }, {
  900. 'value': '3',
  901. 'dictValue': '正常'
  902. }],
  903. current: 3,
  904. },
  905. siteCheckPhotos: [],
  906. siteCheckRemark: '',
  907. //雨量站检查数据
  908. rainSiteCheckItems: {
  909. items: [{
  910. 'id': '0',
  911. 'checked': false,
  912. 'dictValue': '故障排查'
  913. }, {
  914. 'id': '1',
  915. 'checked': false,
  916. 'dictValue': '清理堵塞'
  917. }, {
  918. 'id': '2',
  919. 'checked': false,
  920. 'dictValue': '雨量计校核'
  921. }],
  922. current: -1,
  923. },
  924. rainSiteCheckItemsCheckBox: {
  925. equipmentFaultCheck: 0,
  926. equipmentClear: 0,
  927. rainSensorCheck: 0,
  928. },
  929. rainSiteCheckPhotos: [],
  930. rainSiteCheckStatus: {
  931. items: [{
  932. 'id': '0',
  933. 'dictValue': '异常'
  934. }, {
  935. 'id': '1',
  936. 'dictValue': '正常'
  937. }],
  938. current: 1,
  939. },
  940. rainSiteCheckRemark: '',
  941. //水位站检查数据
  942. waterSiteCheckItems: {
  943. items: [{
  944. 'id': '0',
  945. 'checked': false,
  946. 'dictValue': '故障排查'
  947. }, {
  948. 'id': '1',
  949. 'checked': false,
  950. 'dictValue': '水位计校核'
  951. }],
  952. current: -1,
  953. },
  954. waterSiteCheckItemsCheckBox: {
  955. equipmentFaultCheck: 0,
  956. waterSensorCheck: 0,
  957. },
  958. waterSiteCheckPhotos: [],
  959. waterSiteCheckStatus: {
  960. items: [{
  961. 'id': '0',
  962. 'dictValue': '异常'
  963. }, {
  964. 'id': '1',
  965. 'dictValue': '正常'
  966. }],
  967. current: 1,
  968. },
  969. waterSiteCheckRemark: '',
  970. //墒情站检查数据
  971. groundSiteCheckItems: {
  972. items: [{
  973. 'id': '0',
  974. 'checked': false,
  975. 'dictValue': '故障排查'
  976. }, {
  977. 'id': '1',
  978. 'checked': false,
  979. 'dictValue': '墒情计校核'
  980. }],
  981. current: -1,
  982. },
  983. groundSiteCheckItemsCheckBox: {
  984. equipmentFaultCheck: 0,
  985. groundSensorCheck: 0,
  986. },
  987. groundSiteCheckPhotos: [],
  988. groundSiteCheckStatus: {
  989. items: [{
  990. 'id': '0',
  991. 'dictValue': '异常'
  992. }, {
  993. 'id': '1',
  994. 'dictValue': '正常'
  995. }],
  996. current: 1,
  997. },
  998. groundSiteCheckRemark: '',
  999. //其他设备检查
  1000. othersEquipmentCheckItems: {
  1001. items: [{
  1002. 'id': '0',
  1003. 'checked': false,
  1004. 'dictValue': '设备接地检测'
  1005. }, {
  1006. 'id': '1',
  1007. 'checked': false,
  1008. 'dictValue': '电源电压检测'
  1009. }, {
  1010. 'id': '2',
  1011. 'checked': false,
  1012. 'dictValue': '太阳能板检查'
  1013. }, {
  1014. 'id': '3',
  1015. 'checked': false,
  1016. 'dictValue': '蓄电池检查'
  1017. }, {
  1018. 'id': '4',
  1019. 'checked': false,
  1020. 'dictValue': '网络通信检查'
  1021. }],
  1022. current: -1,
  1023. },
  1024. othersEquipmentCheckItemsCheckBox: {
  1025. equipmentGroundWireCheck: 0,
  1026. bvCheck: 0,
  1027. sunPowerCheck: 0,
  1028. btCheck: 0,
  1029. netCheck: 0,
  1030. },
  1031. othersEquipmentCheckPhotos: [],
  1032. othersEquipmentCheckStatus: {
  1033. items: [{
  1034. 'id': '0',
  1035. 'dictValue': '异常'
  1036. }, {
  1037. 'id': '1',
  1038. 'dictValue': '正常'
  1039. }],
  1040. current: 1,
  1041. },
  1042. othersEquipmentCheckRemark: '',
  1043. //设备替换
  1044. equipmentsReplaceItems: {
  1045. items: [{
  1046. 'id': '0',
  1047. 'checked': false,
  1048. 'dictValue': 'RTU'
  1049. }, {
  1050. 'id': '1',
  1051. 'checked': false,
  1052. 'dictValue': '雨量计'
  1053. }, {
  1054. 'id': '2',
  1055. 'checked': false,
  1056. 'dictValue': '水位计'
  1057. }, {
  1058. 'id': '3',
  1059. 'checked': false,
  1060. 'dictValue': '墒情计'
  1061. }, {
  1062. 'id': '4',
  1063. 'checked': false,
  1064. 'dictValue': '蓄电池'
  1065. }, {
  1066. 'id': '5',
  1067. 'checked': false,
  1068. 'dictValue': '太阳能板'
  1069. }, {
  1070. 'id': '6',
  1071. 'checked': false,
  1072. 'dictValue': '充电控制器'
  1073. }, {
  1074. 'id': '7',
  1075. 'checked': false,
  1076. 'dictValue': '其他'
  1077. }],
  1078. current: -1,
  1079. },
  1080. equipmentsReplaceItemsCheckBox: {
  1081. rtuReplace: 0,
  1082. rainSensorReplace: 0,
  1083. waterSensorReplace: 0,
  1084. groundSensorReplace: 0,
  1085. batteryReplace: 0,
  1086. sunPowerReplace: 0,
  1087. batteryControllerReplace: 0,
  1088. otherEquipmentReplace: 0
  1089. },
  1090. rtuModelRemark: '',
  1091. rtuReplacePhotos: [],
  1092. rainSensorModelRemark: '',
  1093. rainSensorReplacePhotos: [],
  1094. waterSensorModelRemark: '',
  1095. waterSensorReplacePhotos: [],
  1096. groundSensorModelRemark: '',
  1097. groundSensorReplacePhotos: [],
  1098. batteryModelRemark: '',
  1099. batteryReplacePhotos: [],
  1100. sunPowerModelRemark: '',
  1101. sunPowerReplacePhotos: [],
  1102. batteryControlModelRemark: '',
  1103. batteryControlReplacePhotos: [],
  1104. otherEquipmentModelRemark: '',
  1105. otherEquipmentReplacePhotos: [],
  1106. //巡检遗留问题描述
  1107. inspectionRemainProblemsRemark: '',
  1108. //工作留存数据
  1109. },
  1110. }
  1111. },
  1112. computed: {
  1113. getIcon() {
  1114. return path => {
  1115. return 'https://cdn.uviewui.com/uview/example/' + path + '.png';
  1116. }
  1117. },
  1118. },
  1119. onShow() {},
  1120. created() {},
  1121. onReady() {
  1122. console.log("onReady++++++++++++++")
  1123. // 需要在onReady中设置规则
  1124. this.$refs.baseForm.setRules(this.rules)
  1125. },
  1126. onLoad(options) {
  1127. this.rtuCode = options.rtuCode;
  1128. this.baseOSS = oss;
  1129. this.baseURL = process.env.NODE_ENV === 'development' ? devUrl : prodUrl;
  1130. // this.loadRtuInfo();
  1131. this.formData.inspectionId = options.id;
  1132. },
  1133. methods: {
  1134. toOss(path) {
  1135. let url = this.baseOSS + path;
  1136. return url;
  1137. },
  1138. toBack() {
  1139. uni.navigateBack({
  1140. delta: 1
  1141. })
  1142. },
  1143. getDetail() {
  1144. console.log("ddddddddddddddddddddd")
  1145. //this.formData.networkSimId='1111'
  1146. let that = this;
  1147. let postData = {};
  1148. postData['id'] = this.orderId;
  1149. http.request({
  1150. url: '/galaxy-business/rtu/check/order/detail',
  1151. method: 'GET',
  1152. data: postData
  1153. }).then(res => {
  1154. console.log("ddddddddddddddddddddd " + JSON.stringify(res.data))
  1155. //if (res.data != null) {
  1156. let p = {};
  1157. p['networkSimId'] = res.data.networkSimId;
  1158. p['networkPayer'] = res.data.networkPayer;
  1159. that.formData = p;
  1160. //}
  1161. }).catch(err => {
  1162. console.log(err)
  1163. })
  1164. },
  1165. toRtuKind() {
  1166. let htmltext = '';
  1167. if (this.rtuInfo.isRain === 1) {
  1168. htmltext = htmltext + "雨量站";
  1169. }
  1170. if (this.rtuInfo.isRiver == 1 || this.rtuInfo.isRes == 1) {
  1171. if (htmltext.length > 0) {
  1172. htmltext = htmltext + ' / ';
  1173. }
  1174. htmltext = htmltext + '水位站';
  1175. }
  1176. if (this.rtuInfo.isGround == 1) {
  1177. if (htmltext.length > 0) {
  1178. htmltext = htmltext + ' / ';
  1179. }
  1180. htmltext = htmltext + '墒情站';
  1181. }
  1182. if (this.rtuInfo.isVideo == 1) {
  1183. if (htmltext.length > 0) {
  1184. htmltext = htmltext + ' / ';
  1185. }
  1186. htmltext = htmltext + '视频站';
  1187. }
  1188. return htmltext;
  1189. },
  1190. loadCacheData() {
  1191. let formdata = uni.getStorageSync('inspection_report_storage_' + this.rtuCode);
  1192. if (null != formdata && '' != formdata) {
  1193. this.data = formdata;
  1194. let p = {};
  1195. p['networkSignalStatus'] = formdata.networkSignalStatus;
  1196. p['networkSimId'] = formdata.networkSimId;
  1197. p['networkPayer'] = formdata.networkPayer;
  1198. that.formData = p;
  1199. //雨位计
  1200. if (this.data.rainSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1201. this.data.rainSiteCheckItems.items[0].checked = true;
  1202. }
  1203. if (this.data.rainSiteCheckItemsCheckBox.equipmentClear == 1) {
  1204. this.data.rainSiteCheckItems.items[1].checked = true;
  1205. }
  1206. if (this.data.rainSiteCheckItemsCheckBox.rainSensorCheck == 1) {
  1207. this.data.rainSiteCheckItems.items[2].checked = true;
  1208. }
  1209. //水位计
  1210. if (this.data.waterSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1211. this.data.waterSiteCheckItems.items[0].checked = true;
  1212. }
  1213. if (this.data.waterSiteCheckItemsCheckBox.waterSensorCheck == 1) {
  1214. this.data.waterSiteCheckItems.items[1].checked = true;
  1215. }
  1216. //墒情计
  1217. if (this.data.groundSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1218. this.data.groundSiteCheckItems.items[0].checked = true;
  1219. }
  1220. if (this.data.groundSiteCheckItemsCheckBox.groundSensorCheck == 1) {
  1221. this.data.groundSiteCheckItems.items[1].checked = true;
  1222. }
  1223. //其他设备
  1224. if (this.data.othersEquipmentCheckItemsCheckBox.equipmentGroundWireCheck == 1) {
  1225. this.data.othersEquipmentCheckItems.items[0].checked = true;
  1226. }
  1227. if (this.data.othersEquipmentCheckItemsCheckBox.bvCheck == 1) {
  1228. this.data.othersEquipmentCheckItems.items[1].checked = true;
  1229. }
  1230. if (this.data.othersEquipmentCheckItemsCheckBox.sunPowerCheck == 1) {
  1231. this.data.othersEquipmentCheckItems.items[2].checked = true;
  1232. }
  1233. if (this.data.othersEquipmentCheckItemsCheckBox.btCheck == 1) {
  1234. this.data.othersEquipmentCheckItems.items[3].checked = true;
  1235. }
  1236. if (this.data.othersEquipmentCheckItemsCheckBox.netCheck == 1) {
  1237. this.data.othersEquipmentCheckItems.items[4].checked = true;
  1238. }
  1239. //设备更换
  1240. if (this.data.equipmentsReplaceItemsCheckBox.rtuReplace == 1) {
  1241. this.data.equipmentsReplaceItems.items[0].checked = true;
  1242. }
  1243. if (this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace == 1) {
  1244. this.data.equipmentsReplaceItems.items[1].checked = true;
  1245. }
  1246. if (this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace == 1) {
  1247. this.data.equipmentsReplaceItems.items[2].checked = true;
  1248. }
  1249. if (this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace == 1) {
  1250. this.data.equipmentsReplaceItems.items[3].checked = true;
  1251. }
  1252. if (this.data.equipmentsReplaceItemsCheckBox.batteryReplace == 1) {
  1253. this.data.equipmentsReplaceItems.items[4].checked = true;
  1254. }
  1255. if (this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace == 1) {
  1256. this.data.equipmentsReplaceItems.items[5].checked = true;
  1257. }
  1258. if (this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace == 1) {
  1259. this.data.equipmentsReplaceItems.items[6].checked = true;
  1260. }
  1261. if (this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace == 1) {
  1262. this.data.equipmentsReplaceItems.items[7].checked = true;
  1263. }
  1264. } else {
  1265. //this.getDetail();
  1266. }
  1267. },
  1268. clearCache() {
  1269. uni.removeStorageSync('inspection_report_storage_' + this.rtuCode);
  1270. },
  1271. loadRtuInfo() {
  1272. let that = this;
  1273. let postData = {};
  1274. postData['rtuCode'] = this.rtuCode;
  1275. http.request({
  1276. url: '/galaxy-business/rtu/base/detail',
  1277. method: 'GET',
  1278. data: postData
  1279. }).then(res => {
  1280. if (res.data != null) {
  1281. console.log(JSON.stringify(res.data))
  1282. that.rtuInfo = res.data;
  1283. that.rtuInfo.isRain = 1;
  1284. that.rtuInfo.isRiver = 1;
  1285. that.rtuInfo.isRes = 1;
  1286. that.rtuInfo.isGround = 1;
  1287. that.data['lng'] = that.rtuInfo.lng;
  1288. that.data['lat'] = that.rtuInfo.lat;
  1289. that.data['locationDesc'] = that.rtuInfo.locationDesc;
  1290. let p = {};
  1291. p['networkSimId'] = that.rtuInfo.networkSimId;
  1292. p['networkPayer'] = that.rtuInfo.networkPayer;
  1293. that.formData = p;
  1294. that.loadCacheData();
  1295. }
  1296. }).catch(err => {
  1297. console.log(err)
  1298. })
  1299. },
  1300. toSave() {
  1301. let that = this;
  1302. uni.setStorageSync('inspection_report_storage_' + this.rtuCode, this.data);
  1303. uni.showModal({
  1304. content: '已成功缓存,确认返回!',
  1305. showCancel: true,
  1306. success(res) {
  1307. if (res.confirm) {
  1308. that.toBack();
  1309. }
  1310. }
  1311. });
  1312. },
  1313. toSubmit() {
  1314. let that = this;
  1315. this.$refs.baseForm.validate().then(res => {
  1316. console.log('表单数据信息1:', res);
  1317. //console.log('表单数据信息2:', that.formData);
  1318. // if (that.formData.networkSignalStatus == 0) {
  1319. // let next = false;
  1320. // let msg = '';
  1321. // if (that.data.siteCheckPhotos.length > 0) {
  1322. // next = true;
  1323. // } else {
  1324. // next = false;
  1325. // msg = "站点状态检查照片为必填项,请至少要拍一张照片,请检查!";
  1326. // }
  1327. // if (next) {
  1328. // if (this.data.equipmentsReplaceItemsCheckBox.rtuReplace == 1) {
  1329. // if (this.data.rtuReplacePhotos.length > 0) {
  1330. // next = true;
  1331. // } else {
  1332. // next = false;
  1333. // msg = "更换RTU设备时,请至少要拍一张照片,请检查!";
  1334. // }
  1335. // }
  1336. // }
  1337. // if (next) {
  1338. // if (this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace == 1) {
  1339. // if (this.data.rainSensorReplacePhotos.length > 0) {
  1340. // next = true;
  1341. // } else {
  1342. // next = false;
  1343. // msg = "更换雨量计时,请至少要拍一张照片,请检查!";
  1344. // }
  1345. // }
  1346. // }
  1347. // if (next) {
  1348. // if (this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace == 1) {
  1349. // if (this.data.waterSensorReplacePhotos.length > 0) {
  1350. // next = true;
  1351. // } else {
  1352. // next = false;
  1353. // msg = "更换水位计时,请至少要拍一张照片,请检查!";
  1354. // }
  1355. // }
  1356. // }
  1357. // if (next) {
  1358. // if (this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace == 1) {
  1359. // if (this.data.groundSensorReplacePhotos.length > 0) {
  1360. // next = true;
  1361. // } else {
  1362. // next = false;
  1363. // msg = "更换墒情计时,请至少要拍一张照片,请检查!";
  1364. // }
  1365. // }
  1366. // }
  1367. // if (next) {
  1368. // if (this.data.equipmentsReplaceItemsCheckBox.batteryReplace == 1) {
  1369. // if (this.data.batteryReplacePhotos.length > 0) {
  1370. // next = true;
  1371. // } else {
  1372. // next = false;
  1373. // msg = "更换蓄电池时,请至少要拍一张照片,请检查!";
  1374. // }
  1375. // }
  1376. // }
  1377. // if (next) {
  1378. // if (this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace == 1) {
  1379. // if (this.data.sunPowerReplacePhotos.length > 0) {
  1380. // next = true;
  1381. // } else {
  1382. // next = false;
  1383. // msg = "更换太阳能板时,请至少要拍一张照片,请检查!";
  1384. // }
  1385. // }
  1386. // }
  1387. // if (next) {
  1388. // if (this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace == 1) {
  1389. // if (this.data.batteryControlReplacePhotos.length > 0) {
  1390. // next = true;
  1391. // } else {
  1392. // next = false;
  1393. // msg = "更换充电控制器时,请至少要拍一张照片,请检查!";
  1394. // }
  1395. // }
  1396. // }
  1397. // if (next) {
  1398. // if (this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace == 1) {
  1399. // if (this.data.otherEquipmentReplacePhotos.length > 0) {
  1400. // next = true;
  1401. // } else {
  1402. // next = false;
  1403. // msg = "更换其他设备时,请至少要拍一张照片,请检查!";
  1404. // }
  1405. // }
  1406. // }
  1407. // if (next) {
  1408. // if (that.data.inspectionWorkPhotos.length > 0) {
  1409. // next = true;
  1410. // } else {
  1411. // next = false;
  1412. // msg = "巡检工作留存照片为必填项,请至少要拍一张整体的站点照片,请检查!";
  1413. // }
  1414. // }
  1415. // if (next) {
  1416. // that.submitData();
  1417. // } else {
  1418. // uni.showModal({
  1419. // content: msg,
  1420. // showCancel: false,
  1421. // success(res) {
  1422. // if (res.confirm) {
  1423. // }
  1424. // }
  1425. // });
  1426. // }
  1427. // } else {
  1428. that.submitData();
  1429. //}
  1430. }).catch(err => {
  1431. console.log('表单错误信息:', err);
  1432. uni.showModal({
  1433. content: "内容错误,请检查录入内容!",
  1434. showCancel: false,
  1435. success(res) {
  1436. if (res.confirm) {
  1437. //that.$refs.baseForm.clearValidate();
  1438. }
  1439. }
  1440. });
  1441. })
  1442. },
  1443. submitData() {
  1444. let formdata = this.formData;
  1445. // formdata['rtuCode'] = this.rtuCode;
  1446. // formdata['lng'] = this.data.lng;
  1447. // formdata['lat'] = this.data.lat;
  1448. // formdata['locationDesc'] = this.data.locationDesc;
  1449. // formdata['siteCheckItem'] = '' + this.data.siteCheckStatus.current;
  1450. // if (this.data.siteCheckPhotos.length > 0) {
  1451. // let photos = '';
  1452. // for (let i = 0; i < this.data.siteCheckPhotos.length; i++) {
  1453. // if (photos.length > 0) {
  1454. // photos = photos + ',';
  1455. // }
  1456. // photos = photos + this.data.siteCheckPhotos[i];
  1457. // }
  1458. // formdata['siteCheckPhotos'] = photos;
  1459. // }
  1460. // formdata['siteCheckRemark'] = this.data.siteCheckRemark;
  1461. //雨量站点检查信息
  1462. // if (this.rtuInfo.isRain) {
  1463. // let items = '';
  1464. // if (this.data.rainSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1465. // items = items + '1'
  1466. // } else {
  1467. // items = items + '0';
  1468. // }
  1469. // items = items + ',';
  1470. // if (this.data.rainSiteCheckItemsCheckBox.equipmentClear == 1) {
  1471. // items = items + '1'
  1472. // } else {
  1473. // items = items + '0';
  1474. // }
  1475. // items = items + ',';
  1476. // if (this.data.rainSiteCheckItemsCheckBox.rainSensorCheck == 1) {
  1477. // items = items + '1'
  1478. // } else {
  1479. // items = items + '0';
  1480. // }
  1481. // formdata['rainSiteCheckItem'] = items;
  1482. // if (this.data.rainSiteCheckPhotos.length > 0) {
  1483. // let photos = '';
  1484. // for (let i = 0; i < this.data.rainSiteCheckPhotos.length; i++) {
  1485. // if (photos.length > 0) {
  1486. // photos = photos + ',';
  1487. // }
  1488. // photos = photos + this.data.rainSiteCheckPhotos[i];
  1489. // }
  1490. // formdata['rainSiteCheckPhotos'] = photos;
  1491. // }
  1492. // formdata['rainSiteCheckRemark'] = this.data.rainSiteCheckRemark;
  1493. // formdata['rainSiteCheckResult'] = this.data.rainSiteCheckStatus.current;
  1494. // }
  1495. //水位站点检查信息
  1496. // if (this.rtuInfo.isRiver || this.rtuInfo.isRes) {
  1497. // let items = '';
  1498. // if (this.data.waterSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1499. // items = items + '1'
  1500. // } else {
  1501. // items = items + '0';
  1502. // }
  1503. // items = items + ',';
  1504. // if (this.data.waterSiteCheckItemsCheckBox.waterSensorCheck == 1) {
  1505. // items = items + '1'
  1506. // } else {
  1507. // items = items + '0';
  1508. // }
  1509. // formdata['waterSiteCheckItem'] = items;
  1510. // if (this.data.waterSiteCheckPhotos.length > 0) {
  1511. // let photos = '';
  1512. // for (let i = 0; i < this.data.waterSiteCheckPhotos.length; i++) {
  1513. // if (photos.length > 0) {
  1514. // photos = photos + ',';
  1515. // }
  1516. // photos = photos + this.data.waterSiteCheckPhotos[i];
  1517. // }
  1518. // formdata['waterSiteCheckPhotos'] = photos;
  1519. // }
  1520. // formdata['waterSiteCheckRemark'] = this.data.waterSiteCheckRemark;
  1521. // formdata['waterSiteCheckResult'] = this.data.waterSiteCheckStatus.current;
  1522. // }
  1523. //墒情站点检查信息
  1524. // if (this.rtuInfo.isGround) {
  1525. // let items = '';
  1526. // if (this.data.groundSiteCheckItemsCheckBox.equipmentFaultCheck == 1) {
  1527. // items = items + '1'
  1528. // } else {
  1529. // items = items + '0';
  1530. // }
  1531. // items = items + ',';
  1532. // if (this.data.groundSiteCheckItemsCheckBox.groundSensorCheck == 1) {
  1533. // items = items + '1'
  1534. // } else {
  1535. // items = items + '0';
  1536. // }
  1537. // formdata['groundSiteCheckItem'] = items;
  1538. // if (this.data.groundSiteCheckPhotos.length > 0) {
  1539. // let photos = '';
  1540. // for (let i = 0; i < this.data.groundSiteCheckPhotos.length; i++) {
  1541. // if (photos.length > 0) {
  1542. // photos = photos + ',';
  1543. // }
  1544. // photos = photos + this.data.groundSiteCheckPhotos[i];
  1545. // }
  1546. // formdata['groundSiteCheckPhotos'] = photos;
  1547. // }
  1548. // formdata['groundSiteCheckRemark'] = this.data.groundSiteCheckRemark;
  1549. // formdata['groundSiteCheckResult'] = this.data.groundSiteCheckStatus.current;
  1550. // }
  1551. //其他设备检查信息
  1552. // let otheritems = '';
  1553. // if (this.data.othersEquipmentCheckItemsCheckBox.equipmentGroundWireCheck == 1) {
  1554. // otheritems = otheritems + '1'
  1555. // } else {
  1556. // otheritems = otheritems + '0';
  1557. // }
  1558. // otheritems = otheritems + ',';
  1559. // if (this.data.othersEquipmentCheckItemsCheckBox.bvCheck == 1) {
  1560. // otheritems = otheritems + '1'
  1561. // } else {
  1562. // otheritems = otheritems + '0';
  1563. // }
  1564. // otheritems = otheritems + ',';
  1565. // if (this.data.othersEquipmentCheckItemsCheckBox.sunPowerCheck == 1) {
  1566. // otheritems = otheritems + '1'
  1567. // } else {
  1568. // otheritems = otheritems + '0';
  1569. // }
  1570. // otheritems = otheritems + ',';
  1571. // if (this.data.othersEquipmentCheckItemsCheckBox.btCheck == 1) {
  1572. // otheritems = otheritems + '1'
  1573. // } else {
  1574. // otheritems = otheritems + '0';
  1575. // }
  1576. // otheritems = otheritems + ',';
  1577. // if (this.data.othersEquipmentCheckItemsCheckBox.netCheck == 1) {
  1578. // otheritems = otheritems + '1'
  1579. // } else {
  1580. // otheritems = otheritems + '0';
  1581. // }
  1582. // formdata['otherEquipmentCheckItem'] = otheritems;
  1583. // if (this.data.othersEquipmentCheckPhotos.length > 0) {
  1584. // let photos = '';
  1585. // for (let i = 0; i < this.data.othersEquipmentCheckPhotos.length; i++) {
  1586. // if (photos.length > 0) {
  1587. // photos = photos + ',';
  1588. // }
  1589. // photos = photos + this.data.othersEquipmentCheckPhotos[i];
  1590. // }
  1591. // formdata['otherEquipmentCheckPhotos'] = photos;
  1592. // }
  1593. // formdata['otherEquipmentCheckRemark'] = this.data.othersEquipmentCheckRemark;
  1594. // formdata['otherEquipmentCheckResult'] = this.data.othersEquipmentCheckStatus.current;
  1595. // formdata['rtuReplace'] = this.data.equipmentsReplaceItemsCheckBox.rtuReplace;
  1596. // if (this.data.equipmentsReplaceItemsCheckBox.rtuReplace == 1) {
  1597. // formdata['rtuModelRemark'] = this.data.rtuModelRemark;
  1598. // if (this.data.rtuReplacePhotos.length > 0) {
  1599. // let photos = '';
  1600. // for (let i = 0; i < this.data.rtuReplacePhotos.length; i++) {
  1601. // if (photos.length > 0) {
  1602. // photos = photos + ',';
  1603. // }
  1604. // photos = photos + this.data.rtuReplacePhotos[i];
  1605. // }
  1606. // formdata['rtuReplacePhotos'] = photos;
  1607. // }
  1608. // }
  1609. // formdata['rainSensorReplace'] = this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace;
  1610. // if (this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace == 1) {
  1611. // formdata['rainSensorModelRemark'] = this.data.rainSensorModelRemark;
  1612. // if (this.data.rainSensorReplacePhotos.length > 0) {
  1613. // let photos = '';
  1614. // for (let i = 0; i < this.data.rainSensorReplacePhotos.length; i++) {
  1615. // if (photos.length > 0) {
  1616. // photos = photos + ',';
  1617. // }
  1618. // photos = photos + this.data.rainSensorReplacePhotos[i];
  1619. // }
  1620. // formdata['rainSensorReplacePhotos'] = photos;
  1621. // }
  1622. // }
  1623. // formdata['waterSensorReplace'] = this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace;
  1624. // if (this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace == 1) {
  1625. // formdata['waterSensorModelRemark'] = this.data.waterSensorModelRemark;
  1626. // if (this.data.waterSensorReplacePhotos.length > 0) {
  1627. // let photos = '';
  1628. // for (let i = 0; i < this.data.waterSensorReplacePhotos.length; i++) {
  1629. // if (photos.length > 0) {
  1630. // photos = photos + ',';
  1631. // }
  1632. // photos = photos + this.data.waterSensorReplacePhotos[i];
  1633. // }
  1634. // formdata['waterSensorReplacePhotos'] = photos;
  1635. // }
  1636. // }
  1637. // formdata['groundSensorReplace'] = this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace;
  1638. // if (this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace == 1) {
  1639. // formdata['groundSensorModelRemark'] = this.data.groundSensorModelRemark;
  1640. // if (this.data.groundSensorReplacePhotos.length > 0) {
  1641. // let photos = '';
  1642. // for (let i = 0; i < this.data.groundSensorReplacePhotos.length; i++) {
  1643. // if (photos.length > 0) {
  1644. // photos = photos + ',';
  1645. // }
  1646. // photos = photos + this.data.groundSensorReplacePhotos[i];
  1647. // }
  1648. // formdata['groundSensorReplacePhotos'] = photos;
  1649. // }
  1650. // }
  1651. // formdata['batteryReplace'] = this.data.equipmentsReplaceItemsCheckBox.batteryReplace;
  1652. // if (this.data.equipmentsReplaceItemsCheckBox.batteryReplace == 1) {
  1653. // formdata['batteryModelRemark'] = this.data.batteryModelRemark;
  1654. // if (this.data.batteryReplacePhotos.length > 0) {
  1655. // let photos = '';
  1656. // for (let i = 0; i < this.data.batteryReplacePhotos.length; i++) {
  1657. // if (photos.length > 0) {
  1658. // photos = photos + ',';
  1659. // }
  1660. // photos = photos + this.data.batteryReplacePhotos[i];
  1661. // }
  1662. // formdata['batteryReplacePhotos'] = photos;
  1663. // }
  1664. // }
  1665. // formdata['sunPowerReplace'] = this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace;
  1666. // if (this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace == 1) {
  1667. // formdata['sunPowerModelRemark'] = this.data.sunPowerModelRemark;
  1668. // if (this.data.sunPowerReplacePhotos.length > 0) {
  1669. // let photos = '';
  1670. // for (let i = 0; i < this.data.sunPowerReplacePhotos.length; i++) {
  1671. // if (photos.length > 0) {
  1672. // photos = photos + ',';
  1673. // }
  1674. // photos = photos + this.data.sunPowerReplacePhotos[i];
  1675. // }
  1676. // formdata['sunPowerReplacePhotos'] = photos;
  1677. // }
  1678. // }
  1679. // formdata['batteryControllerReplace'] = this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace;
  1680. // if (this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace == 1) {
  1681. // formdata['batteryControllerModelRemark'] = this.data.batteryControlModelRemark;
  1682. // if (this.data.batteryControlReplacePhotos.length > 0) {
  1683. // let photos = '';
  1684. // for (let i = 0; i < this.data.batteryControlReplacePhotos.length; i++) {
  1685. // if (photos.length > 0) {
  1686. // photos = photos + ',';
  1687. // }
  1688. // photos = photos + this.data.batteryControlReplacePhotos[i];
  1689. // }
  1690. // formdata['batteryControllerReplacePhotos'] = photos;
  1691. // }
  1692. // }
  1693. // formdata['otherEquipmentReplace'] = this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace;
  1694. // if (this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace == 1) {
  1695. // formdata['otherEquipmentModelRemark'] = this.data.otherEquipmentModelRemark;
  1696. // if (this.data.otherEquipmentReplacePhotos.length > 0) {
  1697. // let photos = '';
  1698. // for (let i = 0; i < this.data.otherEquipmentReplacePhotos.length; i++) {
  1699. // if (photos.length > 0) {
  1700. // photos = photos + ',';
  1701. // }
  1702. // photos = photos + this.data.otherEquipmentReplacePhotos[i];
  1703. // }
  1704. // formdata['otherEquipmentReplacePhotos'] = photos;
  1705. // }
  1706. // }
  1707. // formdata['remainQuestion'] = this.data.inspectionRemainProblemsRemark;
  1708. if (this.inspectionWorkPhotos.length > 0) {
  1709. let photos = '';
  1710. for (let i = 0; i < this.inspectionWorkPhotos.length; i++) {
  1711. if (photos.length > 0) {
  1712. photos = photos + ',';
  1713. }
  1714. photos = photos + this.inspectionWorkPhotos[i];
  1715. }
  1716. formdata['inspectionWorkPhotos'] = photos;
  1717. }
  1718. if (this.orderVideos.length > 0) {
  1719. let videos = '';
  1720. for (let i = 0; i < this.orderVideos.length; i++) {
  1721. if (videos.length > 0) {
  1722. videos = videos + ',';
  1723. }
  1724. videos = videos + this.orderVideos[i];
  1725. }
  1726. formdata['inspectionVideos'] = videos;
  1727. }
  1728. console.log('toSubmit事件:', JSON.stringify(formdata));
  1729. let that = this;
  1730. http.request({
  1731. url: '/galaxy-business/equipment/inspection/report/save',
  1732. method: 'POST',
  1733. data: formdata
  1734. }).then(res => {
  1735. console.log('res ', JSON.stringify(res));
  1736. if (res.success) {
  1737. // if (res.code == 200) {
  1738. //that.clearCache();
  1739. uni.showModal({
  1740. content: '填报信息已成功提交',
  1741. showCancel: false,
  1742. success(res) {
  1743. if (res.confirm) {
  1744. uni.navigateBack();
  1745. }
  1746. }
  1747. });
  1748. // } else {
  1749. // uni.showModal({
  1750. // content: '提交失败',
  1751. // showCancel: false
  1752. // });
  1753. // }
  1754. } else {
  1755. uni.showModal({
  1756. content: '提交失败',
  1757. showCancel: false
  1758. });
  1759. }
  1760. }).catch(err => {
  1761. // console.log('errr3',JSON.stringify(err));
  1762. uni.showModal({
  1763. content: '' + err.data.msg,
  1764. showCancel: false
  1765. });
  1766. })
  1767. },
  1768. //站点状态检查项
  1769. onSiteCheckStatusRadioChange: function(evt) {
  1770. for (let i = 0; i < this.data.siteCheckStatus.items.length; i++) {
  1771. if (this.data.siteCheckStatus.items[i].id === evt.detail.value) {
  1772. this.data.siteCheckStatus.current = i;
  1773. break;
  1774. }
  1775. }
  1776. },
  1777. //雨量站检查项
  1778. onRainSiteCheckboxChange: function(evt) {
  1779. this.data.rainSiteCheckItemsCheckBox.equipmentFaultCheck = 0;
  1780. this.data.rainSiteCheckItemsCheckBox.equipmentClear = 0;
  1781. this.data.rainSiteCheckItemsCheckBox.rainSensorCheck = 0;
  1782. for (let i = 0; i < evt.detail.value.length; i++) {
  1783. let c = evt.detail.value[i];
  1784. if (c === '0') {
  1785. this.data.rainSiteCheckItemsCheckBox.equipmentFaultCheck = 1;
  1786. } else if (c === '1') {
  1787. this.data.rainSiteCheckItemsCheckBox.equipmentClear = 1;
  1788. } else if (c === '2') {
  1789. this.data.rainSiteCheckItemsCheckBox.rainSensorCheck = 1;
  1790. }
  1791. }
  1792. },
  1793. //雨量站检查结果
  1794. onRainSiteCheckStatusRadioChange: function(evt) {
  1795. for (let i = 0; i < this.data.rainSiteCheckStatus.items.length; i++) {
  1796. if (this.data.rainSiteCheckStatus.items[i].id === evt.detail.value) {
  1797. this.data.rainSiteCheckStatus.current = i;
  1798. break;
  1799. }
  1800. }
  1801. },
  1802. //水位站检查项
  1803. onWaterSiteCheckboxChange: function(evt) {
  1804. this.data.waterSiteCheckItemsCheckBox.equipmentFaultCheck = 0;
  1805. this.data.waterSiteCheckItemsCheckBox.waterSensorCheck = 0;
  1806. for (let i = 0; i < evt.detail.value.length; i++) {
  1807. let c = evt.detail.value[i];
  1808. if (c === '0') {
  1809. this.data.waterSiteCheckItemsCheckBox.equipmentFaultCheck = 1;
  1810. } else if (c === '1') {
  1811. this.data.waterSiteCheckItemsCheckBox.waterSensorCheck = 1;
  1812. }
  1813. }
  1814. },
  1815. //水位站检查结果
  1816. onWaterSiteCheckStatusRadioChange: function(evt) {
  1817. for (let i = 0; i < this.data.waterSiteCheckStatus.items.length; i++) {
  1818. if (this.data.waterSiteCheckStatus.items[i].id === evt.detail.value) {
  1819. this.data.waterSiteCheckStatus.current = i;
  1820. break;
  1821. }
  1822. }
  1823. },
  1824. //墒情站检查项
  1825. onGroundSiteCheckboxChange: function(evt) {
  1826. this.data.groundSiteCheckItemsCheckBox.equipmentFaultCheck = 0;
  1827. this.data.groundSiteCheckItemsCheckBox.groundSensorCheck = 0;
  1828. for (let i = 0; i < evt.detail.value.length; i++) {
  1829. let c = evt.detail.value[i];
  1830. if (c === '0') {
  1831. this.data.groundSiteCheckItemsCheckBox.equipmentFaultCheck = 1;
  1832. } else if (c === '1') {
  1833. this.data.groundSiteCheckItemsCheckBox.groundSensorCheck = 1;
  1834. }
  1835. }
  1836. },
  1837. //墒情站检查结果
  1838. onGroundSiteCheckStatusRadioChange: function(evt) {
  1839. for (let i = 0; i < this.data.groundSiteCheckStatus.items.length; i++) {
  1840. if (this.data.groundSiteCheckStatus.items[i].id === evt.detail.value) {
  1841. this.data.groundSiteCheckStatus.current = i;
  1842. break;
  1843. }
  1844. }
  1845. },
  1846. //其他设备检查项
  1847. onOthersEquipmentCheckboxChange: function(evt) {
  1848. this.data.othersEquipmentCheckItemsCheckBox.equipmentGroundWireCheck = 0;
  1849. this.data.othersEquipmentCheckItemsCheckBox.bvCheck = 0;
  1850. this.data.othersEquipmentCheckItemsCheckBox.sunPowerCheck = 0;
  1851. this.data.othersEquipmentCheckItemsCheckBox.btCheck = 0;
  1852. this.data.othersEquipmentCheckItemsCheckBox.netCheck = 0;
  1853. for (let i = 0; i < evt.detail.value.length; i++) {
  1854. let c = evt.detail.value[i];
  1855. if (c === '0') {
  1856. this.data.othersEquipmentCheckItemsCheckBox.equipmentGroundWireCheck = 1;
  1857. } else if (c === '1') {
  1858. this.data.othersEquipmentCheckItemsCheckBox.bvCheck = 1;
  1859. } else if (c === '2') {
  1860. this.data.othersEquipmentCheckItemsCheckBox.sunPowerCheck = 1;
  1861. } else if (c === '3') {
  1862. this.data.othersEquipmentCheckItemsCheckBox.btCheck = 1;
  1863. } else if (c === '4') {
  1864. this.data.othersEquipmentCheckItemsCheckBox.netCheck = 1;
  1865. }
  1866. }
  1867. },
  1868. //其他设备检查结果
  1869. onOthersEquipmentCheckStatusRadioChange: function(evt) {
  1870. for (let i = 0; i < this.data.othersEquipmentCheckStatus.items.length; i++) {
  1871. if (this.data.othersEquipmentCheckStatus.items[i].id === evt.detail.value) {
  1872. this.data.othersEquipmentCheckStatus.current = i;
  1873. break;
  1874. }
  1875. }
  1876. },
  1877. //设备更换
  1878. onEquipmentReplaceCheckboxChange: function(evt) {
  1879. this.data.equipmentsReplaceItemsCheckBox.rtuReplace = 0;
  1880. this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace = 0;
  1881. this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace = 0;
  1882. this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace = 0;
  1883. this.data.equipmentsReplaceItemsCheckBox.batteryReplace = 0;
  1884. this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace = 0;
  1885. this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace = 0;
  1886. this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace = 0;
  1887. for (let i = 0; i < evt.detail.value.length; i++) {
  1888. let c = evt.detail.value[i];
  1889. if (c === '0') {
  1890. this.data.equipmentsReplaceItemsCheckBox.rtuReplace = 1;
  1891. } else if (c === '1') {
  1892. this.data.equipmentsReplaceItemsCheckBox.rainSensorReplace = 1;
  1893. } else if (c === '2') {
  1894. this.data.equipmentsReplaceItemsCheckBox.waterSensorReplace = 1;
  1895. } else if (c === '3') {
  1896. this.data.equipmentsReplaceItemsCheckBox.groundSensorReplace = 1;
  1897. } else if (c === '4') {
  1898. this.data.equipmentsReplaceItemsCheckBox.batteryReplace = 1;
  1899. } else if (c === '5') {
  1900. this.data.equipmentsReplaceItemsCheckBox.sunPowerReplace = 1;
  1901. } else if (c === '6') {
  1902. this.data.equipmentsReplaceItemsCheckBox.batteryControllerReplace = 1;
  1903. } else if (c === '7') {
  1904. this.data.equipmentsReplaceItemsCheckBox.otherEquipmentReplace = 1;
  1905. }
  1906. }
  1907. },
  1908. onSiteCheckPhotoAdd() {
  1909. let that = this;
  1910. uni.chooseImage({
  1911. sourceType: ['camera'],
  1912. sizeType: ['compressed'],
  1913. success: (res) => {
  1914. const len = res.tempFilePaths.length;
  1915. if (len === 1) {
  1916. res.tempFilePaths.forEach(path => {
  1917. that.uploadSiteCheckPhoto(path);
  1918. })
  1919. } else {
  1920. uni.showModal({
  1921. content: '只能选择一张图片,请确认!',
  1922. showCancel: false
  1923. });
  1924. }
  1925. }
  1926. })
  1927. },
  1928. uploadSiteCheckPhoto(imagePath) {
  1929. let that = this;
  1930. uni.showLoading({
  1931. title: '上传中'
  1932. });
  1933. uni.uploadFile({
  1934. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  1935. uni.getStorageSync('accessToken'),
  1936. fileType: 'image',
  1937. filePath: imagePath,
  1938. name: 'file',
  1939. success: (uploadFileRes) => {
  1940. if (uploadFileRes.statusCode == 200) {
  1941. let data = JSON.parse(uploadFileRes.data);
  1942. if (data.success) {
  1943. let path = data.data['name'];
  1944. that.data.siteCheckPhotos.push(path);
  1945. }
  1946. }
  1947. },
  1948. fail: (err) => {
  1949. console.log(err);
  1950. reject('err')
  1951. },
  1952. complete() {
  1953. uni.hideLoading()
  1954. }
  1955. });
  1956. },
  1957. onSiteCheckPhotoDel(index) {
  1958. this.data.siteCheckPhotos.splice(index, 1);
  1959. },
  1960. onRainSiteCheckPhotoAdd() {
  1961. let that = this;
  1962. uni.chooseImage({
  1963. sourceType: ['camera'],
  1964. sizeType: ['compressed'],
  1965. success: (res) => {
  1966. const len = res.tempFilePaths.length;
  1967. if (len === 1) {
  1968. res.tempFilePaths.forEach(path => {
  1969. that.uploadRainSiteCheckPhoto(path);
  1970. })
  1971. } else {
  1972. uni.showModal({
  1973. content: '只能选择一张图片,请确认!',
  1974. showCancel: false
  1975. });
  1976. }
  1977. }
  1978. })
  1979. },
  1980. uploadRainSiteCheckPhoto(imagePath) {
  1981. let that = this;
  1982. uni.showLoading({
  1983. title: '上传中'
  1984. });
  1985. uni.uploadFile({
  1986. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  1987. uni.getStorageSync('accessToken'),
  1988. fileType: 'image',
  1989. filePath: imagePath,
  1990. name: 'file',
  1991. success: (uploadFileRes) => {
  1992. if (uploadFileRes.statusCode == 200) {
  1993. let data = JSON.parse(uploadFileRes.data);
  1994. if (data.success) {
  1995. let path = data.data['name'];
  1996. that.data.rainSiteCheckPhotos.push(path);
  1997. }
  1998. }
  1999. },
  2000. fail: (err) => {
  2001. console.log(err);
  2002. reject('err')
  2003. },
  2004. complete() {
  2005. uni.hideLoading()
  2006. }
  2007. });
  2008. },
  2009. onRainSitePhotoDel(index) {
  2010. this.data.rainSiteCheckPhotos.splice(index, 1);
  2011. },
  2012. onWaterSiteCheckPhotoAdd() {
  2013. let that = this;
  2014. uni.chooseImage({
  2015. sourceType: ['camera'],
  2016. sizeType: ['compressed'],
  2017. success: (res) => {
  2018. const len = res.tempFilePaths.length;
  2019. if (len === 1) {
  2020. res.tempFilePaths.forEach(path => {
  2021. that.uploadWaterSiteCheckPhoto(path);
  2022. })
  2023. } else {
  2024. uni.showModal({
  2025. content: '只能选择一张图片,请确认!',
  2026. showCancel: false
  2027. });
  2028. }
  2029. }
  2030. })
  2031. },
  2032. uploadWaterSiteCheckPhoto(imagePath) {
  2033. let that = this;
  2034. uni.showLoading({
  2035. title: '上传中'
  2036. });
  2037. uni.uploadFile({
  2038. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2039. uni.getStorageSync('accessToken'),
  2040. fileType: 'image',
  2041. filePath: imagePath,
  2042. name: 'file',
  2043. success: (uploadFileRes) => {
  2044. if (uploadFileRes.statusCode == 200) {
  2045. let data = JSON.parse(uploadFileRes.data);
  2046. if (data.success) {
  2047. let path = data.data['name'];
  2048. that.data.waterSiteCheckPhotos.push(path);
  2049. }
  2050. }
  2051. },
  2052. fail: (err) => {
  2053. console.log(err);
  2054. reject('err')
  2055. },
  2056. complete() {
  2057. uni.hideLoading()
  2058. }
  2059. });
  2060. },
  2061. onWaterSitePhotoDel(index) {
  2062. this.data.waterSiteCheckPhotos.splice(index, 1);
  2063. },
  2064. onGroundSiteCheckPhotoAdd() {
  2065. let that = this;
  2066. uni.chooseImage({
  2067. sourceType: ['camera'],
  2068. sizeType: ['compressed'],
  2069. success: (res) => {
  2070. const len = res.tempFilePaths.length;
  2071. if (len === 1) {
  2072. res.tempFilePaths.forEach(path => {
  2073. that.uploadGroundSiteCheckPhoto(path);
  2074. })
  2075. } else {
  2076. uni.showModal({
  2077. content: '只能选择一张图片,请确认!',
  2078. showCancel: false
  2079. });
  2080. }
  2081. }
  2082. })
  2083. },
  2084. uploadGroundSiteCheckPhoto(imagePath) {
  2085. let that = this;
  2086. uni.showLoading({
  2087. title: '上传中'
  2088. });
  2089. uni.uploadFile({
  2090. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2091. uni.getStorageSync('accessToken'),
  2092. fileType: 'image',
  2093. filePath: imagePath,
  2094. name: 'file',
  2095. success: (uploadFileRes) => {
  2096. if (uploadFileRes.statusCode == 200) {
  2097. let data = JSON.parse(uploadFileRes.data);
  2098. if (data.success) {
  2099. let path = data.data['name'];
  2100. that.data.groundSiteCheckPhotos.push(path);
  2101. }
  2102. }
  2103. },
  2104. fail: (err) => {
  2105. console.log(err);
  2106. reject('err')
  2107. },
  2108. complete() {
  2109. uni.hideLoading()
  2110. }
  2111. });
  2112. },
  2113. onGroundSitePhotoDel(index) {
  2114. this.data.groundSiteCheckPhotos.splice(index, 1);
  2115. },
  2116. onOthersEquipmentCheckPhotoAdd() {
  2117. let that = this;
  2118. uni.chooseImage({
  2119. sourceType: ['camera'],
  2120. sizeType: ['compressed'],
  2121. success: (res) => {
  2122. const len = res.tempFilePaths.length;
  2123. if (len === 1) {
  2124. res.tempFilePaths.forEach(path => {
  2125. that.uploadOthersEquipmentCheckPhoto(path);
  2126. })
  2127. } else {
  2128. uni.showModal({
  2129. content: '只能选择一张图片,请确认!',
  2130. showCancel: false
  2131. });
  2132. }
  2133. }
  2134. })
  2135. },
  2136. uploadOthersEquipmentCheckPhoto(imagePath) {
  2137. let that = this;
  2138. uni.showLoading({
  2139. title: '上传中'
  2140. });
  2141. uni.uploadFile({
  2142. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2143. uni.getStorageSync('accessToken'),
  2144. fileType: 'image',
  2145. filePath: imagePath,
  2146. name: 'file',
  2147. success: (uploadFileRes) => {
  2148. if (uploadFileRes.statusCode == 200) {
  2149. let data = JSON.parse(uploadFileRes.data);
  2150. if (data.success) {
  2151. let path = data.data['name'];
  2152. that.data.othersEquipmentCheckPhotos.push(path);
  2153. }
  2154. }
  2155. },
  2156. fail: (err) => {
  2157. console.log(err);
  2158. reject('err')
  2159. },
  2160. complete() {
  2161. uni.hideLoading()
  2162. }
  2163. });
  2164. },
  2165. onOthersEquipmentPhotoDel(index) {
  2166. this.data.othersEquipmentCheckPhotos.splice(index, 1);
  2167. },
  2168. onInspectionWorkCheckPhotoAdd() {
  2169. let that = this;
  2170. uni.chooseImage({
  2171. sourceType: ['camera'],
  2172. sizeType: ['compressed'],
  2173. success: (res) => {
  2174. const len = res.tempFilePaths.length;
  2175. if (len === 1) {
  2176. res.tempFilePaths.forEach(path => {
  2177. that.uploadInspectionWorkCheckPhoto(path);
  2178. })
  2179. } else {
  2180. uni.showModal({
  2181. content: '只能选择一张图片,请确认!',
  2182. showCancel: false
  2183. });
  2184. }
  2185. }
  2186. })
  2187. },
  2188. uploadInspectionWorkCheckPhoto(imagePath) {
  2189. let that = this;
  2190. uni.showLoading({
  2191. title: '上传中'
  2192. });
  2193. uni.uploadFile({
  2194. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2195. uni.getStorageSync('accessToken'),
  2196. fileType: 'image',
  2197. filePath: imagePath,
  2198. name: 'file',
  2199. success: (uploadFileRes) => {
  2200. if (uploadFileRes.statusCode == 200) {
  2201. let data = JSON.parse(uploadFileRes.data);
  2202. if (data.success) {
  2203. let path = data.data['name'];
  2204. that.inspectionWorkPhotos.push(path);
  2205. }
  2206. }
  2207. },
  2208. fail: (err) => {
  2209. console.log(err);
  2210. reject('err')
  2211. },
  2212. complete() {
  2213. uni.hideLoading()
  2214. }
  2215. });
  2216. },
  2217. onInspectionWorkPhotoDel(index) {
  2218. this.inspectionWorkPhotos.splice(index, 1);
  2219. },
  2220. onRtuReplacePhotoDel(index) {
  2221. this.data.rtuReplacePhotos.splice(index, 1);
  2222. },
  2223. onRtuReplacePhotoAdd() {
  2224. let that = this;
  2225. uni.chooseImage({
  2226. sourceType: ['camera'],
  2227. sizeType: ['compressed'],
  2228. success: (res) => {
  2229. const len = res.tempFilePaths.length;
  2230. if (len === 1) {
  2231. res.tempFilePaths.forEach(path => {
  2232. that.uploadRtuReplacePhoto(path);
  2233. })
  2234. } else {
  2235. uni.showModal({
  2236. content: '只能选择一张图片,请确认!',
  2237. showCancel: false
  2238. });
  2239. }
  2240. }
  2241. })
  2242. },
  2243. uploadRtuReplacePhoto(imagePath) {
  2244. let that = this;
  2245. uni.showLoading({
  2246. title: '上传中'
  2247. });
  2248. uni.uploadFile({
  2249. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2250. uni.getStorageSync('accessToken'),
  2251. fileType: 'image',
  2252. filePath: imagePath,
  2253. name: 'file',
  2254. success: (uploadFileRes) => {
  2255. if (uploadFileRes.statusCode == 200) {
  2256. let data = JSON.parse(uploadFileRes.data);
  2257. if (data.success) {
  2258. let path = data.data['name'];
  2259. that.data.rtuReplacePhotos.push(path);
  2260. }
  2261. }
  2262. },
  2263. fail: (err) => {
  2264. console.log(err);
  2265. reject('err')
  2266. },
  2267. complete() {
  2268. uni.hideLoading()
  2269. }
  2270. });
  2271. },
  2272. onRainSensorReplacePhotoDel(index) {
  2273. this.data.rainSensorReplacePhotos.splice(index, 1);
  2274. },
  2275. onRainSensorReplacePhotoAdd() {
  2276. let that = this;
  2277. uni.chooseImage({
  2278. sourceType: ['camera'],
  2279. sizeType: ['compressed'],
  2280. success: (res) => {
  2281. const len = res.tempFilePaths.length;
  2282. if (len === 1) {
  2283. res.tempFilePaths.forEach(path => {
  2284. that.uploadRainSensorReplacePhoto(path);
  2285. })
  2286. } else {
  2287. uni.showModal({
  2288. content: '只能选择一张图片,请确认!',
  2289. showCancel: false
  2290. });
  2291. }
  2292. }
  2293. })
  2294. },
  2295. uploadRainSensorReplacePhoto(imagePath) {
  2296. let that = this;
  2297. uni.showLoading({
  2298. title: '上传中'
  2299. });
  2300. uni.uploadFile({
  2301. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2302. uni.getStorageSync('accessToken'),
  2303. fileType: 'image',
  2304. filePath: imagePath,
  2305. name: 'file',
  2306. success: (uploadFileRes) => {
  2307. if (uploadFileRes.statusCode == 200) {
  2308. let data = JSON.parse(uploadFileRes.data);
  2309. if (data.success) {
  2310. let path = data.data['name'];
  2311. that.data.rainSensorReplacePhotos.push(path);
  2312. }
  2313. }
  2314. },
  2315. fail: (err) => {
  2316. console.log(err);
  2317. reject('err')
  2318. },
  2319. complete() {
  2320. uni.hideLoading()
  2321. }
  2322. });
  2323. },
  2324. onWaterSensorReplacePhotoDel(index) {
  2325. this.data.waterSensorReplacePhotos.splice(index, 1);
  2326. },
  2327. onWaterSensorReplacePhotoAdd() {
  2328. let that = this;
  2329. uni.chooseImage({
  2330. sourceType: ['camera'],
  2331. sizeType: ['compressed'],
  2332. success: (res) => {
  2333. const len = res.tempFilePaths.length;
  2334. if (len === 1) {
  2335. res.tempFilePaths.forEach(path => {
  2336. that.uploadWaterSensorReplacePhoto(path);
  2337. })
  2338. } else {
  2339. uni.showModal({
  2340. content: '只能选择一张图片,请确认!',
  2341. showCancel: false
  2342. });
  2343. }
  2344. }
  2345. })
  2346. },
  2347. uploadWaterSensorReplacePhoto(imagePath) {
  2348. let that = this;
  2349. uni.showLoading({
  2350. title: '上传中'
  2351. });
  2352. uni.uploadFile({
  2353. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2354. uni.getStorageSync('accessToken'),
  2355. fileType: 'image',
  2356. filePath: imagePath,
  2357. name: 'file',
  2358. success: (uploadFileRes) => {
  2359. if (uploadFileRes.statusCode == 200) {
  2360. let data = JSON.parse(uploadFileRes.data);
  2361. if (data.success) {
  2362. let path = data.data['name'];
  2363. that.data.waterSensorReplacePhotos.push(path);
  2364. }
  2365. }
  2366. },
  2367. fail: (err) => {
  2368. console.log(err);
  2369. reject('err')
  2370. },
  2371. complete() {
  2372. uni.hideLoading()
  2373. }
  2374. });
  2375. },
  2376. onGroundSensorReplacePhotoDel(index) {
  2377. this.data.groundSensorReplacePhotos.splice(index, 1);
  2378. },
  2379. onGroundSensorReplacePhotoAdd() {
  2380. let that = this;
  2381. uni.chooseImage({
  2382. sourceType: ['camera'],
  2383. sizeType: ['compressed'],
  2384. success: (res) => {
  2385. const len = res.tempFilePaths.length;
  2386. if (len === 1) {
  2387. res.tempFilePaths.forEach(path => {
  2388. that.uploadGroundSensorReplacePhoto(path);
  2389. })
  2390. } else {
  2391. uni.showModal({
  2392. content: '只能选择一张图片,请确认!',
  2393. showCancel: false
  2394. });
  2395. }
  2396. }
  2397. })
  2398. },
  2399. uploadGroundSensorReplacePhoto(imagePath) {
  2400. let that = this;
  2401. uni.showLoading({
  2402. title: '上传中'
  2403. });
  2404. uni.uploadFile({
  2405. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2406. uni.getStorageSync('accessToken'),
  2407. fileType: 'image',
  2408. filePath: imagePath,
  2409. name: 'file',
  2410. success: (uploadFileRes) => {
  2411. if (uploadFileRes.statusCode == 200) {
  2412. let data = JSON.parse(uploadFileRes.data);
  2413. if (data.success) {
  2414. let path = data.data['name'];
  2415. that.data.groundSensorReplacePhotos.push(path);
  2416. }
  2417. }
  2418. },
  2419. fail: (err) => {
  2420. console.log(err);
  2421. reject('err')
  2422. },
  2423. complete() {
  2424. uni.hideLoading()
  2425. }
  2426. });
  2427. },
  2428. onBatteryReplacePhotoDel(index) {
  2429. this.data.batteryReplacePhotos.splice(index, 1);
  2430. },
  2431. onBatteryReplacePhotoAdd() {
  2432. let that = this;
  2433. uni.chooseImage({
  2434. sourceType: ['camera'],
  2435. sizeType: ['compressed'],
  2436. success: (res) => {
  2437. const len = res.tempFilePaths.length;
  2438. if (len === 1) {
  2439. res.tempFilePaths.forEach(path => {
  2440. that.uploadBatteryReplacePhoto(path);
  2441. })
  2442. } else {
  2443. uni.showModal({
  2444. content: '只能选择一张图片,请确认!',
  2445. showCancel: false
  2446. });
  2447. }
  2448. }
  2449. })
  2450. },
  2451. uploadBatteryReplacePhoto(imagePath) {
  2452. let that = this;
  2453. uni.showLoading({
  2454. title: '上传中'
  2455. });
  2456. uni.uploadFile({
  2457. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2458. uni.getStorageSync('accessToken'),
  2459. fileType: 'image',
  2460. filePath: imagePath,
  2461. name: 'file',
  2462. success: (uploadFileRes) => {
  2463. if (uploadFileRes.statusCode == 200) {
  2464. let data = JSON.parse(uploadFileRes.data);
  2465. if (data.success) {
  2466. let path = data.data['name'];
  2467. that.data.batteryReplacePhotos.push(path);
  2468. }
  2469. }
  2470. },
  2471. fail: (err) => {
  2472. console.log(err);
  2473. reject('err')
  2474. },
  2475. complete() {
  2476. uni.hideLoading()
  2477. }
  2478. });
  2479. },
  2480. onSunPowerReplacePhotoDel(index) {
  2481. this.data.sunPowerReplacePhotos.splice(index, 1);
  2482. },
  2483. onSunPowerReplacePhotoAdd() {
  2484. let that = this;
  2485. uni.chooseImage({
  2486. sourceType: ['camera'],
  2487. sizeType: ['compressed'],
  2488. success: (res) => {
  2489. const len = res.tempFilePaths.length;
  2490. if (len === 1) {
  2491. res.tempFilePaths.forEach(path => {
  2492. that.uploadSunPowerReplacePhoto(path);
  2493. })
  2494. } else {
  2495. uni.showModal({
  2496. content: '只能选择一张图片,请确认!',
  2497. showCancel: false
  2498. });
  2499. }
  2500. }
  2501. })
  2502. },
  2503. uploadSunPowerReplacePhoto(imagePath) {
  2504. let that = this;
  2505. uni.showLoading({
  2506. title: '上传中'
  2507. });
  2508. uni.uploadFile({
  2509. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2510. uni.getStorageSync('accessToken'),
  2511. fileType: 'image',
  2512. filePath: imagePath,
  2513. name: 'file',
  2514. success: (uploadFileRes) => {
  2515. if (uploadFileRes.statusCode == 200) {
  2516. let data = JSON.parse(uploadFileRes.data);
  2517. if (data.success) {
  2518. let path = data.data['name'];
  2519. that.data.sunPowerReplacePhotos.push(path);
  2520. }
  2521. }
  2522. },
  2523. fail: (err) => {
  2524. console.log(err);
  2525. reject('err')
  2526. },
  2527. complete() {
  2528. uni.hideLoading()
  2529. }
  2530. });
  2531. },
  2532. onBatteryControllerReplacePhotoDel(index) {
  2533. this.data.batteryControlReplacePhotos.splice(index, 1);
  2534. },
  2535. onBatteryControllerReplacePhotoAdd() {
  2536. let that = this;
  2537. uni.chooseImage({
  2538. sourceType: ['camera'],
  2539. sizeType: ['compressed'],
  2540. success: (res) => {
  2541. const len = res.tempFilePaths.length;
  2542. if (len === 1) {
  2543. res.tempFilePaths.forEach(path => {
  2544. that.uploadBatteryControllerReplacePhoto(path);
  2545. })
  2546. } else {
  2547. uni.showModal({
  2548. content: '只能选择一张图片,请确认!',
  2549. showCancel: false
  2550. });
  2551. }
  2552. }
  2553. })
  2554. },
  2555. uploadBatteryControllerReplacePhoto(imagePath) {
  2556. let that = this;
  2557. uni.showLoading({
  2558. title: '上传中'
  2559. });
  2560. uni.uploadFile({
  2561. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2562. uni.getStorageSync('accessToken'),
  2563. fileType: 'image',
  2564. filePath: imagePath,
  2565. name: 'file',
  2566. success: (uploadFileRes) => {
  2567. if (uploadFileRes.statusCode == 200) {
  2568. let data = JSON.parse(uploadFileRes.data);
  2569. if (data.success) {
  2570. let path = data.data['name'];
  2571. that.data.batteryControlReplacePhotos.push(path);
  2572. }
  2573. }
  2574. },
  2575. fail: (err) => {
  2576. console.log(err);
  2577. reject('err')
  2578. },
  2579. complete() {
  2580. uni.hideLoading()
  2581. }
  2582. });
  2583. },
  2584. onOtherEquipmentReplacePhotoDel(index) {
  2585. this.data.otherEquipmentReplacePhotos.splice(index, 1);
  2586. },
  2587. onOtherEquipmentReplacePhotoAdd() {
  2588. let that = this;
  2589. uni.chooseImage({
  2590. sourceType: ['camera'],
  2591. sizeType: ['compressed'],
  2592. success: (res) => {
  2593. const len = res.tempFilePaths.length;
  2594. if (len === 1) {
  2595. res.tempFilePaths.forEach(path => {
  2596. that.uploadOtherEquipmentReplacePhoto(path);
  2597. })
  2598. } else {
  2599. uni.showModal({
  2600. content: '只能选择一张图片,请确认!',
  2601. showCancel: false
  2602. });
  2603. }
  2604. }
  2605. })
  2606. },
  2607. uploadOtherEquipmentReplacePhoto(imagePath) {
  2608. let that = this;
  2609. uni.showLoading({
  2610. title: '上传中'
  2611. });
  2612. uni.uploadFile({
  2613. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2614. uni.getStorageSync('accessToken'),
  2615. fileType: 'image',
  2616. filePath: imagePath,
  2617. name: 'file',
  2618. success: (uploadFileRes) => {
  2619. if (uploadFileRes.statusCode == 200) {
  2620. let data = JSON.parse(uploadFileRes.data);
  2621. if (data.success) {
  2622. let path = data.data['name'];
  2623. that.data.otherEquipmentReplacePhotos.push(path);
  2624. }
  2625. }
  2626. },
  2627. fail: (err) => {
  2628. console.log(err);
  2629. reject('err')
  2630. },
  2631. complete() {
  2632. uni.hideLoading()
  2633. }
  2634. });
  2635. },
  2636. onCheckVideoAdd() {
  2637. let that = this;
  2638. uni.chooseVideo({
  2639. sourceType: ['camera'],
  2640. maxDuration: 10,
  2641. success: (res) => {
  2642. that.uploadVideo(res.tempFilePath);
  2643. }
  2644. })
  2645. },
  2646. uploadVideo(videoPath) {
  2647. let that = this;
  2648. uni.showLoading({
  2649. title: '上传中'
  2650. });
  2651. uni.uploadFile({
  2652. url: this.baseURL + '/galaxy-resource/oss/endpoint/put-file-attach?Blade-Auth=' +
  2653. uni.getStorageSync('accessToken'),
  2654. filePath: videoPath,
  2655. name: 'file',
  2656. success: (uploadFileRes) => {
  2657. if (uploadFileRes.statusCode == 200) {
  2658. let data = JSON.parse(uploadFileRes.data);
  2659. if (data.success) {
  2660. let path = data.data['name'];
  2661. that.orderVideos.push(path);
  2662. }
  2663. }
  2664. },
  2665. fail: (err) => {
  2666. console.log(err);
  2667. reject('err')
  2668. },
  2669. complete() {
  2670. uni.hideLoading()
  2671. }
  2672. });
  2673. },
  2674. onVideoDel(index) {
  2675. this.orderVideos.splice(index, 1);
  2676. },
  2677. openVideo(item) {
  2678. let url = '/pages/check-order/videoView?url=' + item;
  2679. uni.navigateTo({
  2680. url: url
  2681. })
  2682. },
  2683. }
  2684. }
  2685. </script>
  2686. <style>
  2687. /* page {
  2688. background-color: rgb(240, 242, 244);
  2689. } */
  2690. </style>
  2691. <style lang="scss" scoped>
  2692. .cell-hover-class {
  2693. background-color: rgb(235, 237, 238);
  2694. }
  2695. .view-flex-rs {
  2696. display: flex;
  2697. flex-direction: row;
  2698. justify-content: flex-start;
  2699. align-items: center;
  2700. }
  2701. .view-flex-rs-flex-wrap {
  2702. display: flex;
  2703. flex-direction: row;
  2704. justify-content: flex-start;
  2705. flex-wrap: wrap;
  2706. }
  2707. .view-flex-rc {
  2708. display: flex;
  2709. flex-direction: row;
  2710. justify-content: center;
  2711. align-items: center;
  2712. }
  2713. .view-flex-re {
  2714. display: flex;
  2715. flex-direction: row;
  2716. justify-content: flex-end;
  2717. align-items: center;
  2718. }
  2719. .view-flex-cs {
  2720. display: flex;
  2721. flex-direction: column;
  2722. justify-content: flex-start;
  2723. align-items: center;
  2724. }
  2725. .view-flex-cc {
  2726. display: flex;
  2727. flex-direction: column;
  2728. justify-content: center;
  2729. align-items: center;
  2730. }
  2731. .view-flex-ce {
  2732. display: flex;
  2733. flex-direction: column;
  2734. justify-content: flex-end;
  2735. align-items: center;
  2736. }
  2737. .line-body {
  2738. padding-left: 10px;
  2739. padding-right: 10px;
  2740. }
  2741. .required-star {
  2742. color: #FF0000;
  2743. font-size: 15px;
  2744. width: 20px;
  2745. text-align: center;
  2746. padding-left: 0px;
  2747. padding-right: 2px;
  2748. }
  2749. .item-title {
  2750. color: #909399;
  2751. font-size: 15px;
  2752. }
  2753. .mline-text {
  2754. padding-left: 2px;
  2755. width: 100%;
  2756. /* background-color:#909399; */
  2757. height: 70px;
  2758. border: 1px solid #FF5A5F;
  2759. border-radius: 5px;
  2760. }
  2761. .footer {
  2762. position: fixed;
  2763. bottom: 0;
  2764. left: 0;
  2765. right: 0;
  2766. z-index: 1;
  2767. height: 100rpx;
  2768. padding: 20rpx;
  2769. box-sizing: border-box;
  2770. display: flex;
  2771. align-items: center;
  2772. justify-content: flex-end;
  2773. background-color: whitesmoke;
  2774. .ipt {
  2775. width: 380rpx;
  2776. height: 77rpx;
  2777. background: #f7f7f7;
  2778. border-radius: 38px;
  2779. padding: 0 37rpx;
  2780. box-sizing: border-box;
  2781. margin-right: 20rpx;
  2782. }
  2783. .control {
  2784. flex: 1;
  2785. display: flex;
  2786. align-items: center;
  2787. justify-content: flex-end;
  2788. .block {
  2789. display: flex;
  2790. align-items: center;
  2791. justify-content: center;
  2792. flex: 1;
  2793. }
  2794. .icon {
  2795. height: auto;
  2796. }
  2797. .c {
  2798. width: 41rpx;
  2799. margin-right: 10rpx;
  2800. }
  2801. .s {
  2802. width: 36rpx;
  2803. }
  2804. .t {
  2805. width: 31rpx;
  2806. }
  2807. }
  2808. }
  2809. .container {
  2810. padding: 0 0 100rpx;
  2811. }
  2812. .img-container {
  2813. margin-bottom: 0px;
  2814. width: 100px;
  2815. height: 100px;
  2816. .note-image-box {
  2817. margin-top: 0px;
  2818. display: flex;
  2819. flex-wrap: wrap;
  2820. padding: 10px;
  2821. .note-image-item {
  2822. position: relative;
  2823. width: 100%;
  2824. height: 0;
  2825. padding-top: 100%;
  2826. box-sizing: border-box;
  2827. // background-color: #18B566;
  2828. .close-icon {
  2829. display: flex;
  2830. justify-content: center;
  2831. align-items: center;
  2832. position: absolute;
  2833. right: 0px;
  2834. top: 0px;
  2835. width: 22px;
  2836. height: 22px;
  2837. border-radius: 50%;
  2838. background-color: #d5d5d5;
  2839. z-index: 2;
  2840. }
  2841. .image-box {
  2842. display: flex;
  2843. justify-content: center;
  2844. align-items: center;
  2845. position: absolute;
  2846. top: 0px;
  2847. right: 0px;
  2848. border: 0px;
  2849. left: 0px;
  2850. border: 1px #eee solid;
  2851. border-radius: 5px;
  2852. overflow: hidden;
  2853. width: 99%;
  2854. height: 99%;
  2855. }
  2856. }
  2857. }
  2858. }
  2859. .input-body {
  2860. background-color: #fff;
  2861. padding: 10px;
  2862. }
  2863. .decoration {
  2864. width: 6px;
  2865. height: 6px;
  2866. margin-right: 4px;
  2867. border-radius: 50%;
  2868. background-color: cadetblue;
  2869. }
  2870. </style>