purchaseContract.vue 24 KB

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