purchaseContract.vue 25 KB

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