assessmentApplicationFrom.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <template>
  2. <div class="applicationFrom">
  3. <el-dialog title="绩效结果考核申报详情" v-model="dialogVisible" :fullscreen="true" :close-on-click-modal="false">
  4. <div class="startDetail">
  5. <p class="starttitleSty">单据信息:</p>
  6. <el-row class="danjuMsg">
  7. <el-col :span="6">
  8. <div class="danjuMsg_data">
  9. <span class="data_tit">申报编号:</span>
  10. <span>{{receiptMsg.code}}</span>
  11. </div>
  12. <div class="danjuMsg_data">
  13. <span class="data_tit">申报部门:</span>
  14. <span>{{receiptMsg.deptName}}</span>
  15. </div>
  16. </el-col>
  17. <el-col :span="6">
  18. <div class="danjuMsg_data">
  19. <span class="data_tit">申报级别:</span>
  20. <span>{{receiptMsg.declarationLevel}}级</span>
  21. </div>
  22. <div class="danjuMsg_data">
  23. <span class="data_tit">申报年度:</span>
  24. <span>{{receiptMsg.year}}年</span>
  25. </div>
  26. <!-- <div class="danjuMsg_data">
  27. <span class="data_tit">申报领导:</span>
  28. <span>{{receiptMsg.deptLeaderName}}</span>
  29. </div> -->
  30. </el-col>
  31. <el-col :span="6">
  32. <div class="danjuMsg_data">
  33. <span class="data_tit">流程状态:</span>
  34. <span>{{receiptMsg.stage}}</span>
  35. </div>
  36. <div class="danjuMsg_data">
  37. <span class="data_tit">申报月份:</span>
  38. <span>{{receiptMsg.month}}月</span>
  39. </div>
  40. </el-col>
  41. <el-col :span="6">
  42. <div class="danjuMsg_data">
  43. <span class="data_tit">创建日期:</span>
  44. <span>{{receiptMsg.createDate}}</span>
  45. </div>
  46. </el-col>
  47. <el-col :span="6">
  48. <div class="danjuMsg_data">
  49. <span class="data_tit">评定等级:</span>
  50. <span>{{receiptMsg.ratingGrade}}</span>
  51. </div>
  52. </el-col>
  53. <el-col :span="18">
  54. <div class="danjuMsg_data">
  55. <span class="data_tit">申报理由:</span>
  56. <span>{{receiptMsg.des}}</span>
  57. </div>
  58. </el-col>
  59. </el-row>
  60. <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
  61. <el-tab-pane label="员工月度考核系数" name="first">
  62. <div class="detaTableBtns">
  63. <div class="tableBtn add" @click="addTableDetail" v-if="isShowFn(receiptMsg.stage)">
  64. <img :src="addIcon" alt="">
  65. <span>新增</span>
  66. </div>
  67. <div class="tableBtn save" @click="saveDetail" v-if="isShowFn(receiptMsg.stage)">
  68. <img :src="saveIcon" alt="">
  69. <span>保存</span>
  70. </div>
  71. <div class="tableBtn delete" @click="handleDelete" v-if="isShowFn(receiptMsg.stage)">
  72. <img :src="deleteIcon" alt="">
  73. <span>删除</span>
  74. </div>
  75. <div class="tableBtn import" @click="handleImport" v-if="isShowFn(receiptMsg.stage)">
  76. <img :src="importIcon" alt="">
  77. <span>导入</span>
  78. </div>
  79. <div class="tableBtn export" @click="handleExport">
  80. <img :src="exportIcon" alt="">
  81. <span>导出</span>
  82. </div>
  83. </div>
  84. <el-table :data="quantifiedList.slice((pageLeft.currentPage-1)*pageLeft.pagesize, pageLeft.currentPage*pageLeft.pagesize)"
  85. style="width: 100%" @select="rowClick" @select-all="rowClick">
  86. <el-table-column type="selection" label="操作" align="center"></el-table-column>
  87. <el-table-column label="序号" type="index" width="80" />
  88. <el-table-column label="人员编号">
  89. <template #default="scope">
  90. <el-input v-model="scope.row.employeeNo" @blur="employeeNoInputBlur(scope.row.employeeNo, scope.row)" />
  91. </template>
  92. </el-table-column>
  93. <el-table-column label="人员">
  94. <template #default="scope">
  95. <!-- <el-select v-model="scope.row.employeeId" placeholder="请选择人员">
  96. <el-option
  97. v-for="item in deptLeaderOptionDet"
  98. :key="item.id"
  99. :label="item.name"
  100. :value="item.id">
  101. <span style="float: left;display:inline-block;width:100px">{{ item.name }}</span>
  102. <span style="float: right;color: #909399;font-size: 13px;" >{{ item.no }}</span>
  103. </el-option>
  104. </el-select> -->
  105. <span>{{scope.row.employeeName}}</span>
  106. </template>
  107. </el-table-column>
  108. <el-table-column label="建议值" v-if="showMessage">
  109. <template #default="scope">
  110. <el-input-number v-model="scope.row.suggestedValue" :precision="2" :step="0.1" :min="0" />
  111. </template>
  112. </el-table-column>
  113. <el-table-column label="排序" >
  114. <template #default="scope">
  115. <el-input-number v-model="scope.row.serialNumber" :min="1" />
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="操作" width="120">
  119. <template #default="scope">
  120. <p class="indicitem" v-if="receiptMsg.stage !== '流程已结束'" @click="deleteRowFn(scope.row, scope.$index)">删除</p>
  121. </template>
  122. </el-table-column>
  123. </el-table>
  124. <el-pagination
  125. @current-change="handleCurrentChangeLeft"
  126. :current-page="pageLeft.currentPage"
  127. :page-size="pageLeft.pagesize"
  128. layout="total, prev, pager, next, jumper"
  129. :total="pageLeft.total">
  130. </el-pagination>
  131. </el-tab-pane>
  132. <el-tab-pane label="本月主要工作完成情况" name="second">
  133. <div class="detaTableBtns">
  134. <div class="tableBtn add" @click="addSecondWork">
  135. <img :src="addIcon" alt="">
  136. <span>新增</span>
  137. </div>
  138. <div class="tableBtn save" @click="saveSecondWork">
  139. <img :src="saveIcon" alt="">
  140. <span>保存</span>
  141. </div>
  142. <div class="tableBtn delete" @click="handleSecondWork">
  143. <img :src="deleteIcon" alt="">
  144. <span>删除</span>
  145. </div>
  146. </div>
  147. <el-table :data="secondWorkSituation.slice((pageRight.currentPage-1)*pageRight.pagesize, pageRight.currentPage*pageRight.pagesize)"
  148. style="width: 100%" @select="rowSituationClick" @select-all="rowSituationClick">
  149. <el-table-column type="selection" label="操作" align="center"></el-table-column>
  150. <el-table-column label="序号" type="index" width="80" />
  151. <el-table-column label="工作内容">
  152. <template #default="scope">
  153. <el-input v-model="scope.row.jobContent" />
  154. </template>
  155. </el-table-column>
  156. <el-table-column label="完成情况">
  157. <template #default="scope">
  158. <el-input v-model="scope.row.completionStatus" />
  159. </template>
  160. </el-table-column>
  161. <el-table-column label="相关处室">
  162. <template #default="scope">
  163. <el-input v-model="scope.row.relatedOffice" />
  164. </template>
  165. </el-table-column>
  166. <el-table-column label="经办人">
  167. <template #default="scope">
  168. <el-input v-model="scope.row.handlePeopleName" />
  169. </template>
  170. </el-table-column>
  171. <el-table-column label="排序" >
  172. <template #default="scope">
  173. <el-input-number v-model="scope.row.serialNumber" :min="1" />
  174. </template>
  175. </el-table-column>
  176. </el-table>
  177. <el-pagination
  178. @current-change="handleCurrentChangeRight"
  179. :current-page="pageRight.currentPage"
  180. :page-size="pageRight.pagesize"
  181. layout="total, prev, pager, next, jumper"
  182. :total="pageRight.total">
  183. </el-pagination>
  184. </el-tab-pane>
  185. </el-tabs>
  186. </div>
  187. <template #footer>
  188. <span class="dialog-footer">
  189. <el-button type="primary" @click="dialogVisible = false">取 消</el-button>
  190. </span>
  191. </template>
  192. </el-dialog>
  193. <import-dailog ref="importPage" @successImport="successImport" @importLoading="importLoading"></import-dailog>
  194. </div>
  195. </template>
  196. <script>
  197. import importDailog from '../importPage/importDailog.vue'
  198. import {apiPostevaluationdeptadDetails,apiGetevaluationdeptadUpdate, apiGetevaluationdeptadDelete,apiGetevaluationdeptadUpdateComplete,
  199. apiPostevaluationdeptadDetailsHead, apiGetuserPageList,apiGetevaluationdeptadDeleteComplete,apiGetUserPostList} from '../../api/api'
  200. import ExcelJS from 'exceljs'
  201. import fileSave from 'file-saver'
  202. import addIcon from '../../assets/btnIcon/add.png'
  203. import saveIcon from '../../assets/btnIcon/save.png'
  204. import editIcon from '../../assets/btnIcon/edit.png'
  205. import deleteIcon from '../../assets/btnIcon/delete.png'
  206. import exportIcon from '../../assets/btnIcon/export.png'
  207. import importIcon from '../../assets/btnIcon/import.png'
  208. export default {
  209. components: {
  210. importDailog
  211. },
  212. data() {
  213. return {
  214. dialogVisible: false,
  215. activeName: 'first',
  216. quantifiedList: [],
  217. secondWorkSituation: [],
  218. changeDateSelect: [],
  219. changeSituationSelect: [],
  220. receiptMsg: {
  221. code: '',
  222. des: '',
  223. stage: '',
  224. createName: '',
  225. createDate: '',
  226. type: '',
  227. year: '',
  228. month: '',
  229. recStage: ''
  230. },
  231. addIcon: addIcon,
  232. saveIcon: saveIcon,
  233. editIcon: editIcon,
  234. deleteIcon: deleteIcon,
  235. exportIcon: exportIcon,
  236. importIcon: importIcon,
  237. rowMsg: {},
  238. orgruleData: [],
  239. indicItemoptions: [],
  240. sectionNameArr: [],
  241. deptNameArr: [],
  242. pageLeft:{
  243. pagesize: 15,
  244. currentPage: 1,
  245. total: 0
  246. },
  247. pageRight:{
  248. pagesize: 15,
  249. currentPage: 1,
  250. total: 0
  251. },
  252. deptLeaderOptionDet: [],
  253. userMes: {},
  254. showMessage: false
  255. }
  256. },
  257. created() {
  258. },
  259. methods: {
  260. init(row) {
  261. this.dialogVisible = true
  262. this.activeName = 'first'
  263. this.getDetails(row.id)
  264. // this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
  265. this.getUserPostList()
  266. this.rowMsg = row
  267. this.$nextTick(() =>{
  268. this.receiptMsg = {
  269. code: row.orderNumber,
  270. des: row.declarationReason,
  271. stage: row.stage,
  272. ratingGrade: row.ratingGrade,
  273. deptLeaderName: row.deptLeaderName,
  274. deptName: row.deptName,
  275. createDate: row.createTime,
  276. year: row.annual,
  277. month: row.declarationMonth,
  278. declarationLevel: row.declarationLevel
  279. }
  280. })
  281. },
  282. handleClick(val) {
  283. this.changeDateSelect = []
  284. this.changeSituationSelect = []
  285. this.activeName = val.props.name
  286. },
  287. // 判断保存 导入按钮展示权限
  288. isShowFn(val) {
  289. let show = true
  290. if (val === '流程已结束') {
  291. show = false
  292. } else {
  293. if (this.userMes.deptId !== '23031009') {
  294. show = false
  295. }
  296. }
  297. return show
  298. },
  299. rowClick(selection, row) {
  300. this.changeDateSelect = selection
  301. },
  302. //删除指标数据
  303. handleDelete() {
  304. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  305. confirmButtonText: '确定',
  306. cancelButtonText: '取消',
  307. type: 'warning'
  308. }).then(() => {
  309. let that = this
  310. let paramsArr = []
  311. that.changeDateSelect.forEach(it =>{
  312. paramsArr.push(it.id)
  313. })
  314. apiGetevaluationdeptadDelete(paramsArr.join(',')).then(datas =>{
  315. if (datas) {
  316. that.$message({
  317. type: 'success',
  318. message: '删除成功!'
  319. });
  320. that.changeDateSelect = []
  321. that.getDetails(that.rowMsg.id)
  322. }
  323. })
  324. })
  325. },
  326. handleCurrentChangeLeft(val) {
  327. this.pageLeft.currentPage = val
  328. },
  329. handleCurrentChangeRight(val) {
  330. this.pageRight.currentPage = val
  331. },
  332. //获取详情头数据
  333. getDetailsHeader(id) {
  334. let that = this
  335. apiPostevaluationdeptadDetailsHead(id).then(datas =>{
  336. if (datas && datas.data) {
  337. let row = datas.data
  338. that.receiptMsg = {
  339. code: row.orderNumber,
  340. des: row.des,
  341. stage: row.stage,
  342. createName: row.createName,
  343. createDate: row.createTime,
  344. type: row.checkCycle === 'YDKP'?'月度考评':row.checkCycle === 'JDKP'?'季度考评':'年度考评',
  345. year: row.appraisalYear,
  346. month: row.declarationMonth,
  347. recStage: '有效'
  348. }
  349. }
  350. })
  351. },
  352. //获取详情
  353. getDetails(id) {
  354. let that = this
  355. that.quantifiedList = []
  356. that.secondWorkSituation = []
  357. apiPostevaluationdeptadDetails(id).then(datas =>{
  358. if (datas && datas.data) {
  359. if (datas.data['ygydkhxs'][0]) {
  360. datas.data['ygydkhxs'][0].forEach(it =>{
  361. it.serialNumber = it.serialNumber.toString()
  362. })
  363. that.quantifiedList = datas.data['ygydkhxs'][0]
  364. that.pageLeft.total = datas.data['ygydkhxs'][0].length
  365. }
  366. if (datas.data['byzygzwcqk'][0]) {
  367. that.secondWorkSituation = datas.data['byzygzwcqk'][0]
  368. that.pageRight.total = datas.data['byzygzwcqk'][0].length
  369. }
  370. }
  371. })
  372. },
  373. getUserPostList() {
  374. let that = this
  375. that.showMessage = false
  376. let params = {
  377. userId: that.userMes.id,
  378. current: 1,
  379. size: 10
  380. }
  381. apiGetUserPostList(params).then(datas =>{
  382. if (datas.data && datas.data.records.length>0) {
  383. let posName = datas.data.records[0].posName
  384. if (posName !== '主任' || posName !== '副主任') {
  385. that.showMessage = true
  386. }
  387. }
  388. })
  389. },
  390. employeeNoInputBlur(val, row) {
  391. row.employeeId = ''
  392. // this.deptLeaderOptionDet.forEach(it =>{
  393. // if (val === it.no) {
  394. // row.employeeId = it.id
  395. // }
  396. // })
  397. this.changeDeptLead(val, row)
  398. },
  399. // 根据部门查询人员
  400. changeDeptLead(val, row) {
  401. let that = this
  402. let params = {
  403. current: 1,
  404. size: 500,
  405. no: val
  406. }
  407. apiGetuserPageList(params).then(datas =>{
  408. if (datas && datas.data) {
  409. // that.deptLeaderOptionDet = datas.data.records
  410. row.employeeName = datas.data.records[0].name
  411. row.employeeId = datas.data.records[0].id
  412. }
  413. })
  414. },
  415. addTableDetail() {
  416. this.pageLeft.currentPage = 1
  417. let obj = {
  418. showInput: true,
  419. businessPlanId: this.rowMsg.id,
  420. employeeId: '',
  421. employeeNo: '',
  422. suggestedValue: 1.00,
  423. serialNumber: 0
  424. }
  425. this.quantifiedList.unshift(obj)
  426. },
  427. saveDetail() {
  428. let that = this
  429. let params = []
  430. that.quantifiedList.forEach(item =>{
  431. // let emName = ''
  432. // let emNo = ''
  433. // that.deptLeaderOptionDet.forEach(it =>{
  434. // if (item.employeeId === it.id) {
  435. // emName = it.name
  436. // emNo = it.no
  437. // }
  438. // })
  439. let obj = {
  440. assessmentDeclarationId: that.rowMsg.id,
  441. employeeId: item.employeeId,
  442. employeeName: item.employeeName,
  443. employeeNo: item.employeeNo ? item.employeeNo : emNo,
  444. suggestedValue: Number(item.suggestedValue).toFixed(2),
  445. serialNumber: item.serialNumber
  446. }
  447. if (!item.showInput) {
  448. obj.id = item.id
  449. }
  450. params.push(obj)
  451. })
  452. apiGetevaluationdeptadUpdate(params).then(datas =>{
  453. if (datas) {
  454. if (datas.success) {
  455. that.$message({
  456. message: '保存成功',
  457. type: 'success'
  458. });
  459. that.activeName = 'first'
  460. that.getDetails(that.rowMsg.id)
  461. } else {
  462. that.$message({
  463. message: datas.message,
  464. type: 'error'
  465. })
  466. }
  467. }
  468. })
  469. },
  470. deleteRowFn(row, index) {
  471. let that = this
  472. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  473. confirmButtonText: '确定',
  474. cancelButtonText: '取消',
  475. type: 'warning'
  476. }).then(() => {
  477. if (!row.id) {
  478. that.quantifiedList.splice(index, 1)
  479. } else {
  480. apiGetevaluationdeptadDelete(row.id).then(datas =>{
  481. if (datas) {
  482. that.$message({
  483. type: 'success',
  484. message: '删除成功!'
  485. });
  486. that.activeName = 'first'
  487. that.getDetails(that.rowMsg.id)
  488. }
  489. })
  490. }
  491. })
  492. },
  493. handleImport() {
  494. this.$refs.importPage.upload.title = "绩效结果考核申报导入"
  495. this.$refs.importPage.upload.data = {id: this.rowMsg.id}
  496. this.$refs.importPage.upload.open = true
  497. this.$refs.importPage.upload.url = '/evaluation-dept-ad/import'
  498. },
  499. successImport(val) {
  500. this.$message({
  501. type: 'success',
  502. message: val.message
  503. });
  504. this.getDetails(this.rowMsg.id)
  505. },
  506. handleExport() {
  507. let data = this.quantifiedList //接口返回数据
  508. const workbook = new ExcelJS.Workbook()
  509. const worksheet = workbook.addWorksheet('Sheet1')
  510. //根据数据自己调整
  511. let colums = []
  512. colums = [
  513. // { header: 'ID', key: 'id', width: 26, hidden: true },
  514. // { header: '申报ID', key: 'assessmentDeclarationId', width: 26, hidden: true },
  515. { header: '人员编号', key: 'employeeNo', width: 26 },
  516. // { header: '员工ID', key: 'employeeId', width: 26 },
  517. { header: '员工名称', key: 'employeeName', width: 26 },
  518. { header: '建议值', key: 'suggestedValue', width: 26 },
  519. { header: '排序', key: 'serialNumber', width: 26 },
  520. ]
  521. worksheet.columns = colums
  522. worksheet.getRow(1).font = {
  523. size: 12,
  524. bold: true
  525. }
  526. worksheet.addRows(data)
  527. workbook.xlsx.writeBuffer().then(buffer => {
  528. //这里为type
  529. const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
  530. fileSave(blob, `绩效结果考核申报数据导出.xlsx`)
  531. })
  532. },
  533. rowSituationClick(selection, row) {
  534. this.changeSituationSelect = selection
  535. },
  536. addSecondWork() {
  537. this.pageRight.currentPage = 1
  538. let obj = {
  539. showInput: true,
  540. assessmentDeclarationId: this.rowMsg.id,
  541. jobContent: '',
  542. completionStatus: '',
  543. relatedOffice: '',
  544. handlePeopleName: '',
  545. serialNumber: 0
  546. }
  547. this.secondWorkSituation.unshift(obj)
  548. },
  549. saveSecondWork() {
  550. let that = this
  551. let params = []
  552. that.secondWorkSituation.forEach(item =>{
  553. let obj = {
  554. assessmentDeclarationId: that.rowMsg.id,
  555. jobContent: item.jobContent,
  556. completionStatus: item.completionStatus,
  557. relatedOffice: item.relatedOffice,
  558. handlePeopleName: item.handlePeopleName,
  559. serialNumber: item.serialNumber
  560. }
  561. if (!item.showInput) {
  562. obj.id = item.id
  563. }
  564. params.push(obj)
  565. })
  566. apiGetevaluationdeptadUpdateComplete(params).then(datas =>{
  567. if (datas) {
  568. if (datas.success) {
  569. that.$message({
  570. message: '保存成功',
  571. type: 'success'
  572. });
  573. that.activeName = 'second'
  574. that.getDetails(that.rowMsg.id)
  575. } else {
  576. that.$message({
  577. message: datas.message,
  578. type: 'error'
  579. })
  580. }
  581. }
  582. })
  583. },
  584. handleSecondWork() {
  585. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  586. confirmButtonText: '确定',
  587. cancelButtonText: '取消',
  588. type: 'warning'
  589. }).then(() => {
  590. let that = this
  591. let paramsArr = []
  592. that.changeSituationSelect.forEach(it =>{
  593. paramsArr.push(it.id)
  594. })
  595. apiGetevaluationdeptadDeleteComplete(paramsArr.join(',')).then(datas =>{
  596. if (datas) {
  597. that.$message({
  598. type: 'success',
  599. message: '删除成功!'
  600. });
  601. that.activeName = 'second'
  602. that.changeSituationSelect = []
  603. that.getDetails(that.rowMsg.id)
  604. }
  605. })
  606. })
  607. },
  608. }
  609. }
  610. </script>
  611. <style lang="less">
  612. .applicationFrom{
  613. .el-overlay{
  614. .el-dialog{
  615. // margin-top: 7vh;
  616. .el-dialog__body{
  617. padding: 0 20px !important;
  618. .startDetail{
  619. .starttitleSty{
  620. font-size: 18px;
  621. font-family: Microsoft YaHei;
  622. font-weight: bold;
  623. color: #3B7AD1;
  624. // line-height: 12px;
  625. margin: 20px 0 20px 10px;
  626. }
  627. .danjuMsg{
  628. border: 1px solid #D6DBEA;
  629. padding: 10px 20px;
  630. border-radius: 10px;
  631. margin-bottom: 10px;
  632. .danjuMsg_data{
  633. padding: 5px 0 10px 0;
  634. .data_tit{
  635. margin-right: 10px;
  636. font-weight: bold;
  637. font-size: 14px;
  638. font-family: Microsoft YaHei;
  639. color: #8991B0;
  640. }
  641. .data_tit_wd{
  642. display: inline-block;
  643. width: 90px;
  644. }
  645. .el-form-item--small{
  646. .el-input{
  647. height: 25px;
  648. width: 160px;
  649. }
  650. margin-bottom: 0;
  651. .el-input-number{
  652. height: 25px;
  653. .el-input-number__decrease, .el-input-number__increase{
  654. right: -39px;
  655. }
  656. }
  657. }
  658. }
  659. }
  660. .el-select, .el-input{
  661. width: 100%;
  662. }
  663. .el-tabs{
  664. margin-top: 20px;
  665. .detaTableBtns{
  666. display: flex;
  667. justify-content: flex-end;
  668. width: 100%;
  669. margin-top: 5px;
  670. .tableBtn {
  671. display: flex;
  672. height: 20px;
  673. margin: 0 10px;
  674. // width: 20%;
  675. width: fit-content;
  676. img{
  677. margin-right: 5px;
  678. margin-top: 1px;
  679. }
  680. span{
  681. width: 35px;
  682. display: inline-block;
  683. font-size: 14px;
  684. font-family: Microsoft YaHei;
  685. font-weight: 400;
  686. }
  687. }
  688. .add{
  689. cursor: pointer;
  690. span{
  691. color: #3B7AD1;
  692. }
  693. }
  694. .save{
  695. cursor: pointer;
  696. span{
  697. color: #50C14E;
  698. }
  699. }
  700. .edit{
  701. span{
  702. color: #F5A623;
  703. }
  704. }
  705. .delete{
  706. cursor: pointer;
  707. span{
  708. color: #F65177;
  709. }
  710. }
  711. .import{
  712. cursor: pointer;
  713. span{
  714. color: #ce1e78;
  715. }
  716. }
  717. .export{
  718. cursor: pointer;
  719. span{
  720. color: #2baa8a;
  721. }
  722. }
  723. }
  724. .el-tabs__header{
  725. .el-tabs__nav{
  726. .el-tabs__item{
  727. font-size: 18px;
  728. font-family: Microsoft YaHei;
  729. font-weight: bold;
  730. margin: 0 10px;
  731. color: #8991B0;
  732. }
  733. .is-active{
  734. font-size: 18px;
  735. font-family: Microsoft YaHei;
  736. font-weight: bold;
  737. color: #3B7AD1;
  738. margin: 0 10px;
  739. }
  740. }
  741. }
  742. .el-table{
  743. margin-bottom: 10px;
  744. .el-table__body-wrapper{
  745. height: 45vh;
  746. }
  747. .el-table__row{
  748. .cell{
  749. .el-input{
  750. height: 24px;
  751. .el-input__inner{
  752. height: 24px;
  753. }
  754. }
  755. }
  756. }
  757. .indicitem{
  758. color: #F65177;
  759. font-size: 12px;
  760. margin-right: 20px;
  761. cursor:pointer;
  762. &:hover{
  763. text-decoration: underline;
  764. }
  765. }
  766. }
  767. }
  768. }
  769. }
  770. .el-dialog__footer{
  771. .dialog-footer{
  772. display: flex;
  773. justify-content: center;
  774. .el-button{
  775. width: 180px !important;
  776. height: 40px !important;
  777. }
  778. }
  779. }
  780. }
  781. }
  782. }
  783. </style>