extend.vue 63 KB

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