detailsPageEdit.vue 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460
  1. <template>
  2. <div class="borderless">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <!-- <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
  6. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  7. @click="backToList()">返回列表
  8. </el-button>
  9. </div>
  10. <div class="add-customer-btn">
  11. <el-button type="primary" @click="synchronization" size="small" :disabled="!form.id">同 步
  12. </el-button>
  13. <el-button type="primary" @click="openFlow" size="small" :disabled="!form.id">审 核
  14. </el-button>
  15. <el-button type="primary" :disabled="disabled" @click="editCustomer(null)" size="small">{{ form.id ? "确认修改" : "确认新增"
  16. }}
  17. </el-button>
  18. </div>
  19. </div>
  20. <div class="customer-main">
  21. <el-form :model="form" ref="form" label-width="100px" class="demo-ruleForm">
  22. <containerTitle title="基础资料"></containerTitle>
  23. <basic-container>
  24. <el-row>
  25. <el-col v-for="(item, index) in basicData.column" :key="index" :span="item.span ? item.span : 8">
  26. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
  27. <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple style="width: 100%;" size="small"
  28. :props="{ label: 'title' }" v-model="form[item.prop]" placeholder=" " type="tree" :dic="dic">
  29. </avue-input-tree>
  30. <el-cascader v-else-if="item.prop === 'belongtoarea'" v-model="form[item.prop]" collapse-tags
  31. :options="dicArea" :props="props" size="small" style="width: 100%;" :show-all-levels="false"
  32. @change="addressChange"></el-cascader>
  33. <!-- <avue-input-tree-->
  34. <!-- v-else-if="item.prop === 'belongtoarea'"-->
  35. <!-- leaf-only-->
  36. <!-- multiple-->
  37. <!-- tags-->
  38. <!-- style="width: 100%;"-->
  39. <!-- size="small"-->
  40. <!-- :props="{ label: 'name', value: 'name' }"-->
  41. <!-- v-model="form[item.prop]"-->
  42. <!-- placeholder=" "-->
  43. <!-- type="tree"-->
  44. <!-- :dic="dicArea"-->
  45. <!-- ></avue-input-tree>-->
  46. <el-select v-else-if="item.prop === 'adminProfiles'" size="small" style="width: 100%;"
  47. v-model="form[item.prop]" multiple placeholder="">
  48. <el-option v-for="item in userList" :key="item.id" :label="item.name" :value="item.id">
  49. </el-option>
  50. </el-select>
  51. <el-select v-else-if="item.prop === 'creditRating'" size="small" style="width: 100%;"
  52. v-model="form[item.prop]" placeholder="">
  53. <el-option v-for="item in creditRatingList" :key="item.id" :label="item.dictValue"
  54. :value="item.dictValue">
  55. </el-option>
  56. </el-select>
  57. <el-select v-else-if="item.prop === 'line'" size="small" style="width: 100%;"
  58. v-model="form[item.prop]" clearable placeholder="请选择" multiple collapse-tags>
  59. <el-option v-for="item in lineList" :key="item.id" :label="item.dictValue" :value="item.dictKey">
  60. </el-option>
  61. </el-select>
  62. <crop-select v-else-if="item.prop === 'belongtocompany'" v-model="form[item.prop]"
  63. @getCorpData="getCorpName" corpType="GS"></crop-select>
  64. <el-input type="text" v-else-if="item.prop === 'initials'" v-model="form[item.prop]" size="small"
  65. autocomplete="off" :disabled="item.disabled" show-word-limit maxlength="1"></el-input>
  66. <el-input type="textarea" v-else-if="item.prop === 'remarks'" :rows="1" placeholder="请输入内容"
  67. v-model="form[item.prop]">
  68. </el-input>
  69. <el-input type="age" v-else v-model="form[item.prop]" size="small" autocomplete="off"
  70. :disabled="item.disabled"></el-input>
  71. </el-form-item>
  72. </el-col>
  73. </el-row>
  74. </basic-container>
  75. <containerTitle title="联系方式"></containerTitle>
  76. <basic-container>
  77. <el-row>
  78. <el-col v-for="(item, index) in contactInformation.column" :key="index" :span="item.span ? item.span : 8">
  79. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
  80. <el-input type="textarea" v-if="item.prop === 'addr'" :rows="2" placeholder="请输入内容"
  81. v-model="form[item.prop]">
  82. </el-input>
  83. <el-input type="textarea" v-else-if="item.prop === 'storageAddr'" :rows="2" placeholder="请输入内容"
  84. v-model="form[item.prop]">
  85. </el-input>
  86. <el-input type="textarea" v-else-if="item.prop === 'subStorageAddr'" :rows="2" placeholder="请输入内容"
  87. v-model="form[item.prop]">
  88. </el-input>
  89. <el-input v-else type="age" v-model="form[item.prop]" size="small" autocomplete="off"></el-input>
  90. </el-form-item>
  91. </el-col>
  92. </el-row>
  93. </basic-container>
  94. <containerTitle title="财务资料"></containerTitle>
  95. <basic-container>
  96. <el-row>
  97. <el-col v-for="(item, index) in financialInformation.column" :key="index" :span="item.span ? item.span : 8">
  98. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules" v-if="!item.hide">
  99. <el-switch v-if="item.prop === 'creditstatus'" v-model="form[item.prop]" active-value="0"
  100. inactive-value="1" active-text="开启" inactive-text="关闭">
  101. </el-switch>
  102. <el-select v-else-if="item.prop === 'paymentType'" v-model="form[item.prop]" clearable filterable
  103. size="small" style="width: 100%;">
  104. <el-option v-for="(item, index) in paymentOption" :key="index" :label="item.dictValue"
  105. :value="item.dictValue"></el-option>
  106. </el-select>
  107. <el-select v-else-if="item.prop === 'packageRemarks'" v-model="form[item.prop]" clearable filterable
  108. size="small" style="width: 100%;">
  109. <el-option v-for="(item, index) in packageOptions" :key="index" :label="item.dictValue"
  110. :value="item.dictValue"></el-option>
  111. </el-select>
  112. <el-select v-else-if="item.prop === 'a'" v-model="form[item.prop]" clearable filterable size="small"
  113. style="width: 100%;" @change="aChange">
  114. <el-option v-for="(item, index) in settingOption" :key="index" :label="item.dictValue"
  115. :value="item.dictValue"></el-option>
  116. </el-select>
  117. <el-select v-else-if="item.prop === 'c'" v-model="form[item.prop]" clearable filterable size="small"
  118. style="width: 100%;" @change="cChange">
  119. <el-option v-for="(item, index) in monthOption" :key="index" :label="item.dictValue"
  120. :value="item.dictKey"></el-option>
  121. </el-select>
  122. <el-input v-else type="age" v-model="form[item.prop]" size="small" autocomplete="off"></el-input>
  123. </el-form-item>
  124. </el-col>
  125. </el-row>
  126. </basic-container>
  127. <containerTitle title="客户联系人"></containerTitle>
  128. <basic-container>
  129. <avue-crud ref="crud" :option="customerContact" v-model="contactsForm" :data="contactsData"
  130. @saveColumn="saveColumn" @resetColumn="resetColumn" @row-save="rowSave" @row-update="rowUpdate"
  131. @row-del="rowDel">
  132. <template slot-scope="{ type, size, row }" slot="menu">
  133. <el-button icon="el-icon-check" :size="size" :type="type" @click="creatingUsers(row)">创建用户</el-button>
  134. </template>
  135. </avue-crud>
  136. </basic-container>
  137. <!-- <containerTitle title="客户优势项目"></containerTitle>
  138. <basic-container style="margin-bottom: 10px">
  139. <avue-crud
  140. :option="advantageProject"
  141. v-model="advantageProjectForm"
  142. :data="advantageProjectData"
  143. @row-save="rowSaveProject"
  144. @row-update="rowUpdateProject"
  145. @row-del="rowDelProject"
  146. ></avue-crud>
  147. </basic-container> -->
  148. <containerTitle title="客户开户行"></containerTitle>
  149. <basic-container>
  150. <avue-crud ref="crud2" :option="bankOfDeposit" v-model="bankOfDepositForm" :data="bankOfDepositData"
  151. @saveColumn="saveColumn2" @resetColumn="resetColumn2" @row-save="rowSaveBankOfDeposit"
  152. @row-update="rowUpdateBankOfDeposit" @row-del="rowDelBankOfDeposit"></avue-crud>
  153. </basic-container>
  154. <containerTitle title="收发货地址"></containerTitle>
  155. <basic-container>
  156. <avue-crud ref="crud3" :option="addressOption" v-model="addressForm" :data="addressData"
  157. @saveColumn="saveColumn3" @resetColumn="resetColumn3" @row-save="rowSaveAddress"
  158. @row-update="rowUpdateAddress" @row-del="rowDelAddress"></avue-crud>
  159. </basic-container>
  160. </el-form>
  161. </div>
  162. <flow-dialog :switchDialog="switchDialog" @onClose="onClose()">
  163. <template slot="content"> </template>
  164. </flow-dialog>
  165. <el-dialog title="同 步" :visible.sync="dialogVisible" append-to-body width="60%">
  166. <avue-form ref="formData" v-model="formData" :option="option">
  167. </avue-form>
  168. <span slot="footer" class="dialog-footer">
  169. <el-button @click="dialogVisible = false">取 消</el-button>
  170. <el-button type="primary" @click="confirmSynchronization">确 定</el-button>
  171. </span>
  172. </el-dialog>
  173. <el-dialog title="创建用户" :visible.sync="dialogVisibleBt" append-to-body width="60%">
  174. <avue-form v-if="dialogVisibleBt" ref="formDataTwo" v-model="formDataTwo" :option="optionData">
  175. </avue-form>
  176. <span slot="footer" class="dialog-footer">
  177. <el-button @click="dialogVisibleBt = false">取 消</el-button>
  178. <el-button type="primary" @click="confirmSynchronizationTwo">确 定</el-button>
  179. </span>
  180. </el-dialog>
  181. </div>
  182. </template>
  183. <script>
  184. import {
  185. customerList,
  186. typeSave,
  187. detail,
  188. deleteDetails,
  189. corpstypeTree,
  190. corpsattn,
  191. corpsbank,
  192. corpsfiles,
  193. corpsitem,
  194. areaTypeTree,
  195. corpsAddrDelete,
  196. synchronizationCopy,
  197. creatingUsers
  198. } from "@/api/basicData/customerInformation";
  199. import customerContact from "./configuration/customerContact.json";
  200. import advantageProject from "./configuration/advantageProject.json";
  201. import bankOfDeposit from "./configuration/bankOfDeposit.json";
  202. import flowDialog from "@/components/flow-dialog/main";
  203. import { customerParameter } from "@/enums/management-type";
  204. import { gainUser } from "@/api/basicData/customerInquiry";
  205. import addressOption from "./configuration/addressOption.json";
  206. import website from "@/config/website";
  207. import { getRoleTree } from "@/api/system/role";
  208. import { getDeptTree } from "@/api/system/dept";
  209. import { getPostList } from "@/api/system/post";
  210. import { contrastObj, contrastList } from "@/util/contrastData";
  211. export default {
  212. name: "detailsPage",
  213. data() {
  214. return {
  215. userList: [],
  216. formData: {},
  217. formDataTwo: {},
  218. creditRatingList: [],
  219. lineList: [],
  220. optionData: {
  221. span: 8,
  222. menuBtn: false,
  223. column: [
  224. {
  225. label: "所属角色",
  226. prop: "roleId",
  227. multiple: true,
  228. type: "tree",
  229. dicData: [],
  230. props: {
  231. label: "title"
  232. },
  233. checkStrictly: true,
  234. slot: true,
  235. rules: [
  236. {
  237. required: true,
  238. message: "请选择所属角色",
  239. trigger: "click"
  240. }
  241. ]
  242. },
  243. {
  244. label: "所属部门",
  245. prop: "deptId",
  246. type: "tree",
  247. multiple: true,
  248. dicData: [],
  249. props: {
  250. label: "title"
  251. },
  252. checkStrictly: true,
  253. slot: true,
  254. rules: [
  255. {
  256. required: true,
  257. message: "请选择所属部门",
  258. trigger: "click"
  259. }
  260. ]
  261. },
  262. {
  263. label: "所属岗位",
  264. prop: "postId",
  265. type: "tree",
  266. multiple: true,
  267. dicData: [],
  268. props: {
  269. label: "postName",
  270. value: "id"
  271. },
  272. rules: [
  273. {
  274. required: true,
  275. message: "请选择所属岗位",
  276. trigger: "click"
  277. }
  278. ]
  279. }
  280. ]
  281. },
  282. dialogVisibleBt: false,
  283. dialogVisible: false,
  284. option: {
  285. span: 12,
  286. menuBtn: false,
  287. column: [
  288. {
  289. label: "客户类型",
  290. prop: "corpType",
  291. type: "select",
  292. cascader: ["corpsTypeId"],
  293. dicUrl: "/api/blade-system/dict-biz/dictionary?code=corp_type",
  294. props: {
  295. label: "dictValue",
  296. value: "dictKey"
  297. },
  298. rules: [
  299. {
  300. required: true,
  301. message: "请选择客户类型",
  302. trigger: "blur"
  303. }
  304. ]
  305. },
  306. {
  307. label: "类别",
  308. prop: "corpsTypeId",
  309. type: "tree",
  310. dicUrl: "/api/blade-client/corpstype/tree?&corpType={{key}}",
  311. props: {
  312. label: "title",
  313. value: "value"
  314. },
  315. rules: [
  316. {
  317. required: true,
  318. message: "请选择类型",
  319. trigger: "blur"
  320. }
  321. ]
  322. }
  323. ]
  324. },
  325. switchDialog: false,
  326. form: {},
  327. disabled: false,
  328. contactsForm: {},
  329. advantageProjectForm: {},
  330. bankOfDepositForm: {},
  331. contactsData: [],
  332. advantageProjectData: [],
  333. bankOfDepositData: [],
  334. dic: [],
  335. dicArea: [],
  336. customerContact: {},
  337. advantageProject: advantageProject,
  338. bankOfDeposit: {},
  339. contactInformation: {
  340. column: [
  341. {
  342. label: "联系人",
  343. prop: "attn",
  344. rules: [
  345. {
  346. required: false,
  347. message: "请输入联系人",
  348. trigger: "blur"
  349. }
  350. ]
  351. },
  352. {
  353. label: "联系电话",
  354. prop: "tel",
  355. rules: [
  356. {
  357. required: false,
  358. message: "请输入联系电话",
  359. trigger: "blur"
  360. }
  361. ]
  362. },
  363. {
  364. label: "职位",
  365. prop: "position",
  366. rules: [
  367. {
  368. required: false,
  369. message: "请输入职位",
  370. trigger: "blur"
  371. }
  372. ]
  373. },
  374. {
  375. label: "单位地址",
  376. prop: "addr",
  377. rules: [
  378. {
  379. required: false,
  380. message: "请输入单位地址",
  381. trigger: "blur"
  382. }
  383. ]
  384. },
  385. {
  386. label: "仓库地址",
  387. prop: "storageAddr",
  388. rules: [
  389. {
  390. required: false,
  391. message: "请输入仓库地址",
  392. trigger: "blur"
  393. }
  394. ]
  395. },
  396. {
  397. label: "分仓地址",
  398. prop: "subStorageAddr",
  399. rules: [
  400. {
  401. required: false,
  402. message: "请输入分仓地址",
  403. trigger: "blur"
  404. }
  405. ]
  406. }
  407. ]
  408. },
  409. financialInformation: {
  410. column: [
  411. {
  412. label: "账户名称",
  413. prop: "accountName",
  414. span: 8,
  415. rules: [
  416. {
  417. required: false,
  418. message: " ",
  419. trigger: "blur"
  420. }
  421. ]
  422. },
  423. {
  424. label: "开户银行",
  425. prop: "accountBank",
  426. span: 8,
  427. rules: [
  428. {
  429. required: false,
  430. message: " ",
  431. trigger: "blur"
  432. }
  433. ]
  434. },
  435. {
  436. label: "银行帐号",
  437. prop: "accountNo",
  438. span: 8,
  439. rules: [
  440. {
  441. required: false,
  442. message: " ",
  443. trigger: "blur"
  444. }
  445. ]
  446. },
  447. {
  448. label: "CNAPS",
  449. prop: "cnaps",
  450. span: 8,
  451. rules: [
  452. {
  453. required: false,
  454. message: " ",
  455. trigger: "blur"
  456. }
  457. ]
  458. },
  459. {
  460. label: "银行地址",
  461. prop: "localBankAddress",
  462. span: 8,
  463. rules: [
  464. {
  465. required: false,
  466. message: " ",
  467. trigger: "blur"
  468. }
  469. ]
  470. },
  471. {
  472. label: "外币账户名称",
  473. prop: "accountNameFcy",
  474. span: 8,
  475. rules: [
  476. {
  477. required: false,
  478. message: " ",
  479. trigger: "blur"
  480. }
  481. ]
  482. },
  483. {
  484. label: "外币开户银行",
  485. prop: "accountBankFcy",
  486. span: 8,
  487. rules: [
  488. {
  489. required: false,
  490. message: " ",
  491. trigger: "blur"
  492. }
  493. ]
  494. },
  495. {
  496. label: "外币银行账号",
  497. prop: "accountNoFcy",
  498. span: 8,
  499. rules: [
  500. {
  501. required: false,
  502. message: " ",
  503. trigger: "blur"
  504. }
  505. ]
  506. },
  507. {
  508. label: "Swift Code",
  509. prop: "swiftCode",
  510. span: 8,
  511. rules: [
  512. {
  513. required: false,
  514. message: " ",
  515. trigger: "blur"
  516. }
  517. ]
  518. },
  519. {
  520. label: "外币银行地址",
  521. prop: "foreignBankAddress",
  522. span: 8,
  523. rules: [
  524. {
  525. required: false,
  526. message: " ",
  527. trigger: "blur"
  528. }
  529. ]
  530. },
  531. {
  532. label: "授信状态",
  533. prop: "creditstatus",
  534. span: 8,
  535. rules: [
  536. {
  537. required: false,
  538. message: " ",
  539. trigger: "blur"
  540. }
  541. ]
  542. },
  543. {
  544. label: "授信等级",
  545. prop: "creditLevel",
  546. span: 8,
  547. rules: [
  548. {
  549. required: false,
  550. message: " ",
  551. trigger: "blur"
  552. }
  553. ]
  554. },
  555. {
  556. label: "授信额度",
  557. prop: "creditGrant",
  558. span: 8,
  559. rules: [
  560. {
  561. required: false,
  562. message: " ",
  563. trigger: "blur"
  564. }
  565. ]
  566. },
  567. {
  568. label: "授信天数",
  569. prop: "creditDay",
  570. span: 8,
  571. rules: [
  572. {
  573. required: false,
  574. message: " ",
  575. trigger: "blur"
  576. }
  577. ]
  578. },
  579. {
  580. label: "授信利率",
  581. prop: "creditRate",
  582. span: 8,
  583. rules: [
  584. {
  585. required: false,
  586. message: " ",
  587. trigger: "blur"
  588. }
  589. ]
  590. },
  591. {
  592. label: "FOB系数",
  593. span: 8,
  594. prop: "coefficient"
  595. },
  596. {
  597. label: "付款方式",
  598. span: 8,
  599. prop: "paymentType"
  600. },
  601. {
  602. label: "纳税人识别号",
  603. prop: "taxpayerDifferenceCode"
  604. },
  605. {
  606. label: "包装要求",
  607. span: 8,
  608. prop: "packageRemarks"
  609. },
  610. {
  611. label: "账期设置",
  612. span: 8,
  613. prop: "a"
  614. },
  615. {
  616. label: "天数",
  617. span: 8,
  618. prop: "b"
  619. },
  620. {
  621. label: "结清月份",
  622. span: 8,
  623. prop: "c"
  624. },
  625. {
  626. label: "结清天数",
  627. span: 8,
  628. prop: "j"
  629. },
  630. {
  631. label: "日利息万分",
  632. span: 8,
  633. prop: "d"
  634. },
  635. {
  636. label: "最大欠款额",
  637. span: 8,
  638. prop: "e"
  639. },
  640. {
  641. label: "协议号",
  642. span: 8,
  643. prop: "f"
  644. },
  645. {
  646. label: "账期日期",
  647. span: 8,
  648. prop: "g"
  649. },
  650. {
  651. label: "账期备注",
  652. span: 24,
  653. prop: "h"
  654. }
  655. ]
  656. },
  657. basicData: {
  658. column: [
  659. {
  660. label: "编码",
  661. prop: "code",
  662. rules: [
  663. {
  664. required: true,
  665. message: " ",
  666. trigger: "blur"
  667. }
  668. ]
  669. },
  670. {
  671. label: "名称",
  672. prop: "cname",
  673. rules: [
  674. {
  675. required: true,
  676. message: " ",
  677. trigger: "blur"
  678. }
  679. ]
  680. },
  681. {
  682. label: "简称",
  683. prop: "shortName"
  684. },
  685. {
  686. label: "类别",
  687. prop: "corpsTypeId",
  688. rules: [
  689. {
  690. required: true,
  691. message: " ",
  692. trigger: "blur"
  693. }
  694. ]
  695. },
  696. {
  697. label: "企业类型",
  698. prop: "companytype",
  699. rules: [
  700. {
  701. required: false,
  702. message: " ",
  703. trigger: "blur"
  704. }
  705. ]
  706. },
  707. {
  708. label: "代理品牌",
  709. prop: "goodtypes",
  710. rules: [
  711. {
  712. required: false,
  713. message: " ",
  714. trigger: "blur"
  715. }
  716. ]
  717. },
  718. {
  719. label: "所属公司",
  720. prop: "belongtocompany",
  721. rules: [
  722. {
  723. required: false,
  724. message: " ",
  725. trigger: "blur"
  726. }
  727. ]
  728. },
  729. {
  730. label: "分管员",
  731. prop: "adminProfiles",
  732. span: 8
  733. },
  734. {
  735. label: "区域",
  736. prop: "belongtoarea",
  737. span: 8,
  738. mock: {
  739. type: "county"
  740. }
  741. },
  742. {
  743. label: "信用等级",
  744. prop: "creditRating",
  745. span: 8
  746. },
  747. {
  748. label: "代理商编码",
  749. prop: "agentCode",
  750. span: 8
  751. }, {
  752. label: "首字母",
  753. prop: "initials",
  754. span: 8
  755. },{
  756. label: "优势航线",
  757. prop: "line",
  758. span: 8
  759. },{
  760. label: "海关号",
  761. prop: "customsNo",
  762. span: 8
  763. },
  764. // {
  765. // label: "总返利",
  766. // prop: "profitReturn",
  767. // disabled: true,
  768. // span: 8
  769. // },
  770. // {
  771. // label: "已用返利",
  772. // prop: "usedProfit",
  773. // disabled: true,
  774. // span: 8
  775. // },
  776. // {
  777. // label: "可用返利",
  778. // prop: "surplusProfit",
  779. // disabled: false,
  780. // span: 8
  781. // },
  782. // {
  783. // label: "可用返利",
  784. // prop: "monthProfit",
  785. // disabled: true,
  786. // span: 8
  787. // },
  788. {
  789. label: "备注",
  790. prop: "remarks",
  791. span: 24,
  792. mock: {
  793. type: "county"
  794. }
  795. }
  796. ]
  797. },
  798. paymentOption: [],
  799. settingOption: [],
  800. monthOption: [],
  801. addressOption: {},
  802. addressForm: {},
  803. addressData: [],
  804. formRow: {},
  805. // 包装要求
  806. packageOptions: [],
  807. props: {
  808. value: "name",
  809. label: "name",
  810. multiple: true
  811. },
  812. addressLatLng: [],
  813. oldform: {
  814. creditstatus:'1'
  815. },
  816. oldcontactsData: [],
  817. oldbankOfDepositData: [],
  818. oldadvantageProjectData: [],
  819. oldaddressLatLng: [],
  820. oldaddressData: [],
  821. };
  822. },
  823. props: {
  824. detailData: {
  825. type: Object
  826. }
  827. },
  828. components: {
  829. flowDialog
  830. },
  831. async created() {
  832. this.customerContact = await this.getColumnData(
  833. this.getColumnName(143),
  834. customerContact
  835. );
  836. this.bankOfDeposit = await this.getColumnData(
  837. this.getColumnName(144),
  838. bankOfDeposit
  839. );
  840. this.addressOption = await this.getColumnData(
  841. this.getColumnName(145),
  842. addressOption
  843. );
  844. if (!website.tenantMode) {
  845. this.initData(website.tenantId);
  846. } else {
  847. this.initData();
  848. }
  849. if (this.$store.getters.userInfo.tenant_id === "096359") {
  850. let list = ["profitReturn", "usedProfit", "surplusProfit", "monthProfit"];
  851. for (let item in list) {
  852. for (let i in this.basicData.column) {
  853. if (list[item] == this.basicData.column[i].prop) {
  854. this.basicData.column.splice(i, 1);
  855. }
  856. }
  857. }
  858. }
  859. corpstypeTree({ corpType: customerParameter.code }).then(res => {
  860. this.dic = res.data.data;
  861. });
  862. areaTypeTree().then(res => {
  863. this.dicArea = res.data.data;
  864. });
  865. this.getWorkDicts("packageRemarks").then(res => {
  866. this.packageOptions = res.data.data;
  867. });
  868. this.getWorkDicts("payment_term").then(res => {
  869. this.paymentOption = res.data.data;
  870. });
  871. this.getWorkDicts("account_period").then(res => {
  872. this.settingOption = res.data.data;
  873. });
  874. this.getWorkDicts("month").then(res => {
  875. this.monthOption = res.data.data;
  876. });
  877. this.getWorkDicts("credit_rating").then(res => {
  878. this.creditRatingList = res.data.data;
  879. });
  880. this.getWorkDicts("dominant_route").then(res => {
  881. this.lineList = res.data.data;
  882. });
  883. if (this.$route.query.customerName) {
  884. this.returnButton = true
  885. } else {
  886. this.returnButton = true
  887. }
  888. if (this.detailData.id) {
  889. detail(this.detailData.id).then(res => {
  890. if (res.data.data.adminProfiles) {
  891. res.data.data.adminProfiles = res.data.data.adminProfiles.split(",");
  892. }
  893. if (res.data.data.line){
  894. res.data.data.line = res.data.data.line.split(",")
  895. }
  896. this.form = res.data.data;
  897. this.contactsData = this.form.corpsAttnList;
  898. this.bankOfDepositData = this.form.corpsBankList;
  899. this.advantageProjectData = this.form.corpsItems;
  900. this.addressLatLng = JSON.parse(this.form.addressLatLng);
  901. this.addressData = this.form.corpsAddrList;
  902. this.oldform = this.deepClone(res.data.data);
  903. this.oldcontactsData = this.deepClone(this.form.corpsAttnList);
  904. this.oldbankOfDepositData = this.deepClone(this.form.corpsBankList);
  905. this.oldadvantageProjectData = this.deepClone(this.form.corpsItems);
  906. this.oldaddressLatLng = this.deepClone(JSON.parse(this.form.addressLatLng));
  907. this.oldaddressData = this.deepClone(this.form.corpsAddrList);
  908. if (this.form.belongtoarea) {
  909. this.form.belongtoarea = this.form.belongtoarea
  910. .split(",")
  911. .map(item => item.split("/"));
  912. }
  913. delete this.form.corpsAttnList;
  914. delete this.form.corpsBankList;
  915. delete this.form.corpsItems;
  916. delete this.form.corpsAddrList;
  917. });
  918. } else if (this.detailData.treeDeptId) {
  919. this.$set(this.form, "corpsTypeId", this.detailData.treeDeptId);
  920. if (this.$route.query.customerName) {
  921. this.$set(this.form, "cname", this.$route.query.customerName);
  922. this.$router.$avueRouter.closeTag(window.location.hash.slice(1))
  923. } else if (this.$route.query) {
  924. this.$set(this.form, "cname", this.$route.query.corpName);
  925. }
  926. } else {
  927. if (this.$route.query.customerName) {
  928. this.$set(this.form, "cname", this.$route.query.customerName);
  929. this.$router.$avueRouter.closeTag(window.location.hash.slice(1))
  930. } else if (this.$route.query) {
  931. this.$set(this.form, "cname", this.$route.query.corpName);
  932. }
  933. }
  934. gainUser().then(res => {
  935. this.userList = res.data.data;
  936. });
  937. this.getWorkDicts("currency").then(res => {
  938. this.findObject(this.bankOfDeposit.column, "fcyno").dicData =
  939. res.data.data;
  940. });
  941. },
  942. methods: {
  943. initData(tenantId) {
  944. getRoleTree(tenantId).then(res => {
  945. const column = this.findObject(this.optionData.column, "roleId");
  946. column.dicData = res.data.data;
  947. });
  948. getDeptTree(tenantId).then(res => {
  949. const column = this.findObject(this.optionData.column, "deptId");
  950. column.dicData = res.data.data;
  951. });
  952. getPostList(tenantId).then(res => {
  953. const column = this.findObject(this.optionData.column, "postId");
  954. column.dicData = res.data.data;
  955. });
  956. },
  957. addressChange() {
  958. this.addressLatLng = [];
  959. this.form.belongtoarea.forEach(e => {
  960. if (e.length == 1) {
  961. this.dicArea.forEach(item1 => {
  962. if (item1.provinceName == e[0]) {
  963. this.addressLatLng.push({
  964. name: item1.provinceName,
  965. value: this.addressLatLng.length + 1,
  966. lng: item1.lng,
  967. lat: item1.lat,
  968. zoom: 1
  969. });
  970. }
  971. });
  972. } else if (e.length == 3) {
  973. this.dicArea.forEach(item1 => {
  974. if (item1.provinceName == e[0]) {
  975. if (item1.children.length > 0) {
  976. item1.children.forEach(item2 => {
  977. if (item2.cityName == e[1]) {
  978. if (e[0] == e[1]) {
  979. if (item2.children.length > 0) {
  980. item2.children.forEach(item3 => {
  981. if (item3.districtName == e[2]) {
  982. this.addressLatLng.push({
  983. name: item3.districtName,
  984. value: this.addressLatLng.length + 1,
  985. lng: item3.lng,
  986. lat: item3.lat,
  987. zoom: 1
  988. });
  989. }
  990. });
  991. }
  992. } else if (e[0] != e[1]) {
  993. this.addressLatLng.push({
  994. name: item2.cityName,
  995. value: this.addressLatLng.length + 1,
  996. lng: item2.lng,
  997. lat: item2.lat,
  998. zoom: 1
  999. });
  1000. }
  1001. }
  1002. });
  1003. }
  1004. }
  1005. });
  1006. }
  1007. });
  1008. this.addressLatLng = this.addressLatLng.filter(
  1009. (currentValue, currentIndex, selfArr) => {
  1010. return (
  1011. selfArr.findIndex(x => x.name === currentValue.name) ===
  1012. currentIndex
  1013. );
  1014. }
  1015. );
  1016. },
  1017. //确认创建用户
  1018. confirmSynchronizationTwo() {
  1019. this.$refs["formDataTwo"].validate((valid, done) => {
  1020. done();
  1021. if (valid) {
  1022. let data = JSON.parse(JSON.stringify(this.formDataTwo));
  1023. data.deptId = data.deptId.join(",");
  1024. data.roleId = data.roleId.join(",");
  1025. data.postId = data.postId.join(",");
  1026. creatingUsers({
  1027. ...data,
  1028. id: this.formRow.id
  1029. }).then(res => {
  1030. this.dialogVisibleBt = false;
  1031. this.formDataTwo = {}
  1032. this.$message.success(
  1033. "创建用户成功,默认帐号:手机号。默认密码:123456"
  1034. );
  1035. });
  1036. } else {
  1037. return false;
  1038. }
  1039. });
  1040. },
  1041. aChange(row) {
  1042. console.log(row)
  1043. if (row == '月结') {
  1044. this.financialInformation.column.forEach(e => {
  1045. if (e.prop == 'b') {
  1046. e.hide = true
  1047. }
  1048. if (e.prop == 'c') {
  1049. e.hide = false
  1050. }
  1051. if (e.prop == 'j') {
  1052. e.hide = false
  1053. }
  1054. })
  1055. } else if (row == '业务后') {
  1056. this.financialInformation.column.forEach(e => {
  1057. if (e.prop == 'b') {
  1058. e.hide = false
  1059. }
  1060. if (e.prop == 'c') {
  1061. e.hide = true
  1062. }
  1063. if (e.prop == 'j') {
  1064. e.hide = true
  1065. }
  1066. })
  1067. } else {
  1068. this.financialInformation.column.forEach(e => {
  1069. if (e.prop == 'b') {
  1070. e.hide = true
  1071. }
  1072. if (e.prop == 'c') {
  1073. e.hide = true
  1074. }
  1075. if (e.prop == 'j') {
  1076. e.hide = true
  1077. }
  1078. })
  1079. }
  1080. },
  1081. creatingUsers(row) {
  1082. if (row.id) {
  1083. if (row.tel) {
  1084. this.dialogVisibleBt = true;
  1085. this.formDataTwo = {};
  1086. this.formRow = row;
  1087. } else {
  1088. this.$message.error("请输入手机号");
  1089. }
  1090. } else {
  1091. this.$message.error("请保存数据后再点击");
  1092. }
  1093. },
  1094. //新增客户联系人保存触发
  1095. rowSave(row, done, loading) {
  1096. console.log(row, done, loading);
  1097. this.contactsData.push(row);
  1098. done();
  1099. },
  1100. //修改客户联系人触发
  1101. rowUpdate(row, index, done, loading) {
  1102. done(row);
  1103. },
  1104. //删除客户联系人触发
  1105. rowDel(row, index, donerowDel) {
  1106. this.$confirm("确定将选择数据删除?", {
  1107. confirmButtonText: "确定",
  1108. cancelButtonText: "取消",
  1109. type: "warning"
  1110. }).then(() => {
  1111. // 数据回调进行刷新
  1112. if (row.id) {
  1113. corpsattn(row.id).then(res => {
  1114. this.$message({
  1115. type: "success",
  1116. message: "操作成功!"
  1117. });
  1118. this.contactsData.splice(index, 1);
  1119. });
  1120. } else {
  1121. this.$message({
  1122. type: "success",
  1123. message: "操作成功!"
  1124. });
  1125. this.contactsData.splice(index, 1);
  1126. }
  1127. });
  1128. },
  1129. //新增客户优势项目保存触发
  1130. rowSaveProject(row, done, loading) {
  1131. console.log(row, done, loading);
  1132. this.advantageProjectData.push(row);
  1133. done();
  1134. },
  1135. //修改客户优势项目触发
  1136. rowUpdateProject(row, index, done, loading) {
  1137. done(row);
  1138. },
  1139. //删除客户优势项目触发
  1140. rowDelProject(row, index, donerowDel) {
  1141. this.$confirm("确定将选择数据删除?", {
  1142. confirmButtonText: "确定",
  1143. cancelButtonText: "取消",
  1144. type: "warning"
  1145. }).then(() => {
  1146. if (row.id) {
  1147. corpsitem(row.id).then(res => {
  1148. this.$message({
  1149. type: "success",
  1150. message: "操作成功!"
  1151. });
  1152. this.advantageProjectData.splice(index, 1);
  1153. });
  1154. } else {
  1155. this.$message({
  1156. type: "success",
  1157. message: "操作成功!"
  1158. });
  1159. this.advantageProjectData.splice(index, 1);
  1160. }
  1161. });
  1162. },
  1163. //新增客户优势项目保存触发
  1164. rowSaveBankOfDeposit(row, done, loading) {
  1165. console.log(row, done, loading);
  1166. this.bankOfDepositData.push(row);
  1167. done();
  1168. },
  1169. //修改客户优势项目触发
  1170. rowUpdateBankOfDeposit(row, index, done, loading) {
  1171. done(row);
  1172. },
  1173. //删除客户优势项目触发
  1174. rowDelBankOfDeposit(row, index, donerowDel) {
  1175. this.$confirm("确定将选择数据删除?", {
  1176. confirmButtonText: "确定",
  1177. cancelButtonText: "取消",
  1178. type: "warning"
  1179. }).then(() => {
  1180. if (row.id) {
  1181. corpsbank(row.id).then(res => {
  1182. this.$message({
  1183. type: "success",
  1184. message: "操作成功!"
  1185. });
  1186. this.bankOfDepositData.splice(index, 1);
  1187. });
  1188. } else {
  1189. this.$message({
  1190. type: "success",
  1191. message: "操作成功!"
  1192. });
  1193. this.bankOfDepositData.splice(index, 1);
  1194. }
  1195. });
  1196. },
  1197. //新增收发货地址保存触发
  1198. rowSaveAddress(row, done, loading) {
  1199. this.addressData.push(row);
  1200. done();
  1201. },
  1202. //修改收发货地址优势项目触发
  1203. rowUpdateAddress(row, index, done, loading) {
  1204. done(row);
  1205. },
  1206. //删除收发货地址优势项目触发
  1207. rowDelAddress(row, index, donerowDel) {
  1208. this.$confirm("确定将选择数据删除?", {
  1209. confirmButtonText: "确定",
  1210. cancelButtonText: "取消",
  1211. type: "warning"
  1212. }).then(() => {
  1213. if (row.id) {
  1214. corpsAddrDelete(row.id).then(res => {
  1215. this.$message({
  1216. type: "success",
  1217. message: "操作成功!"
  1218. });
  1219. this.addressData.splice(index, 1);
  1220. });
  1221. } else {
  1222. this.$message({
  1223. type: "success",
  1224. message: "操作成功!"
  1225. });
  1226. this.addressData.splice(index, 1);
  1227. }
  1228. });
  1229. },
  1230. //修改提交触发
  1231. editCustomer(status) {
  1232. this.$refs["form"].validate(valid => {
  1233. if (valid) {
  1234. this.form.corpsAttnList = this.contactsData;
  1235. this.form.corpsBankList = this.bankOfDepositData;
  1236. this.form.corpsItems = this.advantageProjectData;
  1237. this.form.corpsAddrList = this.addressData;
  1238. this.form.addressLatLng = JSON.stringify(this.addressLatLng);
  1239. if (typeof this.form.corpsTypeId == "object") {
  1240. this.form.corpsTypeId = this.form.corpsTypeId.join(",");
  1241. }
  1242. if (this.form.line&&typeof this.form.line == "object"){
  1243. this.form.line = this.form.line.join(",")
  1244. }
  1245. this.disabled = true;
  1246. if (this.form.belongtoarea) {
  1247. // this.form.belongtoarea = this.form.belongtoarea.toString();
  1248. this.form.belongtoarea = this.form.belongtoarea
  1249. .map(e => e.join("/"))
  1250. .join(",");
  1251. }
  1252. if (this.form.adminProfiles) {
  1253. this.form.adminProfiles = this.form.adminProfiles.join(",");
  1254. }
  1255. this.form.corpType = customerParameter.code;
  1256. typeSave(this.form).then(res => {
  1257. if (res.data.data === "error") {
  1258. this.disabled = false;
  1259. this.$message({
  1260. showClose: true,
  1261. message: res.data.msg,
  1262. type: "error"
  1263. });
  1264. } else {
  1265. detail(this.detailData.id).then(res => {
  1266. if (res.data.data.adminProfiles) {
  1267. res.data.data.adminProfiles = res.data.data.adminProfiles.split(",");
  1268. }
  1269. if (res.data.data.line){
  1270. res.data.data.line = res.data.data.line.split(",")
  1271. }
  1272. this.form = res.data.data;
  1273. this.contactsData = this.form.corpsAttnList;
  1274. this.bankOfDepositData = this.form.corpsBankList;
  1275. this.advantageProjectData = this.form.corpsItems;
  1276. this.addressLatLng = JSON.parse(this.form.addressLatLng);
  1277. this.addressData = this.form.corpsAddrList;
  1278. this.oldform = this.deepClone(res.data.data);
  1279. this.oldcontactsData = this.deepClone(this.form.corpsAttnList);
  1280. this.oldbankOfDepositData = this.deepClone(this.form.corpsBankList);
  1281. this.oldadvantageProjectData = this.deepClone(this.form.corpsItems);
  1282. this.oldaddressLatLng = this.deepClone(JSON.parse(this.form.addressLatLng));
  1283. this.oldaddressData = this.deepClone(this.form.corpsAddrList);
  1284. if (this.form.belongtoarea) {
  1285. this.form.belongtoarea = this.form.belongtoarea
  1286. .split(",")
  1287. .map(item => item.split("/"));
  1288. }
  1289. delete this.form.corpsAttnList;
  1290. delete this.form.corpsBankList;
  1291. delete this.form.corpsItems;
  1292. delete this.form.corpsAddrList;
  1293. this.$message({
  1294. type: "success",
  1295. message: this.form.id ? "修改成功!" : "新增成功!"
  1296. });
  1297. this.disabled = false;
  1298. if (status) {
  1299. this.$emit("goBack", true);
  1300. }
  1301. });
  1302. }
  1303. });
  1304. } else {
  1305. return false;
  1306. }
  1307. });
  1308. },
  1309. synchronization() {
  1310. this.dialogVisible = true;
  1311. },
  1312. async saveColumn() {
  1313. const inSave = await this.saveColumnData(
  1314. this.getColumnName(143),
  1315. this.customerContact
  1316. );
  1317. if (inSave) {
  1318. this.$nextTick(() => {
  1319. this.$refs.crud.doLayout();
  1320. });
  1321. this.$message.success("保存成功");
  1322. //关闭窗口
  1323. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  1324. }
  1325. },
  1326. async resetColumn() {
  1327. this.customerContact = customerContact;
  1328. const inSave = await this.delColumnData(
  1329. this.getColumnName(143),
  1330. customerContact
  1331. );
  1332. if (inSave) {
  1333. this.$nextTick(() => {
  1334. this.$refs.crud.doLayout();
  1335. });
  1336. this.$message.success("重置成功");
  1337. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  1338. }
  1339. },
  1340. async saveColumn2() {
  1341. const inSave = await this.saveColumnData(
  1342. this.getColumnName(144),
  1343. this.bankOfDeposit
  1344. );
  1345. if (inSave) {
  1346. this.$nextTick(() => {
  1347. this.$refs.crud2.doLayout();
  1348. });
  1349. this.$message.success("保存成功");
  1350. //关闭窗口
  1351. this.$refs.crud2.$refs.dialogColumn.columnBox = false;
  1352. }
  1353. },
  1354. async resetColumn2() {
  1355. this.bankOfDeposit = bankOfDeposit;
  1356. const inSave = await this.delColumnData(
  1357. this.getColumnName(144),
  1358. bankOfDeposit
  1359. );
  1360. if (inSave) {
  1361. this.$nextTick(() => {
  1362. this.$refs.crud2.doLayout();
  1363. });
  1364. this.$message.success("重置成功");
  1365. this.$refs.crud2.$refs.dialogColumn.columnBox = false;
  1366. }
  1367. },
  1368. async saveColumn3() {
  1369. const inSave = await this.saveColumnData(
  1370. this.getColumnName(145),
  1371. this.addressOption
  1372. );
  1373. if (inSave) {
  1374. this.$nextTick(() => {
  1375. this.$refs.crud3.doLayout();
  1376. });
  1377. this.$message.success("保存成功");
  1378. //关闭窗口
  1379. this.$refs.crud3.$refs.dialogColumn.columnBox = false;
  1380. }
  1381. },
  1382. async resetColumn3() {
  1383. this.addressOption = addressOption;
  1384. const inSave = await this.delColumnData(
  1385. this.getColumnName(145),
  1386. addressOption
  1387. );
  1388. if (inSave) {
  1389. this.$nextTick(() => {
  1390. this.$refs.crud3.doLayout();
  1391. });
  1392. this.$message.success("重置成功");
  1393. this.$refs.crud3.$refs.dialogColumn.columnBox = false;
  1394. }
  1395. },
  1396. //确认同步
  1397. confirmSynchronization() {
  1398. this.$refs["formData"].validate((valid, done) => {
  1399. if (valid) {
  1400. synchronizationCopy({
  1401. ...this.formData,
  1402. id: this.form.id
  1403. }).then(res => {
  1404. done();
  1405. this.$message.success("同步成功");
  1406. this.dialogVisible = false;
  1407. });
  1408. } else {
  1409. return done();
  1410. }
  1411. });
  1412. },
  1413. backToList(value) {
  1414. if (
  1415. contrastObj(this.form, this.oldform) ||
  1416. contrastList(this.contactsData, this.oldcontactsData) ||
  1417. contrastList(this.bankOfDepositData, this.oldbankOfDepositData) ||
  1418. contrastList(this.advantageProjectData, this.oldadvantageProjectData) ||
  1419. contrastList(this.addressLatLng || [], this.oldaddressLatLng || []) ||
  1420. contrastList(this.addressData, this.oldaddressData)
  1421. ) {
  1422. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  1423. confirmButtonText: "确定",
  1424. cancelButtonText: "取消",
  1425. type: "warning"
  1426. })
  1427. .then(() => {
  1428. this.editCustomer("goBack");
  1429. })
  1430. .catch(() => {
  1431. this.$emit("goBack", true);
  1432. });
  1433. }else{
  1434. this.$emit("goBack", true);
  1435. }
  1436. },
  1437. openFlow() {
  1438. this.switchDialog = !this.switchDialog;
  1439. },
  1440. onClose(val) {
  1441. this.switchDialog = val;
  1442. },
  1443. getCorpName(row) { }
  1444. }
  1445. };
  1446. </script>
  1447. <style lang="scss" scoped>
  1448. ::v-deep .el-form-item {
  1449. margin-bottom: 0;
  1450. }
  1451. ::v-deep .el-form-item__content {
  1452. line-height: 32px;
  1453. }
  1454. </style>