details.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354
  1. <template>
  2. <div class="">
  3. <div v-if="isEdit == 1">
  4. <div>
  5. <div class="diy-table-1">
  6. <el-row>
  7. <el-col :span="8" class="item">
  8. <div class="label">销售政策编号</div>
  9. <div class="value">{{ detail.code }}</div>
  10. </el-col>
  11. <el-col :span="8" class="item">
  12. <div class="label">销售政策类型</div>
  13. <div class="value">
  14. {{ detail.type == 'PROVISION' ? '配提' : '限量' }}
  15. </div>
  16. </el-col>
  17. <el-col :span="8" class="item">
  18. <div class="label">状态</div>
  19. <div class="value">
  20. {{ detail.status == 1 ? '已生效' : '未生效' }}
  21. </div>
  22. </el-col>
  23. <el-col :span="24" class="item">
  24. <div class="label">销售政策名称</div>
  25. <div class="value">
  26. <el-input v-model="detail.title" disabled placeholder="请输入销售政策名称" />
  27. </div>
  28. </el-col>
  29. <el-col :span="24" class="item">
  30. <div class="label">表头备注</div>
  31. <div class="value">
  32. {{ detail.remark }}
  33. </div>
  34. </el-col>
  35. <el-col v-if="(detail.examineStatus = 'SAVE' && detail.examineTime != null)" :span="24" class="item">
  36. <div class="label">驳回原因</div>
  37. <div class="value">
  38. {{ detail.examineRemark }}
  39. </div>
  40. </el-col>
  41. <el-col :span="8" class="item">
  42. <div class="label">制单人</div>
  43. <div class="value">{{ detail.createBy }}</div>
  44. </el-col>
  45. <el-col :span="8" class="item">
  46. <div class="label">制单日期</div>
  47. <div class="value">
  48. {{ detail.createTime }}
  49. </div>
  50. </el-col>
  51. <el-col :span="8" class="item">
  52. <div class="label">生效日期</div>
  53. <div class="value">
  54. {{ detail.startTime }}
  55. </div>
  56. </el-col>
  57. <el-col :span="24" class="item">
  58. <div class="label">失效日期</div>
  59. <div class="value">
  60. {{ detail.endTime }}
  61. </div>
  62. </el-col>
  63. <template v-if="detail.type === 'LIMIT'">
  64. <el-col :span="12" class="item">
  65. <div class="label">商家最少起提数量</div>
  66. <div class="value">
  67. {{ detail.minBuyNum }}
  68. </div>
  69. </el-col>
  70. <el-col :span="12" class="item">
  71. <div class="label">商家最大提货组数</div>
  72. <div class="value">
  73. {{ detail.maxBuyNum }}
  74. </div>
  75. </el-col>
  76. </template>
  77. </el-row>
  78. <el-row v-if="detail.imgSrc && isShow !== 5" class="img-box">
  79. <el-col :span="24" class="item">
  80. <div class="label" style="height: 150px">政策封面图</div>
  81. <div class="value" style="height: 150px">
  82. <template v-for="item in detail.imgSrc">
  83. <el-image
  84. v-if="checkFileType(item) == 'image'"
  85. ref="img"
  86. :src="$imageUrl + item"
  87. style="width: 120px; height: 120px; margin-right: 20px"
  88. fit="cover"
  89. :preview-src-list="[$imageUrl + item]"
  90. class="elImageClose"
  91. />
  92. <img v-if="checkFileType(item) == 'word'" class="file" src="@/assets/common/word.png">
  93. <img v-if="checkFileType(item) == 'excel'" class="file" src="@/assets/common/excel.png">
  94. <img v-if="checkFileType(item) == 'ppt'" class="file" src="@/assets/common/ppt.png">
  95. <img
  96. v-if="checkFileType(item) == 'pdf'"
  97. class="file"
  98. style="cursor: pointer"
  99. src="@/assets/common/pdf.png"
  100. @click="openPdf(item)"
  101. >
  102. <img v-if="checkFileType(item) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg">
  103. </template>
  104. <!-- <el-image
  105. v-for="item in detail.imgSrc"
  106. style="height: 120px; widht: 120px;margin-left: 20px"
  107. :src="$imageUrl + item"
  108. fit="fill"
  109. :preview-src-list="srcList"
  110. /> -->
  111. </div>
  112. </el-col>
  113. </el-row>
  114. <el-row v-if="isShow == 5">
  115. <el-col :span="24" class="item">
  116. <div class="label" style="height: 150px">政策封面图</div>
  117. <div class="value" style="height: 150px">
  118. <image-upload :file-list="fileList" :multiple="false" />
  119. </div>
  120. </el-col>
  121. </el-row>
  122. <el-row v-if="this.isShow == 4">
  123. <el-col :span="8" class="item">
  124. <div class="label">审核人</div>
  125. <div class="value">{{ detail.examineBy }}</div>
  126. </el-col>
  127. <el-col :span="16" class="item">
  128. <div class="label">审核日期</div>
  129. <div class="value">{{ detail.examineTime }}</div>
  130. </el-col>
  131. <el-col :span="12" class="item">
  132. <div class="label">返利使用金额需满额使用</div>
  133. <div class="value">
  134. <el-checkbox v-model="detail.isFullRebate" disabled>{{
  135. detail.isFullRebate ? '是' : '否'
  136. }}</el-checkbox>
  137. </div>
  138. </el-col>
  139. <el-col :span="12" class="item">
  140. <div class="label">商用空调政策</div>
  141. <div class="value">
  142. <el-checkbox v-model="detail.commercialType" disabled>{{
  143. detail.commercialType ? '是' : '否'
  144. }}</el-checkbox>
  145. </div>
  146. </el-col>
  147. <!-- <el-col :span="8" class="item">-->
  148. <!-- <div class="label">关闭人</div>-->
  149. <!-- <div class="value"></div>-->
  150. <!-- </el-col>-->
  151. <!-- <el-col :span="24" class="item">-->
  152. <!-- <div class="label">关闭日期</div>-->
  153. <!-- <div class="value"></div>-->
  154. <!-- </el-col>-->
  155. </el-row>
  156. </div>
  157. <div class="mymain-container">
  158. <el-row>
  159. <el-divider />
  160. <el-row type="flex">
  161. <el-col :span="12">
  162. <h4 style="display: inline-block; margin-right: 20px">货品信息</h4>
  163. <ExportButton
  164. v-if="isShow === 4"
  165. style="display: inline-block"
  166. :ex-url="'policy/material/export'"
  167. ex-text="导出货品"
  168. :ex-params="{ policyId: detail.code }"
  169. />
  170. <el-upload
  171. v-if="isShow == 5"
  172. class="import-btn"
  173. :action="baseURL + 'student/import'"
  174. :http-request="handleImport"
  175. :file-list="importFileList"
  176. :show-file-list="false"
  177. >
  178. <el-button size="mini">导入货品价格表</el-button>
  179. </el-upload>
  180. </el-col>
  181. <el-col :span="12" class="tr" />
  182. </el-row>
  183. <el-divider />
  184. </el-row>
  185. <div class="table">
  186. <el-table
  187. v-loading="listLoading"
  188. :data="dataList"
  189. element-loading-text="Loading"
  190. border
  191. max-height="700"
  192. fit
  193. highlight-current-row
  194. stripe
  195. >
  196. <el-table-column fixed type="index" label="序号" width="50" align="left" />
  197. <el-table-column
  198. prop="materialNumber"
  199. label="物料编码"
  200. min-width="160"
  201. show-overflow-tooltip
  202. align="left"
  203. >
  204. <template slot-scope="scope">
  205. <CopyButton :copy-text="scope.row.materialNumber" />
  206. <span>{{ scope.row.materialNumber }}</span>
  207. </template>
  208. </el-table-column>
  209. <el-table-column prop="materialName" label="产品名称" min-width="160" show-overflow-tooltip align="left">
  210. <template slot-scope="scope">
  211. <CopyButton :copy-text="scope.row.materialName" />
  212. <span>{{ scope.row.materialName }}</span>
  213. </template>
  214. </el-table-column>
  215. <el-table-column prop="specification" label="规格型号" min-width="300" show-overflow-tooltip align="left">
  216. <template slot-scope="scope">
  217. <CopyButton :copy-text="scope.row.specification" />
  218. <span>{{ scope.row.specification }}</span>
  219. </template>
  220. </el-table-column>
  221. <el-table-column
  222. prop="saleTypeCode"
  223. label="销售类型编码"
  224. min-width="160"
  225. show-overflow-tooltip
  226. align="left"
  227. />
  228. <el-table-column
  229. prop="saleTypeName"
  230. label="销售类型"
  231. min-width="160"
  232. show-overflow-tooltip
  233. align="left"
  234. />
  235. <el-table-column prop="discAmount" label="格力折扣" align="right" />
  236. <el-table-column prop="price" label="单价" align="right" />
  237. <el-table-column prop="orgPrice" label="原供价" align="right" min-width="150">
  238. <template slot-scope="scope">
  239. {{ scope.row.orgPrice }}
  240. </template>
  241. </el-table-column>
  242. <el-table-column prop="priceType" label="价格类型" align="left" min-width="150">
  243. <template slot-scope="scope">
  244. {{ scope.row.priceType }}
  245. </template>
  246. </el-table-column>
  247. <el-table-column label="返利钱包" align="left" min-width="200" show-overflow-tooltip>
  248. <template slot-scope="scope">
  249. <template v-for="item in scope.row.walletRelaList">
  250. <el-tag v-if="item.type === 'REBATE'" style="margin: 5px" type="success" size="mini">{{
  251. item.walletName
  252. }}</el-tag>
  253. </template>
  254. </template>
  255. </el-table-column>
  256. <el-table-column label="现金钱包" align="left" min-width="200" show-overflow-tooltip>
  257. <template slot-scope="scope">
  258. <template v-for="item in scope.row.walletRelaList">
  259. <el-tag v-if="item.type === 'COMMONLY'" style="margin: 5px" type="success" size="mini">{{
  260. item.walletName
  261. }}</el-tag>
  262. </template>
  263. </template>
  264. </el-table-column>
  265. <el-table-column prop="status" label="状态" align="left" show-overflow-tooltip min-width="150">
  266. <template slot-scope="scope">
  267. {{ scope.row.status ? '启用' : '作废' }}
  268. </template>
  269. </el-table-column>
  270. </el-table>
  271. </div>
  272. <!-- 分页 -->
  273. <div style="margin: 20px 0">
  274. <el-pagination
  275. :current-page="dcurrentPage"
  276. :page-sizes="[10, 20, 30, 50]"
  277. :page-size="10"
  278. layout="total, sizes, prev, pager, next, jumper"
  279. :total="dlistTotal"
  280. @size-change="handleSizeChange2"
  281. @current-change="handleCurrentChange2"
  282. />
  283. </div>
  284. <el-row>
  285. <el-divider />
  286. <el-row type="flex">
  287. <el-col :span="12">
  288. <h4 style="display: inline-block; margin-right: 20px">条件信息</h4>
  289. </el-col>
  290. </el-row>
  291. <el-divider />
  292. </el-row>
  293. <div class="table">
  294. <el-table :data="conditionList" element-loading-text="Loading" border fit highlight-current-row stripe>
  295. <el-table-column fixed type="index" label="序号" width="50" align="left" />
  296. <el-table-column prop="name" label="限定条件" align="left">
  297. <template slot-scope="scope">
  298. {{ scope.row.name }}
  299. </template>
  300. </el-table-column>
  301. <el-table-column label="操作" align="left" width="150">
  302. <template slot-scope="scope">
  303. <template v-if="isShow == 5">
  304. <el-button type="text" size="mini" @click="getCommonApi(scope.row)">编辑</el-button>
  305. <el-popconfirm
  306. confirm-button-text="好的"
  307. cancel-button-text="不用了"
  308. icon="el-icon-info"
  309. icon-color="red"
  310. title="内容确定删除吗?"
  311. @onConfirm="handleCondition(scope.row.id, scope.$index)"
  312. >
  313. <el-button slot="reference" type="text" class="textColor el-popover-left">删除</el-button>
  314. </el-popconfirm>
  315. </template>
  316. <el-button v-else type="text" size="mini" @click="getCommonApi(scope.row)">查看条件</el-button>
  317. </template>
  318. </el-table-column>
  319. </el-table>
  320. </div>
  321. <el-row>
  322. <el-divider />
  323. <el-row type="flex">
  324. <el-col :span="12">
  325. <h4 style="display: inline-block; margin-right: 20px">经销商使用范围</h4>
  326. <template v-if="detail.flag == 0">
  327. <ExportButton
  328. v-if="isShow === 4"
  329. style="display: inline-block"
  330. :ex-url="'policy/customer/export'"
  331. ex-text="导出经销商"
  332. :ex-params="{ policyId: detail.code }"
  333. />
  334. </template>
  335. </el-col>
  336. </el-row>
  337. <el-divider />
  338. <el-radio-group v-model="detail.flag">
  339. <el-radio label="0" :disabled="detail.flag != 0">指定经销商</el-radio>
  340. <el-radio label="1" :disabled="detail.flag != 1">广州经销商</el-radio>
  341. <el-radio label="2" :disabled="detail.flag != 2">佛山经销商</el-radio>
  342. </el-radio-group>
  343. </el-row>
  344. <div class="table">
  345. <template v-if="isShow != 5">
  346. <template v-if="detail.flag == 0">
  347. <el-table
  348. v-loading="listLoading"
  349. :data="custoList"
  350. element-loading-text="Loading"
  351. border
  352. fit
  353. highlight-current-row
  354. stripe
  355. >
  356. <el-table-column fixed type="index" label="序号" width="50" align="left" />
  357. <el-table-column prop="customerNumber" label="经销商编码" align="left">
  358. <template slot-scope="scope">
  359. <CopyButton :copy-text="scope.row.customerNumber" />
  360. <span>{{ scope.row.customerNumber }}</span>
  361. </template></el-table-column>
  362. <el-table-column prop="customerName" label="经销商名称" align="left">
  363. <template slot-scope="scope">
  364. <CopyButton :copy-text="scope.row.customerName" />
  365. <span>{{ scope.row.customerName }}</span>
  366. </template>
  367. </el-table-column>
  368. </el-table>
  369. <!-- 分页 -->
  370. <div style="margin: 20px 0">
  371. <el-pagination
  372. :current-page="currentPages"
  373. :page-sizes="[10, 20, 30, 50]"
  374. :page-size="10"
  375. layout="total, sizes, prev, pager, next, jumper"
  376. :total="clistTotals"
  377. @size-change="handleSizeChanges"
  378. @current-change="handleCurrentChanges"
  379. />
  380. </div>
  381. </template>
  382. </template>
  383. <template v-else>
  384. <el-row :gutter="20">
  385. <el-col :span="10" :offset="0">
  386. <h5>未选经销商</h5>
  387. <el-divider direction="horizontal" content-position="left" />
  388. <el-table
  389. ref="multipleTable"
  390. :data="dataL"
  391. element-loading-text="Loading"
  392. border
  393. height="480px"
  394. fit
  395. highlight-current-row
  396. @select-all="handleSelectionAllChange"
  397. @selection-change="handleSelectionChange"
  398. >
  399. <el-table-column type="selection" width="55" :selectable="selectable" align="left" />
  400. <el-table-column prop="number" label="经销商编码" align="left">
  401. <template slot-scope="scope">
  402. <CopyButton :copy-text="scope.row.number" />
  403. <span>{{ scope.row.number }}</span>
  404. </template>
  405. </el-table-column>
  406. <el-table-column prop="name" label="经销商名称" align="left">
  407. <template slot-scope="scope">
  408. <CopyButton :copy-text="scope.row.name" />
  409. <span>{{ scope.row.name }}</span>
  410. </template>
  411. </el-table-column>
  412. </el-table>
  413. <!-- 分页 -->
  414. <div style="margin: 20px 0">
  415. <el-pagination
  416. :current-page="currentPages"
  417. :page-sizes="[10, 20, 30, 50]"
  418. :page-size="10"
  419. layout="total, sizes, prev, pager, next, jumper"
  420. :total="clistTotal"
  421. @size-change="handleSizeChanges"
  422. @current-change="handleCurrentChanges"
  423. />
  424. </div>
  425. </el-col>
  426. <el-col :span="4" class="middle_box" :offset="0">
  427. <el-col>
  428. <el-button size="mini" :disabled="type == 2" @click="handleAllAdd">全部添加</el-button></el-col>
  429. <el-col> <el-button size="mini" :disabled="type == 2" @click="handleAdd">增加</el-button></el-col>
  430. <el-col> <el-button size="mini" :disabled="type == 1" @click="handleDelete">删除</el-button></el-col>
  431. <el-col>
  432. <el-button size="mini" :disabled="type == 1" @click="handleAllDelete">全部删除</el-button></el-col>
  433. </el-col>
  434. <el-col :span="10" :offset="0">
  435. <h5>已选经销商</h5>
  436. <el-divider direction="horizontal" content-position="left" />
  437. <el-table
  438. v-loading="listLoading"
  439. :data="custoList"
  440. element-loading-text="Loading"
  441. border
  442. height="480px"
  443. fit
  444. highlight-current-row
  445. stripe
  446. @select-all="handleSelectionAllChange2"
  447. @selection-change="handleSelectionChange2"
  448. >
  449. <el-table-column type="selection" width="55" align="left" />
  450. <el-table-column prop="customerNumber" label="经销商编码" align="left">
  451. <template slot-scope="scope">
  452. <CopyButton :copy-text="scope.row.customerNumber" />
  453. <span>{{ scope.row.customerNumber }}</span>
  454. </template>
  455. </el-table-column>
  456. <el-table-column prop="customerName" label="经销商名称" align="left">
  457. <template slot-scope="scope">
  458. <CopyButton :copy-text="scope.row.customerName" />
  459. <span>{{ scope.row.customerName }}</span>
  460. </template>
  461. </el-table-column>
  462. </el-table>
  463. <!-- 分页 -->
  464. <!-- <div style="margin: 20px 0">
  465. <el-pagination
  466. @size-change="handleSizeChanges"
  467. @current-change="handleCurrentChanges"
  468. :current-page="currentPages"
  469. :page-sizes="[10, 20, 30, 50]"
  470. :page-size="10"
  471. layout="total, sizes, prev, pager, next, jumper"
  472. :total="clistTotals"
  473. >
  474. </el-pagination>
  475. </div> -->
  476. </el-col>
  477. </el-row>
  478. </template>
  479. <template>
  480. <div style="dispaly: flex">
  481. <h4 style="display: inline-block; margin-right: 20px">经销商上限</h4>
  482. <ExportButton
  483. style="display: inline-block; margin-right: 20px"
  484. :ex-url="'policy/limit/export'"
  485. :ex-params="exParams"
  486. />
  487. <el-button v-if=" detail.type !=='PROVISION' &&list.length" type="primary" size="mini" @click="handelBatchData">批量修改</el-button>
  488. <el-divider />
  489. </div>
  490. <div>
  491. <div class="table">
  492. <el-table
  493. v-if="detail.type == 'PROVISION'"
  494. v-loading="clistLoading"
  495. :data="list"
  496. element-loading-text="Loading"
  497. border
  498. fit
  499. highlight-current-row
  500. stripe
  501. @select-all="handleSelectionAllChange2"
  502. @selection-change="handleSelectionChange2"
  503. >
  504. <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
  505. <template slot-scope="scope">
  506. <CopyButton :copy-text="scope.row.customerName" />
  507. <span>{{ scope.row.customerName }}</span>
  508. </template>
  509. </el-table-column>
  510. <el-table-column prop="maxBuyNum" label="最大提货套数" align="left">
  511. <template slot-scope="scope">
  512. {{ scope.row.maxBuyNum }}
  513. </template>
  514. </el-table-column>
  515. <el-table-column prop="materialName" label="物料名称" align="left">
  516. <template slot-scope="scope">
  517. {{ scope.row.materialName }}
  518. </template>
  519. </el-table-column>
  520. <el-table-column prop="materialNumber" label="物料编号" align="left">
  521. <template slot-scope="scope">
  522. {{ scope.row.materialNumber }}
  523. </template>
  524. </el-table-column>
  525. <el-table-column prop="limitQty" label="订货上限" align="left">
  526. <template slot-scope="scope">
  527. {{ scope.row.limitQty }}
  528. </template>
  529. </el-table-column>
  530. <el-table-column prop="orderNums" label="已下订单数" align="left">
  531. <template slot-scope="scope">
  532. {{ scope.row.orderNums }}
  533. </template>
  534. </el-table-column>
  535. <el-table-column prop="examineOrderNums" label="已审订单数" align="left">
  536. <template slot-scope="scope">
  537. {{ scope.row.examineOrderNums }}
  538. </template>
  539. </el-table-column>
  540. </el-table>
  541. <el-table
  542. v-else
  543. v-loading="clistLoading"
  544. :data="list"
  545. element-loading-text="Loading"
  546. border
  547. fit
  548. highlight-current-row
  549. stripe
  550. @select-all="handleSelectionAllChange2"
  551. @selection-change="handleSelectionChange2"
  552. >
  553. <el-table-column type="index" label="序号" align="left" />
  554. <el-table-column prop="customerNumber" label="经销商编号" align="left" width="300">
  555. <template slot-scope="scope">
  556. <CopyButton :copy-text="scope.row.customerNumber" />
  557. <span>{{ scope.row.customerNumber }}</span>
  558. </template>
  559. </el-table-column>
  560. <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
  561. <template slot-scope="scope">
  562. <CopyButton :copy-text="scope.row.customerName" />
  563. <span>{{ scope.row.customerName }}</span>
  564. </template>
  565. </el-table-column>
  566. <el-table-column prop="minBuyNum" label="最少起提数" align="left">
  567. <template slot-scope="scope">
  568. <span>{{ scope.row.minBuyNum }}</span>
  569. </template>
  570. </el-table-column>
  571. <el-table-column prop="maxBuyNum" label="最大提货组数" align="left">
  572. <template slot-scope="scope">
  573. <span>{{ scope.row.maxBuyNum }}</span>
  574. </template>
  575. </el-table-column>
  576. <el-table-column prop="orderNums" label="已下订单数" align="left">
  577. <template slot-scope="scope">
  578. <span>{{ scope.row.orderNums }}</span>
  579. </template>
  580. </el-table-column>
  581. <el-table-column prop="examineOrderNums" label="已审订单数" align="left">
  582. <template slot-scope="scope">
  583. <span>{{ scope.row.examineOrderNums }}</span>
  584. </template>
  585. </el-table-column>
  586. </el-table>
  587. </div>
  588. <!-- 分页 -->
  589. <div style="margin: 20px 0">
  590. <el-pagination
  591. :current-page="policyList.currentPages"
  592. :page-sizes="[10, 20, 30, 50]"
  593. :page-size="10"
  594. layout="total, sizes, prev, pager, next, jumper"
  595. :total="cTotal"
  596. @size-change="handleSizeChanges4"
  597. @current-change="handleCurrentChanges4"
  598. />
  599. </div>
  600. </div>
  601. </template>
  602. </div>
  603. <div v-if="isShow == 8 && detail.examineStatus == 'WAIT'" class="descriptions diy-table-1">
  604. <el-row>
  605. <el-col :span="6">审核人</el-col>
  606. <el-col :span="6">{{ $store.getters.name }}</el-col>
  607. <el-col :span="6">审核结果</el-col>
  608. <el-col :span="6">
  609. <template>
  610. <el-radio-group v-model="examineStatus">
  611. <el-radio :label="'OK'">通过</el-radio>
  612. <el-radio :label="'FAIL'">驳回</el-radio>
  613. </el-radio-group>
  614. </template>
  615. </el-col>
  616. </el-row>
  617. <el-row class="item">
  618. <el-col :span="4">审批说明</el-col>
  619. <el-col :span="20" class="col value" style="padding-left: 10px">
  620. <el-input v-model="remark" size="mini" placeholder="请输入内容" />
  621. </el-col>
  622. </el-row>
  623. <el-row>
  624. <el-button type="primary" size="mini" @click="handleSubmit">审核通过</el-button>
  625. </el-row>
  626. </div>
  627. </div>
  628. <div>
  629. <el-button v-if="isShow == 5" type="primary" size="default" @click="handleSave">保存</el-button>
  630. </div>
  631. </div>
  632. <operation-records v-if="detail && detail.code" :policy-id="detail.code" />
  633. <el-dialog
  634. title="批量修改"
  635. :visible.sync="visible"
  636. width="50%"
  637. :append-to-body="true"
  638. :close-on-click-modal="false"
  639. @close="handleDialogVisible"
  640. >
  641. <el-row :gutter="20">
  642. <el-col :span="24" style="display: flex; align-items: center; margin-bottom: 20px">
  643. <el-col :span="4" :offset="0"> 最小起起提数 </el-col>
  644. <el-col :span="8" :offset="0"> <el-input v-model="minBuyNum" size="mini" /></el-col>
  645. <el-col :span="4" :offset="0"> 最大可提组数 </el-col>
  646. <el-col :span="8" :offset="0"> <el-input v-model="maxBuyNum" size="mini" /></el-col>
  647. </el-col>
  648. <el-col :span="24" :offset="0" style="margin-bottom: 20px">
  649. <div style="display: flex">
  650. <el-input v-model="buyNumKeyWord" placeholder="输入关键字搜索" size="mini" />
  651. <el-button style="margin-left: 20px" type="primary" size="mini" @click="handelBatchData('search')">查询</el-button>
  652. <el-button size="mini" @click="onReset">重置</el-button>
  653. </div>
  654. </el-col>
  655. </el-row>
  656. <zj-table
  657. :table-attributes="tableAttributes"
  658. :table-events="tableEvents"
  659. :is-drop="true"
  660. :columns="columns"
  661. :table-data="tableData"
  662. />
  663. <div style="margin: 20px 0">
  664. <el-pagination
  665. :current-page="batchCurrentPages"
  666. :page-sizes="[10, 20, 30, 50]"
  667. :page-size="10"
  668. layout="total, sizes, prev, pager, next, jumper"
  669. :total="batchTotal"
  670. @size-change="handleBatchSizeChanges"
  671. @current-change="handleBatchCurrentChanges"
  672. />
  673. </div>
  674. <span slot="footer">
  675. <el-button @click="handleDialogVisible">取消</el-button>
  676. <el-button type="primary" @click="onSubmit('limit')">确定</el-button>
  677. </span>
  678. </el-dialog>
  679. </div>
  680. <add-condition v-else :id="cid" :is-edit="isEdit" :is-show="isShow" @close="handleConditionClose" @back="handleBack" />
  681. </div>
  682. </template>
  683. <script>
  684. import {
  685. deleteCondition,
  686. deleteMaterialPolicy,
  687. getConditionList,
  688. getCrList,
  689. getCustomerList,
  690. getMaterialList,
  691. getPolicyDetail,
  692. toExamine,
  693. updatePolicy,
  694. getPolicyList,
  695. updateLimitBatchupdate
  696. } from '@/api/policy_list'
  697. import AddCondition from './AddCondition'
  698. import ImageUpload from '@/components/Common/image-upload.vue'
  699. import OperationRecords from './OperationRecords.vue'
  700. import { handleImport } from '@/utils/util'
  701. import Minxin from '@/mixin'
  702. export default {
  703. name: 'Examine',
  704. components: {
  705. AddCondition,
  706. ImageUpload,
  707. OperationRecords
  708. },
  709. mixins: [Minxin],
  710. props: ['id', 'isShow'],
  711. data() {
  712. return {
  713. baseURL: '',
  714. dcurrentPage: 1,
  715. dpageSize: 10,
  716. dlistTotal: 0,
  717. currentPages: 1, // 当前页码
  718. pageSizes: 10, // 每页数量
  719. clistTotal: 0,
  720. input: '',
  721. remark: '',
  722. fileList: [],
  723. listLoading: false,
  724. imageUrl: '',
  725. dataList: [],
  726. examineStatus: 'OK',
  727. options: {},
  728. value: '',
  729. detail: {},
  730. srcList: [],
  731. screenForm: {
  732. code: '',
  733. createBy: '',
  734. endCreateTime: '',
  735. endTime1: '',
  736. endTime2: '',
  737. examineBy: '',
  738. remark: '',
  739. startCreateTime: '',
  740. startTime1: '',
  741. startTime2: '',
  742. status: '',
  743. title: '',
  744. type: ''
  745. },
  746. conditionList: [],
  747. custoList: [],
  748. isEdit: 1,
  749. cid: '',
  750. cpolicyId: '',
  751. dataL: [],
  752. clistTotal: 0,
  753. clistTotals: 0,
  754. type: 1,
  755. fileList: [],
  756. importFileList: [],
  757. leftData: [],
  758. rightData: [],
  759. typeOptions: [
  760. {
  761. value: 'PROVISION',
  762. label: '配提'
  763. },
  764. {
  765. value: 'LIMIT',
  766. label: '限量'
  767. }
  768. ],
  769. detailFang: false,
  770. policyList: {
  771. pageNum: 1,
  772. pageSize: 10,
  773. policyId: '',
  774. keyword: '',
  775. currentPages: 1
  776. },
  777. list: [],
  778. cTotal: 1,
  779. clistLoading: false,
  780. visible: false,
  781. maxBuyNumVisible: false,
  782. tableData: [],
  783. tableAttributes: {
  784. selectColumn: true
  785. },
  786. tableEvents: {
  787. 'selection-change': this.selectionChange
  788. },
  789. limitQty: 0,
  790. maxBuyNum: 0,
  791. minBuyNum: 0,
  792. limitQtyKeyWord: '',
  793. buyNumKeyWord: '',
  794. selectedData: [],
  795. batchCurrentPages: 1,
  796. batchPageSizes: 10,
  797. batchTotal: 0
  798. }
  799. },
  800. computed: {
  801. exParams() {
  802. return {
  803. policyId: this.detail.code
  804. }
  805. },
  806. columns() {
  807. return [
  808. {
  809. columnAttributes: {
  810. label: '经销商编码',
  811. prop: 'customerNumber'
  812. }
  813. },
  814. {
  815. columnAttributes: {
  816. label: '经销商名称',
  817. prop: 'customerName'
  818. }
  819. }
  820. ]
  821. }
  822. },
  823. created() {},
  824. methods: {
  825. handleConditionClose() {
  826. this.isEdit = 1
  827. },
  828. funTitle() {
  829. const title = '详情页'
  830. return title
  831. },
  832. handleBack() {
  833. this.isEdit = 1
  834. },
  835. getList() {
  836. this.listLoading = true
  837. getPolicyDetail({ policyId: this.id }).then(res => {
  838. this.detail = res.data
  839. this.detail.flag = this.detail.flag + ''
  840. this.detail.imgSrc = this.detail.imgSrc.split(',')
  841. this.detail.imgSrc.forEach(k => {
  842. this.srcList.push(this.$imageUrl + k)
  843. })
  844. // this.srcList = [this.$imageUrl + this.detail.imgSrc]
  845. if (this.isShow == 5 && this.detail.imgSrc) {
  846. this.fileList = [
  847. {
  848. hover: '',
  849. url: this.detail.imgSrc
  850. }
  851. ]
  852. }
  853. this.handletwoList()
  854. // 获取条件政策
  855. this.getConditionList()
  856. this.getCond()
  857. this.getPolicyList()
  858. })
  859. },
  860. getPolicyList() {
  861. this.clistLoading = true
  862. getPolicyList({
  863. pageNum: this.policyList.currentPages,
  864. pageSize: this.policyList.pageSize,
  865. policyId: this.id,
  866. keyword: this.policyList.keyword
  867. }).then(res => {
  868. this.list = res.data.records
  869. console.log(this.list, '785787')
  870. this.cTotal = res.data.total
  871. this.clistLoading = false
  872. })
  873. },
  874. // 检查文件类型
  875. checkFileType(url) {
  876. if (!url) return ''
  877. const fileSuffix = url.substring(url.lastIndexOf('.') + 1)
  878. if (['jpg', 'jpeg', 'png'].includes(fileSuffix)) {
  879. return 'image'
  880. } else if (['doc', 'docx', 'dot', 'wps', 'wpt'].includes(fileSuffix)) {
  881. return 'word'
  882. } else if (['xls', 'xlsx', 'xlt', 'et', 'ett'].includes(fileSuffix)) {
  883. return 'excel'
  884. } else if (['ppt', 'pptx', 'dps', 'dpt', 'pot', 'pps'].includes(fileSuffix)) {
  885. return 'ppt'
  886. } else if (['pdf'].includes(fileSuffix)) {
  887. return 'pdf'
  888. } else if (['zip', 'rar', 'gz', 'apk'].includes(fileSuffix)) {
  889. return 'file'
  890. } else {
  891. return ''
  892. }
  893. },
  894. openPdf(pdfUrl) {
  895. window.open(this.$imageUrl + pdfUrl)
  896. },
  897. getCrList() {
  898. const customerParams = {
  899. pageNum: this.currentPage,
  900. pageSize: this.pageSize,
  901. keyword: this.region == 1 || this.region == '' ? '' : this.keyword,
  902. region: this.region == 1 ? this.keyword : ''
  903. }
  904. // 获取经销商列表
  905. getCrList(customerParams).then(res => {
  906. for (let j = 0; j < this.custoList.length; j++) {
  907. for (let i = 0; i < res.data.records.length; i++) {
  908. if (res.data.records[i].id == this.custoList[j].customerId) {
  909. res.data.records[i].disabled = true
  910. }
  911. }
  912. }
  913. this.dataL = res.data.records
  914. for (let k = 0; k < this.dataL.length; k++) {
  915. (this.dataL[k].customerId = this.dataL[k].id),
  916. (this.dataL[k].customerName = this.dataL[k].name),
  917. (this.dataL[k].customerNumber = this.dataL[k].number)
  918. }
  919. console.log(this.dataL, '获取经销商列表')
  920. this.clistTotal = res.data.total
  921. })
  922. },
  923. // 更改每页数量
  924. handleSizeChanges(val) {
  925. this.pageSizes = val
  926. this.currentPages = 1
  927. this.getCond()
  928. },
  929. // 更改当前页
  930. handleCurrentChanges(val) {
  931. this.currentPages = val
  932. this.getCond()
  933. },
  934. // 更改每页数量
  935. handleSizeChange2(val) {
  936. this.dpageSize = val
  937. this.dcurrentPage = 1
  938. this.handletwoList()
  939. },
  940. // 更改当前页
  941. handleCurrentChange2(val) {
  942. this.dcurrentPage = val
  943. this.handletwoList()
  944. },
  945. getCommonApi(row) {
  946. this.isEdit = 2
  947. this.cid = row.id
  948. this.cpolicyId = row.policyId
  949. },
  950. getCond() {
  951. this.listLoading = true
  952. const custoParams = {
  953. pageNum: this.currentPages,
  954. pageSize: this.pageSizes,
  955. policyId: this.detail.code
  956. }
  957. getCustomerList(custoParams).then(res => {
  958. this.custoList = res.data.records
  959. this.clistTotals = res.data.total
  960. this.listLoading = false
  961. this.getCrList()
  962. })
  963. },
  964. handleSubmit() {
  965. toExamine({
  966. examineStatus: this.examineStatus,
  967. policyId: this.id,
  968. examineRemark: this.remark
  969. }).then(res => {
  970. this.$successMsg('已提交审核')
  971. this.isShow = 1
  972. this.$emit('close')
  973. })
  974. },
  975. // 获取货品信息
  976. handletwoList() {
  977. // this.searchForm.type
  978. const paramss = {
  979. pageNum: this.dcurrentPage,
  980. pageSize: this.dpageSize,
  981. policyId: this.detail.code,
  982. saleTypeCode: ''
  983. }
  984. getMaterialList(paramss)
  985. .then(result => {
  986. this.dataList = result.data.records
  987. this.dlistTotal = result.data.total
  988. this.listLoading = false
  989. })
  990. .catch(err => {
  991. console.error(err)
  992. })
  993. },
  994. // 更改每页数量
  995. handleSizeChanges4(val) {
  996. this.policyList.pageSizes = val
  997. this.policyList.currentPages = 1
  998. this.getPolicyList()
  999. },
  1000. // 更改当前页
  1001. handleCurrentChanges4(val) {
  1002. this.policyList.currentPages = val
  1003. this.getPolicyList()
  1004. },
  1005. // 导入
  1006. async handleImport(param) {
  1007. this.importLoading = true
  1008. const file = param.file
  1009. console.log(file, 123)
  1010. const formData = new FormData()
  1011. formData.append('file', file)
  1012. formData.append('policyId', this.detail.code)
  1013. // formData.append("mainId", this.detail.mainId);
  1014. const result = await handleImport('/policy/material/import', formData)
  1015. this.importLoading = false
  1016. this.importFileList = []
  1017. if (result.code == 200) {
  1018. this.$alert(result.message, '导入成功', {
  1019. confirmButtonText: '确定'
  1020. })
  1021. this.handletwoList()
  1022. } else {
  1023. this.$alert(result.message, '导入失败', {
  1024. confirmButtonText: '确定'
  1025. })
  1026. }
  1027. },
  1028. handleCondition(id, index) {
  1029. deleteCondition({ id }).then(res => {
  1030. // this.conditionList.splice(index, 1);
  1031. // Object.assign(
  1032. // this.$children[9].$data,
  1033. // this.$children[9].$options.data()
  1034. // );
  1035. this.getConditionList()
  1036. this.$successMsg('删除成功')
  1037. })
  1038. },
  1039. getConditionList() {
  1040. const condParams = {
  1041. policyId: this.detail.code
  1042. }
  1043. getConditionList(condParams).then(res => {
  1044. this.conditionList = res.data
  1045. })
  1046. },
  1047. // 删除
  1048. hanleDelete(id) {
  1049. const params = { policyMaterialId: id }
  1050. deleteMaterialPolicy(params).then(res => {
  1051. this.$successMsg('删除成功')
  1052. this.handletwoList()
  1053. })
  1054. },
  1055. /**
  1056. * 根据条件禁用行复选框
  1057. * 函数返回值为false则禁用选择(反之亦然)
  1058. * @param {Object} row - 行数据
  1059. * @param {String} index - 索引值
  1060. * @return Boolean
  1061. */
  1062. selectable: function(row, index) {
  1063. // row.disabled == undefined 才能被选中
  1064. if (row.disabled == undefined || row.disabled == false) {
  1065. return true
  1066. } else {
  1067. return false
  1068. }
  1069. // 函数必须有返回值且是布尔值
  1070. // 页面刷新后该函数会执行 N 次进行判断(N 为表格行数)
  1071. // 如果没有返回值则默认返回false(全部无法选中)
  1072. },
  1073. handleSelectionAllChange(e) {
  1074. this.leftData = e
  1075. this.type = 1
  1076. },
  1077. handleSelectionChange(e) {
  1078. this.leftData = e
  1079. this.type = 1
  1080. },
  1081. handleSelectionAllChange2(e) {
  1082. this.rightData = e
  1083. this.type = 2
  1084. },
  1085. handleSelectionChange2(e) {
  1086. this.rightData = e
  1087. this.type = 2
  1088. },
  1089. handleLeft(e) {
  1090. this.type = 1
  1091. },
  1092. handleRight(e) {
  1093. this.type = 2
  1094. },
  1095. handleAllAdd() {
  1096. if (this.type == 1 && this.leftData.length) {
  1097. for (let i = 0; i < this.dataL.length; i++) {
  1098. for (let j = 0; j < this.leftData.length; j++) {
  1099. if (this.dataL[i].id == this.leftData[j].id) {
  1100. this.dataL[i].disabled = true
  1101. }
  1102. }
  1103. }
  1104. this.custoList = [...this.custoList, ...this.leftData]
  1105. this.$refs.multipleTable.clearSelection()
  1106. } else {
  1107. this.$errorMsg('请选择要添加的经销商')
  1108. }
  1109. },
  1110. handleAllDelete() {
  1111. if (this.type == 2 && this.rightData.length) {
  1112. for (let i = 0; i < this.dataL.length; i++) {
  1113. for (let j = 0; j < this.rightData.length; j++) {
  1114. if (this.dataL[i].id == this.rightData[j].customerId) {
  1115. this.$set(this.dataL[i], 'disabled', false)
  1116. }
  1117. }
  1118. }
  1119. const arr = this.resArr(this.custoList, this.rightData)
  1120. this.custoList = arr
  1121. } else {
  1122. this.$errorMsg('请选择要删除的经销商')
  1123. }
  1124. },
  1125. handleAdd() {
  1126. if (this.type == 1 && this.leftData.length) {
  1127. for (let i = 0; i < this.dataL.length; i++) {
  1128. for (let j = 0; j < this.leftData.length; j++) {
  1129. if (this.dataL[i].id == this.leftData[j].id) {
  1130. this.dataL[i].disabled = true
  1131. }
  1132. }
  1133. }
  1134. this.custoList = [...this.custoList, ...this.leftData]
  1135. this.leftData = []
  1136. this.$refs.multipleTable.clearSelection()
  1137. } else {
  1138. this.$errorMsg('请选择要添加的经销商')
  1139. }
  1140. },
  1141. handleDelete() {
  1142. if (this.type == 2 && this.rightData.length) {
  1143. for (let i = 0; i < this.dataL.length; i++) {
  1144. for (let j = 0; j < this.rightData.length; j++) {
  1145. if (this.dataL[i].id == this.rightData[j].customerId) {
  1146. this.$set(this.dataL[i], 'disabled', false)
  1147. }
  1148. }
  1149. }
  1150. const arr = this.resArr(this.custoList, this.rightData)
  1151. this.custoList = arr
  1152. } else {
  1153. this.$errorMsg('请选择要删除的经销商')
  1154. }
  1155. },
  1156. // 去掉相同数据
  1157. resArr(arr1, arr2) {
  1158. return arr1.filter(v => arr2.every(val => val.id != v.id))
  1159. },
  1160. async handleSave() {
  1161. if (this.custoList.length) {
  1162. var arr = []
  1163. this.custoList.forEach(el => {
  1164. arr.push({
  1165. customerId: el.customerId,
  1166. customerName: el.customerName,
  1167. customerNumber: el.customerNumber,
  1168. lastOrderTime: '',
  1169. limitTakeNum: 0,
  1170. policyId: this.detail.code,
  1171. policyTitle: '',
  1172. remark: ''
  1173. })
  1174. })
  1175. const params = {
  1176. ...this.detail,
  1177. policyCustomers: arr,
  1178. imgSrc: this.fileList.length ? this.fileList[0].url : ''
  1179. }
  1180. await updatePolicy(params)
  1181. await this.getCond()
  1182. this.$successMsg('编辑成功')
  1183. this.fileList = []
  1184. this.isShow = 1
  1185. }
  1186. },
  1187. selectionChange(data) {
  1188. this.selectedData = data
  1189. },
  1190. handelBatchData(search) {
  1191. if (search) {
  1192. this.batchCurrentPages = 1
  1193. }
  1194. getPolicyList({
  1195. pageNum: this.batchCurrentPages,
  1196. pageSize: this.batchPageSizes,
  1197. policyId: this.id,
  1198. keyword: this.buyNumKeyWord
  1199. }).then(res => {
  1200. this.tableData = res.data.records
  1201. this.batchTotal = res.data.total
  1202. })
  1203. this.visible = true
  1204. },
  1205. handelBatchData2() {
  1206. this.maxBuyNumVisible = true
  1207. },
  1208. handleDialogVisible() {
  1209. this.visible = false
  1210. this.maxBuyNumVisible = false
  1211. this.batchCurrentPages = 1
  1212. this.batchPageSizes = 10
  1213. this.limitQty = 0
  1214. this.maxBuyNum = 0
  1215. this.minBuyNum = 0
  1216. this.limitQtyKeyWord = ''
  1217. this.buyNumKeyWord = ''
  1218. },
  1219. onSubmit(type) {
  1220. if (!this.selectedData.length) {
  1221. this.$errorMsg('不能为空,请选择')
  1222. return
  1223. }
  1224. if (this.minBuyNum <= 0) {
  1225. this.$errorMsg('最小起起提数不能小于0')
  1226. return
  1227. }
  1228. const customerIds = this.selectedData
  1229. .map(k => {
  1230. return k.customerId
  1231. })
  1232. .join(',')
  1233. const ids = this.selectedData
  1234. .map(k => {
  1235. return k.id
  1236. })
  1237. .join(',')
  1238. const params = {
  1239. customerIds,
  1240. ids,
  1241. minBuyNum: this.minBuyNum,
  1242. maxBuyNum: this.maxBuyNum
  1243. }
  1244. updateLimitBatchupdate(params).then(res => {
  1245. this.handleDialogVisible()
  1246. this.$successMsg('批量修改成功')
  1247. })
  1248. },
  1249. handleBatchSizeChanges(val) {
  1250. this.batchCurrentPages = 1
  1251. this.batchPageSizes = val
  1252. this.handelBatchData()
  1253. },
  1254. handleBatchCurrentChanges(val) {
  1255. this.batchCurrentPages = val
  1256. this.handelBatchData()
  1257. },
  1258. onReset() {
  1259. this.handleDialogVisible()
  1260. this.handelBatchData()
  1261. }
  1262. }
  1263. }
  1264. </script>
  1265. <style lang="scss" scoped>
  1266. ::v-deep .elImageClose .el-image-viewer__wrapper span[class='el-image-viewer__btn el-image-viewer__close'] {
  1267. top: 100px;
  1268. }
  1269. .file {
  1270. margin-right: 20px;
  1271. }
  1272. .el-col {
  1273. overflow: hidden;
  1274. }
  1275. .value {
  1276. ::v-deep .el-input__prefix {
  1277. display: none;
  1278. }
  1279. }
  1280. .descriptions {
  1281. // border: #EBEEF5;
  1282. border: 1px solid #ebeef5;
  1283. border-bottom: none;
  1284. .el-row {
  1285. height: 40px;
  1286. line-height: 40px;
  1287. }
  1288. .el-col:nth-child(odd) {
  1289. background-color: #ebeef5;
  1290. }
  1291. .el-col {
  1292. padding: 0 15px;
  1293. height: 100%;
  1294. border-bottom: 1px solid #ebeef5;
  1295. }
  1296. }
  1297. .el-divider--horizontal {
  1298. margin: 20px 0;
  1299. }
  1300. .col {
  1301. height: 100px;
  1302. }
  1303. .import-btn {
  1304. margin-right: 10px;
  1305. display: inline-block;
  1306. }
  1307. ::v-deep .el-input__icon .el-icon-time {
  1308. display: none;
  1309. }
  1310. .middle_box {
  1311. margin-top: 80px;
  1312. text-align: center;
  1313. height: 430px;
  1314. display: flex;
  1315. flex-direction: column;
  1316. align-content: center;
  1317. justify-content: space-between;
  1318. align-items: center;
  1319. }
  1320. .img-box {
  1321. height: 150px;
  1322. display: flex;
  1323. align-items: center;
  1324. }
  1325. </style>