TabelTransfer.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. <template>
  2. <div class="mymain-container">
  3. <slot name="header">
  4. <el-row class="radio">
  5. <el-radio-group v-model="region">
  6. <el-radio label="0">指定经销商</el-radio>
  7. <el-radio
  8. label="1"
  9. v-if="!adminWebsit || !adminWebsit.websitNumber || (adminWebsit && adminWebsit.websitNumber === 'GZ')"
  10. >广州经销商</el-radio
  11. >
  12. <el-radio
  13. label="2"
  14. v-if="!adminWebsit || !adminWebsit.websitNumber || (adminWebsit && adminWebsit.websitNumber === 'FS')"
  15. >佛山经销商</el-radio
  16. >
  17. </el-radio-group>
  18. <el-upload
  19. v-if="region == 0"
  20. class="import-btn"
  21. :action="baseURL + 'student/import'"
  22. :http-request="handleImport"
  23. :file-list="importFileList"
  24. :show-file-list="false"
  25. >
  26. <el-button type="primary" size="mini">导入经销商</el-button>
  27. </el-upload>
  28. <el-button class="import-btn" type="primary" size="mini" @click="hanleDownloadFiles">下载模板</el-button>
  29. </el-row>
  30. <el-row type="flex" v-if="region == 0">
  31. <el-col :xs="24" :sm="12" :lg="14">
  32. <el-input v-model="keyword" placeholder="查找经销商" size="mini" />
  33. </el-col>
  34. <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 10px"
  35. ><el-button size="mini" @click="submitScreenForm">确定</el-button></el-col
  36. >
  37. <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 20px"
  38. ><el-button size="mini" @click="resetScreenForm">重置</el-button></el-col
  39. >
  40. </el-row>
  41. </slot>
  42. <el-row :gutter="20" v-if="region == 0">
  43. <el-col :span="10" :offset="0" >
  44. <h5>未选经销商</h5>
  45. <el-divider direction="horizontal" content-position="left" />
  46. <div class="table">
  47. <el-table
  48. ref="multipleTable"
  49. :data="dataL"
  50. element-loading-text="Loading"
  51. border
  52. height="480px"
  53. fit
  54. highlight-current-row
  55. @select-all="handleSelectionAllChange"
  56. @selection-change="handleSelectionChange"
  57. >
  58. <el-table-column type="selection" width="55" :selectable="selectable" align="left" />
  59. <!-- <el-table-column-->
  60. <!-- prop="number"-->
  61. <!-- label="经销商编码"-->
  62. <!-- align="left"-->
  63. <!-- />-->
  64. <el-table-column prop="name" label="经销商名称" align="left"
  65. ><template slot-scope="scope">
  66. <CopyButton :copy-text="scope.row.name" />
  67. <span>{{ scope.row.name }}</span>
  68. <span class="red">{{scope.row.number}}</span>
  69. </template>
  70. </el-table-column>
  71. </el-table>
  72. </div>
  73. <!-- 分页 -->
  74. <div style="margin: 20px 0">
  75. <el-pagination
  76. :current-page="currentPages"
  77. :page-sizes="[10, 20, 30, 50]"
  78. :page-size="10"
  79. layout="total, sizes, prev, pager, next, jumper"
  80. :total="clistTotal"
  81. @size-change="handleSizeChanges"
  82. @current-change="handleCurrentChanges"
  83. />
  84. </div>
  85. </el-col>
  86. <el-col :span="4" class="middle_box" :offset="0">
  87. <el-col> <el-button size="mini" :disabled="type == 2" @click="handleAllAdd">全部添加</el-button></el-col>
  88. <el-col> <el-button size="mini" :disabled="type == 2" @click="handleAdd">增加</el-button></el-col>
  89. <el-col> <el-button size="mini" :disabled="type == 1" @click="handleDelete">删除</el-button></el-col>
  90. <el-col> <el-button size="mini" :disabled="type == 1" @click="handleAllDelete">全部删除</el-button></el-col>
  91. </el-col>
  92. <el-col :span="10" :offset="0">
  93. <h5>已选经销商</h5>
  94. <el-divider direction="horizontal" content-position="left" />
  95. <div class="table">
  96. <el-table
  97. v-loading="listLoading"
  98. :data="custoList"
  99. element-loading-text="Loading"
  100. border
  101. height="480px"
  102. fit
  103. highlight-current-row
  104. stripe
  105. @select-all="handleSelectionAllChange2"
  106. @selection-change="handleSelectionChange2"
  107. >
  108. <el-table-column type="selection" width="55" align="left" />
  109. <!-- <el-table-column-->
  110. <!-- prop="customerNumber"-->
  111. <!-- label="经销商编码"-->
  112. <!-- align="left"-->
  113. <!-- />-->
  114. <el-table-column prop="customerName" label="经销商名称" align="left">
  115. <template slot-scope="scope">
  116. <CopyButton :copy-text="scope.row.customerName" />
  117. <span>{{ scope.row.customerName }}</span>
  118. <span class="red">{{scope.row.customerNumber}}</span>
  119. </template>
  120. </el-table-column>
  121. </el-table>
  122. </div>
  123. </el-col>
  124. </el-row>
  125. <div>
  126. <h4 style="display: inline-block; margin-right: 20px">经销商上限</h4>
  127. <el-divider />
  128. </div>
  129. <div style="margin: 20px 0">
  130. <el-upload
  131. class="import-btn cus-btn"
  132. :action="baseURL + 'student/import'"
  133. :http-request="handleImports"
  134. :file-list="importFileList"
  135. :show-file-list="false"
  136. >
  137. <el-button type="primary" size="mini">导入经销商</el-button>
  138. </el-upload>
  139. <el-button type="primary" size="mini" @click="hanleDownloadFilesPolicy">下载模板</el-button>
  140. </div>
  141. <el-row type="flex" style="margin: 20px 0" >
  142. <el-col :xs="24" :sm="12" :lg="14">
  143. <el-input v-model="keyword2" placeholder="查找经销商" size="mini" />
  144. </el-col>
  145. <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 10px"
  146. ><el-button size="mini" @click="submitScreenForm2">确定</el-button></el-col
  147. >
  148. <el-col :xs="24" :sm="1" :lg="1" style="margin-left: 20px"
  149. ><el-button size="mini" @click="resetScreenForm2">重置</el-button></el-col
  150. >
  151. </el-row>
  152. <div >
  153. <div class="table">
  154. <el-table
  155. v-loading="clistLoading"
  156. :data="list"
  157. element-loading-text="Loading"
  158. border
  159. fit
  160. highlight-current-row
  161. stripe
  162. @select-all="handleSelectionAllChange2"
  163. @selection-change="handleSelectionChange2"
  164. >
  165. <!-- <el-table-column type="selection" width="55" align="left" /> -->
  166. <el-table-column
  167. prop="customerNumber"
  168. label="经销商编号
  169. "
  170. align="left"
  171. >
  172. <template slot-scope="scope">
  173. <CopyButton :copy-text="scope.row.customerNumber" />
  174. <span>{{ scope.row.customerNumber }}</span>
  175. </template>
  176. </el-table-column>
  177. <el-table-column prop="customerName" label="经销商名称" align="left">
  178. <template slot-scope="scope">
  179. <CopyButton :copy-text="scope.row.customerName" />
  180. <span>{{ scope.row.customerName }}</span>
  181. </template>
  182. </el-table-column>
  183. <el-table-column
  184. prop="materialName"
  185. label="物料名称
  186. "
  187. align="left"
  188. >
  189. <template slot-scope="scope">
  190. <CopyButton :copy-text="scope.row.materialName" />
  191. <span>{{ scope.row.materialName }}</span>
  192. </template>
  193. </el-table-column>
  194. <el-table-column
  195. prop="materialNumber"
  196. label="物料编号
  197. "
  198. align="left"
  199. >
  200. <template slot-scope="scope">
  201. <CopyButton :copy-text="scope.row.materialNumber" />
  202. <span>{{ scope.row.materialNumber }}</span>
  203. </template>
  204. </el-table-column>
  205. <el-table-column
  206. prop="examineOrderNums"
  207. label="已审订单数
  208. "
  209. align="left"
  210. >
  211. <template slot-scope="scope">
  212. {{ scope.row.examineOrderNums | numToFixed }}
  213. </template>
  214. </el-table-column>
  215. <el-table-column
  216. prop="limitQty"
  217. label="购买量上限
  218. "
  219. align="left"
  220. >
  221. <template slot-scope="scope">
  222. {{ scope.row.limitQty | numToFixed }}
  223. </template>
  224. </el-table-column>
  225. </el-table>
  226. </div>
  227. <!-- 分页 -->
  228. <div style="margin: 20px 0">
  229. <el-pagination
  230. :current-page="policyList.currentPages"
  231. :page-sizes="[10, 20, 30, 50]"
  232. :page-size="10"
  233. layout="total, sizes, prev, pager, next, jumper"
  234. :total="cTotal"
  235. @size-change="handleSizeChanges2"
  236. @current-change="handleCurrentChanges2"
  237. />
  238. </div>
  239. </div>
  240. <slot name="footer">
  241. <el-row style="margin: 20px 0 0 0">
  242. <el-button type="primary" size="mini" @click="handleSave">
  243. {{ comCode ? '保存' : '提交审核' }}
  244. </el-button>
  245. <el-button type="primary" size="mini" @click="handleReset">重置</el-button>
  246. </el-row>
  247. </slot>
  248. </div>
  249. </template>
  250. <script>
  251. import {
  252. deleteCondition,
  253. deleteMaterialPolicy,
  254. getConditionList,
  255. getCrList,
  256. getCustomerList,
  257. getPolicyList
  258. } from '@/api/policy_list'
  259. import { downloadFiles, handleImport } from '@/utils/util'
  260. import EditCondition from './EditCondition'
  261. import ImageUpload from '@/components/Common/image-upload.vue'
  262. import Minxin from '@/mixin'
  263. export default {
  264. name: 'Examine',
  265. components: {
  266. EditCondition,
  267. ImageUpload
  268. },
  269. mixins: [Minxin],
  270. // eslint-disable-next-line vue/require-prop-types
  271. props: ['code', 'yregion'],
  272. data() {
  273. return {
  274. keyword: '',
  275. keyword2: '',
  276. region: '0',
  277. baseURL: '',
  278. dcurrentPage: 1,
  279. dpageSize: 10,
  280. dlistTotal: 0,
  281. currentPages: 1, // 当前页码
  282. pageSizes: 10, // 每页数量
  283. input: '',
  284. remark: '',
  285. fileList: [],
  286. listLoading: false,
  287. imageUrl: '',
  288. dataList: [],
  289. examineStatus: 'OK',
  290. options: {},
  291. value: '',
  292. detail: {},
  293. srcList: [],
  294. screenForm: {
  295. code: '',
  296. createBy: '',
  297. endCreateTime: '',
  298. endTime1: '',
  299. endTime2: '',
  300. examineBy: '',
  301. remark: '',
  302. startCreateTime: '',
  303. startTime1: '',
  304. startTime2: '',
  305. status: '',
  306. title: '',
  307. type: ''
  308. },
  309. conditionList: [],
  310. custoList: [],
  311. isEdit: 1,
  312. cid: '',
  313. cpolicyId: '',
  314. dataL: [],
  315. clistTotal: 0,
  316. clistTotals: 0,
  317. type: 1,
  318. importFileList: [],
  319. leftData: [],
  320. rightData: [],
  321. typeOptions: [
  322. {
  323. value: 'PROVISION',
  324. label: '配提'
  325. },
  326. {
  327. value: 'LIMIT',
  328. label: '限量'
  329. }
  330. ],
  331. comCode: '',
  332. policyList: {
  333. pageNum: 1,
  334. pageSize: 10,
  335. policyId: '',
  336. keyword: '',
  337. currentPages: 1
  338. },
  339. list: [],
  340. cTotal: 1,
  341. clistLoading: false
  342. }
  343. },
  344. computed: {
  345. adminWebsit() {
  346. return JSON.parse(localStorage.getItem('supply_user')).adminWebsit
  347. }
  348. },
  349. watch: {
  350. dataL: (val, oval) => {
  351. console.log(val, oval)
  352. }
  353. },
  354. created() {
  355. this.comCode = this.code
  356. if (this.comCode) {
  357. if (this.yregion || this.yregion == 0) {
  358. this.region = '' + this.yregion
  359. }
  360. this.getCond()
  361. this.getPolicyList()
  362. }
  363. },
  364. methods: {
  365. getList() {
  366. this.getCrList()
  367. },
  368. onChange() {
  369. this.getCrList()
  370. },
  371. getCrList() {
  372. const customerParams = {
  373. pageNum: this.currentPages,
  374. pageSize: this.pageSizes,
  375. keyword: this.keyword,
  376. region: '',
  377. websitNumber: this.region == '0' && this.adminWebsit ? this.adminWebsit.websitNumber : ''
  378. }
  379. // 获取经销商列表
  380. getCrList(customerParams).then(res => {
  381. for (let j = 0; j < this.custoList.length; j++) {
  382. for (let i = 0; i < res.data.records.length; i++) {
  383. if (res.data.records[i].id === this.custoList[j].customerId) {
  384. res.data.records[i].disabled = true
  385. }
  386. }
  387. }
  388. this.dataL = res.data.records
  389. for (let k = 0; k < this.dataL.length; k++) {
  390. ;(this.dataL[k].customerId = this.dataL[k].id),
  391. (this.dataL[k].customerName = this.dataL[k].name),
  392. (this.dataL[k].customerNumber = this.dataL[k].number)
  393. }
  394. this.clistTotal = res.data.total
  395. })
  396. },
  397. getPolicyList() {
  398. this.clistLoading = true
  399. getPolicyList({
  400. pageNum: this.policyList.currentPages,
  401. pageSize: this.policyList.pageSize,
  402. policyId: this.comCode || this.code,
  403. keyword: this.keyword2
  404. }).then(res => {
  405. this.list = res.data.records
  406. console.log(this.list, '785787')
  407. this.cTotal = res.data.total
  408. this.clistLoading = false
  409. })
  410. },
  411. // 更改每页数量
  412. handleSizeChanges2(val) {
  413. this.policyList.pageSizes = val
  414. this.policyList.currentPages = 1
  415. this.getPolicyList()
  416. },
  417. // 更改当前页
  418. handleCurrentChanges2(val) {
  419. this.policyList.currentPages = val
  420. this.getPolicyList()
  421. },
  422. // 更改每页数量
  423. handleSizeChanges(val) {
  424. this.pageSizes = val
  425. this.currentPages = 1
  426. this.getCrList()
  427. },
  428. // 更改当前页
  429. handleCurrentChanges(val) {
  430. this.currentPages = val
  431. this.getCrList()
  432. },
  433. // 提交筛选表单
  434. submitScreenForm() {
  435. this.currentPages = 1
  436. this.getCrList()
  437. },
  438. // 重置筛选表单
  439. resetScreenForm() {
  440. this.keyword = ''
  441. this.currentPages = 1
  442. this.getCrList()
  443. },
  444. // 提交筛选表单
  445. submitScreenForm2() {
  446. this.policyList.currentPages = 1
  447. this.getPolicyList()
  448. },
  449. // 重置筛选表单
  450. resetScreenForm2() {
  451. this.keyword2 = ''
  452. this.policyList.currentPages = 1
  453. this.getPolicyList()
  454. },
  455. // 去掉相同数据
  456. resArr(arr1, arr2) {
  457. return arr1.filter(v => arr2.every(val => val.id !== v.id))
  458. },
  459. // 导入经销商模板
  460. async handleImport(param) {
  461. this.importLoading = true
  462. const file = param.file
  463. const formData = new FormData()
  464. formData.append('file', file)
  465. // formData.append('policyId', this.searchForm.code)
  466. // formData.append("mainId", this.searchForm.mainId);
  467. const result = await handleImport('policy/importCustomer', formData)
  468. console.log(result)
  469. this.importLoading = false
  470. this.importFileList = []
  471. if (result.code === 200) {
  472. await this.$alert(result.message, '导入成功', {
  473. confirmButtonText: '确定'
  474. })
  475. for (let i = 0; i < result.data.length; i++) {
  476. result.data[i].customerNumber = result.data[i].number
  477. result.data[i].customerName = result.data[i].name
  478. result.data[i].customerId = result.data[i].id
  479. }
  480. if (this.custoList.length) {
  481. this.custoList = [...this.custoList, ...this.resArr(this.custoList, result.data)]
  482. } else {
  483. this.custoList = result.data
  484. }
  485. } else {
  486. await this.$alert(result.message, '导入失败', {
  487. confirmButtonText: '确定'
  488. })
  489. }
  490. },
  491. async handleImports(param) {
  492. this.importLoading = true
  493. const file = param.file
  494. const formData = new FormData()
  495. formData.append('file', file)
  496. formData.append('policyId', this.comCode || this.code)
  497. // formData.append("mainId", this.searchForm.mainId);
  498. const result = await handleImport('policy/limit/import', formData)
  499. console.log(result)
  500. this.importLoading = false
  501. this.importFileList = []
  502. if (result.code === 200) {
  503. await this.$alert(result.message, '导入成功', {
  504. confirmButtonText: '确定'
  505. })
  506. this.list = result.data
  507. this.getPolicyList()
  508. } else {
  509. await this.$alert(result.message, '导入失败', {
  510. confirmButtonText: '确定'
  511. })
  512. }
  513. },
  514. // 下载经销商模板
  515. hanleDownloadFiles() {
  516. downloadFiles('policy/downloadCustomer')
  517. },
  518. hanleDownloadFilesPolicy() {
  519. downloadFiles('policy/limit/download')
  520. },
  521. getCommonApi(row) {
  522. ;(this.isEdit = 2), (this.cid = row.id), (this.cpolicyId = row.policyId)
  523. console.log(this.cpolicyId, this.comCode, this.cpolicyId === this.comCode)
  524. },
  525. getCond() {
  526. this.listLoading = true
  527. const custoParams = {
  528. pageNum: 1,
  529. pageSize: -1,
  530. policyId: this.comCode || this.code
  531. }
  532. getCustomerList(custoParams).then(res => {
  533. this.custoList = res.data.records
  534. console.log(this.custoList, '已选的')
  535. this.clistTotals = res.data.total
  536. this.listLoading = false
  537. // this.getCrList()
  538. })
  539. },
  540. handleCondition(id, index) {
  541. deleteCondition({ id }).then(res => {
  542. this.getConditionList()
  543. this.$successMsg('删除成功')
  544. })
  545. },
  546. getConditionList() {
  547. const condParams = {
  548. policyId: this.comCode
  549. }
  550. getConditionList(condParams).then(res => {
  551. this.conditionList = res.data
  552. })
  553. },
  554. // 删除
  555. hanleDelete(id) {
  556. const params = { policyMaterialId: id }
  557. deleteMaterialPolicy(params).then(res => {
  558. this.$successMsg('删除成功')
  559. })
  560. },
  561. /**
  562. * 根据条件禁用行复选框
  563. * 函数返回值为false则禁用选择(反之亦然)
  564. * @param {Object} row - 行数据
  565. * @param {String} index - 索引值
  566. * @return Boolean
  567. */
  568. selectable: function (row, index) {
  569. // row.disabled == undefined 才能被选中
  570. if (row.disabled === undefined || row.disabled === false) {
  571. return true
  572. } else {
  573. return false
  574. }
  575. // 函数必须有返回值且是布尔值
  576. // 页面刷新后该函数会执行 N 次进行判断(N 为表格行数)
  577. // 如果没有返回值则默认返回false(全部无法选中)
  578. },
  579. handleSelectionAllChange(e) {
  580. this.leftData = e
  581. this.type = 1
  582. },
  583. handleSelectionChange(e) {
  584. this.leftData = e
  585. this.type = 1
  586. },
  587. handleSelectionAllChange2(e) {
  588. this.rightData = e
  589. this.type = 2
  590. },
  591. handleSelectionChange2(e) {
  592. this.rightData = e
  593. this.type = 2
  594. },
  595. handleLeft(e) {
  596. this.type = 1
  597. },
  598. handleRight(e) {
  599. this.type = 2
  600. },
  601. handleAllAdd() {
  602. if (this.type === 1 && this.leftData.length) {
  603. for (let i = 0; i < this.dataL.length; i++) {
  604. for (let j = 0; j < this.leftData.length; j++) {
  605. if (this.dataL[i].id === this.leftData[j].id) {
  606. this.dataL[i].disabled = true
  607. }
  608. }
  609. }
  610. this.custoList = [...this.custoList, ...this.leftData]
  611. this.$refs.multipleTable.clearSelection()
  612. } else {
  613. this.$errorMsg('请选择要添加的经销商')
  614. }
  615. },
  616. handleAllDelete() {
  617. if (this.type === 2 && this.rightData.length) {
  618. for (let i = 0; i < this.dataL.length; i++) {
  619. for (let j = 0; j < this.rightData.length; j++) {
  620. if (this.dataL[i].id === this.rightData[j].customerId) {
  621. this.$set(this.dataL[i], 'disabled', false)
  622. // this.dataL[i].disabled = false
  623. }
  624. }
  625. }
  626. this.custoList = this.resArr(this.custoList, this.rightData)
  627. this.$refs.multipleTable.clearSelection()
  628. } else {
  629. this.$errorMsg('请选择要删除的经销商')
  630. }
  631. },
  632. handleAdd() {
  633. if (this.type === 1 && this.leftData.length) {
  634. for (let i = 0; i < this.dataL.length; i++) {
  635. for (let j = 0; j < this.leftData.length; j++) {
  636. if (this.dataL[i].id === this.leftData[j].id) {
  637. this.dataL[i].disabled = true
  638. }
  639. }
  640. }
  641. this.custoList = [...this.custoList, ...this.leftData]
  642. this.leftData = []
  643. this.$refs.multipleTable.clearSelection()
  644. } else {
  645. this.$errorMsg('请选择要添加的经销商')
  646. }
  647. },
  648. handleDelete() {
  649. if (this.type === 2 && this.rightData.length) {
  650. for (let i = 0; i < this.dataL.length; i++) {
  651. for (let j = 0; j < this.rightData.length; j++) {
  652. if (this.dataL[i].id === this.rightData[j].customerId) {
  653. this.$set(this.dataL[i], 'disabled', false)
  654. // this.dataL[i].disabled = false
  655. }
  656. }
  657. }
  658. this.custoList = this.resArr(this.custoList, this.rightData)
  659. this.$refs.multipleTable.clearSelection()
  660. } else {
  661. this.$errorMsg('请选择要删除的经销商')
  662. }
  663. },
  664. // 提交数据
  665. async handleSave() {
  666. this.$emit('handlEditPolicy', this.custoList, this.region)
  667. },
  668. handleReset() {
  669. this.dataR = this.rightData = []
  670. this.keyword = ''
  671. this.$emit('handleReset')
  672. }
  673. }
  674. }
  675. </script>
  676. <style lang="scss" scoped>
  677. .radio {
  678. display: flex;
  679. align-items: center;
  680. margin: 0 0 20px 0;
  681. }
  682. .import-btn {
  683. margin: 0 20px;
  684. }
  685. .cus-btn {
  686. margin: 0;
  687. }
  688. .value {
  689. ::v-deep .el-input__prefix {
  690. display: none;
  691. }
  692. }
  693. .descriptions {
  694. // border: #EBEEF5;
  695. border: 1px solid #ebeef5;
  696. border-bottom: none;
  697. .el-row {
  698. height: 40px;
  699. line-height: 40px;
  700. }
  701. .el-col:nth-child(odd) {
  702. background-color: #ebeef5;
  703. }
  704. .el-col {
  705. padding: 0 15px;
  706. height: 100%;
  707. border-bottom: 1px solid #ebeef5;
  708. }
  709. }
  710. .el-divider--horizontal {
  711. margin: 20px 0;
  712. }
  713. .col {
  714. height: 100px;
  715. }
  716. .import-btn {
  717. margin-right: 10px;
  718. display: inline-block;
  719. }
  720. ::v-deep .el-input__icon .el-icon-time {
  721. display: none;
  722. }
  723. .middle_box {
  724. margin-top: 80px;
  725. text-align: center;
  726. height: 430px;
  727. display: flex;
  728. flex-direction: column;
  729. align-content: center;
  730. justify-content: space-between;
  731. align-items: center;
  732. }
  733. .img-box {
  734. height: 150px;
  735. display: flex;
  736. align-items: center;
  737. }
  738. .red{
  739. color: #f00;
  740. }
  741. </style>