detailsPage.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <template>
  2. <div class="borderless">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button
  6. type="danger"
  7. style="border: none;background: none;color: red"
  8. icon="el-icon-arrow-left"
  9. @click="backToList"
  10. >返回列表
  11. </el-button>
  12. </div>
  13. <el-button type="success" class="copy-customer-btn" disabled>
  14. 复制新单
  15. </el-button>
  16. <el-button
  17. class="el-button--small-yh add-customer-btn"
  18. type="primary"
  19. :disabled="disabled"
  20. @click="editCustomer"
  21. >{{ form.id ? "确认修改" : "确认新增" }}
  22. </el-button>
  23. </div>
  24. <div style="margin-top: 60px;margin-bottom:35px">
  25. <containerTitle title="基础信息"></containerTitle>
  26. <basic-container>
  27. <avue-form ref="form" v-model="form" :option="option">
  28. <template slot="corpId">
  29. <select-component
  30. v-model="form.corpId"
  31. :configuration="configuration"
  32. :disabled="detailData.status == 1"
  33. ></select-component>
  34. </template>
  35. <template slot="exchangeRate">
  36. <el-input
  37. size="mini"
  38. v-model="form.exchangeRate"
  39. oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
  40. @change="rateChange"
  41. placeholder="请输入 汇率"
  42. :disabled="detailData.status == 1"
  43. ><template slot="append">%</template></el-input
  44. >
  45. </template>
  46. </avue-form>
  47. </basic-container>
  48. <div>
  49. <containerTitle title="商品信息"></containerTitle>
  50. <basic-container>
  51. <avue-crud
  52. ref="crud"
  53. :data="data"
  54. :option="tableOption"
  55. @row-del="rowDel"
  56. @selection-change="goodsSelectionChange"
  57. @saveColumn="saveColumn"
  58. :summary-method="summaryMethod"
  59. >
  60. <template slot="price" slot-scope="{ row }">
  61. <el-input
  62. v-if="row.$cellEdit"
  63. v-model="row.price"
  64. size="small"
  65. oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
  66. @change="priceChange(row)"
  67. ></el-input>
  68. <span v-else>{{ row.price }}</span>
  69. </template>
  70. <template slot="orderQuantity" slot-scope="{ row }">
  71. <el-input
  72. v-if="row.$cellEdit"
  73. v-model="row.orderQuantity"
  74. size="small"
  75. oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
  76. @change="quantityChange(row)"
  77. ></el-input>
  78. <span v-else>{{ row.orderQuantity }}</span>
  79. </template>
  80. <template slot="itemType" slot-scope="{ row }">
  81. <el-select
  82. v-if="row.$cellEdit"
  83. v-model="row.itemType"
  84. filterable
  85. allow-create
  86. default-first-option
  87. placeholder="请输入"
  88. @focus="itemTypeFocus(row)"
  89. >
  90. <el-option
  91. v-for="(item, index) in itemtypeList"
  92. :key="index"
  93. :label="item.value"
  94. :value="item.value"
  95. >
  96. </el-option>
  97. </el-select>
  98. <span v-else>{{ row.itemType }}</span>
  99. </template>
  100. <template slot="menuLeft">
  101. <el-button
  102. type="primary"
  103. icon="el-icon-plus"
  104. size="small"
  105. @click.stop="newDetails"
  106. :disabled="detailData.status == 1"
  107. >新增明细</el-button
  108. >
  109. <el-button
  110. type="info"
  111. icon="el-icon-printer"
  112. size="small"
  113. @click.stop="openReport()"
  114. >报 表</el-button
  115. >
  116. </template>
  117. <template slot="menu" slot-scope="{ row, index }">
  118. <el-button
  119. size="small"
  120. icon="el-icon-edit"
  121. type="text"
  122. @click="rowCell(row, index)"
  123. :disabled="disabled"
  124. >{{ row.$cellEdit ? "保存" : "修改" }}</el-button
  125. >
  126. <el-button
  127. size="small"
  128. icon="el-icon-edit"
  129. type="text"
  130. @click="rowDel(row, index)"
  131. :disabled="detailData.status == 1"
  132. >删 除</el-button
  133. >
  134. </template>
  135. </avue-crud>
  136. </basic-container>
  137. </div>
  138. <fee-info
  139. ref="feeInfo"
  140. :orderFeesList="orderFeesList"
  141. :disabled="detailData.status == 1"
  142. feeUrl="/trade-purchase/purchase-order/removeByFees"
  143. />
  144. <upload-file
  145. ref="uploadFile"
  146. title="合同附件"
  147. :orderFilesList="orderFilesList"
  148. :disabled="detailData.status == 1"
  149. delUrl="/trade-purchase/purchase-order/removeByFiles"
  150. />
  151. <div>
  152. <containerTitle title="银行信息"></containerTitle>
  153. <basic-container>
  154. <avue-form ref="form" v-model="form" :option="bankOption" />
  155. </basic-container>
  156. </div>
  157. </div>
  158. <el-dialog
  159. title="导入商品"
  160. append-to-body
  161. class="el-dialogDeep"
  162. :visible.sync="dialogVisible"
  163. width="60%"
  164. :close-on-click-modal="false"
  165. :destroy-on-close="true"
  166. :close-on-press-escape="false"
  167. @close="closeGoods"
  168. top="10vh"
  169. >
  170. <span>
  171. <el-row>
  172. <el-col :span="5">
  173. <div>
  174. <el-scrollbar>
  175. <basic-container style="margin-top:45px">
  176. <avue-tree :option="treeOption" @node-click="nodeClick" />
  177. </basic-container>
  178. </el-scrollbar>
  179. </div>
  180. </el-col>
  181. <el-col :span="19">
  182. <avue-crud
  183. :option="goodsOption"
  184. :table-loading="loading"
  185. :data="goodsList"
  186. ref="goodsCrud"
  187. @refresh-change="refreshChange"
  188. @selection-change="selectionChange"
  189. @row-click="rowClick"
  190. :page.sync="page"
  191. @on-load="onLoad"
  192. @saveColumn="saveGoodsColumn"
  193. ></avue-crud>
  194. </el-col>
  195. </el-row>
  196. </span>
  197. <span slot="footer" class="dialog-footer">
  198. <el-button @click="dialogVisible = false">取 消</el-button>
  199. <el-button
  200. type="primary"
  201. @click="importGoods"
  202. :disabled="selectionList.length == 0"
  203. >导入</el-button
  204. >
  205. </span>
  206. </el-dialog>
  207. <report-dialog
  208. :switchDialog="switchDialog"
  209. :reportId="form.id"
  210. reportName="客户询价"
  211. @onClose="onClose()"
  212. ></report-dialog>
  213. </div>
  214. </template>
  215. <script>
  216. import tableOption from "./config/customerContact.json";
  217. import goodsOption from "./config/commodity.json";
  218. import feeInfo from "@/components/fee-info/main";
  219. import uploadFile from "@/components/upload-file/main";
  220. import {
  221. detail,
  222. submit,
  223. delItem,
  224. getDeptLazyTree,
  225. getGoods,
  226. getSysNo,
  227. getSpecification
  228. } from "@/api/exportTrade/purchaseContract";
  229. import _ from "lodash";
  230. import reportDialog from "@/components/report-dialog/main";
  231. import {
  232. isvalidatemobile,
  233. validatename,
  234. micrometerFormat
  235. } from "@/util/validate";
  236. export default {
  237. name: "detailsPageEdit",
  238. data() {
  239. const validatePhone = (rule, value, callback) => {
  240. if (value != "") {
  241. if (isvalidatemobile(value)[0]) {
  242. this.$message.error("手机号码格式不正确");
  243. callback(new Error(isvalidatemobile(value)[1]));
  244. } else {
  245. callback();
  246. }
  247. } else {
  248. callback();
  249. }
  250. };
  251. const validateName = (rule, value, callback) => {
  252. if (value != "") {
  253. if (validatename(value)) {
  254. this.$message.error("联系人格式不正确");
  255. callback(new Error(validatename(value)));
  256. } else {
  257. callback();
  258. }
  259. } else {
  260. callback();
  261. }
  262. };
  263. return {
  264. configuration: {
  265. multipleChoices: false,
  266. multiple: false,
  267. collapseTags: false,
  268. placeholder: "请点击右边按钮选择",
  269. dicData: []
  270. },
  271. switchDialog: false,
  272. form: {},
  273. disabled: false,
  274. dialogVisible: false,
  275. tableOption: tableOption,
  276. option: {
  277. menuBtn: false,
  278. labelWidth: 100,
  279. column: [
  280. {
  281. label: "客户名称",
  282. prop: "corpId",
  283. rules: [
  284. {
  285. required: true,
  286. message: "",
  287. trigger: "blur"
  288. }
  289. ],
  290. span: 8,
  291. slot: true
  292. },
  293. {
  294. label: "系统号",
  295. prop: "sysNo",
  296. span: 8,
  297. disabled: true
  298. },
  299. {
  300. label: "订单状态",
  301. prop: "orderStatus",
  302. span: 8,
  303. type: "select",
  304. dicUrl: "/api/blade-system/dict-biz/dictionary?code=order_status",
  305. props: {
  306. label: "dictValue",
  307. value: "dictValue"
  308. }
  309. },
  310. {
  311. label: "订单号",
  312. prop: "orderNo",
  313. span: 8
  314. },
  315. {
  316. label: "联系人",
  317. prop: "corpAttn",
  318. span: 8,
  319. rules: [{ validator: validateName, trigger: "blur" }]
  320. },
  321. {
  322. label: "电话",
  323. prop: "corpTel",
  324. span: 8,
  325. rules: [{ validator: validatePhone, trigger: "blur" }]
  326. },
  327. {
  328. label: "采购日期",
  329. prop: "businesDate",
  330. span: 8,
  331. type: "date",
  332. format: "yyyy-MM-dd",
  333. valueFormat: "yyyy-MM-dd 00:00:00"
  334. },
  335. {
  336. label: "预计交货日期",
  337. prop: "plannedDeliveryDate",
  338. span: 8,
  339. type: "date",
  340. format: "yyyy-MM-dd",
  341. valueFormat: "yyyy-MM-dd 00:00:00"
  342. },
  343. {
  344. label: "实际交货日",
  345. prop: "requiredDeliveryDate",
  346. span: 8,
  347. type: "date",
  348. format: "yyyy-MM-dd",
  349. valueFormat: "yyyy-MM-dd 00:00:00"
  350. },
  351. {
  352. label: "是否开票",
  353. prop: "ifInvoice",
  354. span: 8,
  355. type: "select",
  356. dicUrl: "/api/blade-system/dict-biz/dictionary?code=ifInvoice",
  357. props: {
  358. label: "dictValue",
  359. value: "dictValue"
  360. }
  361. },
  362. {
  363. label: "收款方式",
  364. prop: "paymentType",
  365. span: 8,
  366. type: "select",
  367. dicUrl: "/api/blade-system/dict-biz/dictionary?code=payment_term",
  368. props: {
  369. label: "dictValue",
  370. value: "dictValue"
  371. }
  372. },
  373. {
  374. label: "收款说明",
  375. prop: "paymentTypeDescription",
  376. span: 8
  377. },
  378. {
  379. label: "币别",
  380. prop: "currency",
  381. span: 8,
  382. type: "select",
  383. dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
  384. props: {
  385. label: "dictValue",
  386. value: "dictValue"
  387. }
  388. },
  389. {
  390. label: "汇率",
  391. prop: "exchangeRate",
  392. span: 8,
  393. slot: true
  394. },
  395. {
  396. label: "备注",
  397. prop: "orderRemark",
  398. type: "textarea",
  399. minRows: 2,
  400. span: 8
  401. }
  402. ]
  403. },
  404. treeOption: {
  405. nodeKey: "id",
  406. lazy: true,
  407. treeLoad: function(node, resolve) {
  408. const parentId = node.level === 0 ? 0 : node.data.id;
  409. getDeptLazyTree(parentId).then(res => {
  410. resolve(
  411. res.data.data.map(item => {
  412. return {
  413. ...item,
  414. leaf: !item.hasChildren
  415. };
  416. })
  417. );
  418. });
  419. },
  420. addBtn: false,
  421. menu: false,
  422. size: "small",
  423. props: {
  424. label: "title",
  425. value: "value",
  426. children: "children"
  427. }
  428. },
  429. bankOption: {
  430. menuBtn: false,
  431. labelWidth: 100,
  432. column: [
  433. {
  434. label: "银行",
  435. prop: "banks",
  436. span: 8
  437. },
  438. {
  439. label: "银行信息",
  440. prop: "banksAccountName",
  441. span: 16,
  442. type: "textarea",
  443. minRows: 2
  444. }
  445. ]
  446. },
  447. insuranceOption: {
  448. menuBtn: false,
  449. labelWidth: 100,
  450. column: [
  451. {
  452. label: "保险描述",
  453. prop: "insuranceRemarks",
  454. span: 24,
  455. type: "textarea",
  456. minRows: 2
  457. }
  458. ]
  459. },
  460. markOption: {
  461. menuBtn: false,
  462. labelWidth: 100,
  463. column: [
  464. {
  465. label: "唛头描述",
  466. prop: "marks",
  467. span: 24,
  468. type: "textarea",
  469. minRows: 2
  470. }
  471. ]
  472. },
  473. page: {
  474. pageSize: 10,
  475. currentPage: 1,
  476. total: 0
  477. },
  478. loading: false,
  479. goodsOption:{},
  480. data: [],
  481. goodsList: [],
  482. selectionList: [],
  483. treeDeptId: null,
  484. orderFeesList: [],
  485. orderFilesList: [],
  486. orderItemIds: [],
  487. itemtypeList: []
  488. };
  489. },
  490. props: {
  491. detailData: {
  492. type: Object
  493. }
  494. },
  495. components: {
  496. reportDialog,
  497. feeInfo,
  498. uploadFile
  499. },
  500. async created() {
  501. this.tableOption = await this.getColumnData(
  502. this.getColumnName(3),
  503. tableOption
  504. );
  505. this.goodsOption = await this.getColumnData(
  506. this.getColumnName(27),
  507. goodsOption
  508. );
  509. if (this.detailData.id) {
  510. this.getDetail(this.detailData.id);
  511. }
  512. if (this.detailData.status == 1) {
  513. this.option.disabled = true;
  514. this.bankOption.disabled = true;
  515. this.insuranceOption.disabled = true;
  516. this.markOption.disabled = true;
  517. }
  518. let _this = this;
  519. this.tableOption.column.forEach(e => {
  520. if (e.prop == "taxRate") {
  521. e.formatter = function(row) {
  522. return _this.textFormat(
  523. Number(row.taxRate ? row.taxRate : 0) / 100,
  524. "0.00%"
  525. );
  526. };
  527. }
  528. if (e.prop == "amount" || e.prop == "price") {
  529. e.formatter = function(row) {
  530. return _this.textFormat(
  531. Number(row.amount ? row.amount : 0),
  532. "#,##0.00"
  533. );
  534. };
  535. }
  536. });
  537. if (this.detailData.pageType == "new") {
  538. getSysNo().then(res => {
  539. this.form.sysNo = res.data.data;
  540. });
  541. }
  542. },
  543. methods: {
  544. rowCell(row, index) {
  545. if (row.$cellEdit == true) {
  546. this.$set(row, "$cellEdit", false);
  547. } else {
  548. this.$set(row, "$cellEdit", true);
  549. }
  550. },
  551. itemTypeFocus(row) {
  552. this.itemtypeList = [];
  553. getSpecification({ goodId: row.itemId }).then(res => {
  554. const data = res.data.data;
  555. this.itemtypeList = data.map(item => ({ value: item }));
  556. });
  557. },
  558. priceChange(row) {
  559. console.log(row);
  560. if (!row.price) {
  561. row.price = 0;
  562. } else {
  563. row.amount = _.multiply(row.price, row.orderQuantity).toFixed(2);
  564. }
  565. },
  566. quantityChange(row) {
  567. if (!row.orderQuantity) {
  568. row.orderQuantity = 0;
  569. } else {
  570. row.amount = _.multiply(row.price, row.orderQuantity).toFixed(2);
  571. }
  572. },
  573. rateChange(row) {
  574. console.log(row);
  575. if (row >= 100) {
  576. this.form.exchangeRate = 0;
  577. this.$message.error("汇率不能超过100%");
  578. }
  579. },
  580. rowSave(row) {
  581. console.log(row);
  582. this.$set(row, "$cellEdit", false);
  583. },
  584. rowDel(row, index) {
  585. this.$confirm("确定删除数据?", {
  586. confirmButtonText: "确定",
  587. cancelButtonText: "取消",
  588. type: "warning"
  589. }).then(() => {
  590. if (row.id) {
  591. delItem(row.id).then(res => {
  592. this.$message({
  593. type: "success",
  594. message: "删除成功!"
  595. });
  596. this.data.splice(index, 1);
  597. });
  598. } else {
  599. this.$message({
  600. type: "success",
  601. message: "删除成功!"
  602. });
  603. this.data.splice(index, 1);
  604. }
  605. });
  606. },
  607. importGoods() {
  608. this.selectionList.forEach(e => {
  609. this.data.push({
  610. itemId: e.id,
  611. code: e.code,
  612. cname: e.cname,
  613. priceCategory: e.goodsTypeName,
  614. itemUrl: e.url,
  615. itemProp: null,
  616. itemDescription: null,
  617. itemType: null,
  618. orderQuantity: 0,
  619. tradeTerms: null,
  620. price: 0,
  621. amount: 0,
  622. taxRate: 0,
  623. unit: e.unit,
  624. remarks: null,
  625. $cellEdit: true
  626. });
  627. });
  628. this.dialogVisible = false;
  629. },
  630. closeGoods() {
  631. this.selectionList = [];
  632. this.treeDeptId = "";
  633. },
  634. goodsSelectionChange(list) {
  635. this.orderItemIds = [];
  636. list.map(e => {
  637. this.orderItemIds.push(e.id);
  638. });
  639. console.log(this.orderItemIds);
  640. },
  641. selectionChange(list) {
  642. this.selectionList = list;
  643. },
  644. rowClick(row) {
  645. this.$refs.goodsCrud.toggleSelection([this.goodsList[row.$index]]);
  646. },
  647. nodeClick(data) {
  648. this.treeDeptId = data.id;
  649. this.page.currentPage = 1;
  650. this.onLoad(this.page);
  651. },
  652. //费用查询
  653. onLoad(page, params = {}) {
  654. this.loading = true;
  655. getGoods(page.currentPage, page.pageSize, this.treeDeptId).then(res => {
  656. const data = res.data.data;
  657. this.page.total = data.total;
  658. this.goodsList = data.records;
  659. this.loading = false;
  660. if (this.page.total) {
  661. this.goodsOption.height = window.innerHeight - 550;
  662. } else {
  663. this.goodsOption.height = window.innerHeight - 475;
  664. }
  665. });
  666. },
  667. //商品明细导入
  668. newDetails() {
  669. this.dialogVisible = !this.dialogVisible;
  670. },
  671. getDetail(id) {
  672. detail(id).then(res => {
  673. this.form = res.data.data;
  674. this.data = res.data.data.itemsVOList ? res.data.data.itemsVOList : [];
  675. this.orderFeesList = res.data.data.orderFeesList
  676. ? res.data.data.orderFeesList
  677. : [];
  678. this.orderFilesList = res.data.data.orderFilesList
  679. ? res.data.data.orderFilesList
  680. : [];
  681. this.configuration.dicData = this.form.corpsName;
  682. });
  683. },
  684. //修改提交触发
  685. editCustomer() {
  686. this.$refs["form"].validate((valid, done) => {
  687. done();
  688. if (valid) {
  689. const orderFeesList = this.$refs.feeInfo.submitData();
  690. for (let i = 0; i < orderFeesList.length; i++) {
  691. if (orderFeesList[i].corpId == null) {
  692. return this.$message.error(`请输入第${i + 1}行的结算中心`);
  693. }
  694. if (orderFeesList[i].price == 0) {
  695. return this.$message.error(`请正确输入第${i + 1}行的价格`);
  696. }
  697. if (orderFeesList[i].quantity == 0) {
  698. return this.$message.error(`请正确输入第${i + 1}行的数量`);
  699. }
  700. }
  701. const orderFilesList = this.$refs.uploadFile.submitData();
  702. submit({
  703. ...this.form,
  704. itemsVOList: this.data,
  705. orderFeesList: orderFeesList,
  706. orderFilesList: orderFilesList,
  707. tradeType: "CK",
  708. billType: "CG"
  709. }).then(res => {
  710. this.$message.success(this.form.id ? "修改成功" : "提交成功");
  711. this.form.id = res.data.data;
  712. });
  713. } else {
  714. return false;
  715. }
  716. });
  717. },
  718. //返回列表
  719. backToList() {
  720. this.$emit("goBack");
  721. },
  722. openReport() {
  723. this.switchDialog = !this.switchDialog;
  724. },
  725. onClose(val) {
  726. this.switchDialog = val;
  727. },
  728. summaryMethod({ columns, data }) {
  729. const sums = [];
  730. if (columns.length > 0) {
  731. columns.forEach((item, index) => {
  732. sums[0] = "合计";
  733. if (item.property == "orderQuantity" || item.property == "amount") {
  734. let qtySum = 0;
  735. let amountSum = 0;
  736. data.forEach(e => {
  737. qtySum = _.add(qtySum, Number(e.orderQuantity));
  738. amountSum = _.add(amountSum, Number(e.amount));
  739. });
  740. //数量总计
  741. if (item.property == "orderQuantity") {
  742. sums[index] = qtySum ? qtySum.toFixed(2) : '0.00';
  743. }
  744. //金额总计
  745. if (item.property == "amount") {
  746. sums[index] = micrometerFormat(amountSum);
  747. }
  748. }
  749. });
  750. }
  751. return sums;
  752. },
  753. async saveColumn() {
  754. const inSave = await this.saveColumnData(
  755. this.getColumnName(3),
  756. this.tableOption
  757. );
  758. if (inSave) {
  759. this.$message.success("保存成功");
  760. //关闭窗口
  761. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  762. }
  763. },
  764. async saveGoodsColumn() {
  765. const inSave = await this.saveColumnData(
  766. this.getColumnName(27),
  767. this.goodsOption
  768. );
  769. if (inSave) {
  770. this.$message.success("保存成功");
  771. //关闭窗口
  772. this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
  773. }
  774. }
  775. }
  776. };
  777. </script>
  778. <style lang="scss" scoped>
  779. .customer-head {
  780. position: fixed;
  781. top: 105px;
  782. width: 100%;
  783. margin-left: -10px;
  784. height: 62px;
  785. background: #ffffff;
  786. box-shadow: 0 4px 12px 0px rgba(232, 232, 235, 1);
  787. z-index: 999;
  788. }
  789. .customer-back {
  790. cursor: pointer;
  791. line-height: 62px;
  792. font-size: 16px;
  793. color: #323233;
  794. font-weight: 400;
  795. }
  796. .back-icon {
  797. line-height: 64px;
  798. font-size: 20px;
  799. margin-right: 8px;
  800. }
  801. .copy-customer-btn {
  802. position: fixed;
  803. right: 140px;
  804. top: 115px;
  805. }
  806. .add-customer-btn {
  807. position: fixed;
  808. right: 36px;
  809. top: 115px;
  810. }
  811. ::v-deep .el-form-item {
  812. margin-bottom: 8px;
  813. }
  814. ::v-deep .el-form-item__error {
  815. display: none;
  816. }
  817. ::v-deep .select-component {
  818. display: flex;
  819. }
  820. </style>