extend.vue 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917
  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. <span>是否自有产权</span>
  128. <el-select style="margin-left: 30px;"
  129. v-model="ownership"
  130. placeholder="是否自有产权"
  131. >
  132. <el-option
  133. v-for="dict in dict.type.org_extend_is"
  134. :key="dict.value"
  135. :label="dict.label"
  136. :value="dict.value"
  137. ></el-option>
  138. </el-select>
  139. <!-- <el-switch
  140. v-model="ownership"
  141. active-text
  142. inactive-text="是否自有产权"
  143. :active-value="1"
  144. :inactive-value="0"
  145. ></el-switch> -->
  146. <!-- <el-switch
  147. style="margin-left: 50px"
  148. v-model="outsideArea"
  149. active-text
  150. inactive-text="是否区域外"
  151. :active-value="1"
  152. :inactive-value="0"
  153. ></el-switch> -->
  154. <span style="margin-left: 209px;">是否区域外</span>
  155. <el-select style="margin-left: 45px;"
  156. v-model="outsideArea"
  157. placeholder="是否区域外"
  158. >
  159. <el-option
  160. v-for="dict in dict.type.org_extend_is"
  161. :key="dict.value"
  162. :label="dict.label"
  163. :value="dict.value"
  164. ></el-option>
  165. </el-select>
  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-image class="zoom-image border-color-change" :src="uplp" fit="contain"></el-image>-->
  296. </el-col>
  297. </el-row>
  298. </div>
  299. </div>
  300. <el-switch
  301. v-if="type == 4"
  302. style="margin-top: 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. ],
  1115. props: [],
  1116. components: {},
  1117. data() {
  1118. return {
  1119. //表单验证
  1120. rules: {
  1121. standard: [{ required: true, message: "请输入标准", trigger: "blur" }],
  1122. dateOfCompliance: [
  1123. { required: true, message: "请输入达标日期", trigger: "blur" },
  1124. ],
  1125. },
  1126. //基础信息key
  1127. infoKeys: [
  1128. { label: "机构名称", key: "name" },
  1129. // { label: "机构组织类型", key: "type" },
  1130. { label: "部门机构电话", key: "phone" },
  1131. { label: "部门机构地址", key: "address" },
  1132. { label: "排序号", key: "sort" },
  1133. // { label: "是否可用", key: "isLock" },
  1134. { label: "更新时间", key: "updateTime" },
  1135. { label: "同步时间", key: "createTime" },
  1136. ],
  1137. type: null,
  1138. isLock: null,
  1139. dataInfo: [],
  1140. //机构补充信息
  1141. extendId: null,
  1142. orgType: 1,
  1143. weatherAreaCode: null,
  1144. premisesArea: null,
  1145. ownership: null,
  1146. outsideArea: null,
  1147. askari: 1,
  1148. businessLibrary: 1,
  1149. businessLibraryType: 1,
  1150. dutyMode: 0,
  1151. remoteControl: null,
  1152. selfServiceBank: null,
  1153. lobbyEquipment: 1,
  1154. wallPenetratingEquipment: 2,
  1155. platformBrand: null,
  1156. platformSupplierBrand: null,
  1157. constructionTime: null,
  1158. lastUpdateTime: null,
  1159. detachedLobbyEquipment: null,
  1160. detachedWallPenetratingEquipment: null,
  1161. cashAddingRoomRemoteControl: null,
  1162. source: null,
  1163. askariCertificate: null,
  1164. //机构建设数据
  1165. // 遮罩层
  1166. orgloading: true,
  1167. businessloading: true,
  1168. // 选中数组
  1169. orgids: [],
  1170. // 选中数组
  1171. Bankids: [],
  1172. Businessids: [],
  1173. // 非单个禁用
  1174. single: true,
  1175. // 非多个禁用
  1176. multiple: true,
  1177. // 显示搜索条件
  1178. showSearch: true,
  1179. // 总条数
  1180. total: 0,
  1181. // 机构物防建设表格数据
  1182. constructionList: [],
  1183. // 银行物防建设表格数据
  1184. BankPhysicalDefenseConstructionList: [],
  1185. detachedPhysicalDefenseConstructionList: [],
  1186. BusinessPhysicalDefenseConstructionList: [],
  1187. // 弹出层标题
  1188. orgtitle: "",
  1189. Businesstitle: "",
  1190. // 弹出层标题
  1191. Banktitle: "",
  1192. detachedtitle: "",
  1193. detachedloading: false,
  1194. // 是否显示弹出层
  1195. Bankopen: false,
  1196. Businessopen: false,
  1197. detachedopen: false,
  1198. // 表单参数
  1199. Bankform: {},
  1200. detachedform: {},
  1201. Businessform: {},
  1202. // 是否显示弹出层
  1203. Businessopen: false,
  1204. orgopen: false,
  1205. // 表单参数
  1206. orgform: {},
  1207. //2个图片信息
  1208. uploadp: uploadpng,
  1209. uplp: uplpng,
  1210. //下拉框生成信息
  1211. orgTypes: {
  1212. orgTyp1: { label: "营业网点", value: 0 },
  1213. orgTyp2: { label: "监控中心", value: 1 },
  1214. },
  1215. businessLibraryTypes: {
  1216. businessLibraryTyp1: { label: "1类业务库", value: 1 },
  1217. businessLibraryTyp2: { label: "2类业务库", value: 2 },
  1218. businessLibraryTyp3: { label: "3类业务库", value: 3 },
  1219. },
  1220. platformBrands: {
  1221. platformBrand1: { label: "品牌1", value: 0 },
  1222. platformBrand2: { label: "品牌2", value: 1 },
  1223. },
  1224. platformSupplierBrands: {
  1225. platformSupplierBrand1: { label: "品牌1", value: 0 },
  1226. platformSupplierBrand2: { label: "品牌2", value: 1 },
  1227. },
  1228. prop: "",
  1229. propItem: "",
  1230. row: "",
  1231. };
  1232. },
  1233. watch: {},
  1234. computed: {
  1235. switchModel: {
  1236. get() {
  1237. return this.switchValue === 1; // 将0转换为false,1转换为true
  1238. },
  1239. set(value) {
  1240. this.switchValue = value ? 1 : 0; // 将false转换为0,true转换为1
  1241. },
  1242. },
  1243. },
  1244. created() {
  1245. this.getOrgInfo();
  1246. this.getExtendInfo();
  1247. this.getOrgPhysicalDefenseConstructionInfo();
  1248. this.getBankPhysicalDefenseConstructionInfo();
  1249. this.getBusinessPhysicalDefenseConstructionInfo();
  1250. this.getdetachedPhysicalDefenseConstructionInfo();
  1251. },
  1252. mounted() {},
  1253. methods: {
  1254. getImgUrl(fileList) {
  1255. let matchResult = fileList.match(/\/statics(.*)/);
  1256. if (matchResult) {
  1257. let result = matchResult[0];
  1258. this.askariCertificate = result;
  1259. } else {
  1260. }
  1261. // this.askariCertificate=img;
  1262. console.log(this.askariCertificate, "imgs");
  1263. },
  1264. downBusiness(file) {
  1265. window.open(file);
  1266. },
  1267. //证书上传
  1268. uploadBusinessSuccess(fileList) {
  1269. let matchResult = fileList.match(/\/statics(.*)/);
  1270. if (matchResult) {
  1271. let result = matchResult[0];
  1272. this.Businessform.certificate = result;
  1273. } else {
  1274. }
  1275. },
  1276. uploadBankSuccess(fileList) {
  1277. let matchResult = fileList.match(/\/statics(.*)/);
  1278. if (matchResult) {
  1279. let result = matchResult[0];
  1280. this.Bankform.certificate = result;
  1281. } else {
  1282. }
  1283. },
  1284. uploadorgSuccess(fileList) {
  1285. let matchResult = fileList.match(/\/statics(.*)/);
  1286. if (matchResult) {
  1287. let result = matchResult[0];
  1288. this.orgform.certificate = result;
  1289. } else {
  1290. }
  1291. },
  1292. uploaddetachedSuccess(fileList) {
  1293. let matchResult = fileList.match(/\/statics(.*)/);
  1294. if (matchResult) {
  1295. let result = matchResult[0];
  1296. this.detachedform.certificate = result;
  1297. } else {
  1298. }
  1299. },
  1300. handleInput() {
  1301. // 使用正则表达式过滤输入,只保留数字和小数点
  1302. this.premisesArea = this.premisesArea.replace(/[^0-9.]/g, "");
  1303. },
  1304. handleInput2() {
  1305. // 使用正则表达式过滤输入,只保留数字和小数点
  1306. this.weatherAreaCode = this.weatherAreaCode.replace(/[^a-zA-Z0-9]/g, "");
  1307. },
  1308. request() {},
  1309. handleChange(value) {},
  1310. getOrgInfo() {
  1311. getDept(this.$route.params.id).then((data) => {
  1312. // console.log(data.data);
  1313. if (!data.data) return;
  1314. let res = data.data;
  1315. this.dataInfo = this.infoKeys.map((v, i) => {
  1316. // console.log(v, res[v.key], "vvvvv");
  1317. v.value = res[v.key];
  1318. return v;
  1319. });
  1320. this.type = data.data.type;
  1321. this.isLock = data.data.isLock;
  1322. this.source = data.data.source;
  1323. // console.log(this.dataInfo, "info");
  1324. });
  1325. },
  1326. getExtendInfo() {
  1327. getExtendByOrgId(this.$route.params.id).then((data) => {
  1328. console.log(data.data);
  1329. if (data.data != null) {
  1330. this.orgType = data.data.orgType;
  1331. this.weatherAreaCode = data.data.weatherAreaCode;
  1332. this.premisesArea = data.data.premisesArea;
  1333. this.ownership = data.data.ownership;
  1334. this.outsideArea = data.data.outsideArea;
  1335. this.askari = data.data.askari;
  1336. this.remoteControl = data.data.remoteControl;
  1337. this.selfServiceBank = data.data.selfServiceBank;
  1338. this.businessLibrary = data.data.businessLibrary;
  1339. this.lobbyEquipment = data.data.lobbyEquipment;
  1340. this.wallPenetratingEquipment = data.data.wallPenetratingEquipment;
  1341. this.askariCertificate = data.data.askariCertificate;
  1342. this.extendId = data.data.id;
  1343. this.constructionTime = data.data.constructionTime;
  1344. this.lastUpdateTime = data.data.lastUpdateTime;
  1345. this.platformBrand = data.data.platformBrand;
  1346. this.platformSupplierBrand = data.data.platformSupplierBrand;
  1347. this.businessLibraryType = data.data.businessLibraryType;
  1348. this.dutyMode = data.data.dutyMode;
  1349. this.detachedLobbyEquipment = data.data.detachedLobbyEquipment;
  1350. this.detachedWallPenetratingEquipment =
  1351. data.data.detachedWallPenetratingEquipment;
  1352. this.cashAddingRoomRemoteControl =
  1353. data.data.cashAddingRoomRemoteControl;
  1354. // console.log(this.extendId);
  1355. }
  1356. });
  1357. },
  1358. getLabel(options, value) {
  1359. return getLabel(options, value);
  1360. },
  1361. getOrgPhysicalDefenseConstructionInfo() {
  1362. this.orgloading = true;
  1363. let dat = { orgId: this.$route.params.id, type: 1 };
  1364. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1365. console.log("机构信息获取成功");
  1366. this.constructionList = data.rows;
  1367. this.orgloading = false;
  1368. });
  1369. },
  1370. getBankPhysicalDefenseConstructionInfo() {
  1371. this.bankloading = true;
  1372. let dat = { orgId: this.$route.params.id, type: 3 };
  1373. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1374. // console.log(data);
  1375. this.BankPhysicalDefenseConstructionList = data.rows;
  1376. this.bankloading = false;
  1377. });
  1378. },
  1379. getdetachedPhysicalDefenseConstructionInfo() {
  1380. this.detachedloading = true;
  1381. let dat = { orgId: this.$route.params.id, type: 4 };
  1382. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1383. // console.log(data);
  1384. this.detachedPhysicalDefenseConstructionList = data.rows;
  1385. this.detachedloading = false;
  1386. });
  1387. },
  1388. getBusinessPhysicalDefenseConstructionInfo() {
  1389. this.businessloading = true;
  1390. let dat = { orgId: this.$route.params.id, type: 2 };
  1391. listOrgPhysicalDefenseConstruction(dat).then((data) => {
  1392. // console.log(data);
  1393. this.BusinessPhysicalDefenseConstructionList = data.rows;
  1394. this.businessloading = false;
  1395. });
  1396. },
  1397. // 取消按钮
  1398. Businesscancel() {
  1399. this.Businessopen = false;
  1400. this.Businessreset();
  1401. },
  1402. // 表单重置
  1403. Businessreset() {
  1404. this.Businessform = {
  1405. id: null,
  1406. standard: null,
  1407. dateOfCompliance: null,
  1408. certificateEvidence: null,
  1409. certificate: null,
  1410. evidence: null,
  1411. createTime: null,
  1412. updateTime: null,
  1413. createBy: null,
  1414. updateBy: null,
  1415. orgId: null,
  1416. };
  1417. this.resetForm("Businessform");
  1418. },
  1419. // 多选框选中数据
  1420. handleBusinessSelectionChange(selection) {
  1421. this.Businessids = selection.map((item) => item.id);
  1422. this.single = selection.length !== 1;
  1423. this.multiple = !selection.length;
  1424. },
  1425. /** 新增按钮操作 */
  1426. handleBusinessAdd() {
  1427. this.Businessreset();
  1428. this.Businessopen = true;
  1429. this.Businesstitle = "添加业务库物防建设";
  1430. },
  1431. /** 修改按钮操作 */
  1432. handleBusinessUpdate(row) {
  1433. this.Businessreset();
  1434. const id = row.id || this.Businessids;
  1435. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1436. this.Businessform = response.data;
  1437. this.Businessopen = true;
  1438. this.Businesstitle = "修改业务库物防建设";
  1439. });
  1440. },
  1441. /** 提交按钮 */
  1442. submitBusinessForm() {
  1443. this.$refs.Businessform.validate((valid) => {
  1444. if (valid) {
  1445. // 表单验证通过,提交数据或执行其他操作
  1446. this.Businessform.orgId = this.$route.params.id;
  1447. this.Businessform.type = 2;
  1448. if (this.Businessform.id != null) {
  1449. // console.log(this.Businessform,"this.Businessform")
  1450. updateOrgPhysicalDefenseConstruction(this.Businessform).then(
  1451. (response) => {
  1452. this.$modal.msgSuccess("修改成功");
  1453. this.Businessopen = false;
  1454. this.getBusinessPhysicalDefenseConstructionInfo();
  1455. }
  1456. );
  1457. } else {
  1458. addOrgPhysicalDefenseConstruction(this.Businessform).then(
  1459. (response) => {
  1460. this.$modal.msgSuccess("新增成功");
  1461. this.Businessopen = false;
  1462. this.getBusinessPhysicalDefenseConstructionInfo();
  1463. }
  1464. );
  1465. }
  1466. } else {
  1467. // 表单验证未通过,显示错误信息
  1468. }
  1469. });
  1470. // this.$refs["Businessform"].validate((valid) => {
  1471. // if (valid) {
  1472. // }
  1473. // });
  1474. },
  1475. /** 删除按钮操作 */
  1476. handleBusinessDelete(row) {
  1477. const Businessids = row.id || this.Businessids;
  1478. this.$modal
  1479. .confirm(
  1480. '是否确认删除银行物防建设编号为"' + Businessids + '"的数据项?'
  1481. )
  1482. .then(function () {
  1483. return delOrgPhysicalDefenseConstruction(Businessids);
  1484. })
  1485. .then(() => {
  1486. this.getBusinessPhysicalDefenseConstructionInfo();
  1487. this.$modal.msgSuccess("删除成功");
  1488. })
  1489. .catch(() => {});
  1490. },
  1491. // resetimg(certificate){
  1492. // this.Bankform.certificate=0;
  1493. // },
  1494. // 取消按钮
  1495. Bankcancel() {
  1496. this.Bankopen = false;
  1497. this.Bankreset();
  1498. },
  1499. // 表单重置
  1500. Bankreset() {
  1501. this.Bankform = {
  1502. id: null,
  1503. standard: null,
  1504. dateOfCompliance: null,
  1505. certificateEvidence: null,
  1506. certificate: null,
  1507. evidence: null,
  1508. createTime: null,
  1509. updateTime: null,
  1510. createBy: null,
  1511. updateBy: null,
  1512. orgId: null,
  1513. };
  1514. this.resetForm("Bankform");
  1515. },
  1516. // 多选框选中数据
  1517. handleBankSelectionChange(selection) {
  1518. this.Bankids = selection.map((item) => item.id);
  1519. this.single = selection.length !== 1;
  1520. this.multiple = !selection.length;
  1521. },
  1522. /** 新增按钮操作 */
  1523. handleBankAdd() {
  1524. this.Bankreset();
  1525. this.Bankopen = true;
  1526. this.Banktitle = "添加银行物防建设";
  1527. },
  1528. /** 修改按钮操作 */
  1529. handleBankUpdate(row) {
  1530. this.Bankreset();
  1531. const id = row.id || this.Bankids;
  1532. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1533. this.Bankform = response.data;
  1534. this.Bankopen = true;
  1535. this.Banktitle = "修改银行物防建设";
  1536. });
  1537. },
  1538. /** 提交按钮 */
  1539. submitBankForm() {
  1540. this.$refs.Bankform.validate((valid) => {
  1541. if (valid) {
  1542. // 表单验证通过,提交数据或执行其他操作
  1543. this.Bankform.orgId = this.$route.params.id;
  1544. this.Bankform.type = 3;
  1545. if (this.Bankform.id != null) {
  1546. updateOrgPhysicalDefenseConstruction(this.Bankform).then(
  1547. (response) => {
  1548. this.$modal.msgSuccess("修改成功");
  1549. this.Bankopen = false;
  1550. this.getBankPhysicalDefenseConstructionInfo();
  1551. }
  1552. );
  1553. } else {
  1554. addOrgPhysicalDefenseConstruction(this.Bankform).then(
  1555. (response) => {
  1556. this.$modal.msgSuccess("新增成功");
  1557. this.Bankopen = false;
  1558. this.getBankPhysicalDefenseConstructionInfo();
  1559. }
  1560. );
  1561. }
  1562. } else {
  1563. // 表单验证未通过,显示错误信息
  1564. }
  1565. });
  1566. // this.$refs["Bankform"].validate((valid) => {
  1567. // if (valid) {
  1568. // }
  1569. // });
  1570. },
  1571. /** 删除按钮操作 */
  1572. handleBankDelete(row) {
  1573. const Bankids = row.id || this.Bankids;
  1574. this.$modal
  1575. .confirm('是否确认删除银行物防建设编号为"' + Bankids + '"的数据项?')
  1576. .then(function () {
  1577. return delOrgPhysicalDefenseConstruction(Bankids);
  1578. })
  1579. .then(() => {
  1580. this.getBankPhysicalDefenseConstructionInfo();
  1581. this.$modal.msgSuccess("删除成功");
  1582. })
  1583. .catch(() => {});
  1584. },
  1585. // 取消按钮
  1586. detachedcancel() {
  1587. this.detachedopen = false;
  1588. this.detachedreset();
  1589. },
  1590. // 表单重置
  1591. detachedreset() {
  1592. this.detachedform = {
  1593. id: null,
  1594. standard: null,
  1595. dateOfCompliance: null,
  1596. certificateEvidence: null,
  1597. certificate: null,
  1598. evidence: null,
  1599. createTime: null,
  1600. updateTime: null,
  1601. createBy: null,
  1602. updateBy: null,
  1603. orgId: null,
  1604. };
  1605. this.resetForm("detachedform");
  1606. },
  1607. // 多选框选中数据
  1608. handledetachedSelectionChange(selection) {
  1609. this.detachedids = selection.map((item) => item.id);
  1610. this.single = selection.length !== 1;
  1611. this.multiple = !selection.length;
  1612. },
  1613. /** 新增按钮操作 */
  1614. handledetachedAdd() {
  1615. this.detachedreset();
  1616. this.detachedopen = true;
  1617. this.detachedtitle = "添加离行物防建设";
  1618. },
  1619. /** 修改按钮操作 */
  1620. handledetachedUpdate(row) {
  1621. this.detachedreset();
  1622. const id = row.id || this.detachedids;
  1623. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1624. this.detachedform = response.data;
  1625. this.detachedopen = true;
  1626. this.detachedtitle = "修改离行物防建设";
  1627. });
  1628. },
  1629. /** 提交按钮 */
  1630. submitdetachedForm() {
  1631. this.$refs.detachedform.validate((valid) => {
  1632. if (valid) {
  1633. // 表单验证通过,提交数据或执行其他操作
  1634. this.detachedform.orgId = this.$route.params.id;
  1635. this.detachedform.type = 4;
  1636. if (this.detachedform.id != null) {
  1637. updateOrgPhysicalDefenseConstruction(this.detachedform).then(
  1638. (response) => {
  1639. this.$modal.msgSuccess("修改成功");
  1640. this.detachedopen = false;
  1641. this.getdetachedPhysicalDefenseConstructionInfo();
  1642. }
  1643. );
  1644. } else {
  1645. addOrgPhysicalDefenseConstruction(this.detachedform).then(
  1646. (response) => {
  1647. this.$modal.msgSuccess("新增成功");
  1648. this.detachedopen = false;
  1649. this.getdetachedPhysicalDefenseConstructionInfo();
  1650. }
  1651. );
  1652. }
  1653. } else {
  1654. // 表单验证未通过,显示错误信息
  1655. }
  1656. });
  1657. // this.$refs["detachedform"].validate((valid) => {
  1658. // if (valid) {
  1659. // }
  1660. // });
  1661. },
  1662. /** 删除按钮操作 */
  1663. handledetachedDelete(row) {
  1664. const detachedids = row.id || this.detachedids;
  1665. this.$modal
  1666. .confirm(
  1667. '是否确认删除离行物防建设编号为"' + detachedids + '"的数据项?'
  1668. )
  1669. .then(function () {
  1670. return delOrgPhysicalDefenseConstruction(detachedids);
  1671. })
  1672. .then(() => {
  1673. this.getdetachedPhysicalDefenseConstructionInfo();
  1674. this.$modal.msgSuccess("删除成功");
  1675. })
  1676. .catch(() => {});
  1677. },
  1678. // 表单重置
  1679. orgreset() {
  1680. this.orgform = {
  1681. id: null,
  1682. standard: null,
  1683. dateOfCompliance: null,
  1684. certificateEvidence: null,
  1685. certificate: null,
  1686. evidence: null,
  1687. createTime: null,
  1688. updateTime: null,
  1689. createBy: null,
  1690. updateBy: null,
  1691. orgId: null,
  1692. };
  1693. this.resetForm("orgform");
  1694. },
  1695. // 取消按钮
  1696. orgcancel() {
  1697. this.orgopen = false;
  1698. this.orgreset();
  1699. },
  1700. // 多选框选中数据
  1701. handleOrgSelectionChange(selection) {
  1702. this.orgids = selection.map((item) => item.id);
  1703. this.single = selection.length !== 1;
  1704. this.multiple = !selection.length;
  1705. },
  1706. /** 新增按钮操作 */
  1707. handleOrgAdd() {
  1708. this.orgreset();
  1709. this.orgopen = true;
  1710. this.orgtitle = "添加机构物防建设";
  1711. },
  1712. /** 修改按钮操作 */
  1713. handleOrgUpdate(row) {
  1714. this.orgreset();
  1715. const id = row.id || this.orgids;
  1716. getOrgPhysicalDefenseConstruction(id).then((response) => {
  1717. // console.log(response)
  1718. this.orgform = response.data;
  1719. this.orgopen = true;
  1720. this.orgtitle = "修改机构物防建设";
  1721. });
  1722. },
  1723. /** 提交按钮 */
  1724. submitOrgForm() {
  1725. this.$refs.orgform.validate((valid) => {
  1726. if (valid) {
  1727. // 表单验证通过,提交数据或执行其他操作
  1728. this.orgform.orgId = this.$route.params.id;
  1729. this.orgform.type = 1;
  1730. if (this.orgform.id != null) {
  1731. updateOrgPhysicalDefenseConstruction(this.orgform).then(
  1732. (response) => {
  1733. this.$modal.msgSuccess("修改成功");
  1734. this.orgopen = false;
  1735. this.getOrgPhysicalDefenseConstructionInfo();
  1736. }
  1737. );
  1738. } else {
  1739. addOrgPhysicalDefenseConstruction(this.orgform).then((response) => {
  1740. this.$modal.msgSuccess("新增成功");
  1741. this.orgopen = false;
  1742. this.getOrgPhysicalDefenseConstructionInfo();
  1743. });
  1744. }
  1745. } else {
  1746. // 表单验证未通过,显示错误信息
  1747. }
  1748. });
  1749. // this.$refs["orgform"].validate((valid) => {
  1750. // if (valid) {
  1751. // }
  1752. // });
  1753. },
  1754. /** 删除按钮操作 */
  1755. handleOrgDelete(row) {
  1756. const orgids = row.id || this.orgids;
  1757. this.$modal
  1758. .confirm('是否确认删除机构物防建设编号为"' + orgids + '"的数据项?')
  1759. .then(function () {
  1760. return delOrgPhysicalDefenseConstruction(orgids);
  1761. })
  1762. .then(() => {
  1763. this.getOrgPhysicalDefenseConstructionInfo();
  1764. this.$modal.msgSuccess("删除成功");
  1765. })
  1766. .catch(() => {});
  1767. },
  1768. saveExtend() {
  1769. let dat = {
  1770. orgType: this.orgType,
  1771. weatherAreaCode: this.weatherAreaCode,
  1772. askariCertificate: this.askariCertificate,
  1773. premisesArea: this.premisesArea,
  1774. ownership: this.ownership ,
  1775. outsideArea: this.outsideArea ,
  1776. askari: this.askari ? 1 : 0,
  1777. businessLibraryType: this.businessLibraryType,
  1778. dutyMode: this.dutyMode,
  1779. remoteControl: this.remoteControl ? 1 : 0,
  1780. selfServiceBank: this.selfServiceBank ? 1 : 0,
  1781. businessLibrary: this.businessLibrary ? 1 : 0,
  1782. lobbyEquipment: this.lobbyEquipment,
  1783. wallPenetratingEquipment: this.wallPenetratingEquipment,
  1784. platformBrand: this.platformBrand,
  1785. platformSupplierBrand: this.platformSupplierBrand,
  1786. constructionTime: this.constructionTime,
  1787. lastUpdateTime: this.lastUpdateTime,
  1788. orgId: this.$route.params.id,
  1789. id: this.extendId,
  1790. detachedLobbyEquipment: this.detachedLobbyEquipment,
  1791. detachedWallPenetratingEquipment: this.detachedWallPenetratingEquipment,
  1792. cashAddingRoomRemoteControl: this.cashAddingRoomRemoteControl,
  1793. };
  1794. // console.log(dat);
  1795. if (this.extendId) {
  1796. updateExtend(dat).then((res) => {
  1797. this.$modal.msgSuccess("保存成功");
  1798. this.$router.go(-1);
  1799. });
  1800. } else {
  1801. addExtend(dat).then((res) => {
  1802. this.$modal.msgSuccess("保存成功");
  1803. this.$router.go(-1);
  1804. });
  1805. }
  1806. },
  1807. nosaveExtend() {
  1808. this.$router.go(-1);
  1809. },
  1810. triggerFileInput() {
  1811. this.$refs.fileInput.click();
  1812. },
  1813. async handleFileChange(event) {
  1814. const file = event.target.files[0];
  1815. if (!file) return;
  1816. // // 创建 FormData 对象并添加文件
  1817. // const formData = new FormData();
  1818. // formData.append("file", file);
  1819. // // 发送文件到您的文件上传 API
  1820. try {
  1821. uploadFile(file, "org").then((res) => {
  1822. console.log(res);
  1823. // this.orgform.certificateEvidence = res.data;
  1824. });
  1825. // 处理上传成功的逻辑
  1826. console.log("上传成功");
  1827. } catch (error) {
  1828. // 处理上传失败的逻辑
  1829. console.log("上传失败");
  1830. }
  1831. // try {
  1832. // const response = await request.post('http://localhost:9527/dev-api/file/file/upload', formData, {
  1833. // headers: {
  1834. // 'Content-Type': 'multipart/form-data',
  1835. // },
  1836. // });
  1837. // // 处理上传成功的逻辑
  1838. // console.log('上传成功', response);
  1839. // } catch (error) {
  1840. // // 处理上传失败的逻辑
  1841. // console.log('上传失败', error);
  1842. // }
  1843. // 重置 input 元素,以便下次选择相同文件时仍能触发 change 事件
  1844. event.target.value = "";
  1845. },
  1846. },
  1847. fillter: {},
  1848. };
  1849. </script>
  1850. <style scoped lang="scss">
  1851. .title {
  1852. font-size: 18px;
  1853. text-align: left;
  1854. background: #008cd6bd;
  1855. color: #fff;
  1856. height: 36px;
  1857. line-height: 36px;
  1858. padding-left: 8px;
  1859. margin: 0;
  1860. }
  1861. .info-box {
  1862. margin: 30px;
  1863. }
  1864. .demo-form-inline {
  1865. }
  1866. .dialog-footer {
  1867. }
  1868. .container {
  1869. }
  1870. .zoom-image {
  1871. transition: transform 0.3s ease;
  1872. }
  1873. .zoom-image:hover {
  1874. transform: scale(1.02);
  1875. }
  1876. .border-color-change {
  1877. border: 1px solid #ccc;
  1878. transition: border-color 0.3s ease;
  1879. }
  1880. .border-color-change:hover {
  1881. border-color: #1ea8e9;
  1882. /* 您可以将此颜色更改为所需的颜色 */
  1883. }
  1884. </style>