extend.vue 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. <template>
  2. <div class="app-container">
  3. <div class="org-extend">
  4. <div class="extend_mod">
  5. <div class="info-box">
  6. <el-descriptions class="margin-top" :column="3" size="medium" border>
  7. <template #title>
  8. <h3 class="title">
  9. <i class="el-icon-collection-tag"></i>
  10. 基础信息
  11. </h3>
  12. </template>
  13. <el-descriptions-item
  14. v-for="v in dataInfo"
  15. :label="v.label"
  16. :key="v.key"
  17. labelClassName="gx_info_label"
  18. >{{ v.value }}
  19. </el-descriptions-item
  20. >
  21. <el-descriptions-item labelClassName="gx_info_label" label="机构组织类型" v-if="false">{{
  22. getLabel(dict.type.reality_org_type, orgType)
  23. }}
  24. </el-descriptions-item>
  25. <el-descriptions-item labelClassName="gx_info_label" label="是否停用">{{
  26. isLock == 1 ? "是" : "否"
  27. }}
  28. </el-descriptions-item>
  29. <el-descriptions-item labelClassName="gx_info_label" label="机构类型">{{
  30. getLabel(dict.type.sys_org_type, type)
  31. }}
  32. </el-descriptions-item>
  33. </el-descriptions>
  34. </div>
  35. </div>
  36. <div class="extend_mod" v-if="canShowGA38()">
  37. <div class="info-box">
  38. <h3 class="title">
  39. <i class="el-icon-collection-tag"></i>
  40. 安全防范设施建设达标信息
  41. <el-button style="float: right;" @click="handleOrgAdd" type="primary" icon="el-icon-plus" size="small">
  42. 新增
  43. </el-button>
  44. </h3>
  45. <el-table
  46. border
  47. size="small"
  48. style="width: 98%;margin-top: 20px"
  49. v-loading="orgloading"
  50. :data="constructionList"
  51. @selection-change="handleOrgSelectionChange"
  52. >
  53. <el-table-column
  54. type="selection"
  55. width=""
  56. align="center"
  57. v-if="false"
  58. />
  59. <el-table-column type="index" width="70" label="序号" align="center"/>
  60. <el-table-column label="机构类型" align="center" prop="type">
  61. <template v-slot="scope">
  62. <dict-tag
  63. :options="dict.type.org_extend_type"
  64. :value="scope.row.type"
  65. />
  66. </template>
  67. </el-table-column>
  68. <el-table-column label="GA38标准" align="center" prop="standard">
  69. <template slot-scope="r"
  70. >{{ getLabel(dict.type.org_extend_standard, `${r.row.standard}`) }}
  71. </template>
  72. </el-table-column>
  73. <el-table-column
  74. label="达标日期/计划达标日期"
  75. align="center"
  76. prop="dateOfCompliance"
  77. width="220"
  78. >
  79. <template slot-scope="scope">
  80. <span> {{
  81. scope.row.standard === '3' ? formatTime(scope.row.dateOfComplete, "YYYY-MM-DD") : formatTime(scope.row.dateOfCompliance, "YYYY-MM-DD")
  82. }}</span>
  83. </template>
  84. </el-table-column>
  85. <el-table-column v-if="false"
  86. label="备注"
  87. align="center"
  88. prop="reason"
  89. width="280"
  90. >
  91. </el-table-column>
  92. <el-table-column
  93. v-if="false"
  94. label="机构id"
  95. align="center"
  96. prop="orgId"
  97. />
  98. <el-table-column
  99. label="操作"
  100. align="center"
  101. class-name="small-padding fixed-width"
  102. >
  103. <template slot-scope="scope">
  104. <el-button
  105. v-if="scope.row.certificate"
  106. size="mini"
  107. type="text"
  108. icon="el-icon-search"
  109. @click="downBusiness(scope.row.certificate)"
  110. >查看证书
  111. </el-button
  112. >
  113. <el-button
  114. size="mini"
  115. type="text"
  116. icon="el-icon-edit-outline"
  117. @click="handleOrgUpdate(scope.row)"
  118. >编辑
  119. </el-button
  120. >
  121. <el-button
  122. size="mini"
  123. type="text"
  124. icon="el-icon-delete"
  125. @click="handleOrgDelete(scope.row)"
  126. >删除
  127. </el-button
  128. >
  129. </template>
  130. </el-table-column>
  131. </el-table>
  132. </div>
  133. </div>
  134. <!--补充信息-->
  135. <div class="extend_mod ">
  136. <div class="info-box">
  137. <h3 class="title">
  138. <i class="el-icon-collection-tag"></i>
  139. 补充信息
  140. </h3>
  141. </div>
  142. <!--监控中心的补充信息-->
  143. <div class="info-box">
  144. <el-descriptions class="margin-top" :column="3" size="medium" border>
  145. <el-descriptions-item labelClassName="info_label_required" :contentStyle='contentStyle' :labelStyle='labelStyle' label="气象行政区域">
  146. <el-cascader
  147. clearable
  148. v-model="weatherAreaCode"
  149. :options="areaList"
  150. @change="selectArea"
  151. placeholder="请选择气象行政区域"
  152. ></el-cascader>
  153. </el-descriptions-item>
  154. <el-descriptions-item v-if="type === org_type.yewd" labelClassName="info_label_required" label="产权类型" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  155. <el-select
  156. clearable
  157. v-model="ownership"
  158. placeholder="请选择产权类型"
  159. >
  160. <el-option
  161. v-for="dict in dict.type.property_situation"
  162. :key="dict.value"
  163. :label="dict.label"
  164. :value="dict.value"
  165. ></el-option>
  166. </el-select>
  167. </el-descriptions-item>
  168. <el-descriptions-item v-if="type === org_type.yewd" labelClassName="info_label_required" label="所在位置" >
  169. <el-select
  170. clearable
  171. v-model="outsideArea"
  172. placeholder="请选择所在位置"
  173. >
  174. <el-option
  175. v-for="dict in dict.type.org_extend_is"
  176. :key="dict.value"
  177. :label="dict.label"
  178. :value="dict.value"
  179. ></el-option>
  180. </el-select>
  181. </el-descriptions-item>
  182. <el-descriptions-item v-if="type === org_type.yewd || type === org_type.zxywk" labelClassName="info_label_required" label="夜间值守方式" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  183. <el-select
  184. clearable
  185. v-model="dutyMode"
  186. placeholder="请选择夜间值守方式"
  187. >
  188. <el-option
  189. v-for="dict in dict.type.duty_options"
  190. :key="dict.value"
  191. :label="dict.label"
  192. :value="dict.value"
  193. ></el-option>
  194. </el-select>
  195. </el-descriptions-item>
  196. <el-descriptions-item v-if="type === org_type.yewd" labelClassName="info_label_required" label="是否设立保管箱库" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  197. <el-radio-group v-model="safeBox">
  198. <el-radio :label="1">是</el-radio>
  199. <el-radio :label="0">否</el-radio>
  200. </el-radio-group>
  201. </el-descriptions-item>
  202. </el-descriptions>
  203. <el-descriptions v-if="type === org_type.yewd" class="margin-top" :column="3" size="medium" border>
  204. <el-descriptions-item label="是否设立在行式自助银行" :contentStyle='contentStyle' :labelStyle='labelStyle' labelClassName="info_label_required">
  205. <el-radio-group v-model="selfServiceBank">
  206. <el-radio :label="1">是</el-radio>
  207. <el-radio :label="0">否</el-radio>
  208. </el-radio-group>
  209. </el-descriptions-item>
  210. </el-descriptions>
  211. <el-descriptions v-if="type === org_type.yewd || type === org_type.lhzz" class="margin-top" :column="3" size="medium" border>
  212. <el-descriptions-item label="穿墙式设备" labelClassName="info_label_required" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  213. <el-input-number
  214. v-model="wallPenetratingEquipment"
  215. controls-position="right"
  216. @change="handleChange"
  217. :min="0"
  218. :max="999"
  219. ></el-input-number>
  220. </el-descriptions-item>
  221. <el-descriptions-item label="大堂式设备"
  222. labelClassName="info_label_required" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  223. <el-input-number
  224. v-model="lobbyEquipment"
  225. controls-position="right"
  226. @change="handleChange"
  227. :min="0"
  228. :max="999"
  229. ></el-input-number>
  230. </el-descriptions-item>
  231. </el-descriptions>
  232. <!-- <el-descriptions v-if="type === org_type.lhzz" class="margin-top" :column="3" size="medium" border>
  233. <el-descriptions-item label="穿墙式设备" labelClassName="info_label_required" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  234. <el-input-number
  235. v-model="wallPenetratingEquipment"
  236. controls-position="right"
  237. @change="handleChange"
  238. :min="0"
  239. :max="999"
  240. ></el-input-number>
  241. </el-descriptions-item>
  242. <el-descriptions-item label="大堂式设备" labelClassName="info_label_required" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  243. <el-input-number
  244. v-model="lobbyEquipment"
  245. controls-position="right"
  246. @change="handleChange"
  247. :min="0"
  248. :max="999"
  249. ></el-input-number>
  250. </el-descriptions-item>
  251. </el-descriptions> -->
  252. <el-descriptions class="margin-top" :column="3" v-if="(type === org_type.yewd || type === org_type.zxywk)" size="medium" border>
  253. <el-descriptions-item label="是否设立业务库" :contentStyle='contentStyle' :labelStyle='labelStyle' labelClassName="info_label_required">
  254. <el-radio-group v-model="businessLibrary">
  255. <el-radio :label="1">是</el-radio>
  256. <el-radio :label="0">否</el-radio>
  257. </el-radio-group>
  258. </el-descriptions-item>
  259. </el-descriptions>
  260. <el-descriptions class="margin-top" v-if="this.businessLibrary==1" :column="3" size="medium" border>
  261. <el-descriptions-item label="业务库类型" :contentStyle='contentStyle' :labelStyle='labelStyle' labelClassName="info_label_required">
  262. <el-select clearable v-model="businessLibraryType" placeholder="请选择业务库类型" >
  263. <el-option
  264. v-for="dict in dict.type.business_library_type"
  265. :key="dict.value"
  266. :label="dict.label"
  267. :value="dict.value"
  268. ></el-option>
  269. </el-select>
  270. </el-descriptions-item>
  271. </el-descriptions>
  272. <el-descriptions class="margin-top" :column="3" v-if="type === org_type.yewd" size="medium" border>
  273. <el-descriptions-item label="是否配备保安人员" :contentStyle='contentStyle' :labelStyle='labelStyle' labelClassName="info_label_required" >
  274. <el-radio-group v-model="askari">
  275. <el-radio :label="1">是</el-radio>
  276. <el-radio :label="0">否</el-radio>
  277. </el-radio-group>
  278. </el-descriptions-item>
  279. </el-descriptions>
  280. <el-descriptions class="margin-top" :column="3" v-if="this.askari==1" size="medium" border>
  281. <el-descriptions-item labelClassName="info_label_required" label="内部保安人数" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  282. <el-input-number
  283. v-model="innerCount"
  284. controls-position="right"
  285. @change="handleChange"
  286. :min="0"
  287. :max="999"
  288. ></el-input-number>
  289. </el-descriptions-item>
  290. <el-descriptions-item labelClassName="info_label_required" label="外聘保安人数" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  291. <el-input-number
  292. v-model="outsideCount"
  293. controls-position="right"
  294. @change="handleChange"
  295. :min="0"
  296. :max="999"
  297. ></el-input-number>
  298. </el-descriptions-item>
  299. <el-descriptions-item labelClassName="info_label_required" label="是否取得保安证书">
  300. <el-radio-group v-model="isAskariCertificate">
  301. <el-radio :label="1">是</el-radio>
  302. <el-radio :label="0">否</el-radio>
  303. </el-radio-group>
  304. </el-descriptions-item>
  305. <el-descriptions-item v-if="isAskariCertificate==1" labelClassName="info_label_required" label="上传保安证" :contentStyle='contentStyle' :labelStyle='labelStyle'>
  306. <image-upload
  307. v-model="askariCertificate"
  308. :limit="5"
  309. :value="askariCertificate"
  310. @input="getImgUrl"
  311. ></image-upload>
  312. </el-descriptions-item>
  313. </el-descriptions>
  314. <el-descriptions class="margin-top" :column="3" size="medium" border>
  315. <el-descriptions-item v-if="type === org_type.jkzx" labelClassName="info_label_required" label="建设时间">
  316. <el-date-picker
  317. clearable
  318. v-model="constructionTime"
  319. type="date"
  320. value-format="yyyy-MM-dd HH:mm:ss"
  321. placeholder="请选择建设时间"
  322. >
  323. </el-date-picker>
  324. </el-descriptions-item>
  325. <el-descriptions-item v-if="type === org_type.jkzx" labelClassName="info_label_required" label="最近一次改造时间">
  326. <el-date-picker
  327. clearable
  328. v-model="lastUpdateTime"
  329. type="date"
  330. value-format="yyyy-MM-dd HH:mm:ss"
  331. placeholder="请选择最近一次改造时间"
  332. >
  333. </el-date-picker>
  334. </el-descriptions-item>
  335. <el-descriptions-item v-if="type === org_type.jkzx" labelClassName="info_label_required" label="系统平台品牌">
  336. <el-select
  337. clearable
  338. v-model="platformBrand"
  339. placeholder="请选择系统平台品牌"
  340. >
  341. <el-option
  342. v-for="dict in dict.type.org_platform_brand"
  343. :key="dict.value"
  344. :label="dict.label"
  345. :value="dict.value"
  346. ></el-option>
  347. </el-select>
  348. </el-descriptions-item>
  349. <el-descriptions-item v-if="type === org_type.jkzx" :contentStyle='contentStyle' :labelStyle='labelStyle'
  350. labelClassName="info_label_required" label="全辖离行式加钞间出入口数量">
  351. <el-input-number
  352. v-model="cashAddingRoom"
  353. controls-position="right"
  354. @change="handleChange"
  355. :min="0"
  356. :max="999"
  357. ></el-input-number>
  358. </el-descriptions-item>
  359. <el-descriptions-item v-if="type === org_type.jkzx" :contentStyle='contentStyle' :labelStyle='labelStyle'
  360. labelClassName="info_label_required" label="可远程控制和实时授权出入口数量(离行式)">
  361. <el-input-number
  362. v-model="cashAddingRoomControlCount"
  363. controls-position="right"
  364. @change="handleChange"
  365. :min="0"
  366. :max="cashAddingRoom"
  367. ></el-input-number>
  368. </el-descriptions-item>
  369. <el-descriptions-item v-if="type === org_type.jkzx" labelClassName="info_label_required" label="全辖摄像头总路数">
  370. <el-input-number
  371. v-model="totalCameraCount"
  372. controls-position="right"
  373. @change="handleChange"
  374. :min="0"
  375. :max="999999"
  376. ></el-input-number>
  377. </el-descriptions-item>
  378. <!-- <el-descriptions-item label="出入口远程控制与授权" v-if="(type === org_type.jkzx)" labelClassName="info_label_required" >
  379. <el-radio-group v-model="remoteControl">
  380. <el-radio :label="1">是</el-radio>
  381. <el-radio :label="0">否</el-radio>
  382. </el-radio-group>
  383. </el-descriptions-item>-->
  384. <el-descriptions-item label="全辖业务库防控隔离门出入口数量" v-if="type === org_type.jkzx" labelClassName="info_label_required" >
  385. <el-input-number
  386. v-model="remoteCount"
  387. controls-position="right"
  388. @change="handleChange"
  389. :min="0"
  390. :max="999"
  391. ></el-input-number>
  392. </el-descriptions-item>
  393. <el-descriptions-item label="可远程控制和实时授权出入口数量(业务库)" v-if="type === org_type.jkzx" labelClassName="info_label_required" >
  394. <el-input-number
  395. v-model="remoteControlCount"
  396. controls-position="right"
  397. @change="handleChange"
  398. :min="0"
  399. :max="remoteCount"
  400. ></el-input-number>
  401. </el-descriptions-item>
  402. <el-descriptions-item v-if="type === org_type.jkzx" labelClassName="info_label_required" label="全辖高清摄像头路数">
  403. <el-input-number
  404. v-model="hdCameraCount"
  405. controls-position="right"
  406. @change="handleChange"
  407. :min="0"
  408. :max="999999"
  409. ></el-input-number>
  410. </el-descriptions-item>
  411. </el-descriptions>
  412. </div>
  413. </div>
  414. <div style="
  415. line-height: 50px;
  416. width: 100%;
  417. height: 55px;
  418. text-align: center;
  419. background: #ffffff;
  420. z-index: 9999;">
  421. <el-button type="primary" @click="saveExtend"
  422. >提交
  423. </el-button
  424. >
  425. <el-button type="primary" @click="nosaveExtend"
  426. >取消
  427. </el-button
  428. >
  429. </div>
  430. </div>
  431. <DialogCom
  432. :title="orgtitle"
  433. :visible.sync="orgopen"
  434. @Close="closePictrue"
  435. width="500px"
  436. append-to-body
  437. >
  438. <el-form
  439. ref="orgform"
  440. :model="orgform"
  441. label-width="130px"
  442. @close="orgcancel"
  443. :rules="rules"
  444. >
  445. <el-form-item label="机构类型" prop="type">
  446. <el-select
  447. prop="type"
  448. label="机构类型"
  449. v-model="orgform.type"
  450. placeholder="请选择机构类型"
  451. clearable
  452. >
  453. <el-option
  454. v-for="dict in getGA38TypeByOrgType"
  455. :key="dict.value"
  456. :label="dict.label"
  457. :value="dict.value"
  458. />
  459. </el-select>
  460. <!-- v-for="dict in dict.type.org_extend_type" -->
  461. </el-form-item>
  462. <el-form-item label="GA38标准" prop="standard">
  463. <el-select
  464. prop="planType"
  465. label="标准"
  466. v-model="orgform.standard"
  467. placeholder="请选择标准"
  468. clearable
  469. >
  470. <el-option
  471. v-for="dict in dict.type.org_extend_standard"
  472. :key="dict.value"
  473. :label="dict.label"
  474. :value="dict.value"
  475. />
  476. </el-select>
  477. </el-form-item>
  478. <el-form-item v-show="orgform.standard === '2' || orgform.standard === '1'" label="达标日期"
  479. prop="dateOfCompliance">
  480. <el-date-picker
  481. clearable
  482. v-model="orgform.dateOfCompliance"
  483. type="date"
  484. value-format="yyyy-MM-dd HH:mm:ss"
  485. placeholder="请选择达标日期"
  486. >
  487. </el-date-picker>
  488. </el-form-item>
  489. <el-form-item v-show="orgform.standard === '3'" label="计划达标日期">
  490. <el-date-picker
  491. clearable
  492. v-model="orgform.dateOfComplete"
  493. type="date"
  494. value-format="yyyy-MM-dd"
  495. placeholder="请选择计划达标日期"
  496. >
  497. </el-date-picker>
  498. </el-form-item>
  499. <el-form-item v-show="orgform.standard === '3'" label="未达标部位或项目">
  500. <k-textarea
  501. v-model="orgform.reason"
  502. :length="200"
  503. :row="10"
  504. show-word-limit
  505. placeholder="请输入未达GA38-2021标准的部位或者项目"
  506. />
  507. </el-form-item>
  508. <el-form-item label="上传证书" v-show="orgform.standard !== '3'" prop="certificate">
  509. <div class="image-container" style="margin-left: 20px">
  510. <p style="font-size: 12px; color: #999">上传安全防范设施合格证</p>
  511. <!-- <image-upload
  512. :limit="5"
  513. :fileSize="5"
  514. :value="orgform.certificate"
  515. @input="uploadorgSuccess"
  516. ></image-upload> -->
  517. <imgs-upload :limit="5" v-model="orgform.certificate" :fileSize="5"></imgs-upload>
  518. </div>
  519. </el-form-item>
  520. <el-form-item v-if="false" label="机构id" prop="orgId">
  521. <el-input v-model="orgform.orgId" placeholder="请输入机构id"/>
  522. </el-form-item>
  523. </el-form>
  524. <div slot="footer" class="dialog-footer">
  525. <el-button type="primary" @click="submitOrgForm">确 定</el-button>
  526. <el-button @click="orgcancel">取 消</el-button>
  527. </div>
  528. </DialogCom>
  529. <div slot="footer" class="dialog-footer" style="height: 50px"></div>
  530. <el-image-viewer
  531. v-if="imageViewer"
  532. :on-close="closeImgViewer"
  533. :url-list="srcList"
  534. />
  535. </div>
  536. </template>
  537. <script>
  538. import ImgsUpload from "@/components/ImgsUpload";
  539. import uploadpng from "@/assets/images/upload.png";
  540. import uplpng from "@/assets/images/upl.png";
  541. import request from "@/utils/request";
  542. import {statusOptions, getLabel} from "./../../commonOption";
  543. import {
  544. listExtend,
  545. getExtend,
  546. addExtend,
  547. updateExtend,
  548. delExtend,
  549. getExtendByOrgId,
  550. uploadFile,
  551. } from "@/api/system/extend";
  552. import {
  553. listDept,
  554. getDept,
  555. delDept,
  556. addDept,
  557. updateDept,
  558. listDeptExcludeChild,
  559. } from "@/api/system/dept";
  560. import {
  561. listOrgPhysicalDefenseConstruction,
  562. getOrgPhysicalDefenseConstruction,
  563. addOrgPhysicalDefenseConstruction,
  564. updateOrgPhysicalDefenseConstruction,
  565. delOrgPhysicalDefenseConstruction,
  566. } from "@/api/system/OrgPhysicalDefenseConstruction";
  567. import {selectCityInfoVoList} from "@/api/core/weather";
  568. import TreeNodeDialogVue from "../../tool/build/TreeNodeDialog.vue";
  569. import KTextarea from "@/components/common/textarea.vue";
  570. export default {
  571. dicts: [
  572. "duty_options",
  573. "sys_org_type",
  574. "org_platform_brand",
  575. "org_platform_supplier_brand",
  576. "org_extend_type",
  577. "business_library_type",
  578. "reality_org_type",
  579. "org_extend_standard",
  580. "org_extend_business_library_standard",
  581. "org_extend_self_service_bank_standard",
  582. "org_extend_detached_standard",
  583. "org_extend_is",
  584. "property_situation",
  585. ],
  586. fillter: {},
  587. components: {
  588. KTextarea,
  589. ImgsUpload,
  590. "el-image-viewer": () =>
  591. import("element-ui/packages/image/src/image-viewer"),
  592. },
  593. props: [],
  594. data() {
  595. let formatRule = function (rule, value, callback) {
  596. console.log(value, "value");
  597. if (!value.length) {
  598. callback(new Error("证书为必填项"));
  599. } else {
  600. callback();
  601. }
  602. };
  603. return {
  604. //内容样式
  605. contentStyle: {
  606. 'text-align': 'left',
  607. 'width': '300px'
  608. },
  609. //label样式
  610. labelStyle: { 'width': '200px' }
  611. ,
  612. org_type: {
  613. jkzx: '10',
  614. yewd: '4',
  615. lhzz: '5',
  616. zxywk: '6',
  617. },
  618. reqmsg: false,
  619. imageViewer: false,
  620. //表单验证
  621. rules: {
  622. type: [{required: true, message: "请选择机构类型", trigger: "change"}],
  623. standard: [{required: true, message: "请选择标准", trigger: "change"}],
  624. //certificate: [{required: true, message: "请选择上传证书", trigger: "change"}],
  625. },
  626. remoteCountoptions: [
  627. {label: "0", value: 0},
  628. {label: "1", value: 1},
  629. {label: "2", value: 2},
  630. {label: "3", value: 3},
  631. ],
  632. cashAddingRoomoptions: [
  633. {label: "0", value: 0},
  634. {label: "1", value: 1},
  635. {label: "2", value: 2},
  636. {label: "3", value: 3},
  637. ],
  638. //基础信息key
  639. infoKeys: [
  640. {label: "机构名称", key: "name"},
  641. {label: "机构简称", key: "shortName"},
  642. {label: "机构地址", key: "address"},
  643. {label: "排序号", key: "sort"},
  644. {label: "更新时间", key: "updateTime"},
  645. {label: "同步时间", key: "createTime"},
  646. ],
  647. innerCount: 0,
  648. outsideCount: 0,
  649. safeBox: null,
  650. remoteCount: 0,
  651. remoteControlCount: 0,
  652. cashAddingRoom: 0,
  653. cashAddingRoomControlCount: 0,
  654. type: null,
  655. isLock: null,
  656. dataInfo: [],
  657. //机构补充信息
  658. extendId: null,
  659. orgType: null,
  660. weatherAreaCode: null,
  661. premisesArea: null,
  662. ownership: null,
  663. outsideArea: null,
  664. askari: null,
  665. businessLibrary: null,
  666. businessLibraryType: null,
  667. dutyMode: null,
  668. //remoteControl: null,
  669. selfServiceBank: null,
  670. lobbyEquipment: 0,
  671. wallPenetratingEquipment: 0,
  672. platformBrand: null,
  673. platformSupplierBrand: null,
  674. constructionTime: null,
  675. lastUpdateTime: null,
  676. detachedLobbyEquipment: null,
  677. detachedWallPenetratingEquipment: null,
  678. cashAddingRoomRemoteControl: null,
  679. source: null,
  680. //是否取得保安证书
  681. isAskariCertificate: null,
  682. askariCertificate: null,
  683. hdCameraCount: 0,
  684. totalCameraCount: 0,
  685. certificate: null,
  686. //机构建设数据
  687. // 遮罩层
  688. orgloading: true,
  689. businessloading: true,
  690. // 选中数组
  691. orgids: [],
  692. // 选中数组
  693. Bankids: [],
  694. Businessids: [],
  695. // 非单个停用
  696. single: true,
  697. // 非多个停用
  698. multiple: true,
  699. // 显示搜索条件
  700. showSearch: true,
  701. // 总条数
  702. total: 0,
  703. // 机构物防建设表格数据
  704. constructionList: [],
  705. // 银行物防建设表格数据
  706. BankPhysicalDefenseConstructionList: [],
  707. detachedPhysicalDefenseConstructionList: [],
  708. BusinessPhysicalDefenseConstructionList: [],
  709. // 弹出层标题
  710. orgtitle: "",
  711. Businesstitle: "",
  712. // 弹出层标题
  713. Banktitle: "",
  714. detachedtitle: "",
  715. detachedloading: false,
  716. // 是否显示弹出层
  717. Bankopen: false,
  718. detachedopen: false,
  719. //图片预览
  720. openUrl: null,
  721. srcList: [],
  722. openTitle: null,
  723. openVisible: false,
  724. // 表单参数
  725. Bankform: {},
  726. detachedform: {},
  727. Businessform: {},
  728. // 是否显示弹出层
  729. Businessopen: false,
  730. orgopen: false,
  731. // 表单参数
  732. orgform: {},
  733. //2个图片信息
  734. uploadp: uploadpng,
  735. uplp: uplpng,
  736. //下拉框生成信息
  737. orgTypes: [
  738. {label: "营业网点", value: 0},
  739. {label: "在行式自助银行", value: 1},
  740. {label: "离行式自助银行", value: 2},
  741. {label: "中心业务库", value: 3},
  742. {label: "网点业务库", value: 4},
  743. {label: "保管箱库", value: 5},
  744. {label: "监控中心", value: 6},
  745. ],
  746. businessLibraryTypes: {
  747. businessLibraryTyp1: {label: "1类业务库", value: 1},
  748. businessLibraryTyp2: {label: "2类业务库", value: 2},
  749. businessLibraryTyp3: {label: "3类业务库", value: 3},
  750. },
  751. platformBrands: {
  752. platformBrand1: {label: "品牌1", value: 0},
  753. platformBrand2: {label: "品牌2", value: 1},
  754. },
  755. platformSupplierBrands: {
  756. platformSupplierBrand1: {label: "品牌1", value: 0},
  757. platformSupplierBrand2: {label: "品牌2", value: 1},
  758. },
  759. prop: "",
  760. propItem: "",
  761. row: "",
  762. areaList: [],
  763. imgs: [],
  764. Businessimgs: [],
  765. Bankimgs: [],
  766. orgimgs: [],
  767. detachedimgs: [],
  768. };
  769. },
  770. computed: {
  771. getLabels() {
  772. return function (value) {
  773. const option = this.orgTypes.filter((item) => item.value == value);
  774. // console.log(option[0].label,"option")
  775. return option ? option[0].label : "";
  776. };
  777. },
  778. getGA38TypeByOrgType() {
  779. let tempArry = [];
  780. // 上传GA38的机构的机构类型是 营业网点
  781. if(this.type=="4")
  782. {
  783. this.dict.type.org_extend_type.forEach(x=>{
  784. if (x.value == 1 || x.value == 2 || x.value == 5 || x.value == 6) {
  785. tempArry.push(x);
  786. }
  787. });
  788. }
  789. // 上传GA38的机构的机构类型是 离行自助银行
  790. else if(this.type=="5")
  791. {
  792. this.dict.type.org_extend_type.forEach(x=>{
  793. if (x.value == 3) {
  794. tempArry.push(x);
  795. }
  796. });
  797. }
  798. // 上传GA38的机构的机构类型是 中心业务库
  799. else if(this.type=="6")
  800. {
  801. this.dict.type.org_extend_type.forEach(x=>{
  802. if (x.value == 4) {
  803. tempArry.push(x);
  804. }
  805. });
  806. }
  807. // 上传GA38的机构的机构类型是 监控中心
  808. else if(this.type=="10")
  809. {
  810. this.dict.type.org_extend_type.forEach(x=>{
  811. if (x.value == 7) {
  812. tempArry.push(x);
  813. }
  814. });
  815. }
  816. else{
  817. tempArry=this.dict.type.org_extend_type;
  818. }
  819. // console.log("computed getUserOrgType",tempArry);
  820. return tempArry;
  821. },
  822. switchModel: {
  823. get() {
  824. return this.switchValue === 1; // 将0转换为false,1转换为true
  825. },
  826. set(value) {
  827. this.switchValue = value ? 1 : 0; // 将false转换为0,true转换为1
  828. },
  829. },
  830. },
  831. watch: {
  832. "detachedform.certificateEvidence"(newValue) {
  833. if (
  834. newValue === 1 &&
  835. this.detachedform.certificate == null &&
  836. this.detachedimgs.length == 0
  837. ) {
  838. this.reqmsg = true;
  839. }
  840. if (newValue === 0) {
  841. this.reqmsg = false;
  842. }
  843. },
  844. "Bankform.certificateEvidence"(newValue) {
  845. // console.log(this.Bankimgs.length,"this.imgs")
  846. // console.log(this.Bankform.certificate,"Bankform.certificate")
  847. if (
  848. newValue === 1 &&
  849. this.Bankform.certificate == null &&
  850. this.Bankimgs.length == 0
  851. ) {
  852. this.reqmsg = true;
  853. }
  854. if (newValue === 0) {
  855. this.reqmsg = false;
  856. }
  857. },
  858. "Businessform.certificateEvidence"(newValue) {
  859. if (
  860. newValue === 1 &&
  861. this.Businessform.certificate == null &&
  862. this.Businessimgs.length === 0
  863. ) {
  864. this.reqmsg = true;
  865. }
  866. if (newValue === 0) {
  867. this.reqmsg = false;
  868. }
  869. },
  870. "orgform.certificateEvidence"(newValue) {
  871. if (
  872. newValue === 1 &&
  873. this.orgform.certificate == null &&
  874. this.orgimgs.length === 0
  875. ) {
  876. this.reqmsg = true;
  877. }
  878. if (newValue === 0) {
  879. this.reqmsg = false;
  880. }
  881. },
  882. // selfServiceBank(newValue){
  883. // if (newValue==0){
  884. // this.wallPenetratingEquipment=null;
  885. // this.lobbyEquipment=null;
  886. // }
  887. // },
  888. businessLibrary(newValue){
  889. if (newValue==0){
  890. this.businessLibraryType=null;
  891. }
  892. },
  893. askari(newValue){
  894. console.log("askari1",newValue)
  895. if (newValue==0){
  896. console.log("askari2",newValue)
  897. this.innerCount=null;
  898. this.outsideCount=null;
  899. this.isAskariCertificate=null;
  900. this.askariCertificate=null;
  901. }
  902. },
  903. isAskariCertificate(newValue)
  904. {
  905. if(!newValue){
  906. this.askariCertificate=null;
  907. }
  908. }
  909. },
  910. created() {
  911. this.getOrgInfo();
  912. this.getExtendInfo();
  913. this.getOrgPhysicalDefenseConstructionInfo();
  914. this.getBankPhysicalDefenseConstructionInfo();
  915. this.getBusinessPhysicalDefenseConstructionInfo();
  916. this.getdetachedPhysicalDefenseConstructionInfo();
  917. this.getAreaList();
  918. },
  919. mounted() {
  920. },
  921. methods: {
  922. closePictrue() {
  923. this.orgform.certificate = null;
  924. },
  925. closeImgViewer() {
  926. this.imageViewer = false;
  927. this.srcList = [];
  928. },
  929. isreq(rule, value, callback) {
  930. if (this.reqmsg) {
  931. callback(new Error("证书为必填项"));
  932. } else {
  933. callback();
  934. }
  935. },
  936. getImgUrl(img) {
  937. this.imgs.push(img);
  938. console.log(this.imgs, "imgs");
  939. },
  940. getAreaList() {
  941. selectCityInfoVoList({}).then((response) => {
  942. this.areaList = response.data;
  943. });
  944. },
  945. selectArea(value) {
  946. this.weatherAreaCode = value[1];
  947. },
  948. downBusiness(file) {
  949. let array = file.split(",");
  950. this.openTitle = "证书";
  951. this.openUrl = array[0];
  952. this.srcList = array;
  953. this.openVisible = true;
  954. this.imageViewer = true;
  955. // for (let i = 0; i < array.length; i++) {
  956. // window.open(array[i]);
  957. // }
  958. },
  959. //证书上传
  960. uploadBusinessSuccess(img) {
  961. this.Businessimgs.push(img);
  962. this.reqmsg = false;
  963. },
  964. uploadBankSuccess(img) {
  965. this.Bankimgs.push(img);
  966. this.reqmsg = false;
  967. },
  968. uploadorgSuccess(img) {
  969. this.orgimgs.push(img);
  970. this.reqmsg = false;
  971. },
  972. uploaddetachedSuccess(img) {
  973. this.detachedimgs.push(img);
  974. this.reqmsg = false;
  975. },
  976. handleInput() {
  977. // 使用正则表达式过滤输入,只保留数字和小数点
  978. // this.premisesArea = this.premisesArea.replace(/[^0-9.]/g, "");
  979. // 限制只能输入1到999999之间的数字
  980. let value = parseInt(this.premisesArea, 10); // 将输入的值转为整数
  981. if (isNaN(value) || value < 1 || value > 999999) {
  982. // 判断是否在范围内
  983. this.premisesArea = ""; // 不在范围内则清空输入的值
  984. } else {
  985. this.premisesArea = value.toString(); // 在范围内则保留输入的值
  986. }
  987. },
  988. handleInput2() {
  989. // 使用正则表达式过滤输入,只保留数字和小数点
  990. this.weatherAreaCode = this.weatherAreaCode.replace(/[^a-zA-Z0-9]/g, "");
  991. },
  992. request() {
  993. },
  994. handleChange(value) {
  995. },
  996. getOrgInfo() {
  997. getDept(this.$route.params.id).then((data) => {
  998. // console.log(data.data);
  999. if (!data.data) return;
  1000. let res = data.data;
  1001. this.dataInfo = this.infoKeys.map((v, i) => {
  1002. // console.log(v, res[v.key], "vvvvv");
  1003. v.value = res[v.key];
  1004. return v;
  1005. });
  1006. this.type = data.data.type;
  1007. this.isLock = data.data.isLock;
  1008. this.source = data.data.source;
  1009. // console.log(this.dataInfo, "info");
  1010. });
  1011. },
  1012. getExtendInfo() {
  1013. getExtendByOrgId(this.$route.params.id).then((data) => {
  1014. console.log(data.data);
  1015. if (data.data != null) {
  1016. this.safeBox = data.data.safeBox;
  1017. this.innerCount = data.data.innerCount;
  1018. this.outsideCount = data.data.outsideCount;
  1019. this.cashAddingRoom = data.data.cashAddingRoom;
  1020. this.cashAddingRoomControlCount = data.data.cashAddingRoomControlCount;
  1021. this.remoteCount = data.data.remoteCount;
  1022. this.remoteControlCount = data.data.remoteControlCount;
  1023. this.orgType = data.data.orgType;
  1024. this.weatherAreaCode = data.data.weatherAreaCode;
  1025. this.premisesArea = data.data.premisesArea;
  1026. this.ownership = data.data.ownership;
  1027. this.outsideArea = data.data.outsideArea;
  1028. this.askari = data.data.askari;
  1029. //this.remoteControl = data.data.remoteControl;
  1030. this.selfServiceBank = data.data.selfServiceBank;
  1031. this.businessLibrary = data.data.businessLibrary;
  1032. this.lobbyEquipment = data.data.lobbyEquipment;
  1033. this.wallPenetratingEquipment = data.data.wallPenetratingEquipment;
  1034. this.askariCertificate = data.data.askariCertificate;
  1035. if (this.askariCertificate){
  1036. this.isAskariCertificate=1;
  1037. }else {
  1038. this.isAskariCertificate=0;
  1039. }
  1040. this.extendId = data.data.id;
  1041. this.constructionTime = data.data.constructionTime;
  1042. this.lastUpdateTime = data.data.lastUpdateTime;
  1043. this.platformBrand = data.data.platformBrand;
  1044. this.platformSupplierBrand = data.data.platformSupplierBrand;
  1045. this.businessLibraryType = data.data.businessLibraryType;
  1046. this.dutyMode = data.data.dutyMode;
  1047. this.detachedLobbyEquipment = data.data.detachedLobbyEquipment;
  1048. this.detachedWallPenetratingEquipment =
  1049. data.data.detachedWallPenetratingEquipment;
  1050. this.cashAddingRoomRemoteControl =
  1051. data.data.cashAddingRoomRemoteControl;
  1052. this.hdCameraCount = data.data.hdCameraCount ? data.data.hdCameraCount : 0;
  1053. this.totalCameraCount = data.data.totalCameraCount ? data.data.totalCameraCount : 0;
  1054. // if (
  1055. // this.askariCertificate &&
  1056. // this.askariCertificate.trim() &&
  1057. // this.askariCertificate.includes(",")
  1058. // ) {
  1059. // this.imgs = this.askariCertificate.split(",");
  1060. // } else if (
  1061. // this.askariCertificate &&
  1062. // this.askariCertificate.trim() &&
  1063. // this.askariCertificate.includes(".")
  1064. // ) {
  1065. // this.imgs.push(this.askariCertificate);
  1066. // }
  1067. // console.log(this.extendId);
  1068. }
  1069. });
  1070. },
  1071. getLabel(options, value) {
  1072. return getLabel(options, value);
  1073. },
  1074. getOrgPhysicalDefenseConstructionInfo() {
  1075. this.orgloading = true;
  1076. let dat = {orgId: this.$route.params.id};
  1077. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1078. console.log("机构信息获取成功");
  1079. this.constructionList = data.rows;
  1080. this.orgloading = false;
  1081. });
  1082. },
  1083. getBankPhysicalDefenseConstructionInfo() {
  1084. this.bankloading = true;
  1085. let dat = {orgId: this.$route.params.id, type: 3};
  1086. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1087. // console.log(data);
  1088. this.BankPhysicalDefenseConstructionList = data.rows;
  1089. this.bankloading = false;
  1090. });
  1091. },
  1092. getdetachedPhysicalDefenseConstructionInfo() {
  1093. this.detachedloading = true;
  1094. let dat = {orgId: this.$route.params.id, type: 4};
  1095. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1096. // console.log(data);
  1097. this.detachedPhysicalDefenseConstructionList = data.rows;
  1098. this.detachedloading = false;
  1099. });
  1100. },
  1101. getBusinessPhysicalDefenseConstructionInfo() {
  1102. this.businessloading = true;
  1103. let dat = {orgId: this.$route.params.id, type: 2};
  1104. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1105. // console.log(data);
  1106. this.BusinessPhysicalDefenseConstructionList = data.rows;
  1107. this.businessloading = false;
  1108. });
  1109. },
  1110. // 取消按钮
  1111. Businesscancel() {
  1112. this.Businessopen = false;
  1113. this.Businessreset();
  1114. },
  1115. // 表单重置
  1116. Businessreset() {
  1117. this.Businessform = {
  1118. id: null,
  1119. standard: null,
  1120. dateOfCompliance: null,
  1121. certificateEvidence: null,
  1122. certificate: null,
  1123. evidence: null,
  1124. createTime: null,
  1125. updateTime: null,
  1126. createBy: null,
  1127. updateBy: null,
  1128. orgId: null,
  1129. };
  1130. this.reqmsg = false;
  1131. this.resetForm("Businessform");
  1132. },
  1133. // 多选框选中数据
  1134. handleBusinessSelectionChange(selection) {
  1135. this.Businessids = selection.map((item) => item.id);
  1136. this.single = selection.length !== 1;
  1137. this.multiple = !selection.length;
  1138. },
  1139. /** 新增按钮操作 */
  1140. handleBusinessAdd() {
  1141. this.Businessreset();
  1142. this.Businessopen = true;
  1143. this.Businesstitle = "新增安全防范设施建设达标信息";
  1144. },
  1145. /** 编辑按钮操作 */
  1146. handleBusinessUpdate(row) {
  1147. this.Businessreset();
  1148. const id = row.id || this.Businessids;
  1149. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1150. // console.log(response.data,"response.data")
  1151. this.Businessform = response.data;
  1152. // this.Businessform.certificateEvidence=parseInt(response.data.certificateEvidence);
  1153. this.Businessopen = true;
  1154. this.Businesstitle = "编辑安全防范设施建设达标信息";
  1155. });
  1156. },
  1157. /** 提交按钮 */
  1158. submitBusinessForm() {
  1159. if (this.Businessimgs.length > 0) {
  1160. this.Businessform.certificate =
  1161. this.Businessimgs[this.Businessimgs.length - 1].toString(",");
  1162. }
  1163. this.$refs.Businessform.validate((valid) => {
  1164. if (valid) {
  1165. // 表单验证通过,提交数据或执行其他操作
  1166. this.Businessform.orgId = this.$route.params.id;
  1167. this.Businessform.type = 2;
  1168. if (this.Businessform.id != null) {
  1169. // console.log(this.Businessform,"this.Businessform")
  1170. updateOrgPhysicalDefenseConstruction(this.Businessform).then(
  1171. (response) => {
  1172. this.$modal.msgSuccess("编辑成功");
  1173. this.Businessopen = false;
  1174. this.getBusinessPhysicalDefenseConstructionInfo();
  1175. }
  1176. );
  1177. } else {
  1178. addOrgPhysicalDefenseConstruction(this.Businessform).then(
  1179. (response) => {
  1180. this.$modal.msgSuccess("新增成功");
  1181. this.Businessopen = false;
  1182. this.getBusinessPhysicalDefenseConstructionInfo();
  1183. }
  1184. );
  1185. }
  1186. this.Businessimgs = [];
  1187. } else {
  1188. // 表单验证未通过,显示错误信息
  1189. }
  1190. });
  1191. // this.$refs["Businessform"].validate((valid) => {
  1192. // if (valid) {
  1193. // }
  1194. // });
  1195. },
  1196. /** 删除按钮操作 */
  1197. handleBusinessDelete(row) {
  1198. const Businessids = row.id || this.Businessids;
  1199. this.$modal
  1200. .confirm("确认删除?")
  1201. .then(function () {
  1202. return delOrgPhysicalDefenseConstruction(Businessids);
  1203. })
  1204. .then(() => {
  1205. this.getBusinessPhysicalDefenseConstructionInfo();
  1206. this.$modal.msgSuccess("删除成功");
  1207. })
  1208. .catch(() => {
  1209. });
  1210. },
  1211. // resetimg(certificate){
  1212. // this.Bankform.certificate=0;
  1213. // },
  1214. // 取消按钮
  1215. Bankcancel() {
  1216. this.Bankopen = false;
  1217. this.Bankreset();
  1218. },
  1219. // 表单重置
  1220. Bankreset() {
  1221. this.Bankform = {
  1222. id: null,
  1223. standard: null,
  1224. dateOfCompliance: null,
  1225. certificateEvidence: null,
  1226. certificate: null,
  1227. evidence: null,
  1228. createTime: null,
  1229. updateTime: null,
  1230. createBy: null,
  1231. updateBy: null,
  1232. orgId: null,
  1233. };
  1234. this.reqmsg = false;
  1235. this.resetForm("Bankform");
  1236. },
  1237. // 多选框选中数据
  1238. handleBankSelectionChange(selection) {
  1239. this.Bankids = selection.map((item) => item.id);
  1240. this.single = selection.length !== 1;
  1241. this.multiple = !selection.length;
  1242. },
  1243. /** 新增按钮操作 */
  1244. handleBankAdd() {
  1245. this.Bankreset();
  1246. this.Bankopen = true;
  1247. this.Banktitle = "新增安全防范设施建设达标信息";
  1248. },
  1249. /** 编辑按钮操作 */
  1250. handleBankUpdate(row) {
  1251. this.Bankreset();
  1252. const id = row.id || this.Bankids;
  1253. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1254. this.Bankform = response.data;
  1255. // this.Bankform.certificateEvidence=parseInt(response.data.certificateEvidence);
  1256. this.Bankopen = true;
  1257. this.Banktitle = "编辑安全防范设施建设达标信息";
  1258. });
  1259. },
  1260. /** 提交按钮 */
  1261. submitBankForm() {
  1262. if (this.Bankimgs.length > 0) {
  1263. this.Bankform.certificate =
  1264. this.Bankimgs[this.Bankimgs.length - 1].toString(",");
  1265. }
  1266. this.$refs.Bankform.validate((valid) => {
  1267. if (valid) {
  1268. // 表单验证通过,提交数据或执行其他操作
  1269. this.Bankform.orgId = this.$route.params.id;
  1270. this.Bankform.type = 3;
  1271. if (this.Bankform.id != null) {
  1272. updateOrgPhysicalDefenseConstruction(this.Bankform).then(
  1273. (response) => {
  1274. this.$modal.msgSuccess("编辑成功");
  1275. this.Bankopen = false;
  1276. this.getBankPhysicalDefenseConstructionInfo();
  1277. }
  1278. );
  1279. } else {
  1280. addOrgPhysicalDefenseConstruction(this.Bankform).then(
  1281. (response) => {
  1282. this.$modal.msgSuccess("新增成功");
  1283. this.Bankopen = false;
  1284. this.getBankPhysicalDefenseConstructionInfo();
  1285. }
  1286. );
  1287. }
  1288. this.Bankimgs = [];
  1289. } else {
  1290. // 表单验证未通过,显示错误信息
  1291. }
  1292. });
  1293. // this.$refs["Bankform"].validate((valid) => {
  1294. // if (valid) {
  1295. // }
  1296. // });
  1297. },
  1298. /** 删除按钮操作 */
  1299. handleBankDelete(row) {
  1300. const Bankids = row.id || this.Bankids;
  1301. this.$modal
  1302. .confirm("确认删除?")
  1303. .then(function () {
  1304. return delOrgPhysicalDefenseConstruction(Bankids);
  1305. })
  1306. .then(() => {
  1307. this.getBankPhysicalDefenseConstructionInfo();
  1308. this.$modal.msgSuccess("删除成功");
  1309. })
  1310. .catch(() => {
  1311. });
  1312. },
  1313. // 取消按钮
  1314. detachedcancel() {
  1315. this.detachedopen = false;
  1316. this.detachedreset();
  1317. },
  1318. // 表单重置
  1319. detachedreset() {
  1320. this.detachedform = {
  1321. id: null,
  1322. standard: null,
  1323. dateOfCompliance: null,
  1324. certificateEvidence: null,
  1325. certificate: null,
  1326. evidence: null,
  1327. createTime: null,
  1328. updateTime: null,
  1329. createBy: null,
  1330. updateBy: null,
  1331. orgId: null,
  1332. };
  1333. this.reqmsg = false;
  1334. this.resetForm("detachedform");
  1335. },
  1336. // 多选框选中数据
  1337. handledetachedSelectionChange(selection) {
  1338. this.detachedids = selection.map((item) => item.id);
  1339. this.single = selection.length !== 1;
  1340. this.multiple = !selection.length;
  1341. },
  1342. /** 新增按钮操作 */
  1343. handledetachedAdd() {
  1344. this.detachedreset();
  1345. this.detachedopen = true;
  1346. this.detachedtitle = "新增安全防范设施建设达标信息";
  1347. },
  1348. /** 编辑按钮操作 */
  1349. handledetachedUpdate(row) {
  1350. this.detachedreset();
  1351. const id = row.id || this.detachedids;
  1352. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1353. this.detachedform = response.data;
  1354. // this.detachedform.certificateEvidence=parseInt(response.data.certificateEvidence);
  1355. this.detachedopen = true;
  1356. this.detachedtitle = "编辑安全防范设施建设达标信息";
  1357. });
  1358. },
  1359. canShowGA38() {
  1360. // console.log("canShowGA38",this.type ,this.type == '4' || this.type == '10' || this.type == '5')
  1361. // 4: 网点,5:离行 6 中心业务库 10 监控中心
  1362. if (this.type == '4' || this.type == '5'|| this.type=='6' || this.type == '10' ) {
  1363. return true;
  1364. }
  1365. return false;
  1366. },
  1367. /** 提交按钮 */
  1368. submitdetachedForm() {
  1369. if (this.detachedimgs.length > 0) {
  1370. this.detachedform.certificate =
  1371. this.detachedimgs[this.detachedimgs.length - 1].toString(",");
  1372. }
  1373. this.$refs.detachedform.validate((valid) => {
  1374. if (valid) {
  1375. // 表单验证通过,提交数据或执行其他操作
  1376. this.detachedform.orgId = this.$route.params.id;
  1377. this.detachedform.type = 4;
  1378. if (this.detachedform.id != null) {
  1379. updateOrgPhysicalDefenseConstruction(this.detachedform).then(
  1380. (response) => {
  1381. this.$modal.msgSuccess("编辑成功");
  1382. this.detachedopen = false;
  1383. this.getdetachedPhysicalDefenseConstructionInfo();
  1384. }
  1385. );
  1386. } else {
  1387. addOrgPhysicalDefenseConstruction(this.detachedform).then(
  1388. (response) => {
  1389. this.$modal.msgSuccess("新增成功");
  1390. this.detachedopen = false;
  1391. this.getdetachedPhysicalDefenseConstructionInfo();
  1392. }
  1393. );
  1394. }
  1395. this.detachedimgs = [];
  1396. } else {
  1397. // 表单验证未通过,显示错误信息
  1398. }
  1399. });
  1400. // this.$refs["detachedform"].validate((valid) => {
  1401. // if (valid) {
  1402. // }
  1403. // });
  1404. },
  1405. /** 删除按钮操作 */
  1406. handledetachedDelete(row) {
  1407. const detachedids = row.id || this.detachedids;
  1408. this.$modal
  1409. .confirm("确认删除?")
  1410. .then(function () {
  1411. return delOrgPhysicalDefenseConstruction(detachedids);
  1412. })
  1413. .then(() => {
  1414. this.getdetachedPhysicalDefenseConstructionInfo();
  1415. this.$modal.msgSuccess("删除成功");
  1416. })
  1417. .catch(() => {
  1418. });
  1419. },
  1420. // 表单重置
  1421. orgreset() {
  1422. this.orgform = {
  1423. id: null,
  1424. standard: null,
  1425. dateOfCompliance: null,
  1426. dateOfComplete: null,
  1427. certificateEvidence: 0,
  1428. certificate: null,
  1429. evidence: null,
  1430. createTime: null,
  1431. updateTime: null,
  1432. createBy: null,
  1433. updateBy: null,
  1434. orgId: null,
  1435. };
  1436. this.reqmsg = false;
  1437. this.resetForm("orgform");
  1438. },
  1439. // 取消按钮
  1440. orgcancel() {
  1441. console.log(this.orgform.certificate, 123123);
  1442. console.log(this.orgimgs, '123123');
  1443. this.orgopen = false;
  1444. this.orgform.certificate = null;
  1445. this.orgimgs = null;
  1446. this.orgreset();
  1447. },
  1448. // 多选框选中数据
  1449. handleOrgSelectionChange(selection) {
  1450. this.orgids = selection.map((item) => item.id);
  1451. this.single = selection.length !== 1;
  1452. this.multiple = !selection.length;
  1453. },
  1454. /** 新增按钮操作 */
  1455. handleOrgAdd() {
  1456. this.orgreset();
  1457. this.orgopen = true;
  1458. this.orgtitle = "新增安全防范设施建设达标信息";
  1459. },
  1460. /** 编辑按钮操作 */
  1461. handleOrgUpdate(row) {
  1462. this.orgreset();
  1463. const id = row.id || this.orgids;
  1464. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1465. this.orgform = response.data;
  1466. this.orgopen = true;
  1467. this.orgtitle = "编辑安全防范设施建设达标信息";
  1468. });
  1469. },
  1470. /** 提交按钮 */
  1471. submitOrgForm() {
  1472. console.log(this.orgform.certificate, 'this.orgform.certificate')
  1473. if (this.orgform.certificate > 0) {
  1474. //this.orgform.certificate = this.orgimgs[this.orgimgs.length - 1].toString(",");
  1475. }
  1476. // if(!this.orgform.certificate && this.orgform.standard !== '3'){
  1477. // this.$modal.alertError("请上传证书");
  1478. // return;
  1479. // }
  1480. //certificate
  1481. this.$refs.orgform.validate((valid) => {
  1482. if (valid) {
  1483. if (this.orgform.standard !== '3' && (this.orgform.certificate == null || this.orgform.certificate == 0)) {
  1484. this.$modal.alertError("请上传证书");
  1485. return;
  1486. }
  1487. // 表单验证通过,提交数据或执行其他操作
  1488. this.orgform.orgId = this.$route.params.id;
  1489. // this.orgform.type = 1;
  1490. if (this.orgform.id != null) {
  1491. updateOrgPhysicalDefenseConstruction(this.orgform).then(
  1492. (response) => {
  1493. this.$modal.msgSuccess("编辑成功");
  1494. this.orgopen = false;
  1495. this.getOrgPhysicalDefenseConstructionInfo();
  1496. }
  1497. );
  1498. } else {
  1499. addOrgPhysicalDefenseConstruction(this.orgform).then((response) => {
  1500. this.$modal.msgSuccess("新增成功");
  1501. this.orgopen = false;
  1502. this.getOrgPhysicalDefenseConstructionInfo();
  1503. });
  1504. }
  1505. this.orgimgs = [];
  1506. } else {
  1507. // 表单验证未通过,显示错误信息
  1508. }
  1509. });
  1510. },
  1511. /** 删除按钮操作 */
  1512. handleOrgDelete(row) {
  1513. const orgids = row.id || this.orgids;
  1514. this.$modal
  1515. .confirm("确认删除?")
  1516. .then(function () {
  1517. return delOrgPhysicalDefenseConstruction(orgids);
  1518. })
  1519. .then(() => {
  1520. this.getOrgPhysicalDefenseConstructionInfo();
  1521. this.$modal.msgSuccess("删除成功");
  1522. })
  1523. .catch(() => {
  1524. });
  1525. },
  1526. saveExtend() {
  1527. if (!this.validBeforeSaveExtend()) {
  1528. return;
  1529. }
  1530. let dat = {
  1531. safeBox: this.safeBox ? 1 : 0,
  1532. innerCount: this.innerCount,
  1533. outsideCount: this.outsideCount,
  1534. cashAddingRoom: this.cashAddingRoom,
  1535. cashAddingRoomControlCount: this.cashAddingRoomControlCount,
  1536. orgType: this.orgType,
  1537. remoteCount: this.remoteCount,
  1538. remoteControlCount: this.remoteControlCount,
  1539. weatherAreaCode: this.weatherAreaCode,
  1540. askariCertificate:this.askariCertificate,
  1541. // this.imgs.length > 0
  1542. // ? this.imgs[this.imgs.length - 1].toString(",")
  1543. // : null,
  1544. premisesArea: this.premisesArea,
  1545. ownership: this.ownership,
  1546. outsideArea: this.outsideArea,
  1547. askari: this.askari ? 1 : 0,
  1548. businessLibraryType: this.businessLibraryType,
  1549. dutyMode: this.dutyMode,
  1550. //remoteControl: this.remoteControl ? 1 : 0,
  1551. selfServiceBank: this.selfServiceBank ? 1 : 0,
  1552. businessLibrary: this.businessLibrary ? 1 : 0,
  1553. lobbyEquipment: this.lobbyEquipment,
  1554. wallPenetratingEquipment: this.wallPenetratingEquipment,
  1555. platformBrand: this.platformBrand,
  1556. platformSupplierBrand: this.platformSupplierBrand,
  1557. constructionTime: this.constructionTime,
  1558. lastUpdateTime: this.lastUpdateTime,
  1559. orgId: this.$route.params.id,
  1560. id: this.extendId,
  1561. detachedLobbyEquipment: this.detachedLobbyEquipment,
  1562. detachedWallPenetratingEquipment: this.detachedWallPenetratingEquipment,
  1563. cashAddingRoomRemoteControl: this.cashAddingRoomRemoteControl,
  1564. hdCameraCount: this.hdCameraCount,
  1565. totalCameraCount: this.totalCameraCount,
  1566. };
  1567. // console.log(dat);
  1568. if (this.extendId) {
  1569. updateExtend(dat).then((res) => {
  1570. this.$modal.msgSuccess("保存成功");
  1571. // this.$router.go(-1);
  1572. this.$tab.closePageAndPushPrev();
  1573. });
  1574. } else {
  1575. addExtend(dat).then((res) => {
  1576. this.$modal.msgSuccess("保存成功");
  1577. // this.$router.go(-1);
  1578. this.$tab.closePageAndPushPrev();
  1579. });
  1580. }
  1581. },
  1582. validBeforeSaveExtend() {
  1583. if (this.weatherAreaCode == null) {
  1584. this.$modal.msgError("气象行政区域不能为空,请选择气象行政区域");
  1585. return false;
  1586. }
  1587. if (this.type === this.org_type.yewd && this.ownership == null) {
  1588. this.$modal.msgError("产权类型不能为空,请选择产权类型");
  1589. return false;
  1590. }
  1591. if (this.type === this.org_type.yewd && this.outsideArea == null) {
  1592. this.$modal.msgError("所在位置不能为空,请选择所在位置");
  1593. return false;
  1594. }
  1595. if ((this.type === this.org_type.yewd || this.type === this.org_type.zxywk)&& this.dutyMode == null) {
  1596. this.$modal.msgError("夜间值守不能为空,请选择夜间值守方式");
  1597. return false;
  1598. }
  1599. if (this.type === this.org_type.yewd && this.safeBox == null) {
  1600. this.$modal.msgError("是否设立保管箱库不能为空,请选择是否设立保管箱库");
  1601. return false;
  1602. }
  1603. if (this.type === this.org_type.yewd && this.selfServiceBank == null) {
  1604. this.$modal.msgError("是否设立在行式自助银行不能为空,请选择是否设立在行式自助银行");
  1605. return false;
  1606. }
  1607. if (this.type === this.org_type.yewd && this.wallPenetratingEquipment==null) {
  1608. this.$modal.msgError("穿墙式设备数量不能为空,请输入穿墙式设备数量");
  1609. return false;
  1610. }
  1611. if (this.type === this.org_type.yewd && this.lobbyEquipment==null) {
  1612. this.$modal.msgError("大堂设备数量不能为空,请输入大堂设备数量");
  1613. return false;
  1614. }
  1615. if ((this.type === this.org_type.yewd || this.type === this.org_type.zxywk) &&this.businessLibrary==null) {
  1616. this.$modal.msgError("是否设立网点业务库不能为空,请设置是否设立网点业务库");
  1617. return false;
  1618. }
  1619. if ((this.type === this.org_type.yewd || this.type === this.org_type.zxywk) && this.businessLibrary===1&&this.businessLibraryType==null) {
  1620. this.$modal.msgError("业务库类型不能为空,请选择业务库类型");
  1621. return false;
  1622. }
  1623. // if ((this.type === this.org_type.jkzx)&&this.businessLibrary===1&&this.remoteControl==null) {
  1624. // this.$modal.msgError("出入口远程控制与授权不能为空,请选择出入口远程控制与授权");
  1625. // return false;
  1626. // }
  1627. if ((this.type === this.org_type.jkzx)&&this.cashAddingRoom==null) {
  1628. this.$modal.msgError("离行式加钞间出入口数量不能为空,请输入离行式加钞间出入口数量");
  1629. return false;
  1630. }
  1631. if ((this.type === this.org_type.jkzx)&&this.cashAddingRoomControlCount==null) {
  1632. this.$modal.msgError("可远程控制和实时授权出入口数量(离行式)不能为空,请输入可远程控制和实时授权出入口数量(离行式)");
  1633. return false;
  1634. }
  1635. if ((this.type === this.org_type.jkzx )&&this.remoteCount==null) {
  1636. this.$modal.msgError("业务库防控隔离门出入口数量不能为空,请输入业务库防控隔离门出入口数量");
  1637. return false;
  1638. }
  1639. if ((this.type === this.org_type.jkzx )&&this.remoteControlCount==null) {
  1640. this.$modal.msgError("可远程控制和实时授权出入口数量(业务库)不能为空,请输入可远程控制和实时授权出入口数量(业务库)");
  1641. return false;
  1642. }
  1643. if ((this.type === this.org_type.yewd)&&this.askari==null) {
  1644. this.$modal.msgError("是否配备保安人员不能为空,请选择是否配备保安人员");
  1645. return false;
  1646. }
  1647. if ((this.type === this.org_type.yewd)&&this.askari==1&& !this.innerCount && !this.outsideCount) {
  1648. this.$modal.msgError("网点配备保安人员为“是”,内部保安人数与外聘保安人数不可均为0,请修改");
  1649. return false;
  1650. }
  1651. // if ((this.type === this.org_type.yewd)&&this.askari==1&&this.innerCount==null) {
  1652. // this.$modal.msgError("内部保安人数不能为空,请输入内部保安人数");
  1653. // return false;
  1654. // }
  1655. // if ((this.type === this.org_type.yewd)&&this.askari==1&&this.outsideCount==null) {
  1656. // this.$modal.msgError("外聘保安人数不能为空,请输入外聘保安人数");
  1657. // return false;
  1658. // }
  1659. if ((this.type === this.org_type.yewd)&&this.askari==1&& this.isAskariCertificate==null) {
  1660. this.$modal.msgError("是否取得保安证书不能为空,请选择是否取得保安证书");
  1661. return false;
  1662. }
  1663. if ((this.type === this.org_type.yewd)&&this.askari==1&&this.isAskariCertificate==1&&this.askariCertificate==null) {
  1664. this.$modal.msgError("保安人员证书不能为空,请上传保安人员证书");
  1665. return false;
  1666. }
  1667. return true;
  1668. },
  1669. nosaveExtend() {
  1670. // this.$router.go(-1);
  1671. this.$tab.closePageAndPushPrev();
  1672. },
  1673. triggerFileInput() {
  1674. this.$refs.fileInput.click();
  1675. },
  1676. async handleFileChange(event) {
  1677. const file = event.target.files[0];
  1678. if (!file) return;
  1679. // // 发送文件到您的文件上传 API
  1680. try {
  1681. uploadFile(file, "org").then((res) => {
  1682. console.log(res);
  1683. // this.orgform.certificateEvidence = res.data;
  1684. });
  1685. // 处理上传成功的逻辑
  1686. console.log("上传成功");
  1687. } catch (error) {
  1688. // 处理上传失败的逻辑
  1689. console.log("上传失败");
  1690. }
  1691. event.target.value = "";
  1692. },
  1693. }
  1694. };
  1695. </script>
  1696. <style scoped lang="scss">
  1697. /*.org-extend{
  1698. background-color: #fff;
  1699. padding: 10px;
  1700. }*/
  1701. .title {
  1702. font-size: 18px;
  1703. text-align: left;
  1704. color: #008cd6;
  1705. height: 36px;
  1706. line-height: 36px;
  1707. padding-left: 8px;
  1708. margin: 0;
  1709. }
  1710. .info-box {
  1711. margin: 20px;
  1712. }
  1713. .demo-form-inline {
  1714. }
  1715. .dialog-footer {
  1716. }
  1717. .container {
  1718. }
  1719. .zoom-image {
  1720. transition: transform 0.3s ease;
  1721. }
  1722. .zoom-image:hover {
  1723. transform: scale(1.02);
  1724. }
  1725. .border-color-change {
  1726. border: 1px solid #ccc;
  1727. transition: border-color 0.3s ease;
  1728. }
  1729. .border-color-change:hover {
  1730. border-color: #1ea8e9;
  1731. /* 您可以将此颜色更改为所需的颜色 */
  1732. }
  1733. .extend_mod {
  1734. background-color: #fff;
  1735. padding: 1px 15px 1px 15px;
  1736. margin-bottom: 2px;
  1737. -webkit-box-shadow: 0 2px 8px #ccc;
  1738. box-shadow: 0 2px 8px #ccc;
  1739. }
  1740. .el-table thead > tr > th {
  1741. background-color: #fafafa !important;
  1742. }
  1743. .el-row {
  1744. margin-bottom: 20px;
  1745. &:last-child {
  1746. margin-bottom: 0;
  1747. }
  1748. }
  1749. .el-col {
  1750. border-radius: 4px;
  1751. }
  1752. .bg-purple-dark {
  1753. background: #99a9bf;
  1754. }
  1755. .bg-purple {
  1756. background: #d3dce6;
  1757. }
  1758. .bg-purple-light {
  1759. background: #e5e9f2;
  1760. }
  1761. .grid-content {
  1762. border-radius: 4px;
  1763. min-height: 36px;
  1764. }
  1765. .row-bg {
  1766. padding: 10px 0;
  1767. background-color: #f9fafc;
  1768. }
  1769. </style>