indoor.vue 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view>
  5. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  6. <view style="display: flex;align-items: center;">房间信息
  7. <image :src="loadImgSrc('icon_copy.png')" @click='copyAddress()' style="display: flex;justify-content:flex-end; margin-left: 10px;width: 15px;height: 15px;">
  8. </image>
  9. </view>
  10. <image v-if="changefj==false" :src="loadImgSrc('icon_user_open.png')" @click='this.changefj = !this.changefj' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  11. </image>
  12. <image v-if="changefj==true" :src="loadImgSrc('icon_user_close.png')" @click='this.changefj = !this.changefj' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  13. </image>
  14. </view>
  15. </view>
  16. <view v-show="changefj">
  17. <view class="uni-list">
  18. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  19. <view>
  20. 行政区
  21. </view>
  22. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;" @click="pickerShow('xzq')">
  23. <span style="color: darkgray;">请选择行政区</span>
  24. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  25. </view>
  26. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xzq')">
  27. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  28. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="uni-list">
  33. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  34. <view>
  35. 小区
  36. </view>
  37. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  38. <span style="color: darkgray;">请选择小区</span>
  39. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  40. </view>
  41. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  42. <span style="color: black;">{{XQValue.name}}</span>
  43. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="uni-list">
  48. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  49. <view class="uni-list-cell-left">
  50. 楼栋
  51. </view>
  52. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  53. <span style="color: darkgray;">请选择楼栋</span>
  54. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  55. </view>
  56. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  57. <span style="color: black;">{{LDValue.name}}</span>
  58. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="uni-list" style="margin-top: 10;">
  63. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  64. <view class="uni-list-cell-left">
  65. 单元
  66. </view>
  67. <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  68. <span style="color: darkgray;">请选择单元</span>
  69. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  70. </view>
  71. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  72. <span style="color: black;">{{DYValue.name}}</span>
  73. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="uni-list">
  78. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  79. <view class="uni-list-cell-left">
  80. 房间
  81. </view>
  82. <view v-if="this.isEmpty(this.FJValue.id)" class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fj')">
  83. <span style="color: darkgray;">请选择房间</span>
  84. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  85. </view>
  86. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fj')">
  87. <span style="color: black;">{{FJValue.name}}</span>
  88. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  89. </view>
  90. </view>
  91. <view v-for="(user,index) in currentResidentsPhoe" :key="index" class="num-style">
  92. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  93. <spane>现住人电话</spane>
  94. <view style="display: flex; justify-content: flex-end; ">
  95. <input class="uni-input" type="tel" v-model="user.phone" maxlength="11" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
  96. </view>
  97. </view>
  98. <button v-if="index!=0" @click="this.currentResidentsPhoe.splice(index,1)" class="sc-btn">删除</button>
  99. </view>
  100. <button @click="this.currentResidentsPhoe.push({phone:''})" class="tj-btn">添加</button>
  101. </view>
  102. </view>
  103. </view>
  104. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id" v-model="name"></SelectPicker>
  105. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
  106. </view>
  107. <view class="background">
  108. <input class="uni-input" type="idcard" v-model="idCard" maxlength="18" placeholder="请输入身份证号码" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx; "></input>
  109. </view>
  110. <button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serchByCard"> 搜索</button>
  111. <view class="background">
  112. <view>
  113. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  114. 户主信息
  115. <image v-if="change==false" :src="loadImgSrc('icon_user_open.png')" @click='change1' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  116. </image>
  117. <image v-if="change==true" :src="loadImgSrc('icon_user_close.png')" @click='change1' style="display: flex;justify-content:flex-end; margin-right: 10px;width: 15px;height: 15px;">
  118. </image>
  119. </view>
  120. </view>
  121. <view v-show="change">
  122. <view class="uni-list">
  123. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  124. <view class="uni-list-cell-left">
  125. 户主姓名
  126. </view>
  127. <view class="uni-list-cell-db" style="margin-top: 10;">
  128. <span style="color: darkgray;" v-model="houseHeadName">{{houseHeadName}}</span>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="uni-list">
  133. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  134. <view class="uni-list-cell-left">
  135. 户主电话
  136. </view>
  137. <view class="uni-list-cell-db" style="margin-top: 10;">
  138. <span style="color: darkgray;" v-model="houseHeadPhone">{{houseHeadPhone}}</span>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="uni-list">
  143. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  144. <view class="uni-list-cell-left">
  145. 户主身份证号码
  146. </view>
  147. <view class="uni-list-cell-db" style="margin-top: 10;">
  148. <span style="color: darkgray;" v-model="houseHeadIDcardNumber">{{houseHeadIDcardNumber}}</span>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="uni-list">
  153. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  154. <view class="uni-list-cell-left">
  155. 管理所
  156. </view>
  157. <view class="uni-list-cell-db" style="margin-top: 10;">
  158. <span style="color: darkgray;" v-model="administrative">{{administrative}}</span>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <!--报警器切断阀-->
  165. <view class="background">
  166. <view v-if="objValue.enginClassValue=='报警器'||objValue.enginClassValue=='切断阀'">
  167. <view class="uni-list">
  168. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between; margin-bottom: 10px;">
  169. {{objValue.enginClassValue}}
  170. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  171. </view>
  172. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  173. <text>厂 家</text>
  174. <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
  175. <span style="color: darkgray;">请选择厂家</span>
  176. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  177. </view>
  178. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
  179. <span style="color: black;">{{brandValue.name}}</span>
  180. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <!--拆旧管-->
  186. <view v-if="objValue.enginClassValue=='拆旧管'">
  187. <view class="uni-list">
  188. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  189. 拆旧管
  190. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  191. </view>
  192. <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  193. <view>
  194. 腐蚀等级
  195. </view>
  196. <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;" @click="pickerShow('fsdj')">
  197. <span style="color: darkgray;">请选择腐蚀等级</span>
  198. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  199. </view>
  200. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('fsdj')">
  201. <span style="color: black;">{{LevelValue.name}}</span>
  202. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. <view v-if="objValue.enginClassValue=='打孔'">
  208. <view class="uni-list">
  209. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  210. 打孔
  211. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  212. </view>
  213. <!-- <view class="container" style="margin-bottom: 20PX;border-bottom: 1px solid #f8f8f8;">
  214. <view>
  215. 孔距
  216. </view>
  217. <view v-if="this.isEmpty(this.LevelValue.id)" style="margin-top: 10;"
  218. @click="pickerShow('kj')">
  219. <span style="color: darkgray;">请选择孔距</span>
  220. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  221. </view>
  222. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('kj')">
  223. <span style="color: black;">{{LevelValue.name}}</span>
  224. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  225. </view>
  226. </view> -->
  227. </view>
  228. </view>
  229. <!--立杠-->
  230. <view v-else-if="objValue.enginClassValue=='立杠'">
  231. <view class="uni-list" style="margin-bottom: 20px;">
  232. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  233. 立杠
  234. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  235. </view>
  236. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  237. <view>
  238. 材 质
  239. </view>
  240. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  241. <span style="color: darkgray;">请选择材质</span>
  242. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  243. </view>
  244. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  245. <span style="color: black;">{{materialValue.name}}</span>
  246. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  247. </view>
  248. </view>
  249. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  250. <view>
  251. 规 格
  252. </view>
  253. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  254. <span style="color: darkgray;">请选择规格</span>
  255. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  256. </view>
  257. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  258. <span style="color: black;">{{specificationValue.name}}</span>
  259. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  260. </view>
  261. </view>
  262. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  263. <text>米 数</text>
  264. <!-- style="margin-left: 10px;text-align: right;" -->
  265. <view style="display: flex; justify-content: right; width: 70%;">
  266. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  267. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  268. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  269. </view>
  270. </view>
  271. </view>
  272. </view>
  273. <!--挂表-->
  274. <view v-else-if="objValue.enginClassValue=='挂表'">
  275. <view class="uni-list" style="margin-bottom: 20px;">
  276. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  277. 挂表
  278. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  279. </view>
  280. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  281. <view>
  282. 品 牌
  283. </view>
  284. <view v-if="this.isEmpty(this.brandValue.id)" style="margin-top: 10;" @click="pickerShow('brand')">
  285. <span style="color: darkgray;">请选择品牌</span>
  286. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  287. </view>
  288. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('brand')">
  289. <span style="color: black;">{{brandValue.name}}</span>
  290. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  291. </view>
  292. </view>
  293. </view>
  294. </view>
  295. <!--表后管-->
  296. <view v-else-if="objValue.enginClassValue=='表后管'">
  297. <view class="uni-list" style="margin-bottom: 20px;">
  298. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  299. 表后管
  300. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  301. </view>
  302. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  303. <view>
  304. 材 质
  305. </view>
  306. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  307. <span style="color: darkgray;">请选择材质</span>
  308. </view>
  309. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  310. <span style="color: black;">{{materialValue.name}}</span>
  311. </view>
  312. </view>
  313. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  314. <view>
  315. 规 格
  316. </view>
  317. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  318. <span style="color: darkgray;">请选择规格</span>
  319. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  320. </view>
  321. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  322. <span style="color: black;">{{specificationValue.name}}</span>
  323. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  324. </view>
  325. </view>
  326. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  327. <text>米 数</text>
  328. <!-- style="margin-left: 10px;text-align: right;" -->
  329. <view style="display: flex; justify-content: right; width: 70%;">
  330. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  331. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  332. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  333. </view>
  334. </view>
  335. </view>
  336. </view>
  337. <!--阀管-->
  338. <view v-else-if="objValue.enginClassValue=='阀管'">
  339. <view class="uni-list" style="margin-bottom: 20px;">
  340. <view style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  341. 阀管
  342. <span style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;" @click="history" v-if="objValue.enginType == 'old_renovation'">{{historyName}}</span>
  343. </view>
  344. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  345. <view>
  346. 上门类型
  347. </view>
  348. <view v-if="this.isEmpty(this.doorValue.dictValue)" style="margin-top: 10;" @click="pickerShow('door')">
  349. <span style="color: darkgray;">请选择上门类型</span>
  350. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  351. </view>
  352. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('door')">
  353. <span style="color: black;">{{doorValue.dictLabel}}</span>
  354. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  355. </view>
  356. </view>
  357. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  358. <view>
  359. 自闭阀厂家
  360. </view>
  361. <view v-if="this.isEmpty(this.SelfClosValve.id)" style="margin-top: 10;" @click="pickerShow('zbf')">
  362. <span style="color: darkgray;">请选择自闭阀厂家</span>
  363. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  364. </view>
  365. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('zbf')">
  366. <span style="color: black;">{{SelfClosValve.name}}</span>
  367. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  368. </view>
  369. </view>
  370. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  371. <view>
  372. 灶具管厂家
  373. </view>
  374. <view v-if="this.isEmpty(this.materialValue.id)" style="margin-top: 10;" @click="pickerShow('cz')">
  375. <span style="color: darkgray;">请选择灶具管厂家</span>
  376. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  377. </view>
  378. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz')">
  379. <span style="color: black;">{{materialValue.name}}</span>
  380. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  381. </view>
  382. </view>
  383. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  384. <view>
  385. 规 格
  386. </view>
  387. <view v-if="this.isEmpty(this.specificationValue.id)" style="margin-top: 10;" @click="pickerShow('gg')">
  388. <span style="color: darkgray;">请选择规格</span>
  389. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  390. </view>
  391. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg')">
  392. <span style="color: black;">{{specificationValue.name}}</span>
  393. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  394. </view>
  395. </view>
  396. <!-- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  397. <text>米 数</text>
  398. <view style="display: flex; justify-content: right; width: 70%;">
  399. <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
  400. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  401. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  402. <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
  403. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  404. </view>
  405. </view> -->
  406. </view>
  407. </view>
  408. <view class="align-items" style="margin-top: 20px;margin-bottom: 20px;">
  409. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  410. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  411. <image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose()" v-show="reviewStatus!='1'"></image>
  412. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  413. <view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  414. <image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index)">
  415. </image>
  416. </view>
  417. <view v-else>
  418. <video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
  419. </view>
  420. <view @click="remove(index)" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  421. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  422. </image>
  423. </view>
  424. </view>
  425. </view>
  426. <view v-if="objValue.enginType == 'old_renovation'" style="margin-top: 10px;">
  427. <view v-if="objValue.enginClassValue=='拆旧管'">
  428. <span class="container-text">(1)拆除前照片(能体现出周边环境的宏观照片)</span>
  429. <span class="container-text">(2)拆除的立杠照片(如腐蚀严重需增加腐蚀处特写照片)</span>
  430. <span class="container-text">(3)立杠腐蚀照片</span>
  431. </view>
  432. <view v-if="objValue.enginClassValue=='立杠'">
  433. <span class="container-text">改造完成后的宏观照片,热收缩套照片,立杠要求有卡子及三通、表弯头、立杠刷油均匀</span>
  434. </view>
  435. <view v-if="objValue.enginClassValue=='挂表'">
  436. <span class="container-text">安装后的业主家燃气表正面能看清相关信息的照片</span>
  437. </view>
  438. <view v-if="objValue.enginClassValue=='表后管'">
  439. <span class="container-text">表后管整体照片+表至自闭阀区间的管道走向视频,表后管需按照施工标准横平竖直且有卡子固定</span>
  440. </view>
  441. <view v-if="objValue.enginClassValue=='阀管'">
  442. <span class="container-text">(1)自闭阀照片(自闭阀必须安装底座)</span>
  443. <span class="container-text">(2)灶具连接处照片</span>
  444. <span class="container-text">(3)打压照片</span>
  445. <span class="container-text">(4)回执单照片</span>
  446. </view>
  447. </view>
  448. </view>
  449. </view>
  450. <view class=" action-btn" v-show="reviewStatus!='1'" style="display: flex;padding: 5px;">
  451. <button @click="submit('submit')" class="btn cu-btn block bg-blue lg round" style="margin-right: 10px;">确认上传</button>
  452. <button @click="submit('save')" class="btn cu-btn block bg-blue lg round" v-if="objValue.enginType == 'old_renovation'">暂存</button>
  453. </view>
  454. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  455. </scroll-view>
  456. </template>
  457. <script>
  458. import SelectPicker from '../../../components/selectPicker/select_picker.vue'
  459. import bottomSheet from '../../../components/bottomSheet/bottomSheet.vue'
  460. import {
  461. getDicts
  462. } from "@/api/system/dict/data";
  463. import {
  464. getAreaList,
  465. getBuildingList,
  466. getUnitList,
  467. getHousesList,
  468. addTearOldPipe,
  469. getEnginMaterialQualityList,
  470. getEnginSpecificationsList,
  471. getRoomProjectList,
  472. getRoomProjectId,
  473. getRoomDetailsIDCard,
  474. putRoomDetails
  475. } from '@/api/common'
  476. import {
  477. getToken
  478. } from '../../../utils/auth';
  479. import {
  480. showConfirm
  481. } from '../../../utils/common';
  482. import {
  483. login
  484. } from '../../../api/login';
  485. export default {
  486. components: {
  487. SelectPicker,
  488. bottomSheet
  489. },
  490. data() {
  491. return {
  492. headers: {
  493. Authorization: "Bearer " + getToken()
  494. },
  495. historyName: '恢复暂存',
  496. houseHeadName: '',
  497. houseHeadPhone: '',
  498. houseHeadIDcardNumber: '',
  499. administrative: '',
  500. type: '',
  501. changefj: false,
  502. change: false,
  503. open: false,
  504. reviewStatus: '', //是否可以点击
  505. objValue: '', //上一页面传过来的值 新增接口用
  506. openDict: false,
  507. selectList: [],
  508. dictOptions: [],
  509. imgArr: [],
  510. idCard: '',
  511. XQValue: {},
  512. XZQValue: {},
  513. projectValue: {
  514. 'dictValue': '0'
  515. },
  516. currentResidentsPhoe: [{
  517. phone: ''
  518. }],
  519. LevelValue: {},
  520. LDValue: {},
  521. DYValue: {},
  522. FJValue: {},
  523. specificationValue: {}, //规格
  524. materialValue: {}, //材质
  525. brandValue: {}, //品牌
  526. doorValue: {}, //上门类型
  527. SelfClosValve: {}, //自闭阀类型
  528. materialList: '', //材质list
  529. XQList: '',
  530. LDList: '',
  531. DYList: '',
  532. FJList: '',
  533. progress: 0, //上传图片进度百分比
  534. loading: false,
  535. isCheck: true, //是否按照施工图纸施工
  536. inputNumberValue: '',
  537. inputIntegerNumberValue: '',
  538. inputDecimalNumberValue: '',
  539. title: '',
  540. historyList: {}, //历史数据
  541. tempState: '',
  542. tempSelectList: [],
  543. }
  544. },
  545. created() {
  546. },
  547. onLoad(options) {
  548. if ('params' in options) {
  549. this.objValue = JSON.parse(decodeURIComponent(options.params));
  550. if (this.objValue.enginType == `old_renovation`) {
  551. this.title = '旧改工程-室内'
  552. } else if (this.objValue.enginType == `new_built`) {
  553. this.title = '新建工程-室内'
  554. }
  555. uni.setNavigationBarTitle({
  556. title: this.title
  557. })
  558. }
  559. },
  560. methods: {
  561. copyAddress() {
  562. if (uni.getStorageSync('XZQValue') != {}) {
  563. this.type = 'xzq';
  564. this.changeSelectDict(uni.getStorageSync('XZQValue'));
  565. }
  566. if (uni.getStorageSync('XQValue') != {}) {
  567. this.type = 'xq';
  568. this.changeSelect(uni.getStorageSync('XQValue'))
  569. }
  570. if (uni.getStorageSync('LDValue') != {}) {
  571. this.type = 'ld';
  572. this.changeSelect(uni.getStorageSync('LDValue'))
  573. }
  574. if (uni.getStorageSync('DYValue') != {}) {
  575. this.type = 'dy';
  576. this.changeSelect(uni.getStorageSync('DYValue'))
  577. }
  578. if (uni.getStorageSync('FJValue') != {}) {
  579. this.type = 'fj';
  580. this.changeSelect(uni.getStorageSync('FJValue'))
  581. }
  582. },
  583. //判断是否选择
  584. isEmpty(str) {
  585. return (!str || 0 === str.length);
  586. },
  587. change1() {
  588. this.change = !this.change
  589. },
  590. // 显示历史弹窗
  591. handleShowSheet() {
  592. this.shareState = true;
  593. },
  594. // 隐藏历史弹窗
  595. handleHiddenShare() {
  596. this.shareState = false;
  597. },
  598. showPhoto(index) {
  599. uni.previewImage({
  600. current: index,
  601. urls: this.imgArr,
  602. })
  603. },
  604. remove(index) {
  605. uni.showModal({
  606. title: '提示',
  607. content: '是否删除该图片或视频?',
  608. success: (res) => {
  609. if (res.confirm) {
  610. this.imgArr.splice(index, 1)
  611. if (this.imgArr.length <= 0) {
  612. this.photo = true;
  613. }
  614. }
  615. }
  616. })
  617. },
  618. choose() {
  619. let _this = this;
  620. uni.showActionSheet({
  621. title: '上传',
  622. itemList: ['图片', '视频'],
  623. success: (res) => {
  624. if (res.tapIndex == 0) {
  625. this.chooseimage()
  626. } else {
  627. this.choosevideo()
  628. }
  629. }
  630. })
  631. },
  632. chooseimage() {
  633. let _this = this;
  634. uni.chooseImage({
  635. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  636. success(resp) {
  637. resp.tempFiles.forEach((item, index) => {
  638. const task = uni.uploadFile({
  639. url: _this.$HTTP + `/obs`,
  640. filePath: item.path,
  641. name: 'file',
  642. formData: {},
  643. header: _this.headers,
  644. success: res => {
  645. // 判断是否json字符串,将其转为json格式
  646. // let data = _this.$u.test.jsonString(res
  647. // .data) ? JSON.parse(res.data) : res.data;
  648. let data = JSON.parse(res.data);
  649. if (![200].includes(data.code)) {
  650. // this.uploadError(index, data);
  651. _this.$modal.msg(data.msg)
  652. } else {
  653. if (_this.progress === 100) {
  654. _this.imgArr.push(data.data.url)
  655. _this.$modal.msg('上传成功!')
  656. _this.photo = false;
  657. }
  658. }
  659. },
  660. fail: e => {
  661. _this.$modal.msg('上传失败!')
  662. //_this.uploadError(index, e);
  663. },
  664. complete: res => {
  665. uni.hideLoading();
  666. _this.uploading = false;
  667. }
  668. });
  669. task.onProgressUpdate(res => {
  670. _this.progress = res.progress;
  671. uni.showLoading({
  672. title: '上传中'
  673. })
  674. if (_this.progress != 100) {
  675. _this.loading = false
  676. } else {
  677. _this.loading = true
  678. }
  679. });
  680. })
  681. },
  682. })
  683. },
  684. choosevideo() {
  685. let _this = this;
  686. uni.chooseVideo({
  687. sourceType: this.objValue.enginType == `old_renovation` ? ['camera'] : ['album', 'camera'],
  688. maxDuration: 30,
  689. success(resp) {
  690. const task = uni.uploadFile({
  691. url: _this.$HTTP + `/obs`,
  692. filePath: resp.tempFilePath,
  693. name: 'file',
  694. formData: {},
  695. header: _this.headers,
  696. success: res => {
  697. // 判断是否json字符串,将其转为json格式
  698. let data = JSON.parse(res.data);
  699. if (![200].includes(res.statusCode)) {
  700. this.uploadError(index, data);
  701. } else {
  702. //上传成功
  703. if (_this.progress === 100) {
  704. _this.imgArr.push(data.data.url)
  705. _this.$modal.msg('上传成功!')
  706. _this.photo = false;
  707. }
  708. }
  709. },
  710. fail: e => {
  711. _this.$modal.msg('上传失败!')
  712. this.uploadError(index, e);
  713. },
  714. complete: res => {
  715. uni.hideLoading();
  716. _this.uploading = false;
  717. }
  718. });
  719. task.onProgressUpdate(res => {
  720. _this.progress = res.progress;
  721. uni.showLoading({
  722. title: '上传中'
  723. })
  724. if (_this.progress != 100) {
  725. _this.loading = false
  726. } else {
  727. _this.loading = true
  728. }
  729. });
  730. },
  731. })
  732. },
  733. pickerShow(e) {
  734. this.type = e; //赋值类型
  735. if (e == 'door') { //上门类型
  736. this.openDict = true;
  737. getDicts("visit_type").then(response => {
  738. this.dictOptions = response.data;
  739. });
  740. } else if (e == 'zbf') { //自闭阀类型
  741. this.open = true;
  742. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  743. .objValue.enginClassValue, '自闭阀厂家').then(response => {
  744. this.selectList = response.data;
  745. });
  746. } else if (e == 'brand') { //品牌
  747. this.open = true;
  748. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  749. .objValue.enginClassValue).then(response => {
  750. this.selectList = response.data;
  751. });
  752. } else if (e == 'cz') { //材质
  753. this.open = true;
  754. if (this.objValue.enginClassValue == '阀管') {
  755. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
  756. this
  757. .objValue.enginClassValue, "灶具管厂家").then(response => {
  758. this.selectList = response.data;
  759. });
  760. } else {
  761. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification,
  762. this
  763. .objValue.enginClassValue).then(response => {
  764. this.selectList = response.data;
  765. });
  766. }
  767. } else if (e == 'gg') { //规格
  768. if (this.isEmpty(this.materialValue.id)) {
  769. if (this.objValue.enginClassValue == '阀管') {
  770. this.$modal.msg('请选择灶具管厂家')
  771. } else {
  772. this.$modal.msg('请选择材质')
  773. }
  774. } else {
  775. this.open = true;
  776. this.selectList = this.materialList;
  777. }
  778. } else if (e == 'fsdj') {
  779. this.open = true;
  780. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  781. .objValue.enginClassValue).then(response => {
  782. this.selectList = response.data;
  783. });
  784. } else if (e == 'kj') {
  785. //孔距
  786. this.open = true;
  787. getEnginMaterialQualityList("民用工程", this.objValue.enginType, this.objValue.enginClassification, this
  788. .objValue.enginClassValue).then(response => {
  789. this.selectList = response.data;
  790. });
  791. } else if (e == 'gczq') { //工程周期
  792. this.openDict = true;
  793. getDicts("engin_cycle").then(response => {
  794. this.dictOptions = response.data;
  795. });
  796. } else if (e == 'xzq') { //行政区
  797. if (this.isEmpty(this.projectValue.dictValue)) {
  798. this.$modal.msg('请选择工程周期')
  799. } else {
  800. this.openDict = true;
  801. getDicts("district").then(response => {
  802. this.dictOptions = response.data;
  803. });
  804. }
  805. //this.selectList = this.dictOptions;
  806. } else if (e == 'xq') { //小区
  807. if (this.isEmpty(this.XZQValue.dictValue)) {
  808. getAreaList('').then(res => {
  809. this.XQList = res.data;
  810. this.open = true;
  811. this.selectList = this.XQList;
  812. })
  813. } else {
  814. getAreaList(this.XZQValue.dictValue).then(res => {
  815. this.XQList = res.data;
  816. this.selectList = this.XQList;
  817. this.open = true;
  818. })
  819. }
  820. } else if (e == 'ld') { //楼栋
  821. if (this.isEmpty(this.XQValue.id)) {
  822. this.$modal.msg('请选择小区')
  823. } else {
  824. getBuildingList(this.XQValue.id).then(res => {
  825. this.LDList = res.data
  826. this.selectList = this.LDList;
  827. this.open = true;
  828. })
  829. }
  830. } else if (e == 'dy') { //单元
  831. if (this.isEmpty(this.LDValue.id)) {
  832. this.$modal.msg('请选择楼栋')
  833. } else {
  834. getUnitList(this.LDValue.id).then(res => {
  835. this.DYList = res.data
  836. this.selectList = this.DYList;
  837. this.open = true;
  838. })
  839. }
  840. } else if (e == 'fj') { //房间
  841. if (this.isEmpty(this.DYValue.id)) {
  842. this.$modal.msg('请选择单元')
  843. } else {
  844. getHousesList(this.DYValue.id).then(res => {
  845. this.FJList = res.data
  846. this.selectList = this.FJList;
  847. this.open = true;
  848. })
  849. }
  850. }
  851. },
  852. switchChange(e) {
  853. //'switch 发生 change 事件,携带值为', e.detail.value)
  854. this.isCheck = e.detail.value;
  855. },
  856. changeSelectDict(item, index) {
  857. this.openDict = false;
  858. if (this.type == 'door') {
  859. this.doorValue = item
  860. } else if (this.type == 'gczq') {
  861. this.projectValue = item
  862. if (!this.isEmpty(this.FJValue.id)) {
  863. //房间选完 判断 工程周期 工程周期切换
  864. this.getStatus();
  865. }
  866. } else if (this.type == 'xzq') {
  867. this.XZQValue = item;
  868. //根据行政区id获取小区数据
  869. this.XQValue = ''; //重置小区数据
  870. this.LDValue = ''; //重置楼栋数据
  871. this.DYValue = ''; //重置单元数据
  872. this.FJValue = ''; //重置房间数据
  873. this.currentResidentsPhoe = [];
  874. //this.historyName = "";
  875. this.houseHeadName = "";
  876. this.houseHeadPhone = "";
  877. this.houseHeadIDcardNumber = "";
  878. this.administrative = "";
  879. }
  880. },
  881. changeSelect(item, index) {
  882. // this.index = index;
  883. // this.address = item.communityName;
  884. this.open = false;
  885. if (this.type == 'cz') {
  886. this.materialValue = item;
  887. this.specificationValue = ''; //重置规格
  888. //根据材质ID 获取规格数据
  889. getEnginSpecificationsList(item.id).then(res => {
  890. this.materialList = res.data
  891. })
  892. } else if (this.type == 'gg') {
  893. this.specificationValue = item;
  894. } else if (this.type == 'xq') {
  895. this.XZQValue = {
  896. dictValue: item.district,
  897. dictLabel: item.districtName,
  898. id: item.id
  899. };
  900. this.XQValue = item;
  901. //根据小区id 获取楼栋数据
  902. this.LDValue = ''; //重置楼栋数据
  903. this.DYValue = ''; //重置单元数据
  904. this.FJValue = ''; //重置房间数据
  905. this.currentResidentsPhoe = [];
  906. //this.historyName = "";
  907. this.houseHeadName = "";
  908. this.houseHeadPhone = "";
  909. this.houseHeadIDcardNumber = "";
  910. this.administrative = item.administrative;
  911. } else if (this.type == 'ld') {
  912. this.LDValue = item;
  913. //根据楼栋ID 获取单元数据
  914. this.DYValue = ''; //重置单元数据
  915. this.FJValue = ''; //重置房间数据
  916. this.currentResidentsPhoe = [];
  917. //this.historyName = "";
  918. this.houseHeadName = "";
  919. this.houseHeadPhone = "";
  920. this.houseHeadIDcardNumber = "";
  921. } else if (this.type == 'dy') {
  922. this.DYValue = item;
  923. //根据单元数据 获取房间数据
  924. this.FJValue = ''; //重置房间数据
  925. this.currentResidentsPhoe = [];
  926. //this.historyName = "";
  927. this.houseHeadName = "";
  928. this.houseHeadPhone = "";
  929. this.houseHeadIDcardNumber = "";
  930. } else if (this.type == 'fj') {
  931. this.FJValue = item;
  932. //this.history();
  933. this.houseHeadName = item.houseUserName;
  934. this.houseHeadPhone = item.phone;
  935. this.houseHeadIDcardNumber = item.idCard;
  936. this.currentResidentsPhoe = [];
  937. if (!this.isEmpty(item.newPhone)) {
  938. let str = item.newPhone;
  939. var array = str.split(",");
  940. array.forEach((list) => {
  941. this.currentResidentsPhoe.push({
  942. phone: list
  943. })
  944. })
  945. }
  946. if (!this.isEmpty(this.projectValue.id)) {
  947. //房间选完 判断 工程周期
  948. this.getStatus();
  949. }
  950. } else if (this.type == 'zbf') {
  951. this.SelfClosValve = item
  952. } else if (this.type == 'brand') {
  953. this.brandValue = item
  954. } else {
  955. this.LevelValue = item;
  956. }
  957. },
  958. //关闭弹窗
  959. close(e) {
  960. this.open = false
  961. },
  962. //关闭弹窗
  963. closeDict(e) {
  964. this.openDict = false
  965. },
  966. getStatus() {
  967. let param = {
  968. areaId: this.XQValue.id, // 小区id
  969. buildingId: this.LDValue.id, // 楼宇id
  970. unitId: this.DYValue.id, // 单元id
  971. houseId: this.FJValue.id, // 房间id
  972. enginCycle: this.projectValue.id, // 工程周期
  973. enginType: this.objValue.enginType, //写死 上一页面传过来的
  974. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  975. }
  976. getRoomProjectId(param).then(res => {
  977. if (res.code == '200') {
  978. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  979. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  980. if (this.objValue.enginClassValue == item.type) {
  981. this.reviewStatus = item.reviewStatus;
  982. if (item.reviewStatus == '1')
  983. this.$modal.msg('当前工程已结束')
  984. }
  985. })
  986. } else {
  987. this.reviewStatus = '' //置空
  988. }
  989. } else {
  990. this.$modal.msg(res.msg)
  991. this.reviewStatus = '' //置空
  992. }
  993. })
  994. },
  995. serchByCard() {
  996. if (this.isEmpty(this.idCard)) {
  997. this.$modal.msg("请输入身份证号码")
  998. return
  999. }
  1000. if (!this.$validation.idCard(this.idCard)) {
  1001. this.$modal.msg("身份证号码格式不正确")
  1002. return
  1003. }
  1004. getRoomDetailsIDCard(this.idCard).then(res => {
  1005. if (res.code == '200' && res.data != null) {
  1006. if (!this.isEmpty(res.data.newPhone)) {
  1007. this.currentResidentsPhoe = [];
  1008. let str = res.data.newPhone;
  1009. var array = str.split(",");
  1010. array.forEach((list) => {
  1011. this.currentResidentsPhoe.push({
  1012. phone: list
  1013. })
  1014. })
  1015. }
  1016. this.houseHeadName = res.data.houseUserName;
  1017. this.houseHeadIDcardNumber = res.data.idCard;
  1018. this.houseHeadPhone = res.data.phone;
  1019. this.XZQValue = {
  1020. dictValue: res.data.district,
  1021. dictLabel: res.data.districtName
  1022. };
  1023. this.XQValue = {
  1024. id: res.data.areaId,
  1025. name: res.data.areaName
  1026. }
  1027. this.LDValue = {
  1028. id: res.data.buildingId,
  1029. name: res.data.buildingName
  1030. }
  1031. this.DYValue = {
  1032. id: res.data.unitId,
  1033. name: res.data.unitName
  1034. }
  1035. this.FJValue = {
  1036. id: res.data.id,
  1037. name: res.data.name
  1038. }
  1039. getAreaList(this.XZQValue.dictValue).then(res => {
  1040. this.XQList = res.data;
  1041. })
  1042. getBuildingList(this.XQValue.id).then(res => {
  1043. this.LDList = res.data
  1044. })
  1045. getUnitList(this.LDValue.id).then(res => {
  1046. this.DYList = res.data
  1047. })
  1048. getHousesList(this.DYValue.id).then(res => {
  1049. this.FJList = res.data
  1050. })
  1051. }
  1052. })
  1053. },
  1054. //提交数据
  1055. submit(e) {
  1056. this.tempState = e == 'submit' ? '' : '99'
  1057. if (this.isEmpty(this.projectValue.dictValue)) {
  1058. this.$modal.msg("请选择工程周期")
  1059. return
  1060. }
  1061. if (this.isEmpty(this.XZQValue.dictValue)) {
  1062. this.$modal.msg("请选择行政区")
  1063. return
  1064. }
  1065. if (this.isEmpty(this.XQValue.id)) {
  1066. this.$modal.msg("请选择小区")
  1067. return
  1068. }
  1069. if (this.isEmpty(this.LDValue.id)) {
  1070. this.$modal.msg("请选择楼栋")
  1071. return
  1072. }
  1073. if (this.isEmpty(this.DYValue.id)) {
  1074. this.$modal.msg("请选择单元")
  1075. return
  1076. }
  1077. if (this.isEmpty(this.FJValue.id)) {
  1078. this.$modal.msg("请选择房间")
  1079. return
  1080. }
  1081. if (this.currentResidentsPhoe.length <= 0) {
  1082. this.$modal.msg('现住人电话不能为空');
  1083. return
  1084. }
  1085. try {
  1086. this.currentResidentsPhoe.forEach((list) => {
  1087. if (this.isEmpty(list.phone)) {
  1088. this.$modal.msg('现住人电话不能为空')
  1089. throw new Error('End Loop')
  1090. }
  1091. if (list.phone.length == 11 || list.phone.length == 8) {} else {
  1092. this.$modal.msg('现住人电话填写错误')
  1093. throw new Error('End Loop')
  1094. }
  1095. })
  1096. } catch (e) {
  1097. if (e.message === 'End Loop') throw e
  1098. }
  1099. uni.setStorageSync("XZQValue", this.XZQValue)
  1100. uni.setStorageSync("XQValue", this.XQValue)
  1101. uni.setStorageSync("LDValue", this.LDValue)
  1102. uni.setStorageSync("DYValue", this.DYValue)
  1103. this.FJValue.newPhone = this.currentResidentsPhoe.map(item => item.phone).join();
  1104. uni.setStorageSync("FJValue", this.FJValue)
  1105. if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue == '切断阀') {
  1106. if (e == 'submit') {
  1107. if (this.isEmpty(this.brandValue.id)) {
  1108. this.$modal.msg("请选择厂家")
  1109. } else {
  1110. this.onsubmit(e);
  1111. }
  1112. } else {
  1113. this.onsubmit(e); //暂存
  1114. }
  1115. } else if (this.objValue.enginClassValue == '打孔') {
  1116. // if (this.isEmpty(this.LevelValue.id)) {
  1117. // this.$modal.msg("请选择孔距") //打孔 判断孔距
  1118. // } else {
  1119. this.onsubmit(e);
  1120. //}
  1121. } else if (this.objValue.enginClassValue == '拆旧管') {
  1122. if (e == 'submit') {
  1123. if (this.isEmpty(this.LevelValue.id)) {
  1124. this.$modal.msg("请选择腐蚀等级") //拆旧管 判断腐蚀等级
  1125. } else {
  1126. this.onsubmit(e);
  1127. }
  1128. } else {
  1129. this.onsubmit(e); //暂存
  1130. }
  1131. } else if (this.objValue.enginClassValue == '立杠') {
  1132. //立杠 判断 材质 规格 米数
  1133. if (e == 'submit') {
  1134. if (this.isEmpty(this.materialValue.id)) {
  1135. this.$modal.msg("请选择材质")
  1136. } else if (this.isEmpty(this.specificationValue.id)) {
  1137. this.$modal.msg("请选择规格")
  1138. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1139. this.$modal.msg("请输入米数")
  1140. } else {
  1141. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1142. this.inputNumberValue = this.inputIntegerNumberValue;
  1143. } else {
  1144. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1145. }
  1146. this.onsubmit(e);
  1147. }
  1148. } else {
  1149. this.onsubmit(e); //暂存
  1150. }
  1151. } else if (this.objValue.enginClassValue == '挂表') {
  1152. //挂表 判断 品牌
  1153. if (e == 'submit') {
  1154. if (this.isEmpty(this.brandValue.id)) {
  1155. this.$modal.msg("请选择品牌")
  1156. } else {
  1157. this.onsubmit(e);
  1158. }
  1159. } else {
  1160. this.onsubmit(e);
  1161. }
  1162. } else if (this.objValue.enginClassValue == '表后管') {
  1163. //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
  1164. if (e == 'submit') {
  1165. if (this.isEmpty(this.materialValue.id)) {
  1166. this.$modal.msg("请选择材质")
  1167. } else if (this.isEmpty(this.specificationValue.id)) {
  1168. this.$modal.msg("请选择规格")
  1169. } else if (this.isEmpty(this.inputIntegerNumberValue)) {
  1170. this.$modal.msg("请输入米数")
  1171. } else {
  1172. const hasImage = this.imgArr.some(item => item.endsWith('.jpg') || item.endsWith(
  1173. '.png') || item
  1174. .endsWith('.jpeg') || item.endsWith('.JPG') || item.endsWith('.PNG') || item
  1175. .endsWith('.JPEG'));
  1176. const hasVideo = this.imgArr.some(item => item.endsWith('.mp4') || item.endsWith('.MP4'));
  1177. if (hasImage && hasVideo) {
  1178. //表后管
  1179. this.againSubmitBHG();
  1180. } else {
  1181. this.$modal.msg('请至少上传一张照片和一个视频')
  1182. }
  1183. }
  1184. } else {
  1185. //暂存
  1186. this.againSubmitBHG();
  1187. }
  1188. } else if (this.objValue.enginClassValue == '阀管') {
  1189. //阀管 判断 材质 规格 米数
  1190. if (e == 'submit') {
  1191. if (this.isEmpty(this.doorValue.dictValue)) {
  1192. this.$modal.msg("请选择上门类型")
  1193. } else if (this.isEmpty(this.SelfClosValve.id)) {
  1194. this.$modal.msg("请选择自闭阀厂家")
  1195. } else if (this.isEmpty(this.materialValue.id)) {
  1196. this.$modal.msg("请选择灶具管厂家")
  1197. } else if (this.isEmpty(this.specificationValue.id)) {
  1198. this.$modal.msg("请选择规格")
  1199. } else {
  1200. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1201. this.inputNumberValue = this.inputIntegerNumberValue;
  1202. } else {
  1203. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1204. }
  1205. this.onsubmit(e);
  1206. }
  1207. } else {
  1208. this.onsubmit(e); //暂存
  1209. }
  1210. }
  1211. },
  1212. onsubmit(e) {
  1213. if (e == 'submit') {
  1214. if (this.imgArr.length <= 0) {
  1215. this.$modal.msg('请上传照片或视频')
  1216. return
  1217. }
  1218. }
  1219. // else if (this.loading == false) {
  1220. // this.$modal.msg('照片或视频未上传完毕,无法提交!')
  1221. // }
  1222. //else {
  1223. let phoneArr = [];
  1224. this.currentResidentsPhoe.forEach((list) => {
  1225. phoneArr.push(list.phone)
  1226. })
  1227. putRoomDetails(this.FJValue.id, phoneArr.join())
  1228. .then(res => {
  1229. if (res.code == '200') {
  1230. this.againSubmit();
  1231. }
  1232. })
  1233. //}
  1234. },
  1235. againSubmitBHG() {
  1236. //表后管 特殊 提交
  1237. if (this.isEmpty(this.inputDecimalNumberValue)) {
  1238. this.inputNumberValue = this.inputIntegerNumberValue;
  1239. } else {
  1240. this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
  1241. }
  1242. let phoneArr = [];
  1243. this.currentResidentsPhoe.forEach((list) => {
  1244. phoneArr.push(list.phone)
  1245. })
  1246. putRoomDetails(this.FJValue.id, phoneArr
  1247. .join())
  1248. .then(res => {
  1249. if (res.code == '200') {
  1250. let param = {
  1251. district: this.XZQValue.dictValue,
  1252. areaId: this.XQValue.id,
  1253. buildingId: this.LDValue.id,
  1254. unitId: this.DYValue.id,
  1255. houseId: this.FJValue.id,
  1256. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1257. enginClassification: this.objValue
  1258. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1259. enginCycle: this.projectValue.dictValue, //工程周期
  1260. zEngineeringNodeBo: {
  1261. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1262. zEngineeringInfoBo: {
  1263. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1264. state: this.tempState,
  1265. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1266. zEngineeringMaterialBo: [{
  1267. materialQuality: this.materialValue.id, //材质
  1268. specifications: this.specificationValue.id, //规格
  1269. number: this.inputNumberValue //米数
  1270. }]
  1271. }
  1272. }
  1273. }
  1274. uni.showLoading()
  1275. addTearOldPipe(param).then(res => {
  1276. if (res.code == '200') {
  1277. uni.hideLoading()
  1278. uni.showToast({
  1279. title: res.msg,
  1280. icon: 'none',
  1281. //显示持续时间为 1秒
  1282. duration: 1000
  1283. });
  1284. uni.navigateBack();
  1285. }
  1286. })
  1287. }
  1288. })
  1289. },
  1290. againSubmit() {
  1291. //提交
  1292. let param = '';
  1293. if (this.objValue.enginClassValue == '拆旧管' || this.objValue.enginClassValue ==
  1294. '打孔') { //拆旧管 打孔
  1295. param = {
  1296. district: this.XZQValue.dictValue,
  1297. areaId: this.XQValue.id,
  1298. buildingId: this.LDValue.id,
  1299. unitId: this.DYValue.id,
  1300. houseId: this.FJValue.id,
  1301. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1302. enginClassification: this.objValue
  1303. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1304. enginCycle: this.projectValue.dictValue, //工程周期
  1305. zEngineeringNodeBo: {
  1306. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1307. zEngineeringInfoBo: {
  1308. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1309. state: this.tempState,
  1310. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1311. zEngineeringMaterialBo: [{
  1312. corrosionLevel: this.LevelValue.id //腐蚀等级 //孔距
  1313. }]
  1314. }
  1315. }
  1316. }
  1317. //this.onsubmit(param)
  1318. } else if (this.objValue.enginClassValue == '报警器' || this.objValue.enginClassValue ==
  1319. '切断阀') { //报警器切断阀
  1320. param = {
  1321. district: this.XZQValue.dictValue,
  1322. areaId: this.XQValue.id,
  1323. buildingId: this.LDValue.id,
  1324. unitId: this.DYValue.id,
  1325. houseId: this.FJValue.id,
  1326. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1327. enginClassification: this.objValue
  1328. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1329. enginCycle: this.projectValue.dictValue, //工程周期
  1330. zEngineeringNodeBo: {
  1331. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1332. zEngineeringInfoBo: {
  1333. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1334. state: this.tempState,
  1335. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1336. zEngineeringMaterialBo: [{
  1337. brand: this.brandValue.id, //品牌
  1338. // number: this.inputNumberValue //米数
  1339. }]
  1340. }
  1341. }
  1342. }
  1343. } else if (this.objValue.enginClassValue == '立杠') { //立杠
  1344. param = {
  1345. district: this.XZQValue.dictValue,
  1346. areaId: this.XQValue.id,
  1347. buildingId: this.LDValue.id,
  1348. unitId: this.DYValue.id,
  1349. houseId: this.FJValue.id,
  1350. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1351. enginClassification: this.objValue
  1352. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1353. enginCycle: this.projectValue.dictValue, //工程周期
  1354. zEngineeringNodeBo: {
  1355. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1356. zEngineeringInfoBo: {
  1357. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1358. state: this.tempState,
  1359. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1360. zEngineeringMaterialBo: [{
  1361. materialQuality: this.materialValue.id, //材质
  1362. specifications: this.specificationValue.id, //规格
  1363. number: this.inputNumberValue //米数
  1364. }]
  1365. }
  1366. }
  1367. }
  1368. } else if (this.objValue.enginClassValue == '挂表') { //挂表
  1369. param = {
  1370. district: this.XZQValue.dictValue,
  1371. areaId: this.XQValue.id,
  1372. buildingId: this.LDValue.id,
  1373. unitId: this.DYValue.id,
  1374. houseId: this.FJValue.id,
  1375. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1376. enginClassification: this.objValue
  1377. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1378. enginCycle: this.projectValue.dictValue, //工程周期
  1379. zEngineeringNodeBo: {
  1380. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1381. zEngineeringInfoBo: {
  1382. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1383. state: this.tempState,
  1384. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1385. zEngineeringMaterialBo: [{
  1386. brand: this.brandValue.id, //品牌
  1387. //number: this.inputNumberValue //米数
  1388. }]
  1389. }
  1390. }
  1391. }
  1392. } else if (this.objValue.enginClassValue == '阀管') { //自闭阀
  1393. if (!this.isEmpty(this.specificationValue.name)) {
  1394. var onlyNumbers = this.specificationValue.name.replace(/[^\d.]/g, '');
  1395. }
  1396. param = {
  1397. district: this.XZQValue.dictValue,
  1398. areaId: this.XQValue.id,
  1399. buildingId: this.LDValue.id,
  1400. unitId: this.DYValue.id,
  1401. houseId: this.FJValue.id,
  1402. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1403. enginClassification: this.objValue
  1404. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1405. enginCycle: this.projectValue.dictValue, //工程周期
  1406. zEngineeringNodeBo: {
  1407. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  1408. zEngineeringInfoBo: {
  1409. constructAccordingDrawings: this.isCheck, //是否按图纸施工
  1410. state: this.tempState,
  1411. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  1412. zEngineeringMaterialBo: [{
  1413. visitType: this.doorValue.dictValue, //上门类型
  1414. selfClosingValveType: this.SelfClosValve.id, //自闭阀类型
  1415. materialQuality: this.materialValue.id, //材质
  1416. specifications: this.specificationValue.id, //规格
  1417. number: onlyNumbers //米数
  1418. }]
  1419. }
  1420. }
  1421. }
  1422. }
  1423. uni.showLoading()
  1424. addTearOldPipe(param).then(res => {
  1425. if (res.code == '200') {
  1426. uni.hideLoading()
  1427. uni.showToast({
  1428. title: res.msg,
  1429. icon: 'none',
  1430. //显示持续时间为 3秒
  1431. duration: 2000
  1432. });
  1433. setTimeout(function() {
  1434. uni.navigateBack();
  1435. }, 1000)
  1436. }
  1437. })
  1438. },
  1439. history() {
  1440. this.LevelValue = {};
  1441. this.imgArr = [];
  1442. this.materialValue = {};
  1443. this.specificationValue = {};
  1444. this.inputIntegerNumberValue = '';
  1445. this.inputDecimalNumberValue = '';
  1446. this.brandValue = {};
  1447. this.doorValue = {};
  1448. this.SelfClosValve = {};
  1449. if (this.isEmpty(this.projectValue.dictValue)) {
  1450. this.$modal.msg("请选择工程周期")
  1451. return
  1452. }
  1453. if (this.isEmpty(this.XZQValue.dictValue)) {
  1454. this.$modal.msg("请选择行政区")
  1455. return
  1456. }
  1457. if (this.isEmpty(this.XQValue.id)) {
  1458. this.$modal.msg("请选择小区")
  1459. return
  1460. }
  1461. if (this.isEmpty(this.LDValue.id)) {
  1462. this.$modal.msg("请选择楼栋")
  1463. return
  1464. }
  1465. if (this.isEmpty(this.DYValue.id)) {
  1466. this.$modal.msg("请选择单元")
  1467. return
  1468. }
  1469. if (this.isEmpty(this.FJValue.id)) {
  1470. this.$modal.msg("请选择房间")
  1471. return
  1472. }
  1473. let param = {
  1474. areaId: this.XQValue.id, // 小区id
  1475. buildingId: this.LDValue.id, // 楼宇id
  1476. unitId: this.DYValue.id, // 单元id
  1477. houseId: this.FJValue.id, // 房间id
  1478. enginCycle: this.projectValue.dictValue, // 工程周期
  1479. enginType: this.objValue.enginType, //写死 上一页面传过来的
  1480. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  1481. }
  1482. getRoomProjectId(param).then(res => {
  1483. if (res.code == '200') {
  1484. if (res.data != null) {
  1485. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(res => {
  1486. // this.historyName = res.data.zEngineeringNodeBo.reviewStatus == '0' ?
  1487. // '未通过' : '已通过'
  1488. // if (res.data.zEngineeringNodeBo.reviewStatus != null && res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1489. // this.historyName = '恢复暂存';
  1490. // } else {
  1491. // this.historyName = '';
  1492. // }
  1493. this.historyList = res.data
  1494. if (res.data.zEngineeringNodeBo != null) {
  1495. if (res.data.zEngineeringNodeBo.reviewStatus == '1') {
  1496. // this.showHistoryList();
  1497. this.$modal.msg("当前步骤以审核通过请谨慎!")
  1498. } else if (res.data.zEngineeringNodeBo.reviewStatus == '99') {
  1499. let dataJson = res.data.zEngineeringNodeBo
  1500. .zEngineeringInfoBoList[0];
  1501. this.imgArr = dataJson.zEngiineeringPhotoBoList;
  1502. if (this.objValue.enginClassValue == '拆旧管') {
  1503. this.LevelValue.id = dataJson
  1504. .zEngineeringMaterialBo[0]
  1505. .corrosionLevel
  1506. this.LevelValue.name = dataJson
  1507. .zEngineeringMaterialBo[0]
  1508. .corrosionLevelName
  1509. } else if (this.objValue.enginClassValue == '立杠' || this.objValue
  1510. .enginClassValue == '表后管') {
  1511. this.materialValue.id = dataJson.zEngineeringMaterialBo[0].materialQuality;
  1512. if (!this.isEmpty(this.materialValue.id) && this.materialValue.id != null) {
  1513. //根据材质ID 获取规格数据
  1514. getEnginSpecificationsList(this.materialValue.id).then(res => {
  1515. this.materialList = res.data
  1516. })
  1517. }
  1518. this.specificationValue.id = dataJson
  1519. .zEngineeringMaterialBo[0]
  1520. .specifications;
  1521. this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
  1522. .materialQualityName;
  1523. this.specificationValue.name = dataJson
  1524. .zEngineeringMaterialBo[0].specificationsName;
  1525. if (dataJson.zEngineeringMaterialBo[0].number != null) {
  1526. this.inputIntegerNumberValue = this.getIntegerPart(
  1527. dataJson
  1528. .zEngineeringMaterialBo[0].number, 0);
  1529. this.inputDecimalNumberValue = this.getIntegerPart(dataJson
  1530. .zEngineeringMaterialBo[0].number, 1);
  1531. }
  1532. } else if (this.objValue.enginClassValue == '报警器' || this.objValue
  1533. .enginClassValue == '切断阀' || this.objValue
  1534. .enginClassValue == '挂表') {
  1535. this.brandValue.id = dataJson.zEngineeringMaterialBo[0]
  1536. .brand
  1537. this.brandValue.name = dataJson.zEngineeringMaterialBo[0]
  1538. .brandName
  1539. } else if (this.objValue.enginClassValue == '阀管') {
  1540. this.doorValue.dictValue = dataJson
  1541. .zEngineeringMaterialBo[0]
  1542. .visitType;
  1543. this.doorValue.dictLabel = dataJson
  1544. .zEngineeringMaterialBo[0]
  1545. .visitType;
  1546. this.SelfClosValve.id = dataJson
  1547. .zEngineeringMaterialBo[0]
  1548. .selfClosingValveType;
  1549. this.SelfClosValve.name = dataJson
  1550. .zEngineeringMaterialBo[0]
  1551. .selfClosingValveTypeName;
  1552. this.materialValue.id = dataJson
  1553. .zEngineeringMaterialBo[0]
  1554. .materialQuality;
  1555. if (!this.isEmpty(this.materialValue.id) && this.materialValue.id != null) {
  1556. //根据材质ID 获取规格数据
  1557. getEnginSpecificationsList(this.materialValue.id).then(res => {
  1558. this.materialList = res.data
  1559. })
  1560. }
  1561. this.specificationValue.id = dataJson
  1562. .zEngineeringMaterialBo[0]
  1563. .specifications;
  1564. this.materialValue.name = dataJson.zEngineeringMaterialBo[0]
  1565. .materialQualityName;
  1566. this.specificationValue.name = dataJson
  1567. .zEngineeringMaterialBo[0].specificationsName;
  1568. }
  1569. } else {
  1570. this.$modal.msg("暂无暂存信息")
  1571. }
  1572. } else {
  1573. this.$modal.msg("暂无历史信息")
  1574. }
  1575. })
  1576. } else {
  1577. this.$modal.msg("暂无工程信息")
  1578. }
  1579. } else {
  1580. this.$modal.msg(res.msg)
  1581. }
  1582. })
  1583. },
  1584. getIntegerPart(numStr, i) {
  1585. if (numStr != null && numStr != undefined && numStr != '') {
  1586. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  1587. }
  1588. },
  1589. setInfoBoNumber(key, number, i) {
  1590. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  1591. .number;
  1592. let resAry = Ynumber.toString().split('.');
  1593. resAry[i] = number
  1594. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].number = resAry
  1595. .join('.');
  1596. },
  1597. showHistoryList() {
  1598. this.$refs.refShare.handleShowShare();
  1599. }
  1600. }
  1601. }
  1602. </script>
  1603. <style lang="scss">
  1604. .container-text {
  1605. display: flex;
  1606. align-items: center;
  1607. justify-content: space-between;
  1608. color: #b2b2b2;
  1609. position: relative;
  1610. }
  1611. .container {
  1612. display: flex;
  1613. align-items: center;
  1614. justify-content: space-between;
  1615. padding: 10px;
  1616. position: relative;
  1617. }
  1618. .uni-list {
  1619. border: 1xp solid #eee;
  1620. }
  1621. .to-right-icon {
  1622. width: 15px;
  1623. height: 15px;
  1624. position: absolute;
  1625. top: 50%;
  1626. transform: translateY(-50%);
  1627. }
  1628. .text {
  1629. font-size: 16px;
  1630. color: #333;
  1631. }
  1632. .background {
  1633. // border: 15px solid hsla(0, 0%, 100%, .5);
  1634. background: white;
  1635. background-clip: padding-box;
  1636. padding: 20rpx;
  1637. border-radius: 20rpx;
  1638. margin: 20rpx 10rpx;
  1639. /*从padding开始往外面裁剪背景*/
  1640. }
  1641. .btn {
  1642. width: 715rpx;
  1643. height: 69rpx;
  1644. background: #79A4F0;
  1645. border-radius: 6rpx;
  1646. font-size: 25rpx;
  1647. font-family: Microsoft YaHei;
  1648. font-weight: 400;
  1649. color: #FFFFFF;
  1650. line-height: 69rpx;
  1651. margin-top: 40rpx;
  1652. margin-bottom: 100rpx;
  1653. }
  1654. .number {
  1655. display: flex;
  1656. /* 水平居中显示子元素 */
  1657. align-items: flex-start;
  1658. /* 垂直居中显示子元素 */
  1659. justify-content: space-between;
  1660. /* 左右间距等于间距大小 */
  1661. padding: 10px;
  1662. /* 设置padding以提高视觉效果 */
  1663. }
  1664. .tj-btn {
  1665. height: 69rpx;
  1666. background: #3184f0;
  1667. border-radius: 6rpx;
  1668. font-size: 25rpx;
  1669. font-weight: 400;
  1670. color: #FFFFFF;
  1671. line-height: 69rpx;
  1672. margin: 40rpx 70rpx;
  1673. }
  1674. .sc-btn {
  1675. height: 69rpx;
  1676. background: #f0686b;
  1677. border-radius: 6rpx;
  1678. font-size: 25rpx;
  1679. font-weight: 400;
  1680. color: #FFFFFF;
  1681. line-height: 69rpx;
  1682. margin: 40rpx;
  1683. }
  1684. .num-style {
  1685. background: #e8f4f9;
  1686. margin: 20rpx;
  1687. padding: 10rpx;
  1688. border-radius: 20rpx;
  1689. border: 1px solid #d4e3f0;
  1690. }
  1691. .textarea {
  1692. margin-top: 10upx;
  1693. width: 100%;
  1694. border: 1rpx solid red;
  1695. min-height: 100upx;
  1696. line-height: 20px;
  1697. }
  1698. page {
  1699. background: #f2f2f2;
  1700. }
  1701. .flex-x {
  1702. display: flex;
  1703. align-items: center;
  1704. }
  1705. .template_title,
  1706. .template_title1,
  1707. .template_title_list {
  1708. height: 90rpx;
  1709. background: #fff;
  1710. justify-content: space-between;
  1711. padding: 0 30rpx;
  1712. box-sizing: border-box;
  1713. }
  1714. .template_title1 {
  1715. background: none;
  1716. }
  1717. .template_title_list {
  1718. margin-bottom: 4rpx;
  1719. }
  1720. .template_title>view,
  1721. .template_title1>view {
  1722. font-size: 32rpx;
  1723. color: #8f8f8f;
  1724. flex-shrink: 0;
  1725. margin-right: 20rpx;
  1726. }
  1727. .template_title>input {
  1728. font-size: 28rpx;
  1729. color: #808080;
  1730. text-align: right;
  1731. flex-grow: 1;
  1732. }
  1733. /* 添加内容 */
  1734. .add_con>text {
  1735. font-size: 40rpx;
  1736. color: #f16765;
  1737. display: block;
  1738. margin-right: 20rpx;
  1739. margin-left: 10rpx;
  1740. line-height: 44rpx;
  1741. }
  1742. .add_con>view {
  1743. font-size: 32rpx;
  1744. color: #7885cb;
  1745. }
  1746. /* 删除内容 */
  1747. .del {
  1748. font-size: 32rpx;
  1749. color: #f16765;
  1750. margin-right: 14rpx;
  1751. padding: 20rpx;
  1752. }
  1753. input {
  1754. flex-grow: 1;
  1755. font-size: 28rpx;
  1756. color: #808080;
  1757. }
  1758. // .container {
  1759. // display: flex;
  1760. // align-items: center;
  1761. // justify-content: space-between;
  1762. // padding: 10px;
  1763. // position: relative;
  1764. // }
  1765. // .uni-list {
  1766. // border: 1xp solid #eee;
  1767. // }
  1768. // .to-right-icon {
  1769. // width: 15px;
  1770. // height: 15px;
  1771. // position: absolute;
  1772. // top: 50%;
  1773. // transform: translateY(-50%);
  1774. // }
  1775. // .text {
  1776. // font-size: 16px;
  1777. // color: #333;
  1778. // }
  1779. // .background {
  1780. // // border: 15px solid hsla(0, 0%, 100%, .5);
  1781. // background: white;
  1782. // background-clip: padding-box;
  1783. // padding: 20rpx;
  1784. // border-radius: 20rpx;
  1785. // margin: 20rpx;
  1786. // /*从padding开始往外面裁剪背景*/
  1787. // }
  1788. // .btn {
  1789. // width: 715rpx;
  1790. // height: 69rpx;
  1791. // background: #79A4F0;
  1792. // border-radius: 6rpx;
  1793. // font-size: 25rpx;
  1794. // font-family: Microsoft YaHei;
  1795. // font-weight: 400;
  1796. // color: #FFFFFF;
  1797. // line-height: 69rpx;
  1798. // margin-top: 40rpx;
  1799. // margin-bottom: 100rpx;
  1800. // }
  1801. // .number {
  1802. // display: flex;
  1803. // /* 水平居中显示子元素 */
  1804. // align-items: flex-start;
  1805. // /* 垂直居中显示子元素 */
  1806. // justify-content: space-between;
  1807. // /* 左右间距等于间距大小 */
  1808. // padding: 10px;
  1809. // /* 设置padding以提高视觉效果 */
  1810. // }
  1811. // .textarea {
  1812. // margin-top: 10upx;
  1813. // width: 100%;
  1814. // border: 1rpx solid red;
  1815. // min-height: 100upx;
  1816. // line-height: 20px;
  1817. // }
  1818. </style>