purchaseContract.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. <!--采购合同-->
  2. <!--2019年5月30日 20:25:16 by jlx-->
  3. <template>
  4. <div>
  5. <BaseHeaderLayout :leftSpan="10">
  6. <template slot="left">
  7. <ws-button
  8. type="primary"
  9. @click="handleAdd()"
  10. v-hasPermission="
  11. `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
  12. "
  13. ><img
  14. width="13"
  15. height="13"
  16. style="
  17. vertical-align: text-top;
  18. position: relative;
  19. top: 2px;
  20. left: -4px;
  21. "
  22. src="../../../public/img/header-add.png"
  23. alt=""
  24. />添加</ws-button
  25. >
  26. <ws-button
  27. @click="exportlist()"
  28. v-hasPermission="
  29. `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
  30. "
  31. >导出</ws-button
  32. >
  33. </template>
  34. <template slot="right">
  35. <ws-select
  36. v-model="searchTypeText"
  37. placeholder=""
  38. class="typeselect"
  39. @change="selecttaskType"
  40. :value="searchType"
  41. >
  42. <ws-option
  43. v-for="item in taskTypeList"
  44. :key="item.value"
  45. :label="item.value"
  46. :value="item.value"
  47. />
  48. </ws-select>
  49. <el-date-picker
  50. v-model="value2"
  51. type="daterange"
  52. align="right"
  53. unlink-panels
  54. range-separator="至"
  55. start-placeholder="开始日期"
  56. end-placeholder="结束日期"
  57. :picker-options="pickerOptions"
  58. >
  59. </el-date-picker>
  60. <ws-input
  61. v-model="searchKeyWord"
  62. placeholder="可按照合同编号、买方名称、卖方名称进行查找"
  63. clearable
  64. maxlength="500"
  65. type="input"
  66. class="findValue"
  67. ></ws-input>
  68. <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
  69. <ws-button
  70. class="find"
  71. type="primary"
  72. @click="find()"
  73. v-hasPermission="
  74. `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
  75. "
  76. ><img
  77. width="16"
  78. height="16"
  79. style="
  80. vertical-align: text-top;
  81. position: relative;
  82. top: 0px;
  83. left: -8px;
  84. "
  85. src="../../../public/img/sousuo.png"
  86. alt=""
  87. /></ws-button>
  88. </template>
  89. </BaseHeaderLayout>
  90. <el-table
  91. class="wenzi"
  92. :data="contractList.records"
  93. style="width: 100%; margin-top: 10px"
  94. height="780"
  95. >
  96. <el-table-column type="index" label="序号">
  97. <template scope="scope">
  98. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  99. <span v-else>{{ scope.$index + 1 }}</span>
  100. </template>
  101. </el-table-column>
  102. <el-table-column prop="contractNo" label="合同编号" width="80">
  103. </el-table-column>
  104. <el-table-column prop="goodsName" label="货名" width="80">
  105. </el-table-column>
  106. <el-table-column prop="grade" label="品级">
  107. <template slot-scope="scope">
  108. <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
  109. scope.row.grade
  110. }}</span>
  111. <span v-if="scope.row.grade == '二等品'" class="second-class">{{
  112. scope.row.grade
  113. }}</span>
  114. <span v-if="scope.row.grade == '三等品'" class="third-class">{{
  115. scope.row.grade
  116. }}</span>
  117. <span v-if="scope.row.grade == '等外'" class="substandard">{{
  118. scope.row.grade
  119. }}</span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column prop="weight" label="重量(吨)"> </el-table-column>
  123. <el-table-column prop="unitContractPrice" label="合同单价(元)">
  124. </el-table-column>
  125. <el-table-column prop="packingMethod" label="包装方式"> </el-table-column>
  126. <el-table-column prop="buyer" label="买方"> </el-table-column>
  127. <el-table-column prop="seller" label="卖方"> </el-table-column>
  128. <el-table-column prop="imperfectGrain" label="已完成(吨)">
  129. <template slot-scope="scope">
  130. <span style="color: #5473e8; font-weight: 600">{{
  131. scope.row.imperfectGrain
  132. }}</span>
  133. </template>
  134. </el-table-column>
  135. <el-table-column prop="status" label="状态">
  136. <template slot-scope="scope">
  137. <el-popover
  138. placement="left"
  139. :width="285"
  140. trigger="click"
  141. visible-arrow="false"
  142. @show="history(scope.row)"
  143. >
  144. <template>
  145. <span slot="reference">
  146. <span
  147. v-if="scope.row.status == '待执行'"
  148. class="executory"
  149. ></span>
  150. <span
  151. v-if="scope.row.status == '执行中'"
  152. class="inExecution"
  153. ></span>
  154. <span v-if="scope.row.status == '已完成'" class="done"></span
  155. >{{ scope.row.status }}
  156. </span>
  157. </template>
  158. <div>
  159. <p style="margin-top: 0; padding-left: 10px">操作历史</p>
  160. <div v-for="(item, index) in historyList" class="flex">
  161. <div class="vertical-text vertical-text-left">
  162. {{ item.updateDate }}
  163. </div>
  164. <div>
  165. <div class="vertical-circle"></div>
  166. <div
  167. v-if="index != historyList.length - 1"
  168. class="vertical-line"
  169. ></div>
  170. </div>
  171. <div class="vertical-text">
  172. {{ item.operateUser }}<br />{{ item.dealMsg }}
  173. </div>
  174. </div>
  175. </div>
  176. </el-popover>
  177. <img
  178. width="17"
  179. height="18"
  180. style="vertical-align: text-top; position: relative; top: -1px"
  181. src="../../../public/img/edit.png"
  182. @click="editClick(scope.row)"
  183. alt=""
  184. />
  185. <!-- <i class="el-icon-edit" @click="editClick(scope.row)"></i> -->
  186. </template>
  187. </el-table-column>
  188. <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
  189. <el-table-column prop="mildewGrain" label="已付款(元)">
  190. </el-table-column>
  191. <el-table-column prop="addressUrl" label="附件">
  192. <template slot-scope="scope">
  193. <img
  194. width="18"
  195. height="20"
  196. style="vertical-align: text-top; position: relative; top: -1px"
  197. src="../../../public/img/fujian.png"
  198. @click="fujian(scope.row)"
  199. alt=""
  200. />
  201. <span v-if="scope.row.addressUrlArray.length > 0">{{
  202. scope.row.addressUrlArray.length
  203. }}</span>
  204. <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
  205. </template>
  206. </el-table-column>
  207. <el-table-column prop="address" label="操作" width="200">
  208. <template slot-scope="scope">
  209. <img
  210. width="16"
  211. height="16"
  212. style="vertical-align: text-top; margin: 0 6px"
  213. src="../../../public/img/chakan.png"
  214. @click="handleExamine(scope.row)"
  215. alt=""
  216. />
  217. <img
  218. width="17"
  219. height="16"
  220. style="vertical-align: text-top; margin: 0 6px"
  221. src="../../../public/img/bianji.png"
  222. @click="handleEdit(scope.row)"
  223. alt=""
  224. />
  225. <img
  226. width="16"
  227. height="17"
  228. style="
  229. vertical-align: text-top;
  230. position: relative;
  231. top: -1px;
  232. margin: 0 6px;
  233. "
  234. src="../../../public/img/shanchu.png"
  235. @click="handleDelete(scope.row)"
  236. alt=""
  237. />
  238. </template>
  239. </el-table-column>
  240. </el-table>
  241. <el-pagination
  242. @size-change="handleSizeChange"
  243. @current-change="handleCurrentChange"
  244. :current-page="currentPage"
  245. :page-size="deptCircularPage.pageSize"
  246. layout="total, sizes, prev, pager, next, jumper"
  247. :total="deptBudgetTotal"
  248. >
  249. </el-pagination>
  250. <!-- 附件弹框 -->
  251. <WinseaContentModal
  252. v-model="accessoryTFs"
  253. :title="$t('system.noticeCircular.information')"
  254. @on-cancel="handleClose"
  255. >
  256. <p>查看附件</p>
  257. <ws-upload
  258. ref="upload"
  259. table-name="maintain_work_order"
  260. oss-key="mainPlan"
  261. :comp-id="compId"
  262. :appendix-ids="appendixIdsAdd"
  263. :vesselId="deptBudgetList.addressUrl"
  264. :size-limit="size"
  265. @uploadSuccess="uploadSuccess"
  266. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
  267. />
  268. </WinseaContentModal>
  269. </div>
  270. </template>
  271. <script>
  272. import {
  273. getList,
  274. export1,
  275. editstatus,
  276. billoperatehis,
  277. deletecontract,
  278. } from '@/model/contarct/index'
  279. import { downloadFile } from '@/utils/batchDown'
  280. import Pagination from '@/components/Pagination'
  281. import WsUpload from '@/components/WsUpload'
  282. import { dayjs, fmoney, EventBus } from 'base-core-lib'
  283. export default {
  284. name: 'viewSpareMoney',
  285. components: {
  286. WsUpload,
  287. Pagination,
  288. },
  289. watch: {
  290. vesselId(val) {
  291. this.getList()
  292. },
  293. isShow(val) {
  294. this.showType = val
  295. },
  296. },
  297. data() {
  298. return {
  299. //弹出框
  300. dialogViewSpareMoney: false,
  301. dialogApproveFormVisible: false,
  302. // 船舶类型
  303. monetaryKey: null,
  304. // 表格显示数据
  305. tableDate: [],
  306. size: 10,
  307. // 是否显示
  308. showType: true,
  309. // 年
  310. year: '',
  311. deliver_type: 1,
  312. deptBudgetTotal: 0,
  313. currentPage: 1,
  314. pageSize: 10,
  315. appendixIdsAdd: '',
  316. searchType: 1,
  317. searchTypeText: '未完成',
  318. searchKeyWord: '',
  319. contractType: 2,
  320. startDate: null,
  321. endDate: null,
  322. // 提交类型
  323. submitType: true,
  324. deptCircularPage: {},
  325. date: {
  326. year: dayjs().format('YYYY'),
  327. month: dayjs().format('MM'),
  328. },
  329. contractList: [],
  330. deptBudgetList: {},
  331. historyList: [],
  332. compId: sessionStorage.getItem('ws-pf_compId'),
  333. pickerBeginDateBefore: {
  334. disabledDate: (time) => {
  335. return time.getTime() > Date.now()
  336. },
  337. },
  338. accessoryTFs: false,
  339. taskTypeList: [
  340. { value: '未完成', type: 1 },
  341. { value: '已完成', type: 2 },
  342. { value: '全部合同', type: '' },
  343. ],
  344. pickerOptions: {
  345. shortcuts: [
  346. {
  347. text: '本周',
  348. onClick(picker) {
  349. const end = new Date()
  350. const start = new Date()
  351. var thisDay = start.getDay()
  352. var thisDate = start.getDate()
  353. if (thisDay != 0) {
  354. start.setDate(thisDate - thisDay)
  355. }
  356. picker.$emit('pick', [start, end])
  357. },
  358. },
  359. {
  360. text: '本月',
  361. onClick(picker) {
  362. const end = new Date()
  363. const start = new Date()
  364. start.setDate(1)
  365. picker.$emit('pick', [start, end])
  366. },
  367. },
  368. {
  369. text: '本季度',
  370. onClick(picker) {
  371. var oDate = new Date()
  372. var thisYear = oDate.getFullYear()
  373. var thisMonth = oDate.getMonth() + 1
  374. var n = Math.ceil(thisMonth / 3) // 季度
  375. var Month = n * 3 - 1
  376. var start = new Date(thisYear, Month - 2, 1)
  377. var end = new Date()
  378. picker.$emit('pick', [start, end])
  379. },
  380. },
  381. ],
  382. },
  383. value1: '',
  384. value2: '',
  385. }
  386. },
  387. activated() {
  388. //cg.viewBudget
  389. //cg.viewSpareMoney
  390. // this.getVesselData();
  391. this.getList()
  392. this.showType = this.isShow
  393. },
  394. methods: {
  395. dateFormat(fmt, date) {
  396. let ret
  397. const opt = {
  398. 'Y+': date.getFullYear().toString(), // 年
  399. 'm+': (date.getMonth() + 1).toString(), // 月
  400. 'd+': date.getDate().toString(), // 日
  401. 'H+': date.getHours().toString(), // 时
  402. // "M+": date.getMinutes().toString(), // 分
  403. // "S+": date.getSeconds().toString() // 秒
  404. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  405. }
  406. for (let k in opt) {
  407. ret = new RegExp('(' + k + ')').exec(fmt)
  408. if (ret) {
  409. fmt = fmt.replace(
  410. ret[1],
  411. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  412. )
  413. }
  414. }
  415. return fmt
  416. },
  417. handleClose() {
  418. this.accessoryTFs = false
  419. },
  420. handleSizeChange(val) {
  421. console.log(`每页 ${val} 条`)
  422. this.pageSize = val
  423. this.getList()
  424. },
  425. handleCurrentChange(val) {
  426. this.currentPage = val
  427. console.log(`当前页: ${val}`)
  428. this.getList()
  429. },
  430. getList() {
  431. getList({
  432. compId: sessionStorage.getItem('ws-pf_compId'),
  433. contractType: this.contractType,
  434. currentPage: this.currentPage,
  435. pageSize: this.pageSize,
  436. searchType: this.searchType,
  437. searchKeyWord: this.searchKeyWord,
  438. startDate: this.startDate,
  439. endDate: this.endDate,
  440. contrPage: this.contrPage,
  441. })
  442. .toPromise()
  443. .then((response) => {
  444. for (var i = 0; i < response.records.length; i++) {
  445. if (response.records[i].addressUrl != null) {
  446. response.records[i].addressUrlArray = response.records[
  447. i
  448. ].addressUrl.split(',')
  449. } else {
  450. response.records[i].addressUrlArray = []
  451. }
  452. }
  453. this.deptCircularPage.currentPage = response.current
  454. this.deptCircularPage.pageSize = response.size
  455. this.deptBudgetTotal = response.total
  456. this.contractList = response
  457. })
  458. },
  459. // 上传附件
  460. uploadSuccess(data, files, url) {
  461. console.log(data, files, url)
  462. // this.deptBudgetList.
  463. // this.formData.append('files', files)
  464. // this.feedbackObj.uploadNameAttachment = data.appendixName
  465. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  466. // // this.newAppendixs = files
  467. // this.onChangeFlag = true
  468. },
  469. editClick(row) {
  470. var status = ''
  471. if (row.status == '待执行' || row.status == '已完成') {
  472. status = '执行中'
  473. } else if (row.status == '执行中') {
  474. status = '已完成'
  475. }
  476. this.$confirm(`是否将状态改为${status}`, '提示', {
  477. confirmButtonText: '确定',
  478. cancelButtonText: '取消',
  479. type: 'warning',
  480. })
  481. .then(() => {
  482. editstatus({ id: row.id })
  483. .toPromise()
  484. .then((response) => {
  485. this.$notify.success({
  486. title: '成功',
  487. message: '状态修改成功',
  488. })
  489. this.getList()
  490. })
  491. .catch((response) => {
  492. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  493. })
  494. })
  495. .catch(() => {
  496. return false
  497. })
  498. },
  499. selecttaskType(e) {
  500. for (var i = 0; i < this.taskTypeList.length; i++) {
  501. if (this.taskTypeList[i].value == e) {
  502. this.searchType = this.taskTypeList[i].type
  503. }
  504. }
  505. },
  506. fujian(row) {
  507. if (
  508. row.receiveAttachmentPath === null ||
  509. row.receiveAttachmentPath === ''
  510. ) {
  511. EventBus.$emit(
  512. 'warning',
  513. this.$t('system.noticeCircular.NoInformation')
  514. )
  515. } else {
  516. this.accessoryTFs = true
  517. }
  518. this.appendixIdss = row.receiveAttachmentPath
  519. },
  520. handleExamine(row) {
  521. console.log(row)
  522. this.$router.push({
  523. name: 'purchaseContractExamine',
  524. query: { id: row.id, status: row.status },
  525. })
  526. },
  527. handleAdd() {
  528. this.$router.push({ path: 'purchaseContractAdd' })
  529. },
  530. handleEdit(row) {
  531. this.$router.push({
  532. name: 'purchaseContractEdit',
  533. query: { id: row.id },
  534. })
  535. },
  536. // 关闭 dialog时 处理文件url 初始化upload组件
  537. handleCloe() {
  538. this.dialogViewSpareMoney = false
  539. },
  540. history(row) {
  541. console.log(row)
  542. billoperatehis({ id: row.id })
  543. .toPromise()
  544. .then((response) => {
  545. this.historyList = response
  546. })
  547. },
  548. find() {
  549. if (this.value2) {
  550. this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
  551. this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
  552. } else {
  553. this.startDate = ''
  554. this.endDate = ''
  555. }
  556. this.currentPage = 1
  557. this.getList()
  558. },
  559. async exportlist() {
  560. const { data } = await export1(
  561. {
  562. compId: sessionStorage.getItem('ws-pf_compId'),
  563. contractType: this.contractType,
  564. currentPage: this.currentPage,
  565. pageSize: this.pageSize,
  566. searchType: this.searchType,
  567. searchKeyWord: this.searchKeyWord,
  568. startDate: this.startDate,
  569. endDate: this.endDate,
  570. },
  571. {},
  572. { responseType: 'blob' }
  573. ).toPromise()
  574. downloadFile({
  575. res: data,
  576. fileName: `${
  577. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  578. }_采购合同`,
  579. type: 'xls',
  580. })
  581. },
  582. // deletecontract(){},
  583. //删除
  584. handleDelete(row) {
  585. console.log(row.deliverType,"sjkdsjkdj")
  586. if (row.deliverType == 1 ) {
  587. //删除对应的临时库提示框
  588. this.$confirm('删除该合同将同时永久删除合同对应的临时库相关数据,是否确定删除?',{
  589. confirmButtonText:'删除',
  590. cancelButtonText: '取消',
  591. })
  592. .then(() => {
  593. deletecontract({ id: row.id })
  594. .toPromise()
  595. .then((response) => {
  596. this.$notify.success({
  597. title: '成功',
  598. message: '删除成功',
  599. })
  600. this.getList()
  601. })
  602. .catch((response) => {
  603. })
  604. })
  605. } else {
  606. this.$confirm(`合同删除后不可恢复,是否继续删除?`, '提示', {
  607. confirmButtonText: '确定',
  608. cancelButtonText: '取消',
  609. type: 'warning',
  610. })
  611. .then(() => {
  612. deletecontract({ id: row.id })
  613. .toPromise()
  614. .then((response) => {
  615. this.$notify.success({
  616. title: '成功',
  617. message: '删除成功',
  618. })
  619. this.getList()
  620. })
  621. .catch((response) => {
  622. })
  623. })
  624. .catch(() => {
  625. return false
  626. })
  627. }
  628. },
  629. },
  630. }
  631. </script>
  632. <style lang="scss" scoped>
  633. .vertical-text-left {
  634. width: 62px;
  635. text-align: right;
  636. }
  637. .flex {
  638. display: flex;
  639. }
  640. .el-range-editor.el-input__inner {
  641. margin-left: 10px;
  642. }
  643. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  644. width: 30px;
  645. margin-left: -10px;
  646. border-top-left-radius: 0px;
  647. border-bottom-left-radius: 0px;
  648. }
  649. .el-button--primary {
  650. background-color: #5878e8;
  651. border-color: #5878e8;
  652. }
  653. .el-button--default {
  654. border: 1px solid #5473e8;
  655. color: #5473e8;
  656. }
  657. .warning {
  658. width: 100%;
  659. height: 2px;
  660. background: red;
  661. }
  662. .executory,
  663. .inExecution,
  664. .done {
  665. width: 6px;
  666. height: 6px;
  667. display: inline-block;
  668. border-radius: 50%;
  669. position: relative;
  670. top: -1px;
  671. }
  672. .executory {
  673. background: #ff9f24;
  674. }
  675. .inExecution {
  676. background: #5878e8;
  677. }
  678. .done {
  679. background: #50cad4;
  680. }
  681. .top-grade {
  682. background: linear-gradient(90deg, #5678e9, #7993f6);
  683. color: #fff;
  684. padding: 3px;
  685. border-radius: 2px;
  686. }
  687. .second-class {
  688. background: linear-gradient(90deg, #50cdd9, #82e2ea);
  689. color: #fff;
  690. padding: 3px;
  691. border-radius: 2px;
  692. }
  693. .third-class {
  694. background: linear-gradient(90deg, #ffa735, #ffbf70);
  695. color: #fff;
  696. padding: 3px;
  697. border-radius: 2px;
  698. }
  699. .substandard {
  700. background: linear-gradient(90deg, #b2b4bb, #ced0d5);
  701. color: #fff;
  702. padding: 3px;
  703. border-radius: 2px;
  704. }
  705. .wrap {
  706. width: 400px;
  707. position: absolute;
  708. top: 131px;
  709. left: 794px;
  710. transform-origin: right center;
  711. z-index: 2005;
  712. }
  713. .vertical-line {
  714. height: 100px;
  715. border-left: 2px solid #e9ecf7;
  716. margin-left: 4px;
  717. padding: 0 3px;
  718. // border-image: -webkit-linear-gradient(#00eba7, #08b8e6) 30 30;
  719. // border-image: -moz-linear-gradient(#00eba7, #08b8e6) 30 30;
  720. // border-image: linear-gradient(#00eba7, #08b8e6) 30 30;
  721. }
  722. .el-pagination {
  723. padding: 10px 15px;
  724. margin-bottom: 0;
  725. text-align: center;
  726. }
  727. /deep/.el-pager li.active {
  728. color: #5878e8;
  729. cursor: default;
  730. }
  731. /deep/.el-pager li:hover {
  732. color: #5878e8;
  733. cursor: default;
  734. }
  735. .vertical-circle {
  736. width: 10px;
  737. height: 10px;
  738. border: 2px solid #5878e8;
  739. background-color: #ffffff;
  740. -webkit-border-radius: 100px;
  741. }
  742. .vertical-circle:first-child {
  743. color: red;
  744. }
  745. .vertical-text {
  746. margin: 0 10px;
  747. color: #8890b1;
  748. font-size: 12px;
  749. margin-top: -4px;
  750. }
  751. /deep/.el-table .el-table__header .cell,
  752. /deep/.el-table .el-table__body .cell {
  753. text-align: center;
  754. }
  755. .typeselect {
  756. width: 500px;
  757. }
  758. .padding-xs {
  759. padding: 15px;
  760. text-align: right;
  761. }
  762. .clearfix:after {
  763. content: '';
  764. display: block;
  765. clear: both;
  766. }
  767. .el-table {
  768. font-size: 16px;
  769. }
  770. .taskType {
  771. width: 100%;
  772. background-color: #fff;
  773. margin-top: 2px;
  774. margin-bottom: 10px;
  775. list-style: none;
  776. // padding-bottom: 20px;
  777. li {
  778. float: left;
  779. border: 1px solid #6ea0f3;
  780. border-radius: 5px;
  781. max-width: 190px;
  782. padding: 0 5px;
  783. text-align: center;
  784. margin: 10px 20px;
  785. cursor: pointer;
  786. font-size: 14px;
  787. p {
  788. margin: 8px 0px;
  789. span {
  790. color: #e74c3c;
  791. }
  792. }
  793. }
  794. li:hover {
  795. background-color: #e4eeff;
  796. color: #1d6ced;
  797. }
  798. }
  799. .el-date-editor--date {
  800. margin: 0 10px;
  801. }
  802. .findValue {
  803. margin: 0 10px;
  804. }
  805. /deep/.findValue .el-input__inner {
  806. border-top-right-radius: 0px;
  807. border-bottom-right-radius: 0px;
  808. }
  809. .button-container {
  810. display: flex;
  811. flex-wrap: nowrap;
  812. justify-content: space-between;
  813. align-items: center;
  814. background-color: #fff;
  815. width: 100%;
  816. height: 50px;
  817. padding: 0 10px;
  818. & > div {
  819. margin-left: 10px;
  820. display: flex;
  821. flex-wrap: nowrap;
  822. flex-direction: row;
  823. & > span {
  824. line-height: 50px;
  825. }
  826. }
  827. /deep/.auditFlow-box {
  828. position: unset;
  829. margin-left: 10px;
  830. &/deep/.auditFlow-icon {
  831. width: auto;
  832. padding-right: 30px;
  833. }
  834. &/deep/.auditFlow-main {
  835. position: absolute;
  836. }
  837. }
  838. }
  839. .box-app {
  840. display: inline-block;
  841. float: left;
  842. margin-left: 30px;
  843. line-height: 50px;
  844. }
  845. /deep/.el-dialog {
  846. .el-form-item {
  847. margin-bottom: 0 !important;
  848. .el-input--medium {
  849. textarea {
  850. min-height: 100px !important;
  851. }
  852. }
  853. }
  854. }
  855. .collapse-bottom {
  856. margin-bottom: 20px;
  857. }
  858. .input-main .textarea .el-textarea__inner {
  859. width: 100%;
  860. z-index: 1;
  861. }
  862. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  863. /* height: 82px;*/
  864. /*}*/
  865. // 控制select为只读的时候显示样式
  866. .hide-sel {
  867. .el-input__inner {
  868. border: 0px;
  869. }
  870. .el-icon-arrow-up {
  871. display: none;
  872. }
  873. .el-textarea__inner {
  874. background-color: #fff !important;
  875. border: 0;
  876. }
  877. .el-date-editor {
  878. i {
  879. display: none;
  880. }
  881. }
  882. .is-disabled {
  883. .el-input__inner:hover {
  884. background-color: #fff !important;
  885. border: 0;
  886. }
  887. color: #606266;
  888. .el-input__inner {
  889. background-color: #fff !important;
  890. border: 0;
  891. color: #606266;
  892. }
  893. .el-textarea__inner {
  894. background-color: #fff !important;
  895. border: 0;
  896. color: #606266;
  897. }
  898. }
  899. }
  900. // 控制select为只读的时候显示样式
  901. /deep/.ws-class-table-col {
  902. height: auto;
  903. padding: 0px 2px;
  904. /deep/.el-input__inner {
  905. padding: 0px 2px;
  906. }
  907. }
  908. /deep/.is-disabled {
  909. .el-input__prefix,
  910. .el-input__suffix {
  911. display: none;
  912. }
  913. .el-input__inner {
  914. background-color: #fff;
  915. border-color: #fff !important;
  916. color: #000 !important;
  917. font-size: 14px;
  918. cursor: text;
  919. padding: 0 !important;
  920. }
  921. }
  922. </style>