detailCompany.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <template>
  2. <el-tabs v-model="activeName" style="margin:2px">
  3. <!--——————————————————————————————————————————基本信息————————————————————————————————————————————————————-->
  4. <el-tab-pane label="基本信息" name="first">
  5. <el-form ref="form" :model="form" label-width="130px" :inline="true">
  6. <el-form-item label="所属行业" prop="scyIndustry">
  7. <el-input v-model="form.scyIndustry" disabled />
  8. </el-form-item>
  9. <el-form-item label="企业规模" prop="scyScale">
  10. <el-input :value=scyScaleFormat(form.scyScale) disabled />
  11. </el-form-item>
  12. <el-form-item label="机构性质" prop="scyOrganization">
  13. <el-input :value=scyOrganizationFormat(form.scyOrganization) disabled />
  14. </el-form-item>
  15. <el-form-item label="企业类型" prop="scyType">
  16. <el-input :value=scyTypeFormat(form.scyType) disabled></el-input>
  17. </el-form-item>
  18. <el-form-item label="客户经理" prop="scyManager">
  19. <el-input v-model="form.scyManager" disabled />
  20. </el-form-item>
  21. <el-form-item label="机构名称" prop="scyName">
  22. <el-input v-model="form.scyName" disabled />
  23. </el-form-item>
  24. <el-form-item label="机构代码" prop="scySocialCode">
  25. <el-input v-model="form.scySocialCode" disabled />
  26. </el-form-item>
  27. <el-form-item label="证件注册日" prop="scyStartTime">
  28. <el-input v-model="form.scyStartTime" disabled />
  29. </el-form-item>
  30. <el-form-item label="注册地址" prop="scyAddress">
  31. <el-input v-model="form.scyAddress" disabled />
  32. </el-form-item>
  33. <el-form-item label="证件到期日" prop="scyEndTime">
  34. <el-input v-model="form.scyEndTime" disabled />
  35. </el-form-item>
  36. <el-form-item label="企业经营范围" prop="scyEndTime">
  37. <el-input v-model="form.scyEndTime" disabled />
  38. </el-form-item>
  39. <el-form-item label="注册资本" prop="scyEndTime">
  40. <el-input v-model="form.scyEndTime" disabled />
  41. </el-form-item>
  42. <el-form-item label="法人姓名" prop="scyLegal">
  43. <el-input v-model="form.scyLegal" disabled />
  44. </el-form-item>
  45. <el-form-item label="证件类型" prop="scyLegal">
  46. <el-input value="身份证" disabled />
  47. </el-form-item>
  48. <el-form-item label="联系方式" prop="scyPhone">
  49. <el-input v-model="form.scyPhone" disabled />
  50. </el-form-item>
  51. <el-form-item label="证件号码" prop="scyLegalId">
  52. <el-input v-model="form.scyLegalId" disabled />
  53. </el-form-item>
  54. </el-form>
  55. </el-tab-pane>
  56. <!--————————————————————————————————————联系人信息————————————————————————————————————————————————-->
  57. <el-tab-pane label="联系人信息" name="second">
  58. <div><span style="color:#409EFF">▋</span> 经办人信息</div>
  59. <el-form ref="contactsForm" :model="contactsForm" label-width="130px" :inline="true">
  60. <el-row>
  61. <el-col :span="8" style="margin-top:2%">
  62. 姓名:
  63. <el-input v-model="contactsForm.nickName" disabled style=" width:50%"></el-input>
  64. </el-col>
  65. <el-col :span="8" style="margin-top:2%">
  66. 移动电话:
  67. <el-input v-model="contactsForm.userName" disabled style="width:50%"></el-input>
  68. </el-col>
  69. <el-col :span="8" style="margin-top:2%">
  70. 邮箱:
  71. <el-input v-model="contactsForm.email" disabled style=" width:50%"></el-input>
  72. </el-col>
  73. </el-row>
  74. </el-form>
  75. </el-tab-pane>
  76. <!--———————————————————————————————————— 发票信息 ————————————————————————————————————————————————-->
  77. <el-tab-pane label="发票信息" name="third">
  78. <div><span style="color:#409EFF">▋</span>开票信息</div>
  79. <el-form ref="invoiceForm" :model="invoiceForm" label-width="130px" :inline="true">
  80. <el-row>
  81. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  82.                     单位名称:
  83.                 </el-col>
  84. <el-col :span="6" style="margin-top:2%;">
  85. <el-input v-model="invoiceForm.scyName" disabled style=" width:75%"></el-input>
  86. </el-col>
  87. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  88. 税号:
  89. </el-col>
  90. <el-col :span="6" style="margin-top:2%;">
  91. <el-input v-model="invoiceForm.scySocialCode" disabled style=" width:75%"></el-input>
  92. </el-col>
  93. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  94. 单位地址:
  95. </el-col>
  96. <el-col :span="6" style="margin-top:2%;">
  97. <el-input v-model="invoiceForm.ziaAddress" disabled style=" width:75%"></el-input>
  98. </el-col>
  99. </el-row>
  100. <el-row>
  101. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  102. 电话号码:
  103. </el-col>
  104. <el-col :span="6" style="margin-top:2%;">
  105. <el-input v-model="invoiceForm.ziaContactsPhone" disabled style=" width:75%"></el-input>
  106. </el-col>
  107. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  108. 开户银行:
  109. </el-col>
  110. <el-col :span="6" style="margin-top:2%;">
  111. <el-input v-model="invoiceForm.pbaiBankName" disabled style=" width:75%"></el-input>
  112. </el-col>
  113. <el-col :span="2" style="margin-top:2%;line-height: 34px;    text-align: right;">
  114. 开户账号:
  115. </el-col>
  116. <el-col :span="6" style="margin-top:2%;">
  117. <el-input v-model="invoiceForm.pbaiBankaccountId" disabled style=" width:75%"></el-input>
  118. </el-col>
  119. </el-row>
  120. </el-form>
  121. </el-tab-pane>
  122. <!--———————————————————————————————————— 链属关系 ————————————————————————————————————————————————-->
  123. <el-tab-pane label="链属关系" name="Section">
  124. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  125. <div style="float: right;margin-right:1%">
  126. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  127. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" style="float: ;">重置</el-button>
  128. </div>
  129. <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="150px">
  130. <el-form-item label="企业名称" prop="companyName">
  131. <el-input maxlength="30" v-model="queryParams.companyName" placeholder="请输入企业名称" clearable size="small" @keyup.enter.native="handleQuery" />
  132. </el-form-item>
  133. <el-form-item label="社会统一代码" prop="scySocialCode">
  134. <el-input maxlength="30" v-model="queryParams.scySocialCode" placeholder="请输入社会统一代码" clearable size="small" @keyup.enter.native="handleQuery" />
  135. </el-form-item>
  136. <el-form-item label="链属状态" prop="scrStatus">
  137. <el-select v-model="queryParams.scrStatus" placeholder="链属状态" clearable size="small" style="width: 215px">
  138. <el-option v-for="dict in scrStatusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue"></el-option>
  139. </el-select>
  140. </el-form-item>
  141. <el-form-item label="企业类型" prop="scrType">
  142. <el-select v-model="queryParams.scrType" placeholder="企业类型" clearable size="small" style="width: 215px">
  143. <el-option v-for="dict in scrTypeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue"></el-option>
  144. </el-select>
  145. </el-form-item>
  146. </el-form>
  147. <el-table v-loading="loading" :data="relList" stripe border>
  148. <el-table-column label="序号" type="index" width="55" align="center" />
  149. <el-table-column label="社会统一代码" align="center" prop="companyCode" show-overflow-tooltip>
  150. <template slot-scope="scope">
  151. <span v-if="scope.row.launch">{{scope.row.receiveScySocialCode}}</span>
  152. <span v-else>{{scope.row.launchScySocialCode}}</span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="企业名称" align="center" prop="companyName" show-overflow-tooltip>
  156. <template slot-scope="scope">
  157. <span v-if="scope.row.launch">{{scope.row.receiveScyName}}</span>
  158. <span v-else>{{scope.row.launchScyName}}</span>
  159. </template>
  160. </el-table-column>
  161. <el-table-column label="企业类型" align="center" prop="companyType">
  162. <template slot-scope="scope">
  163. <span v-if="scope.row.launch">{{companyTypeFormat(scope.row.launchScrReceiveType)}}</span>
  164. <span v-else>{{companyTypeFormat(scope.row.launchScrLaunchType)}}</span>
  165. </template>
  166. </el-table-column>
  167. <el-table-column label="联系人" align="center" prop="launchScrContarct">
  168. </el-table-column>
  169. <el-table-column label="联系电话" align="center" prop="launchScrContarctPhone">
  170. </el-table-column>
  171. <el-table-column label="邮箱" align="center" prop="launchScrContarctEmail" show-overflow-tooltip>
  172. </el-table-column>
  173. <el-table-column label="状态" align="center" prop="launchScrStatus" :formatter="launchScrStatusFormat">
  174. </el-table-column>
  175. </el-table>
  176. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getRelList" />
  177. </el-tab-pane>
  178. <!--———————————————————————————————————— 附件信息 ————————————————————————————————————————————————-->
  179. <el-tab-pane label="附件信息" name="eighth">
  180. <el-row>
  181. <el-col :span="8" v-if="licenShow" style="margin-top:2%;line-height: 34px; text-align: right;">
  182. 营业执照:
  183. </el-col>
  184. <el-upload v-if="licenShow" ref="licenImg" class="Img-demo" action="" multiple list-type="picture-card" :file-list="licenseFileList" :class="{ uoloadSty: showBtnImg, disUoloadSty: noBtnImg }" :auto-upload="false">
  185. <i slot="default" class="el-icon-plus"></i>
  186. <div slot="file" slot-scope="{file}">
  187. <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
  188. <span class="el-upload-list__item-actions">
  189. <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
  190. <i class="el-icon-zoom-in"></i>
  191. </span>
  192. <span class="el-upload-list__item-delete" @click="handleImgDownload(file)">
  193. <i class="el-icon-download"></i>
  194. </span>
  195. </span>
  196. </div>
  197. </el-upload>
  198. <el-col :span="8" v-if="authorizationShow" style="margin-top:2%;line-height: 34px; text-align: right;">
  199. 法人授权书:
  200. </el-col>
  201. <el-upload ref="upload" v-if="authorizationShow" class="upload-demo" action="" :on-preview="handleFilePreview" multiple :file-list="authorizationFileList" :auto-upload="false">
  202. </el-upload>
  203. </el-row>
  204. <el-row>
  205. <el-row>
  206. <el-col :span="8" v-if="handlerPositiveShow || handlerNegativeShow" style="margin-top:2%;line-height: 34px; text-align: right;">
  207. 经办人信息:
  208. </el-col>
  209. <el-upload v-if="handlerPositiveShow" ref="handlerPositiveImg" class="Img-demo" action="" multiple :class="{ uoloadSty: showBtnImg, disUoloadSty: noBtnImg }" list-type="picture-card" :file-list="handlerPositiveList" :auto-upload="false">
  210. <i slot="default" class="el-icon-plus"></i>
  211. <div slot="file" slot-scope="{file}">
  212. <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
  213. <span class="el-upload-list__item-actions">
  214. <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
  215. <i class="el-icon-zoom-in"></i>
  216. </span>
  217. <span class="el-upload-list__item-delete" @click="handleImgDownload(file)">
  218. <i class="el-icon-download"></i>
  219. </span>
  220. </span>
  221. </div>
  222. </el-upload>
  223. <el-upload v-if="handlerNegativeShow" ref="handlerNegativeImg" class="Img-demo" action="" multiple :class="{ uoloadSty: showBtnImg, disUoloadSty: noBtnImg }" list-type="picture-card" :file-list="handlerNegativeList" :auto-upload="false">
  224. <i slot="default" class="el-icon-plus"></i>
  225. <div slot="file" slot-scope="{file}">
  226. <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
  227. <span class="el-upload-list__item-actions" >
  228. <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)" >
  229. <i class="el-icon-zoom-in"></i>
  230. </span>
  231. <span class="el-upload-list__item-delete" @click="handleImgDownload(file)">
  232. <i class="el-icon-download"></i>
  233. </span>
  234. </span>
  235. </div>
  236. </el-upload>
  237. </el-row>
  238. <el-col :span="8" v-if="legalShow || legalBackShow" style="margin-top:2%;line-height: 34px; text-align: right;">
  239. 法人证件:
  240. </el-col>
  241. <el-upload ref="legalImg" v-if="legalShow" class="Img-demo" action="" multiple :class="{ uoloadSty: showBtnImg, disUoloadSty: noBtnImg }" list-type="picture-card" :file-list="legalFileList" :auto-upload="false" style="float:left;">
  242. <i slot="default" class="el-icon-plus"></i>
  243. <div slot="file" slot-scope="{file}" >
  244. <img class="el-upload-list__item-thumbnail" :src="file.url" alt="" >
  245. <span class="el-upload-list__item-actions">
  246. <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
  247. <i class="el-icon-zoom-in"></i>
  248. </span>
  249. <span class="el-upload-list__item-delete" @click="handleImgDownload(file)">
  250. <i class="el-icon-download"></i>
  251. </span>
  252. </span>
  253. </div>
  254. </el-upload>
  255. <el-upload ref="legalBackImg" v-if="legalBackShow" class="Img-demo" action="" multiple :class="{ uoloadSty: showBtnImg, disUoloadSty: noBtnImg }" list-type="picture-card" :file-list="legalBackFileList" :auto-upload="false">
  256. <i slot="default" class="el-icon-plus"></i>
  257. <div slot="file" slot-scope="{file}">
  258. <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
  259. <span class="el-upload-list__item-actions">
  260. <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
  261. <i class="el-icon-zoom-in"></i>
  262. </span>
  263. <span class="el-upload-list__item-delete" @click="handleImgDownload(file)">
  264. <i class="el-icon-download"></i>
  265. </span>
  266. </span>
  267. </div>
  268. </el-upload>
  269. <el-col :span="8" v-if="commitmentShow" style="margin-top:2%;line-height: 34px; text-align: right;">
  270. 数字证书授权与承诺书:
  271. </el-col>
  272. <el-upload v-if="commitmentShow" ref="upload" class="upload-demo" action="" :on-preview="handleFilePreview" multiple :file-list="commitmentFileList" :auto-upload="false">
  273. </el-upload>
  274. </el-row>
  275. </el-tab-pane>
  276. <el-dialog :visible.sync="dialogVisible">
  277. <img width="100%" :src="dialogImageUrl" alt="">
  278. </el-dialog>
  279. </el-tabs>
  280. </template>
  281. <script>
  282. import {
  283. companyQuery,
  284. } from "@/api/service/company/company";
  285. import { listRel } from "@/api/service/rel/companyRel";
  286. import { getToken } from "@/utils/auth";
  287. export default {
  288. name: "detailComPany",
  289. components: {},
  290. data() {
  291. return {
  292. dialogImageUrl: "",
  293. dialogVisible: false,
  294. // 遮罩层
  295. loading: true,
  296. form: {
  297. scyType: null,
  298. },
  299. noBtnImg: true,
  300. licenShow: false,
  301. showBtnImg: false,
  302. authorizationShow: false,
  303. commitmentShow: false,
  304. legalShow: false,
  305. legalBackShow: false,
  306. appendixShow: false,
  307. handlerNegativeShow: false,
  308. handlerPositiveShow: false,
  309. queryParams: {
  310. pageNum: 1,
  311. pageSize: 10,
  312. scyId: null,
  313. companyName: null,
  314. scySocialCode: null,
  315. scrStatus: null,
  316. scrType: null,
  317. },
  318. total: 0,
  319. licenseFileList: [],
  320. legalFileList: [],
  321. legalBackFileList: [],
  322. authorizationFileList: [],
  323. commitmentFileList: [],
  324. handlerPositiveList: [],
  325. handlerNegativeList: [],
  326. relList: [],
  327. scyScaleOptions: [],
  328. scyOrganizationOptions: [],
  329. scyTypeOptions: [],
  330. scrStatusOptions: [],
  331. scrTypeOptions: [],
  332. contactsForm: {},
  333. invoiceForm: {},
  334. fileForm: {},
  335. activeName: "first",
  336. };
  337. },
  338. created() {
  339. const scyId = this.$route.params && this.$route.params.scyId;
  340. this.getList();
  341. this.getRelList();
  342. this.getDicts("ser_scy_scale").then((response) => {
  343. this.scyScaleOptions = response.data;
  344. });
  345. this.getDicts("ser_scy_organization").then((response) => {
  346. this.scyOrganizationOptions = response.data;
  347. });
  348. this.getDicts("ser_scy_type").then((response) => {
  349. this.scyTypeOptions = response.data;
  350. });
  351. this.getDicts("sys_scr_type").then((response) => {
  352. this.scrTypeOptions = response.data;
  353. });
  354. this.getDicts("sys_scr_status").then((response) => {
  355. this.scrStatusOptions = response.data;
  356. });
  357. },
  358. mounted() {},
  359. methods: {
  360. /** 提交按钮 */
  361. submitForm() {
  362. var self = this;
  363. this.$refs["form"].validate((valid) => {
  364. let fd = new FormData();
  365. for (var key in self.form) {
  366. fd.append(key, self.form[key]);
  367. }
  368. if (valid) {
  369. if (this.form.scyId != null) {
  370. const loading = this.$loading({
  371. lock: true,
  372. text: "Loading",
  373. spinner: "el-icon-loading",
  374. background: "rgba(0, 0, 0, 0.9)",
  375. });
  376. updateCompanyInfor(self.form).then((response) => {
  377. this.msgSuccess("修改成功");
  378. this.getList();
  379. this.getRelList();
  380. });
  381. loading.close();
  382. }
  383. }
  384. });
  385. },
  386. //取消按钮
  387. cancel() {
  388. (this.form.scyIndustry = null),
  389. (this.form.scyScale = null),
  390. (this.form.scyOrganization = null),
  391. (this.form.scyManager = null);
  392. },
  393. /* 下载 */
  394. handleFilePreview(fileUrl) {
  395. this.$confirm('是否确认下载"' + fileUrl.name + '"附件?', "警告", {
  396. confirmButtonText: "确定",
  397. cancelButtonText: "取消",
  398. type: "warning",
  399. }).then(function () {
  400. if (fileUrl.name.substr(-3) == "pdf") {
  401. if (fileUrl.url.indexOf("getPdf") != -1) {
  402. fileUrl.url = fileUrl.url.replace("getPdf", "getBytes");
  403. }
  404. window.open(fileUrl.url + "/" + getToken());
  405. } else {
  406. var a = document.createElement("a");
  407. var event = new MouseEvent("click");
  408. a.download = fileUrl.name;
  409. a.href = fileUrl.url + "/" + getToken();
  410. a.dispatchEvent(event);
  411. }
  412. });
  413. },
  414. handlePictureCardPreview(file) {
  415. this.dialogImageUrl = file.url + "/" + getToken();
  416. this.dialogVisible = true;
  417. },
  418. /** 搜索按钮操作 */
  419. handleQuery() {
  420. this.queryParams.pageNum = 1;
  421. this.getRelList();
  422. },
  423. /** 重置按钮操作 */
  424. resetQuery() {
  425. this.resetForm("queryForm");
  426. this.handleQuery();
  427. },
  428. // 菜单状态字典翻译
  429. companyTypeFormat(companyType) {
  430. return this.selectDictLabel(this.scrTypeOptions, companyType);
  431. },
  432. scyTypeFormat(scyType) {
  433. return this.selectDictLabel(this.scyTypeOptions, scyType);
  434. },
  435. launchScrStatusFormat(row, column) {
  436. return this.selectDictLabel(
  437. this.scrStatusOptions,
  438. row.launchScrStatus
  439. );
  440. },
  441. scyScaleFormat(scyScale){
  442. return this.selectDictLabel(this.scyScaleOptions, scyScale);
  443. },
  444. scyOrganizationFormat(scyOrganization){
  445. return this.selectDictLabel(this.scyOrganizationOptions, scyOrganization);
  446. },
  447. getList() {
  448. this.loading = true;
  449. const scyId = this.$route.params && this.$route.params.scyId;
  450. companyQuery(scyId).then((response) => {
  451. //基本信息
  452. if (response.data.basicList.length > 0) {
  453. this.form = response.data.basicList[0];
  454. }
  455. //经办人信息
  456. if (response.data.contactsList) {
  457. if (response.data.contactsList.length > 0) {
  458. this.contactsForm = response.data.contactsList[0];
  459. }
  460. }
  461. //发票信息
  462. if (response.data.invoiceList.length > 0) {
  463. this.invoiceForm = response.data.invoiceList[0];
  464. }
  465. //营业执照信息
  466. if (response.data.licenseList) {
  467. const licenseImg = response.data.licenseList[0].pfiUrl;
  468. const licenseImgId = response.data.licenseList[0].pfiFileId;
  469. if (licenseImg != "" && licenseImgId != "") {
  470. this.licenShow = true;
  471. let imgUrl = licenseImg.split(",");
  472. let imgUrlId = licenseImgId.split(",");
  473. for (let i = 0; i < imgUrl.length; i++) {
  474. this.licenseFileList.push({
  475. url: imgUrl[i] + "/" + getToken(),
  476. uid: imgUrlId[i],
  477. });
  478. }
  479. } else {
  480. this.licenShow = false;
  481. }
  482. }
  483. //法人正面信息
  484. if (response.data.legalList) {
  485. const legalImg = response.data.legalList[0].pfiUrl;
  486. const legalImgId = response.data.legalList[0].pfiFileId;
  487. if (legalImg != "" && legalImgId != "") {
  488. this.legalShow = true;
  489. let imgUrl = legalImg.split(",");
  490. let imgUrlId = legalImgId.split(",");
  491. for (let i = 0; i < imgUrl.length; i++) {
  492. this.legalFileList.push({
  493. url: imgUrl[i] + "/" + getToken(),
  494. uid: imgUrlId[i],
  495. });
  496. }
  497. } else {
  498. this.legalShow = false;
  499. }
  500. }
  501. //法人反面信息
  502. if (response.data.legalBackList) {
  503. const legalBackImg = response.data.legalBackList[0].pfiUrl;
  504. const legalBackImgId =
  505. response.data.legalBackList[0].pfiFileId;
  506. if (legalBackImg != "" && legalBackImgId != "") {
  507. this.legalBackShow = true;
  508. let imgUrl = legalBackImg.split(",");
  509. let imgUrlId = legalBackImgId.split(",");
  510. for (let i = 0; i < imgUrl.length; i++) {
  511. this.legalBackFileList.push({
  512. url: imgUrl[i] + "/" + getToken(),
  513. uid: imgUrlId[i],
  514. });
  515. }
  516. } else {
  517. this.legalBackShow = false;
  518. }
  519. }
  520. //经办人正面信息
  521. if (response.data.handlerPositiveList) {
  522. const handlerPositiveImg =
  523. response.data.handlerPositiveList[0].pfiUrl;
  524. const handlerPositiveImgId =
  525. response.data.handlerPositiveList[0].pfiFileId;
  526. if (handlerPositiveImg != "" && handlerPositiveId != "") {
  527. this.handlerPositiveShow = true;
  528. let imgUrl = handlerPositiveImg.split(",");
  529. let imgUrlId = handlerPositiveImgId.split(",");
  530. for (let i = 0; i < imgUrl.length; i++) {
  531. this.handlerPositiveList.push({
  532. url: imgUrl[i] + "/" + getToken(),
  533. uid: imgUrlId[i],
  534. });
  535. }
  536. } else {
  537. this.handlerPositiveShow = false;
  538. }
  539. }
  540. //经办人反面信息
  541. if (response.data.handlerNegativeList) {
  542. const handlerNegativeImg =
  543. response.data.handlerNegativeList[0].pfiUrl;
  544. const handlerNegativeImgId =
  545. response.data.handlerNegativeList[0].pfiFileId;
  546. if (
  547. handlerNegativeImg != "" &&
  548. handlerNegativeImgId != ""
  549. ) {
  550. this.handlerNegativeShow = true;
  551. let imgUrl = handlerNegativeImg.split(",");
  552. let imgUrlId = handlerNegativeImgId.split(",");
  553. for (let i = 0; i < imgUrl.length; i++) {
  554. this.handlerNegativeList.push({
  555. url: imgUrl[i] + "/" + getToken(),
  556. uid: imgUrlId[i],
  557. });
  558. }
  559. } else {
  560. this.handlerNegativeShow = false;
  561. }
  562. }
  563. //法人授权书信息
  564. if (response.data.authorizationList) {
  565. const authorizationFileName =
  566. response.data.authorizationList[0].pfiFileName;
  567. const authorizationFile =
  568. response.data.authorizationList[0].pfiUrl;
  569. const authorizationFileId =
  570. response.data.authorizationList[0].pfiFileId;
  571. if (authorizationFile != "" && authorizationFileId != "") {
  572. this.authorizationShow = true;
  573. let fileName = authorizationFileName.split(",");
  574. let fileUrl = authorizationFile.split(",");
  575. let fileUrlId = authorizationFileId.split(",");
  576. for (let i = 0; i < fileUrl.length; i++) {
  577. this.authorizationFileList.push({
  578. name: fileName[i],
  579. url: fileUrl[i] + "/" + getToken(),
  580. uid: fileUrlId[i],
  581. });
  582. }
  583. } else {
  584. this.authorizationShow = false;
  585. }
  586. }
  587. //数字证书授权与承诺书信息
  588. if (response.data.commitmentList) {
  589. const commitmentFileName =
  590. response.data.commitmentList[0].pfiFileName;
  591. const commitmentFile =
  592. response.data.commitmentList[0].pfiUrl;
  593. const commitmentFileId =
  594. response.data.commitmentList[0].pfiFileId;
  595. if (commitmentFile != "" && commitmentFileId != "") {
  596. this.commitmentShow = true;
  597. let fileName = commitmentFileName.split(",");
  598. let fileUrl = commitmentFile.split(",");
  599. let fileUrlId = commitmentFileId.split(",");
  600. for (let i = 0; i < fileUrl.length; i++) {
  601. this.commitmentFileList.push({
  602. name: fileName[i],
  603. url: fileUrl[i] + "/" + getToken(),
  604. uid: fileUrlId[i],
  605. });
  606. }
  607. } else {
  608. this.commitmentShow = false;
  609. }
  610. }
  611. //其他附件
  612. // if(response.data.appendixList){
  613. // const appendixFileName = response.data.appendixList[0].pfiFileName;
  614. // const appendixFile = response.data.appendixList[0].pfiUrl;
  615. // const appendixFileId = response.data.appendixList[0].pfiFileId;
  616. // if(appendixFile != '' && appendixFileId != ''){
  617. // this.appendixShow = true;
  618. // let fileName = (appendixFileName).split(",")
  619. // let fileUrl =(appendixFile).split(",")
  620. // let fileUrlId =(appendixFileId).split(",")
  621. // for(let i = 0;i< fileUrl.length;i++){
  622. // this.appendixFileList.push({name:fileName[i], url: fileUrl[i] + '/' + getToken(), uid: fileUrlId[i] });
  623. // }
  624. // }else{
  625. // this.appendixShow = false;
  626. // }
  627. // }
  628. this.loading = false;
  629. });
  630. },
  631. getRelList() {
  632. const scyId = this.$route.params && this.$route.params.scyId;
  633. this.queryParams.scyId = scyId;
  634. listRel(this.queryParams).then((response) => {
  635. let list = response.data.records;
  636. this.loginId = response.msg;
  637. for (let i = 0; i < list.length; i++) {
  638. if (list[i].launchCompanyId == scyId) {
  639. list[i].receive = false;
  640. list[i].launch = true;
  641. } else if (list[i].launchReceiveScrCompanyId == scyId) {
  642. list[i].launch = false;
  643. list[i].receive = true;
  644. }
  645. }
  646. this.relList = list;
  647. this.total = response.data.total;
  648. });
  649. },
  650. },
  651. };
  652. </script>
  653. <style lang="scss">
  654. .uoloadSty .el-upload--picture-card {
  655. width: 110px;
  656. height: 110px;
  657. line-height: 110px;
  658. }
  659. .disUoloadSty .el-upload--picture-card {
  660. display: none;
  661. }
  662. </style>