extend.vue 62 KB

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