purchaseContract.vue 24 KB

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