extend.vue 61 KB

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