detailsPageEdit.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  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. <el-button
  11. class="el-button--small-yh add-customer-btn"
  12. type="primary"
  13. :disabled="disabled"
  14. size="small"
  15. @click="editCustomer"
  16. >{{ form.id ? '确认修改' : '确认新增' }}
  17. </el-button>
  18. </div>
  19. <div style="margin-top: 60px">
  20. <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
  21. <containerTitle title="基础资料"></containerTitle>
  22. <basic-container style="margin-bottom: 10px">
  23. <el-row>
  24. <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
  25. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
  26. <!-- <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple :props="{label:'title'}"v-model="form[item.prop]" placeholder="请选择内容" type="tree" :dic="dic"/>-->
  27. <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]" size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss"/>
  28. <span v-else-if="item.type === 'select'">
  29. <el-select v-model="form[item.prop]" slot="prepend" style="width: 100%;" size="small" placeholder="请选择">
  30. <el-option v-for="(item,index) in item.dicData" :label="item.label" :value="item.value" :key="index"></el-option>
  31. </el-select>
  32. </span>
  33. <crop-select
  34. v-else-if="item.prop === 'corps'"
  35. v-model="form[item.prop]"
  36. :multiple="true"
  37. corpType="KH"
  38. style="width: 100%"
  39. ></crop-select>
  40. <!-- <selectComponent v-else-if="item.prop === 'corps'" v-model="form[item.prop]"-->
  41. <!-- :configuration="configuration" style="width: 100%"/>-->
  42. <el-input type="textarea" v-else-if="item.type === 'textarea'" v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled"></el-input>
  43. <el-input type="age" v-else v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled?item.disabled:false"></el-input>
  44. </el-form-item>
  45. </el-col>
  46. </el-row>
  47. </basic-container>
  48. <containerTitle title="特价促销"></containerTitle>
  49. <basic-container style="margin-bottom: 10px">
  50. <avue-crud
  51. :option="customerContact"
  52. v-model="contactsForm"
  53. :data="contactsData"
  54. ref="crudContact"
  55. @row-save="rowSave"
  56. @row-click="handleRowClick"
  57. @row-update="rowUpdate"
  58. @row-del="rowDel">
  59. <template slot="code" slot-scope="{ row, index }">
  60. <el-button
  61. size="small"
  62. type="text"
  63. @click="rePick(row, index, 1)"
  64. :disabled="disabled"
  65. class="picker"
  66. style="padding:4px 10px;float:left"
  67. >选择</el-button
  68. >
  69. <span> {{ row.code }}</span>
  70. </template>
  71. <template slot="corpId" slot-scope="{ row, index }">
  72. <crop-select
  73. v-if="row.$cellEdit"
  74. v-model="row.corpId"
  75. :cropIndex="index"
  76. corpType="GYS"
  77. @getCorpData="getcorpId"
  78. :disabled="detailData.seeDisabled"
  79. ></crop-select>
  80. <span v-else>{{ row.corpName }}</span>
  81. </template>
  82. <template slot="menuLeft">
  83. <el-button
  84. type="primary"
  85. icon="el-icon-plus"
  86. size="small"
  87. @click.stop="newSpecial"
  88. >新增明细</el-button>
  89. </template>
  90. <template slot-scope="{row,index}" slot="menu">
  91. <el-button
  92. type="text"
  93. size="small"
  94. @click="rowCell(row,index)"
  95. >{{ row.$cellEdit ? '保存' : '修改' }}
  96. </el-button>
  97. <el-button
  98. size="small"
  99. icon="el-icon-delete"
  100. type="text"
  101. @click="rowDel(row, index)"
  102. >删 除</el-button>
  103. </template>
  104. </avue-crud>
  105. </basic-container>
  106. <containerTitle title="买赠促销"></containerTitle>
  107. <basic-container style="margin-bottom: 10px">
  108. <avue-crud
  109. :option="customerBuyFree"
  110. v-model="contactsFormBuyFree"
  111. :data="contactsDataBuyFree"
  112. ref="crudContactE"
  113. @row-save="rowSaveBuyFree"
  114. @row-click="handleRowClickBuyFree"
  115. @row-update="rowUpdateBuyFree"
  116. @row-del="rowDelBuyFree">
  117. <template slot="code" slot-scope="{ row, index }">
  118. <el-button
  119. size="small"
  120. type="text"
  121. @click="rePick(row, index, 2)"
  122. :disabled="disabled"
  123. class="picker"
  124. style="padding:4px 10px;float:left"
  125. >选择</el-button
  126. >
  127. <span> {{ row.code }}</span>
  128. </template>
  129. <template slot="corpId" slot-scope="{ row, index }">
  130. <crop-select
  131. v-if="row.$cellEdit"
  132. v-model="row.corpId"
  133. :cropIndex="index"
  134. corpType="GYS"
  135. @getCorpData="getcorpFeesId"
  136. :disabled="detailData.seeDisabled"
  137. ></crop-select>
  138. <span v-else>{{ row.corpName }}</span>
  139. </template>
  140. <template slot="menuLeft">
  141. <el-button
  142. type="primary"
  143. icon="el-icon-plus"
  144. size="small"
  145. @click.stop="newBuyFree"
  146. >新增明细</el-button>
  147. </template>
  148. <template slot-scope="{row,index}" slot="menu">
  149. <el-button
  150. type="text"
  151. size="small"
  152. @click="rowCellE(row,index)"
  153. >{{ row.$cellEdit ? '保存' : '修改' }}
  154. </el-button>
  155. <el-button
  156. size="small"
  157. icon="el-icon-delete"
  158. type="text"
  159. @click="rowDelBuyFree(row, index)"
  160. >删 除</el-button>
  161. </template>
  162. </avue-crud>
  163. </basic-container>
  164. </el-form>
  165. <el-dialog
  166. title="导入商品"
  167. append-to-body
  168. class="el-dialogDeep"
  169. :visible.sync="dialogVisible"
  170. width="80%"
  171. top="5vh"
  172. :close-on-click-modal="false"
  173. :destroy-on-close="true"
  174. :close-on-press-escape="false"
  175. @close="closeGoods"
  176. v-dialogdrag
  177. >
  178. <span>
  179. <el-row>
  180. <el-col :span="5">
  181. <div>
  182. <el-scrollbar>
  183. <basic-container style="margin-top:45px">
  184. <avue-tree :option="treeOption" @node-click="nodeClick" />
  185. </basic-container>
  186. </el-scrollbar>
  187. </div>
  188. </el-col>
  189. <el-col :span="19">
  190. <avue-crud
  191. :option="goodsOption"
  192. :table-loading="loading"
  193. :data="goodsList"
  194. ref="goodsCrud"
  195. @refresh-change="refreshChange"
  196. @selection-change="selectionChange"
  197. @row-click="rowClick"
  198. :page.sync="page"
  199. @on-load="onLoad"
  200. @saveColumn="saveGoodsColumn"
  201. @search-change="goodsSearch"
  202. ></avue-crud>
  203. </el-col>
  204. </el-row>
  205. </span>
  206. <span slot="footer" class="dialog-footer">
  207. <el-button @click="dialogVisible = false">取 消</el-button>
  208. <el-button
  209. type="primary"
  210. @click="importGoods"
  211. :disabled="selectionList.length == 0"
  212. >导入</el-button>
  213. </span>
  214. </el-dialog>
  215. </div>
  216. </div>
  217. </template>
  218. <script>
  219. import customerContact from "./configuration/customerContact.json"
  220. import BuyFree from "./configuration/BuyFree.json"
  221. import {detail,corpsattn,typeSave} from "@/api/maintenance/salesPolicy"
  222. import {
  223. submit,
  224. delItem,
  225. getDeptLazyTree,
  226. getGoods,
  227. savePurchase,
  228. saveShipping,
  229. getPorts,
  230. getSpecification,
  231. saveSell
  232. } from "@/api/basicData/customerInquiry";
  233. import goodsOption from "./configuration/commodity.json";
  234. import { contrastObj, contrastList } from "@/util/contrastData";
  235. export default {
  236. name: "detailsPage",
  237. props:{
  238. detailData:Object
  239. },
  240. data() {
  241. return {
  242. configuration: {
  243. multipleChoices: true,
  244. multiple: true,
  245. collapseTags: false,
  246. placeholder: '请点击右边按钮选择',
  247. dicData: []
  248. },
  249. form: {},
  250. disabled: false,
  251. customerContact: customerContact,
  252. contactsForm: {},
  253. contactsData: [],
  254. customerBuyFree: BuyFree,
  255. contactsFormBuyFree: {},
  256. contactsDataBuyFree: [],
  257. basicData: {
  258. column: [
  259. {
  260. label: '政策名称',
  261. prop: 'cname',
  262. rules: [
  263. {
  264. required: true,
  265. message: ' ',
  266. trigger: 'blur'
  267. }
  268. ]
  269. }, {
  270. label: '状态',
  271. prop: 'status',
  272. type: 'select',
  273. dicData:[{
  274. label:'正常',
  275. value:0
  276. },{
  277. label:'停用',
  278. value:1
  279. }],
  280. rules: [
  281. {
  282. required: true,
  283. message: ' ',
  284. trigger: 'blur'
  285. }
  286. ]
  287. }, {
  288. label: '品牌',
  289. prop: 'brand',
  290. rules: [
  291. {
  292. required: true,
  293. message: ' ',
  294. trigger: 'blur'
  295. }
  296. ]
  297. }, {
  298. label: '操作员',
  299. prop: 'createUserName',
  300. disabled:true,
  301. rules: [
  302. {
  303. required: false,
  304. message: ' ',
  305. trigger: 'blur'
  306. }
  307. ]
  308. }, {
  309. label: '有效期开始时间',
  310. prop: 'startTime',
  311. type:'datetime',
  312. rules: [
  313. {
  314. required: true,
  315. message: ' ',
  316. trigger: 'blur'
  317. }
  318. ]
  319. }, {
  320. label: '有效期结束时间',
  321. prop: 'endTime',
  322. type:'datetime',
  323. rules: [
  324. {
  325. required: true,
  326. message: ' ',
  327. trigger: 'blur'
  328. }
  329. ]
  330. }, {
  331. //多选
  332. label: '代理商',
  333. prop: 'corps',
  334. span: 16,
  335. rules: [
  336. {
  337. required: true,
  338. message: ' ',
  339. trigger: 'blur'
  340. }
  341. ]
  342. },
  343. {
  344. label: "备注",
  345. type: 'textarea',
  346. span: 24,
  347. prop: "remarks",
  348. mock: {
  349. type: 'county'
  350. }
  351. }
  352. ]
  353. },
  354. dialogVisible: false,
  355. selectionList: [],
  356. treeDeptId: null,
  357. treeOption: {
  358. nodeKey: "id",
  359. lazy: true,
  360. treeLoad: function(node, resolve) {
  361. const parentId = node.level === 0 ? 0 : node.data.id;
  362. getDeptLazyTree(parentId).then(res => {
  363. resolve(
  364. res.data.data.map(item => {
  365. return {
  366. ...item,
  367. leaf: !item.hasChildren
  368. };
  369. })
  370. );
  371. });
  372. },
  373. addBtn: false,
  374. menu: false,
  375. size: "small",
  376. props: {
  377. label: "title",
  378. value: "value",
  379. children: "children"
  380. }
  381. },
  382. goodsOption: goodsOption,
  383. loading: false,
  384. goodsList: [],
  385. page: {
  386. pageSize: 10,
  387. currentPage: 1,
  388. total: 0
  389. },
  390. // 1特价 2买赠
  391. salesType: 1,
  392. reData: null,
  393. oldForm: {},
  394. oldSpecialOffer: [],
  395. oldBuyFree: [],
  396. }
  397. },
  398. //初始化查询
  399. created() {
  400. if (this.detailData.id) {
  401. this.queryData(this.detailData.id)
  402. } else {
  403. this.form = {}
  404. this.contactsData = []
  405. }
  406. },
  407. watch: {
  408. '$route'(to, from) {
  409. console.log(to, from);
  410. if (this.detailData.id) {
  411. } else {
  412. this.form = {}
  413. }
  414. }
  415. },
  416. methods: {
  417. queryData(id) {
  418. this.openFullScreen(false, '正在努力的加载...');
  419. detail(id).then(res =>{
  420. this.form = res.data.data
  421. if (this.form.corpNameList) {
  422. this.configuration.dicData = this.form.corpNameList
  423. }
  424. this.form.corps = this.form.corps.split(',')
  425. if (res.data.data.specialItemList) this.contactsData = res.data.data.specialItemList
  426. if (res.data.data.presentItemList) this.contactsDataBuyFree = res.data.data.presentItemList
  427. this.oldForm = Object.assign({}, this.form)
  428. this.oldSpecialOffer = this.deepClone(this.contactsData)
  429. this.oldBuyFree = this.deepClone(this.contactsDataBuyFree)
  430. delete this.form.specialItemList
  431. delete this.form.presentItemList
  432. }).finally(() => {
  433. this.openFullScreen(true);
  434. })
  435. },
  436. rePick(row, index,type) {
  437. this.reData = {
  438. ...row,
  439. index: index
  440. };
  441. if (type == 1) {
  442. this.newSpecial();
  443. } else {
  444. this.newBuyFree()
  445. }
  446. },
  447. // 新增特价弹窗
  448. newSpecial() {
  449. this.salesType = 1
  450. this.dialogVisible = !this.dialogVisible
  451. },
  452. // 买赠弹窗
  453. newBuyFree() {
  454. this.salesType = 2
  455. this.dialogVisible = !this.dialogVisible
  456. },
  457. closeGoods() {
  458. this.selectionList = [];
  459. this.treeDeptId = "";
  460. this.reData = null;
  461. },
  462. nodeClick(data) {
  463. this.treeDeptId = data.id;
  464. this.page.currentPage = 1;
  465. this.onLoad(this.page);
  466. },
  467. selectionChange(list) {
  468. this.selectionList = list;
  469. },
  470. rowClick(row) {
  471. this.$refs.goodsCrud.toggleSelection([this.goodsList[row.$index]]);
  472. },
  473. goodsSearch(params, done) {
  474. this.onLoad(this.page, params);
  475. done()
  476. },
  477. //商品查询
  478. onLoad(page, params = {}) {
  479. this.loading = true;
  480. getGoods(page.currentPage, page.pageSize, this.treeDeptId,params)
  481. .then(res => {
  482. const data = res.data.data;
  483. this.page.total = data.total;
  484. this.goodsList = data.records;
  485. if (this.page.total) {
  486. this.goodsOption.height = window.innerHeight - 280;
  487. } else {
  488. this.goodsOption.height = window.innerHeight - 280;
  489. }
  490. })
  491. .finally(() => {
  492. this.loading = false;
  493. });
  494. },
  495. // 确认导入商品
  496. importGoods() {
  497. if (this.reData) {
  498. if (this.selectionList.length != 1) {
  499. return this.$message.error("重新选择的时候只能选择一条数据");
  500. } else {
  501. this.selectionList.forEach(e => {
  502. if (this.reData.salesType == 1) {
  503. this.contactsData.forEach((item, index) => {
  504. if (index == this.reData.index) {
  505. item.itemId = e.id
  506. item.code = e.code
  507. item.cname = e.cname
  508. item.brand = e.brand
  509. item.productCategory = e.goodsTypeName
  510. item.typeno = e.typeno
  511. item.brandItem = e.brandItem
  512. // item.purchasePrice = this.brand.purchasePrice
  513. // item.salesPrice = this.brand.salesPrice
  514. // item.specialOffer = this.brand.specialOffer
  515. // item.updateUserName = this.brand.updateUserName
  516. // item.updateTime = this.brand.updateTime
  517. // item.salesType = this.brand.salesType
  518. }
  519. })
  520. } else {
  521. this.contactsDataBuyFree.forEach((item, index) => {
  522. item.itemId = e.id
  523. item.code = e.code
  524. item.cname = e.cname
  525. item.brand = e.brand
  526. item.productCategory = e.goodsTypeName
  527. item.typeno = e.typeno
  528. item.brandItem = e.brandItem
  529. // item.purchasePrice = this.brand.purchasePrice
  530. // item.salesPrice = this.brand.salesPrice
  531. // item.salesPrice = this.brand.purchaseAmount
  532. // item.updateUserName = this.brand.salesVolume
  533. // item.updateUserName = this.brand.updateUserName
  534. // item.updateTime = this.brand.updateTime
  535. // item.salesType = this.brand.salesType
  536. })
  537. }
  538. })
  539. }
  540. } else {
  541. if (this.salesType == 1) {
  542. this.selectionList.forEach(item => {
  543. console.log(item)
  544. this.contactsData.push({
  545. itemId: item.id,
  546. code: item.code,
  547. brand: item.brand,
  548. productCategory: item.goodsTypeName,
  549. typeno: item.typeno,
  550. brandItem: item.brandItem,
  551. corpId:item.corpId,
  552. corpName:item.corpName,
  553. purchasePrice: '',
  554. salesPrice: '',
  555. specialOffer: '',
  556. updateUserName: '',
  557. updateTime: '',
  558. salesType: '1',
  559. })
  560. })
  561. } else if (this.salesType == 2) {
  562. this.selectionList.forEach(item => {
  563. this.contactsDataBuyFree.push({
  564. itemId: item.id,
  565. code: item.code,
  566. brand: item.brand,
  567. productCategory: item.goodsTypeName,
  568. typeno: item.typeno,
  569. brandItem: item.brandItem,
  570. corpName:item.corpName,
  571. purchasePrice: '',
  572. salesPrice: '',
  573. purchaseAmount: '',
  574. salesVolume: '',
  575. updateUserName: '',
  576. updateTime: '',
  577. salesType: '2',
  578. })
  579. })
  580. }
  581. }
  582. this.dialogVisible = false;
  583. console.log(this.contactsData)
  584. },
  585. //买赠列表信息保存触发
  586. rowSaveBuyFree(row, done, loading) {
  587. console.log(row)
  588. console.log(this.contactsData)
  589. // this.contactsData.push(row)
  590. done()
  591. },
  592. //买赠列表点击行可编辑
  593. handleRowClickBuyFree(row, event, column) {
  594. console.log(row.$index)
  595. },
  596. //买赠列表修改信息触发
  597. rowUpdateBuyFree(row, index, done, loading) {
  598. done(row);
  599. },
  600. //买赠列表删除信息触发
  601. rowDelBuyFree(row, index, donerowDel) {
  602. this.$confirm("确定将选择数据删除?", {
  603. confirmButtonText: "确定",
  604. cancelButtonText: "取消",
  605. type: "warning"
  606. }).then(() => {
  607. //商品判断是否需要调用删除接口
  608. if (row.id) {
  609. corpsattn(row.id).then(res => {
  610. this.$message({
  611. type: "success",
  612. message: "操作成功!"
  613. });
  614. this.contactsDataBuyFree.splice(index, 1);
  615. })
  616. } else {
  617. this.$message({
  618. type: "success",
  619. message: "操作成功!"
  620. });
  621. this.contactsDataBuyFree.splice(index, 1);
  622. }
  623. })
  624. },
  625. //新增商品信息保存触发
  626. rowSave(row, done, loading) {
  627. console.log(row)
  628. console.log(this.contactsData)
  629. // this.contactsData.push(row)
  630. done()
  631. },
  632. //点击行可编辑
  633. handleRowClick(row, event, column) {
  634. console.log(row.$index)
  635. },
  636. //商品编辑
  637. rowCell(row, index) {
  638. console.log(row)
  639. this.$refs.crudContact.rowCell(row, index)
  640. },
  641. //买赠编辑
  642. rowCellE(row, index) {
  643. console.log(row)
  644. this.$refs.crudContactE.rowCell(row, index)
  645. },
  646. //修改商品信息触发
  647. rowUpdate(row, index, done, loading) {
  648. done(row);
  649. },
  650. //删除商品信息触发
  651. rowDel(row, index, donerowDel) {
  652. this.$confirm("确定将选择数据删除?", {
  653. confirmButtonText: "确定",
  654. cancelButtonText: "取消",
  655. type: "warning"
  656. }).then(() => {
  657. //商品判断是否需要调用删除接口
  658. if (row.id) {
  659. corpsattn(row.id).then(res => {
  660. this.$message({
  661. type: "success",
  662. message: "操作成功!"
  663. });
  664. this.contactsData.splice(index, 1);
  665. })
  666. } else {
  667. this.$message({
  668. type: "success",
  669. message: "操作成功!"
  670. });
  671. this.contactsData.splice(index, 1);
  672. }
  673. })
  674. },
  675. //修改提交触发
  676. editCustomer() {
  677. this.$refs["form"].validate((valid) => {
  678. if (valid) {
  679. this.form.corps = this.form.corps.join(',')
  680. this.form.specialItemList = this.contactsData
  681. this.form.presentItemList = this.contactsDataBuyFree
  682. this.openFullScreen(false, '正在努力的加载...');
  683. typeSave(this.form).then(res=>{
  684. this.$message({
  685. type: "success",
  686. message: this.form.id ? "修改成功!" : "新增成功!"
  687. });
  688. // this.backToList()
  689. this.queryData(res.data.data.id)
  690. })
  691. } else {
  692. return false;
  693. }
  694. });
  695. },
  696. //返回列表
  697. backToList() {
  698. this.$emit("goBack");
  699. },
  700. async saveGoodsColumn() {
  701. // const inSave = await this.saveColumnData(
  702. // this.getColumnName(26),
  703. // this.goodsOption
  704. // );
  705. // if (inSave) {
  706. // this.$message.success("保存成功");
  707. // //关闭窗口
  708. // this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
  709. // }
  710. },
  711. //遮罩层
  712. openFullScreen(res, text) {
  713. const loading = this.$loading({
  714. lock: true,
  715. text: text,
  716. spinner: 'el-icon-loading',
  717. background: 'rgba(0, 0, 0, 0.7)'
  718. });
  719. if (res === true) loading.close();
  720. },
  721. getcorpId(row) {
  722. this.contactsData[row.index].corpId = row.id;
  723. },
  724. getcorpFeesId(row) {
  725. this.contactsDataBuyFree[row.index].corpId = row.id;
  726. },
  727. }
  728. }
  729. </script>
  730. <style lang="scss" scoped>
  731. .back-icon {
  732. line-height: 64px;
  733. font-size: 20px;
  734. margin-right: 8px;
  735. }
  736. ::v-deep .el-form-item {
  737. margin-bottom: 0;
  738. }
  739. .el-dialogDeep {
  740. ::v-deep .el-dialog {
  741. margin: 1vh auto 0 !important;
  742. padding-bottom: 10px !important;
  743. .el-dialog__body, .el-dialog__footer {
  744. padding-bottom: 0 !important;
  745. padding-top: 0 !important;
  746. }
  747. }
  748. }
  749. ::v-deep .el-form-item {
  750. margin-bottom: 0;
  751. }
  752. ::v-deep .el-form-item__content{
  753. line-height: 32px;
  754. }
  755. </style>