index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <div>
  3. <el-row style="padding-top: 0">
  4. <el-col :span="24">
  5. <el-card style="height: calc(100vh - 110px)" class="scroll">
  6. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
  7. <el-form-item label="群组品号" prop="code">
  8. <el-input v-model="queryParams.code" placeholder="请输入群组品号" clearable size="small" @keyup.enter.native="handleQuery" />
  9. </el-form-item>
  10. <el-form-item label="群组品名" prop="nameChinese">
  11. <el-input v-model="queryParams.nameChinese" placeholder="请输入群组品名" clearable size="small" @keyup.enter.native="handleQuery" />
  12. </el-form-item>
  13. <el-form-item label="品牌" prop="brandName">
  14. <el-select v-model="queryParams.brandName" placeholder="请选择品牌" size="small" style="width: 100%" @change="handleQuery">
  15. <el-option v-for="item in brandName" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
  16. </el-select>
  17. </el-form-item>
  18. <el-form-item label="品号" prop="specCode">
  19. <el-input v-model="queryParams.specCode" placeholder="请输入品号" clearable size="small" @keyup.enter.native="handleQuery" />
  20. </el-form-item>
  21. <el-form-item label="品名" prop="colorNameChinese">
  22. <el-input v-model="queryParams.colorNameChinese" placeholder="请输入品名" clearable size="small" @keyup.enter.native="handleQuery" />
  23. </el-form-item>
  24. <el-form-item>
  25. <el-button size="mini" @click="handleQuery" class="searchBtn">搜索</el-button>
  26. <el-button size="mini" @click="resetQuery">重置</el-button>
  27. </el-form-item>
  28. </el-form>
  29. <el-row :gutter="10" style="margin-bottom: 10px" v-show="showSearch">
  30. <el-col :span="24">
  31. <el-button type="primary" size="mini" @click="handleAdd" v-if="!userInfo.subsidiaryId">添加产品</el-button>
  32. <el-button type="primary" size="mini" @click="handleSynchronization" v-db-click>SKU同步</el-button>
  33. <!-- <el-button type="primary" size="mini" @click="importExcel" v-db-click>导入Excel</el-button> -->
  34. </el-col>
  35. </el-row>
  36. <div style="margin-bottom: 15px" v-if="selectStatus"></div>
  37. <div style="width: 100%; position: relative">
  38. <!-- <div style="position: absolute; right: 0; top: -34px; width: 120px; text-align: center">
  39. <el-button type="primary" size="mini" @click="openOperationLog = true" v-db-click>操作日志</el-button>
  40. </div> -->
  41. <el-table
  42. v-loading="loadingTable"
  43. :data="productList"
  44. size="small"
  45. :row-style="{ height: '35px' }"
  46. :cell-style="{ padding: '0' }"
  47. header-row-class-name="tableHeader"
  48. :default-expand-all="selectStatus"
  49. >
  50. <el-table-column label="" type="expand" width="50">
  51. <template slot-scope="scope">
  52. <div style="padding: 0px 20px; box-sizing: border-box">
  53. <div
  54. v-for="(color, index) in scope.row.colors"
  55. :key="color.id"
  56. style="display: flex; padding: 3px 10px; align-items: center; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); margin-bottom: 8px"
  57. >
  58. <div style="width: 80px">
  59. <div v-if="color.colorAccessory">
  60. <img
  61. v-if="!color.colorAccessory.includes('https')"
  62. style="width: 40px; height: 40px; object-fit: contain; vertical-align: middle; border: none; cursor: pointer"
  63. :src="pathPrefix + color.colorAccessory"
  64. @click="openFile(pathPrefix + color.colorAccessory)"
  65. />
  66. <img
  67. v-else
  68. style="width: 40px; height: 40px; object-fit: contain; vertical-align: middle; border: none; cursor: pointer"
  69. :src="color.colorAccessory"
  70. @click="openFile(color.colorAccessory)"
  71. />
  72. </div>
  73. <div
  74. v-else
  75. class="el-icon-picture-outline"
  76. style="width: 40px; height: 40px; font-size: 36px; line-height: 40px; text-align: center; color: rgb(229 228 228)"
  77. ></div>
  78. </div>
  79. <div style="width: 80px" v-if="userInfo.subsidiaryId">
  80. <div v-if="color.designSketch">
  81. <img
  82. v-if="!color.designSketch.includes('https')"
  83. style="width: 40px; height: 40px; object-fit: contain; vertical-align: middle; border: none; cursor: pointer"
  84. :src="pathPrefix + color.designSketch"
  85. @click="openFile(pathPrefix + color.designSketch)"
  86. />
  87. <img
  88. v-else
  89. style="width: 40px; height: 40px; object-fit: contain; vertical-align: middle; border: none; cursor: pointer"
  90. :src="color.designSketch"
  91. @click="openFile(color.designSketch)"
  92. />
  93. </div>
  94. <div
  95. v-else
  96. class="el-icon-picture-outline"
  97. style="width: 40px; height: 40px; font-size: 36px; line-height: 40px; text-align: center; color: rgb(229 228 228)"
  98. ></div>
  99. </div>
  100. <div style="width: 140px">
  101. {{ color.specCode }}
  102. </div>
  103. <div style="flex: 1">
  104. {{ color.nameChinese }}
  105. </div>
  106. <div style="width: 160px">
  107. {{ `${color.length} * ${color.width} * ${color.height}(cm³)` }}
  108. </div>
  109. <div style="width: 60px; text-align: center" v-if="selectStatus">
  110. <el-button type="text" @click="handleSelect(scope.row, index)" v-db-click>选择</el-button>
  111. </div>
  112. </div>
  113. </div>
  114. </template>
  115. </el-table-column>
  116. <!-- <el-table-column label="图片" width="80">
  117. <template slot-scope="scope">
  118. <div v-if="scope.row.pic">
  119. <img
  120. v-if="!scope.row.pic.includes('https')"
  121. style="width: 50px; height: 50px; object-fit: contain; vertical-align: middle; border: none; padding: 8px 0; cursor: pointer"
  122. :src="pathPrefix + scope.row.pic"
  123. @click="openFile(pathPrefix + scope.row.pic)"
  124. />
  125. <img
  126. v-else
  127. style="width: 50px; height: 50px; object-fit: contain; vertical-align: middle; border: none; padding: 8px 0; cursor: pointer"
  128. :src="scope.row.pic"
  129. @click="openFile(scope.row.pic)"
  130. />
  131. </div>
  132. </template>
  133. </el-table-column> -->
  134. <el-table-column label="归属单位" prop="subsidiaryName" width="120" v-if="userInfo.subsidiaryId">
  135. <template slot-scope="scope">
  136. <span v-if="scope.row.subsidiaryName">{{ scope.row.subsidiaryName }}</span>
  137. <span v-else>胜德集团</span>
  138. </template>
  139. </el-table-column>
  140. <el-table-column label="群组品号" prop="code" width="120"> </el-table-column>
  141. <el-table-column label="群组品名" min-width="220">
  142. <template slot-scope="scope">
  143. <div>
  144. <a style="color: #409eff; cursor: pointer" @click="clickProductName(scope.row)">{{ scope.row.nameChinese }}</a>
  145. </div>
  146. </template>
  147. </el-table-column>
  148. <el-table-column label="产品来源" width="100" v-if="!selectStatus">
  149. <template slot-scope="scope">
  150. <span v-if="scope.row.dataResource == 0">MES</span>
  151. <span v-else>万里牛</span>
  152. </template>
  153. </el-table-column>
  154. <el-table-column label="品牌" prop="brandName" width="100" />
  155. <el-table-column label="型号" prop="productModelChinese" min-width="150" />
  156. <el-table-column label="材质" prop="materialChinese" min-width="150" />
  157. <el-table-column label="操作" align="center" width="120" fixed="right" v-if="!selectStatus">
  158. <template slot-scope="scope">
  159. <div>
  160. <el-button
  161. type="text"
  162. v-if="!userInfo.subsidiaryId || (userInfo.subsidiaryId && userInfo.subsidiaryId === scope.row.subsidiaryId)"
  163. @click="handleUpdate(scope.row)"
  164. v-db-click
  165. >编辑</el-button
  166. >
  167. </div>
  168. </template>
  169. </el-table-column>
  170. </el-table>
  171. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
  172. </div>
  173. </el-card>
  174. </el-col>
  175. </el-row>
  176. <!-- 添加或修改产品信息对话框 -->
  177. <el-dialog v-if="openProduct" :visible.sync="openProduct" width="98%" append-to-body :close-on-click-modal="false">
  178. <ProductOne v-if="rowData.dataResource === 1 || userInfo.subsidiaryId" :rowData="rowData" @clickCancel="clickCancel"></ProductOne>
  179. <Product v-else :rowData="rowData" @clickCancel="clickCancel"></Product>
  180. </el-dialog>
  181. <!-- 产品详情 -->
  182. <el-dialog v-if="openDetails" :visible.sync="openDetails" width="98%" append-to-body :close-on-click-modal="false">
  183. <ProductDetails :rowData="rowData" @clickCancel="clickCancelDetails"></ProductDetails>
  184. </el-dialog>
  185. <!-- SKU同步 -->
  186. <el-dialog
  187. title="SKU同步"
  188. v-if="openSynchronization"
  189. :visible.sync="openSynchronization"
  190. width="30%"
  191. append-to-body
  192. v-loading="loadingSynchronizationStatus"
  193. element-loading-text="数据同步中,请稍后"
  194. element-loading-background="rgba(0, 0, 0, 0.2)"
  195. >
  196. <el-form ref="ruleForm" :model="synchronization" :rules="synchronizationRules" label-width="80px">
  197. <el-form-item label="SKU品号:" prop="spec_code">
  198. <el-input v-model="synchronization.spec_code" size="small" placeholder="请输入SKU品号" />
  199. </el-form-item>
  200. <div style="width: 100%; text-align: center; padding: 16px 0">
  201. <el-button type="primary" @click="clickSynchronizationSubmit()" size="small" v-db-click>提 交</el-button>
  202. <el-button @click="openSynchronization = false" size="small" v-db-click>取 消</el-button>
  203. </div>
  204. </el-form>
  205. </el-dialog>
  206. <!-- 导入SKU -->
  207. <el-dialog title="导入SKU" v-if="openImportExcel" :visible.sync="openImportExcel" style="margin-top: 15vh" width="30%" append-to-body>
  208. <div
  209. v-loading="loadingStatus"
  210. element-loading-text="导入中,请稍后"
  211. element-loading-spinner="el-icon-loading"
  212. element-loading-background="rgba(0, 0, 0, 0.2)"
  213. >
  214. <el-row :gutter="10" style="margin-bottom: 15px">
  215. <el-col :span="1.5">
  216. <el-upload
  217. class="upload-demo"
  218. :action="actionProduct"
  219. :headers="{ 'Blade-Auth': 'bearer ' + token }"
  220. :show-file-list="false"
  221. :before-upload="beforeUpload"
  222. :on-progress="excelProgress"
  223. :on-success="excelSuccess"
  224. :on-error="excelError"
  225. accept=".xls"
  226. >
  227. <el-button type="primary" size="mini">导入文件</el-button>
  228. </el-upload>
  229. </el-col>
  230. </el-row>
  231. <el-row>
  232. <el-col :span="24">
  233. <el-tooltip placement="bottom" effect="light">
  234. <div slot="content">
  235. <div v-html="getStyle(errMsg)" style="max-height: 500px; overflow: auto; line-height: normal"></div>
  236. </div>
  237. <div style="cursor: pointer; color: #940819; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">{{ errMsg }}</div>
  238. </el-tooltip>
  239. </el-col>
  240. </el-row>
  241. <div style="width: 100%; text-align: center; padding-top: 16px">
  242. <el-button @click="openImportExcel = false">取 消</el-button>
  243. </div>
  244. </div>
  245. </el-dialog>
  246. <el-dialog title="操作日志" v-if="openOperationLog" :visible.sync="openOperationLog" width="50%" append-to-body>
  247. <OperationLog :operationLogKey="operationLogKey"></OperationLog>
  248. <div style="text-align: center; margin-top: 20px">
  249. <el-button @click="openOperationLog = false" v-db-click>关 闭</el-button>
  250. </div>
  251. </el-dialog>
  252. </div>
  253. </template>
  254. <script>
  255. import * as API from '@/api/product/customProductLibrary'
  256. // import { productCategoryList } from '@/api/product/productCategories'
  257. import { mapGetters } from 'vuex'
  258. import Product from '@/views/AddOrModifiedProduct/Product'
  259. import ProductOne from '@/views/AddOrModifiedProduct/ProductOne'
  260. import ProductDetails from '@/views/shengde/product/management/details'
  261. import { getDetail } from '@/api/shengde/group/subcompany/subcompanyManagement/index.js'
  262. import OperationLog from '@/components/shengde/operationLog/index'
  263. export default {
  264. name: 'ProductManagement',
  265. components: { Product, ProductOne, ProductDetails, OperationLog },
  266. props: {
  267. selectStatus: {
  268. type: Boolean,
  269. default: false,
  270. },
  271. type: {
  272. type: String,
  273. default: '',
  274. },
  275. subsidiaryId: String,
  276. purchaseContractId: String,
  277. },
  278. data() {
  279. return {
  280. value: '',
  281. btnDisabled: false,
  282. pathPrefix: process.env.VUE_APP_IMG_URL,
  283. inputCategory: '',
  284. categoryTreeData: [],
  285. defaultProps: {
  286. children: 'children',
  287. label: 'text',
  288. },
  289. // 显示搜索条件
  290. showSearch: true,
  291. // 总条数
  292. total: 0,
  293. // 产品信息表格数据
  294. productList: [],
  295. loadingTable: false,
  296. // 是否显示弹出层
  297. openProduct: false,
  298. // 查询参数
  299. queryParams: {
  300. pageNum: 1,
  301. pageSize: 10,
  302. categoryId: '',
  303. code: '',
  304. brandName: '',
  305. nameChinese: '',
  306. specCode: '',
  307. colorNameChinese: '',
  308. type: '',
  309. subsidiaryId: '',
  310. purchaseContractId: '',
  311. },
  312. // 表单参数
  313. form: {
  314. attachments: [],
  315. materials: [],
  316. },
  317. fileData: [],
  318. loadingStatus: false,
  319. rowData: {},
  320. openDetails: false,
  321. subsidiaryData: [{ id: '0', name: '集团' }],
  322. brandName: [],
  323. openSynchronization: false,
  324. synchronization: {
  325. page: 0,
  326. limit: 1,
  327. modify_time: 965381503,
  328. spec_code: '',
  329. },
  330. synchronizationRules: {
  331. spec_code: [{ required: true, message: '请输入SKU品号', trigger: 'blur' }],
  332. },
  333. loadingSynchronizationStatus: false,
  334. errMsg: '',
  335. openImportExcel: false,
  336. actionProduct: process.env.VUE_APP_ACTION_PRODUCT_URL,
  337. openOperationLog: false,
  338. operationLogKey: 20,
  339. }
  340. },
  341. created() {
  342. if (this.userInfo.subsidiaryId) {
  343. getDetail({ id: this.userInfo.subsidiaryId }).then((res) => {
  344. let brandNameArr = []
  345. if (res.data.data.brandName) {
  346. brandNameArr = res.data.data.brandName.split(',')
  347. }
  348. let data = this.dictData.filter((item) => item.code === 'brand_name')
  349. if (data && data.length > 0) {
  350. if (this.type) {
  351. let skuList = [
  352. {
  353. dictKey: '胜德科技',
  354. dictValue: '胜德科技',
  355. },
  356. ]
  357. this.brandName = skuList.concat(
  358. data[0].children.filter((item) => {
  359. return brandNameArr.some((i) => item.dictKey == i)
  360. })
  361. )
  362. } else {
  363. this.brandName = data[0].children.filter((item) => {
  364. return brandNameArr.some((i) => item.dictKey == i)
  365. })
  366. }
  367. }
  368. })
  369. } else {
  370. let data = this.dictData.filter((item) => item.code === 'brand_name')
  371. if (data && data.length > 0) {
  372. this.brandName = data[0].children
  373. }
  374. }
  375. },
  376. mounted() {
  377. if (this.type) {
  378. this.queryParams.type = this.type
  379. }
  380. this.getList()
  381. },
  382. computed: mapGetters(['menuAll', 'token', 'dictData', 'userInfo']),
  383. methods: {
  384. handleNodeClick(data) {
  385. this.queryParams.pageNum = 1
  386. if (data.dictKey) {
  387. this.queryParams.categoryType = data.dictKey
  388. this.queryParams.categoryId = ''
  389. } else {
  390. this.queryParams.categoryType = ''
  391. this.queryParams.categoryId = data.id
  392. }
  393. this.getList()
  394. },
  395. /** 查询产品信息列表 */
  396. getList() {
  397. if (this.subsidiaryId) {
  398. this.queryParams.subsidiaryId = this.subsidiaryId
  399. if (this.purchaseContractId) {
  400. this.queryParams.purchaseContractId = this.purchaseContractId
  401. }
  402. this.loadingTable = true
  403. API.getListStock(this.queryParams).then(
  404. (response) => {
  405. this.total = response.data.data.total
  406. response.data.data.records = response.data.data.records.map((item) => {
  407. if (!item.subsidiaryPrice) {
  408. item.subsidiaryPrice = undefined
  409. }
  410. if (item.colors && item.colors.length > 0) {
  411. item.colors = item.colors.map((itemColors) => {
  412. itemColors.nameChinese = itemColors.nameChinese.replace(item.nameChinese + ' : ', '')
  413. itemColors.nameChinese = itemColors.nameChinese.replace(item.nameChinese + ':', '')
  414. return {
  415. ...itemColors,
  416. }
  417. })
  418. }
  419. return {
  420. ...item,
  421. }
  422. })
  423. this.productList = response.data.data.records
  424. this.loadingTable = false
  425. },
  426. (err) => {
  427. console.log('getListStock: ' + err)
  428. this.loadingTable = false
  429. }
  430. )
  431. } else {
  432. this.loadingTable = true
  433. API.list(this.queryParams).then(
  434. (response) => {
  435. this.total = response.data.data.total
  436. response.data.data.records = response.data.data.records.map((item) => {
  437. if (!item.subsidiaryPrice) {
  438. item.subsidiaryPrice = undefined
  439. }
  440. if (item.colors && item.colors.length > 0) {
  441. item.colors = item.colors.map((itemColors) => {
  442. itemColors.nameChinese = itemColors.nameChinese.replace(item.nameChinese + ' : ', '')
  443. itemColors.nameChinese = itemColors.nameChinese.replace(item.nameChinese + ':', '')
  444. return {
  445. ...itemColors,
  446. }
  447. })
  448. }
  449. return {
  450. ...item,
  451. }
  452. })
  453. this.productList = response.data.data.records
  454. this.loadingTable = false
  455. },
  456. (err) => {
  457. console.log('list: ' + err)
  458. this.loadingTable = false
  459. }
  460. )
  461. }
  462. },
  463. /** 搜索按钮操作 */
  464. handleQuery() {
  465. this.queryParams.pageNum = 1
  466. this.getList()
  467. },
  468. /** 重置按钮操作 */
  469. resetQuery() {
  470. this.resetForm('queryForm')
  471. // this.queryParams.categoryId = ''
  472. // this.$refs.treeCategory.setCurrentKey(null)
  473. this.handleQuery()
  474. },
  475. /** 新增按钮操作 */
  476. handleAdd() {
  477. this.rowData = {
  478. dataResource: 0,
  479. }
  480. this.openProduct = true
  481. },
  482. /** 修改按钮操作 */
  483. handleUpdate(row) {
  484. this.rowData = row
  485. this.openProduct = true
  486. },
  487. /** 删除按钮操作 */
  488. handleDelete(row) {
  489. this.$confirm('是否确认删除群组品名为"' + row.nameChinese + ' (' + row.nameEnglish + ')' + '"的数据项?', '警告', {
  490. confirmButtonText: '确定',
  491. cancelButtonText: '取消',
  492. type: 'warning',
  493. })
  494. .then(function () {
  495. return API.del({ id: row.id })
  496. })
  497. .then(() => {
  498. this.$message({
  499. type: 'success',
  500. message: '删除成功',
  501. })
  502. this.queryParams.pageNum = 1
  503. this.getList()
  504. })
  505. },
  506. clickProductName(row) {
  507. this.rowData = row
  508. this.openDetails = true
  509. },
  510. clickCancel(status) {
  511. this.openProduct = false
  512. if (status) {
  513. this.getList()
  514. }
  515. },
  516. clickCancelDetails() {
  517. this.openDetails = false
  518. },
  519. openFile(path) {
  520. window.open(path)
  521. },
  522. handleSelect(row, index) {
  523. this.$emit('handleSelect', row, index)
  524. },
  525. handleSynchronization() {
  526. this.loadingSynchronizationStatus = false
  527. this.synchronization.spec_code = ''
  528. this.openSynchronization = true
  529. },
  530. clickSynchronizationSubmit() {
  531. this.$refs.ruleForm.validate((valid) => {
  532. if (valid) {
  533. this.loadingSynchronizationStatus = true
  534. API.importSpec(this.synchronization).then(
  535. () => {
  536. this.openSynchronization = false
  537. this.loadingSynchronizationStatus = false
  538. this.getList()
  539. },
  540. (err) => {
  541. console.log('importSpec: ' + err)
  542. this.loadingSynchronizationStatus = false
  543. }
  544. )
  545. }
  546. })
  547. },
  548. importExcel() {
  549. this.errMsg = ''
  550. this.openImportExcel = true
  551. },
  552. getStyle(text) {
  553. if (text) {
  554. return text.replace(/\n|\r\n/g, '<br>')
  555. } else {
  556. return ''
  557. }
  558. },
  559. beforeUpload(file) {
  560. this.errMsg = ''
  561. const isLt50M = file.size / 1024 / 1024 < 50
  562. if (!isLt50M) {
  563. this.$message.error('上传文件大小不能超过50MB!')
  564. }
  565. return isLt50M
  566. },
  567. excelProgress() {
  568. this.loadingStatus = true
  569. },
  570. excelSuccess(msg) {
  571. if (msg && msg.data) {
  572. this.msgSuccess('文件导入成功: ' + msg.data)
  573. } else {
  574. this.msgSuccess('文件导入成功')
  575. }
  576. this.loadingStatus = false
  577. this.openImportExcel = false
  578. this.getList()
  579. },
  580. excelError(err) {
  581. var res = JSON.parse(err.message)
  582. this.errMsg = '导入失败: ' + res.msg
  583. this.loadingStatus = false
  584. },
  585. },
  586. }
  587. </script>
  588. <style lang="scss" scoped>
  589. /deep/ .el-tree-node__label {
  590. font-size: 12px !important;
  591. }
  592. * {
  593. font-size: 12px;
  594. }
  595. .el-tree {
  596. display: inline-block;
  597. min-width: 100%;
  598. }
  599. ::v-deep {
  600. .el-input__inner {
  601. border-radius: 1px;
  602. }
  603. .el-button--mini {
  604. border-radius: 1px;
  605. }
  606. .tableHeader th {
  607. background-color: #edf0f5;
  608. height: 35px;
  609. padding: 0;
  610. }
  611. .el-dialog__footer {
  612. text-align: center;
  613. padding-bottom: 50px;
  614. .el-button {
  615. border-radius: 1px;
  616. }
  617. }
  618. .el-card__body {
  619. padding: 15px;
  620. }
  621. .el-table__cell {
  622. vertical-align: middle !important;
  623. }
  624. .el-input-number {
  625. .el-input__inner {
  626. text-align: left !important;
  627. }
  628. }
  629. }
  630. .box-card {
  631. height: calc(100vh - 50px - 50px - 10px);
  632. // overflow-y: auto;
  633. }
  634. .searchBtn {
  635. background: #20b2aa;
  636. color: #fff;
  637. border: 1px solid #20b2aa;
  638. }
  639. // 详情页需要加这个
  640. /deep/ .el-dialog {
  641. margin: 0 auto;
  642. margin-top: 10px !important;
  643. }
  644. .scroll {
  645. overflow: hidden overlay !important;
  646. &::-webkit-scrollbar {
  647. width: 0px;
  648. }
  649. &:hover {
  650. &::-webkit-scrollbar {
  651. width: 7px;
  652. }
  653. }
  654. }
  655. </style>