index.vue 24 KB

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