assessmentApplicationFrom.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  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" v-if="isShowFn(receiptMsg.stage)">
  119. <template #default="scope">
  120. <p class="indicitem" @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" v-if="isShowFn(receiptMsg.stage)">
  135. <img :src="addIcon" alt="">
  136. <span>新增</span>
  137. </div>
  138. <div class="tableBtn save" @click="saveSecondWork" v-if="isShowFn(receiptMsg.stage)">
  139. <img :src="saveIcon" alt="">
  140. <span>保存</span>
  141. </div>
  142. <div class="tableBtn delete" @click="handleSecondWork" v-if="isShowFn(receiptMsg.stage)">
  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-if="isShowFn(receiptMsg.stage)" v-model="scope.row.jobContent" :rows="2" type="textarea" />
  154. <pre v-else>{{scope.row.jobContent}}</pre>
  155. </template>
  156. </el-table-column>
  157. <el-table-column label="完成情况">
  158. <template #default="scope">
  159. <el-input v-if="isShowFn(receiptMsg.stage)" v-model="scope.row.completionStatus" :rows="2" type="textarea" />
  160. <pre v-else>{{scope.row.completionStatus}}</pre>
  161. </template>
  162. </el-table-column>
  163. <el-table-column label="相关处室" width="200">
  164. <template #default="scope">
  165. <el-input v-if="isShowFn(receiptMsg.stage)" v-model="scope.row.relatedOffice" />
  166. <span v-else>{{scope.row.relatedOffice}}</span>
  167. </template>
  168. </el-table-column>
  169. <el-table-column label="经办人" width="200">
  170. <template #default="scope">
  171. <el-input v-if="isShowFn(receiptMsg.stage)" v-model="scope.row.handlePeopleName" />
  172. <span v-else>{{scope.row.handlePeopleName}}</span>
  173. </template>
  174. </el-table-column>
  175. <el-table-column label="排序" >
  176. <template #default="scope">
  177. <el-input-number v-model="scope.row.serialNumber" :min="1" />
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. <el-pagination
  182. @current-change="handleCurrentChangeRight"
  183. :current-page="pageRight.currentPage"
  184. :page-size="pageRight.pagesize"
  185. layout="total, prev, pager, next, jumper"
  186. :total="pageRight.total">
  187. </el-pagination>
  188. </el-tab-pane>
  189. </el-tabs>
  190. </div>
  191. <template #footer>
  192. <span class="dialog-footer">
  193. <el-button type="primary" @click="dialogVisible = false">取 消</el-button>
  194. </span>
  195. </template>
  196. </el-dialog>
  197. <import-dailog ref="importPage" @successImport="successImport" @importLoading="importLoading"></import-dailog>
  198. </div>
  199. </template>
  200. <script>
  201. import importDailog from '../importPage/importDailog.vue'
  202. import {apiPostevaluationdeptadDetails,apiGetevaluationdeptadUpdate, apiGetevaluationdeptadDelete,apiGetevaluationdeptadUpdateComplete,
  203. apiPostevaluationdeptadDetailsHead, apiGetuserPageList,apiGetevaluationdeptadDeleteComplete,apiGetUserPostList} from '../../api/api'
  204. import ExcelJS from 'exceljs'
  205. import fileSave from 'file-saver'
  206. import addIcon from '../../assets/btnIcon/add.png'
  207. import saveIcon from '../../assets/btnIcon/save.png'
  208. import editIcon from '../../assets/btnIcon/edit.png'
  209. import deleteIcon from '../../assets/btnIcon/delete.png'
  210. import exportIcon from '../../assets/btnIcon/export.png'
  211. import importIcon from '../../assets/btnIcon/import.png'
  212. export default {
  213. components: {
  214. importDailog
  215. },
  216. data() {
  217. return {
  218. dialogVisible: false,
  219. activeName: 'first',
  220. quantifiedList: [],
  221. secondWorkSituation: [],
  222. changeDateSelect: [],
  223. changeSituationSelect: [],
  224. receiptMsg: {
  225. code: '',
  226. des: '',
  227. stage: '',
  228. createName: '',
  229. createDate: '',
  230. type: '',
  231. year: '',
  232. month: '',
  233. recStage: ''
  234. },
  235. addIcon: addIcon,
  236. saveIcon: saveIcon,
  237. editIcon: editIcon,
  238. deleteIcon: deleteIcon,
  239. exportIcon: exportIcon,
  240. importIcon: importIcon,
  241. rowMsg: {},
  242. orgruleData: [],
  243. indicItemoptions: [],
  244. sectionNameArr: [],
  245. deptNameArr: [],
  246. pageLeft:{
  247. pagesize: 15,
  248. currentPage: 1,
  249. total: 0
  250. },
  251. pageRight:{
  252. pagesize: 15,
  253. currentPage: 1,
  254. total: 0
  255. },
  256. deptLeaderOptionDet: [],
  257. userMes: {},
  258. showMessage: false
  259. }
  260. },
  261. created() {
  262. },
  263. methods: {
  264. init(row) {
  265. this.dialogVisible = true
  266. this.activeName = 'first'
  267. this.getDetails(row.id)
  268. this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
  269. this.getUserPostList()
  270. this.rowMsg = row
  271. this.$nextTick(() =>{
  272. this.receiptMsg = {
  273. code: row.orderNumber,
  274. des: row.declarationReason,
  275. stage: row.stage,
  276. ratingGrade: row.ratingGrade,
  277. deptLeaderName: row.deptLeaderName,
  278. deptName: row.deptName,
  279. createDate: row.createTime,
  280. year: row.annual,
  281. month: row.declarationMonth,
  282. declarationLevel: row.declarationLevel
  283. }
  284. })
  285. },
  286. handleClick(val) {
  287. this.changeDateSelect = []
  288. this.changeSituationSelect = []
  289. this.activeName = val.props.name
  290. },
  291. // 判断保存 导入按钮展示权限
  292. isShowFn(val) {
  293. let show = true
  294. if (val !== '流程未启动') {
  295. show = false
  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. if (that.userMes.deptId === '23031009') {
  377. that.showMessage = true
  378. } else {
  379. let params = {
  380. userId: that.userMes.id,
  381. current: 1,
  382. size: 10
  383. }
  384. apiGetUserPostList(params).then(datas =>{
  385. if (datas.data && datas.data.records.length>0) {
  386. datas.data.records.forEach(it =>{
  387. if (it.posName === '主任' || it.posName === '副主任') {
  388. that.showMessage = true
  389. }
  390. })
  391. }
  392. })
  393. }
  394. },
  395. employeeNoInputBlur(val, row) {
  396. row.employeeId = ''
  397. // this.deptLeaderOptionDet.forEach(it =>{
  398. // if (val === it.no) {
  399. // row.employeeId = it.id
  400. // }
  401. // })
  402. this.changeDeptLead(val, row)
  403. },
  404. // 根据部门查询人员
  405. changeDeptLead(val, row) {
  406. let that = this
  407. let params = {
  408. current: 1,
  409. size: 500,
  410. no: val
  411. }
  412. apiGetuserPageList(params).then(datas =>{
  413. if (datas && datas.data) {
  414. // that.deptLeaderOptionDet = datas.data.records
  415. row.employeeName = datas.data.records[0].name
  416. row.employeeId = datas.data.records[0].id
  417. }
  418. })
  419. },
  420. addTableDetail() {
  421. this.pageLeft.currentPage = 1
  422. let obj = {
  423. showInput: true,
  424. businessPlanId: this.rowMsg.id,
  425. employeeId: '',
  426. employeeNo: '',
  427. suggestedValue: 1.00,
  428. serialNumber: 0
  429. }
  430. this.quantifiedList.unshift(obj)
  431. },
  432. saveDetail() {
  433. let that = this
  434. let params = []
  435. that.quantifiedList.forEach(item =>{
  436. // let emName = ''
  437. // let emNo = ''
  438. // that.deptLeaderOptionDet.forEach(it =>{
  439. // if (item.employeeId === it.id) {
  440. // emName = it.name
  441. // emNo = it.no
  442. // }
  443. // })
  444. let obj = {
  445. assessmentDeclarationId: that.rowMsg.id,
  446. employeeId: item.employeeId,
  447. employeeName: item.employeeName,
  448. employeeNo: item.employeeNo,
  449. suggestedValue: (item.suggestedValue*1).toString(),
  450. serialNumber: item.serialNumber
  451. }
  452. if (!item.showInput) {
  453. obj.id = item.id
  454. }
  455. params.push(obj)
  456. })
  457. apiGetevaluationdeptadUpdate(params).then(datas =>{
  458. if (datas) {
  459. if (datas.success) {
  460. that.$message({
  461. message: '保存成功',
  462. type: 'success'
  463. });
  464. that.activeName = 'first'
  465. that.getDetails(that.rowMsg.id)
  466. } else {
  467. that.$message({
  468. message: datas.message,
  469. type: 'error'
  470. })
  471. }
  472. }
  473. })
  474. },
  475. deleteRowFn(row, index) {
  476. let that = this
  477. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  478. confirmButtonText: '确定',
  479. cancelButtonText: '取消',
  480. type: 'warning'
  481. }).then(() => {
  482. if (!row.id) {
  483. that.quantifiedList.splice(index, 1)
  484. } else {
  485. apiGetevaluationdeptadDelete(row.id).then(datas =>{
  486. if (datas) {
  487. that.$message({
  488. type: 'success',
  489. message: '删除成功!'
  490. });
  491. that.activeName = 'first'
  492. that.getDetails(that.rowMsg.id)
  493. }
  494. })
  495. }
  496. })
  497. },
  498. handleImport() {
  499. this.$refs.importPage.upload.title = "绩效结果考核申报导入"
  500. this.$refs.importPage.upload.data = {id: this.rowMsg.id}
  501. this.$refs.importPage.upload.open = true
  502. this.$refs.importPage.upload.url = '/evaluation-dept-ad/import'
  503. },
  504. successImport(val) {
  505. this.$message({
  506. type: 'success',
  507. message: val.message
  508. });
  509. this.getDetails(this.rowMsg.id)
  510. },
  511. handleExport() {
  512. let data = this.quantifiedList //接口返回数据
  513. const workbook = new ExcelJS.Workbook()
  514. const worksheet = workbook.addWorksheet('Sheet1')
  515. //根据数据自己调整
  516. let colums = []
  517. colums = [
  518. // { header: 'ID', key: 'id', width: 26, hidden: true },
  519. // { header: '申报ID', key: 'assessmentDeclarationId', width: 26, hidden: true },
  520. { header: '人员编号', key: 'employeeNo', width: 26 },
  521. // { header: '员工ID', key: 'employeeId', width: 26 },
  522. { header: '员工名称', key: 'employeeName', width: 26 },
  523. { header: '建议值', key: 'suggestedValue', width: 26 },
  524. { header: '排序', key: 'serialNumber', width: 26 },
  525. ]
  526. worksheet.columns = colums
  527. worksheet.getRow(1).font = {
  528. size: 12,
  529. bold: true
  530. }
  531. worksheet.addRows(data)
  532. workbook.xlsx.writeBuffer().then(buffer => {
  533. //这里为type
  534. const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
  535. fileSave(blob, `绩效结果考核申报数据导出.xlsx`)
  536. })
  537. },
  538. rowSituationClick(selection, row) {
  539. this.changeSituationSelect = selection
  540. },
  541. addSecondWork() {
  542. this.pageRight.currentPage = 1
  543. let obj = {
  544. showInput: true,
  545. assessmentDeclarationId: this.rowMsg.id,
  546. jobContent: '',
  547. completionStatus: '',
  548. relatedOffice: '',
  549. handlePeopleName: '',
  550. serialNumber: 0
  551. }
  552. this.secondWorkSituation.unshift(obj)
  553. },
  554. saveSecondWork() {
  555. let that = this
  556. let params = []
  557. that.secondWorkSituation.forEach(item =>{
  558. let obj = {
  559. assessmentDeclarationId: that.rowMsg.id,
  560. jobContent: item.jobContent,
  561. completionStatus: item.completionStatus,
  562. relatedOffice: item.relatedOffice,
  563. handlePeopleName: item.handlePeopleName,
  564. serialNumber: item.serialNumber
  565. }
  566. if (!item.showInput) {
  567. obj.id = item.id
  568. }
  569. params.push(obj)
  570. })
  571. apiGetevaluationdeptadUpdateComplete(params).then(datas =>{
  572. if (datas) {
  573. if (datas.success) {
  574. that.$message({
  575. message: '保存成功',
  576. type: 'success'
  577. });
  578. that.activeName = 'second'
  579. that.getDetails(that.rowMsg.id)
  580. } else {
  581. that.$message({
  582. message: datas.message,
  583. type: 'error'
  584. })
  585. }
  586. }
  587. })
  588. },
  589. handleSecondWork() {
  590. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  591. confirmButtonText: '确定',
  592. cancelButtonText: '取消',
  593. type: 'warning'
  594. }).then(() => {
  595. let that = this
  596. let paramsArr = []
  597. that.changeSituationSelect.forEach(item =>{
  598. if (!item.id) {
  599. that.secondWorkSituation.forEach((it, index) =>{
  600. if (it === item) {
  601. that.secondWorkSituation.splice(index, 1)
  602. }
  603. })
  604. } else {
  605. paramsArr.push(item.id)
  606. }
  607. })
  608. if (paramsArr.length>0) {
  609. apiGetevaluationdeptadDeleteComplete(paramsArr.join(',')).then(datas =>{
  610. if (datas) {
  611. that.$message({
  612. type: 'success',
  613. message: '删除成功!'
  614. });
  615. that.activeName = 'second'
  616. that.changeSituationSelect = []
  617. that.getDetails(that.rowMsg.id)
  618. }
  619. })
  620. }
  621. })
  622. },
  623. }
  624. }
  625. </script>
  626. <style lang="less">
  627. .applicationFrom{
  628. .el-overlay{
  629. .el-dialog{
  630. // margin-top: 7vh;
  631. .el-dialog__body{
  632. padding: 0 20px !important;
  633. .startDetail{
  634. .starttitleSty{
  635. font-size: 18px;
  636. font-family: Microsoft YaHei;
  637. font-weight: bold;
  638. color: #3B7AD1;
  639. // line-height: 12px;
  640. margin: 20px 0 20px 10px;
  641. }
  642. .danjuMsg{
  643. border: 1px solid #D6DBEA;
  644. padding: 10px 20px;
  645. border-radius: 10px;
  646. margin-bottom: 10px;
  647. .danjuMsg_data{
  648. padding: 5px 0 10px 0;
  649. .data_tit{
  650. margin-right: 10px;
  651. font-weight: bold;
  652. font-size: 14px;
  653. font-family: Microsoft YaHei;
  654. color: #8991B0;
  655. }
  656. .data_tit_wd{
  657. display: inline-block;
  658. width: 90px;
  659. }
  660. .el-form-item--small{
  661. .el-input{
  662. height: 25px;
  663. width: 160px;
  664. }
  665. margin-bottom: 0;
  666. .el-input-number{
  667. height: 25px;
  668. .el-input-number__decrease, .el-input-number__increase{
  669. right: -39px;
  670. }
  671. }
  672. }
  673. }
  674. }
  675. .el-select, .el-input{
  676. width: 100%;
  677. }
  678. .el-tabs{
  679. margin-top: 20px;
  680. .detaTableBtns{
  681. display: flex;
  682. justify-content: flex-end;
  683. width: 100%;
  684. margin-top: 5px;
  685. .tableBtn {
  686. display: flex;
  687. height: 20px;
  688. margin: 0 10px;
  689. // width: 20%;
  690. width: fit-content;
  691. img{
  692. margin-right: 5px;
  693. margin-top: 1px;
  694. }
  695. span{
  696. width: 35px;
  697. display: inline-block;
  698. font-size: 14px;
  699. font-family: Microsoft YaHei;
  700. font-weight: 400;
  701. }
  702. }
  703. .add{
  704. cursor: pointer;
  705. span{
  706. color: #3B7AD1;
  707. }
  708. }
  709. .save{
  710. cursor: pointer;
  711. span{
  712. color: #50C14E;
  713. }
  714. }
  715. .edit{
  716. span{
  717. color: #F5A623;
  718. }
  719. }
  720. .delete{
  721. cursor: pointer;
  722. span{
  723. color: #F65177;
  724. }
  725. }
  726. .import{
  727. cursor: pointer;
  728. span{
  729. color: #ce1e78;
  730. }
  731. }
  732. .export{
  733. cursor: pointer;
  734. span{
  735. color: #2baa8a;
  736. }
  737. }
  738. }
  739. .el-tabs__header{
  740. .el-tabs__nav{
  741. .el-tabs__item{
  742. font-size: 18px;
  743. font-family: Microsoft YaHei;
  744. font-weight: bold;
  745. margin: 0 10px;
  746. color: #8991B0;
  747. }
  748. .is-active{
  749. font-size: 18px;
  750. font-family: Microsoft YaHei;
  751. font-weight: bold;
  752. color: #3B7AD1;
  753. margin: 0 10px;
  754. }
  755. }
  756. }
  757. .el-table{
  758. margin-bottom: 10px;
  759. .el-table__body-wrapper{
  760. height: 45vh;
  761. }
  762. .el-table__row{
  763. .cell{
  764. .el-input{
  765. height: 24px;
  766. .el-input__inner{
  767. height: 24px;
  768. }
  769. }
  770. }
  771. }
  772. .indicitem{
  773. color: #F65177;
  774. font-size: 12px;
  775. margin-right: 20px;
  776. cursor:pointer;
  777. &:hover{
  778. text-decoration: underline;
  779. }
  780. }
  781. }
  782. }
  783. }
  784. }
  785. .el-dialog__footer{
  786. .dialog-footer{
  787. display: flex;
  788. justify-content: center;
  789. .el-button{
  790. width: 180px !important;
  791. height: 40px !important;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. }
  798. </style>