purchaseContract.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  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. deptBudgetTotal: 0,
  312. currentPage: 1,
  313. pageSize: 10,
  314. appendixIdsAdd: '',
  315. searchType: 1,
  316. searchTypeText: '未完成',
  317. searchKeyWord: '',
  318. contractType: 2,
  319. startDate: null,
  320. endDate: null,
  321. // 提交类型
  322. submitType: true,
  323. deptCircularPage: {},
  324. date: {
  325. year: dayjs().format('YYYY'),
  326. month: dayjs().format('MM'),
  327. },
  328. contractList: [],
  329. deptBudgetList: {},
  330. historyList: [],
  331. compId: sessionStorage.getItem('ws-pf_compId'),
  332. pickerBeginDateBefore: {
  333. disabledDate: (time) => {
  334. return time.getTime() > Date.now()
  335. },
  336. },
  337. accessoryTFs: false,
  338. taskTypeList: [
  339. { value: '未完成', type: 1 },
  340. { value: '已完成', type: 2 },
  341. { value: '全部合同', type: '' },
  342. ],
  343. pickerOptions: {
  344. shortcuts: [
  345. {
  346. text: '本周',
  347. onClick(picker) {
  348. const end = new Date()
  349. const start = new Date()
  350. var thisDay = start.getDay()
  351. var thisDate = start.getDate()
  352. if (thisDay != 0) {
  353. start.setDate(thisDate - thisDay)
  354. }
  355. picker.$emit('pick', [start, end])
  356. },
  357. },
  358. {
  359. text: '本月',
  360. onClick(picker) {
  361. const end = new Date()
  362. const start = new Date()
  363. start.setDate(1)
  364. picker.$emit('pick', [start, end])
  365. },
  366. },
  367. {
  368. text: '本季度',
  369. onClick(picker) {
  370. var oDate = new Date()
  371. var thisYear = oDate.getFullYear()
  372. var thisMonth = oDate.getMonth() + 1
  373. var n = Math.ceil(thisMonth / 3) // 季度
  374. var Month = n * 3 - 1
  375. var start = new Date(thisYear, Month - 2, 1)
  376. var end = new Date()
  377. picker.$emit('pick', [start, end])
  378. },
  379. },
  380. ],
  381. },
  382. value1: '',
  383. value2: '',
  384. }
  385. },
  386. activated() {
  387. //cg.viewBudget
  388. //cg.viewSpareMoney
  389. // this.getVesselData();
  390. this.getList()
  391. this.showType = this.isShow
  392. },
  393. methods: {
  394. dateFormat(fmt, date) {
  395. let ret
  396. const opt = {
  397. 'Y+': date.getFullYear().toString(), // 年
  398. 'm+': (date.getMonth() + 1).toString(), // 月
  399. 'd+': date.getDate().toString(), // 日
  400. 'H+': date.getHours().toString(), // 时
  401. // "M+": date.getMinutes().toString(), // 分
  402. // "S+": date.getSeconds().toString() // 秒
  403. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  404. }
  405. for (let k in opt) {
  406. ret = new RegExp('(' + k + ')').exec(fmt)
  407. if (ret) {
  408. fmt = fmt.replace(
  409. ret[1],
  410. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  411. )
  412. }
  413. }
  414. return fmt
  415. },
  416. handleClose() {
  417. this.accessoryTFs = false
  418. },
  419. handleSizeChange(val) {
  420. console.log(`每页 ${val} 条`)
  421. this.pageSize = val
  422. this.getList()
  423. },
  424. handleCurrentChange(val) {
  425. this.currentPage = val
  426. console.log(`当前页: ${val}`)
  427. this.getList()
  428. },
  429. getList() {
  430. getList({
  431. compId: sessionStorage.getItem('ws-pf_compId'),
  432. contractType: this.contractType,
  433. currentPage: this.currentPage,
  434. pageSize: this.pageSize,
  435. searchType: this.searchType,
  436. searchKeyWord: this.searchKeyWord,
  437. startDate: this.startDate,
  438. endDate: this.endDate,
  439. contrPage: this.contrPage,
  440. })
  441. .toPromise()
  442. .then((response) => {
  443. for (var i = 0; i < response.records.length; i++) {
  444. if (response.records[i].addressUrl != null) {
  445. response.records[i].addressUrlArray = response.records[
  446. i
  447. ].addressUrl.split(',')
  448. } else {
  449. response.records[i].addressUrlArray = []
  450. }
  451. }
  452. this.deptCircularPage.currentPage = response.current
  453. this.deptCircularPage.pageSize = response.size
  454. this.deptBudgetTotal = response.total
  455. this.contractList = response
  456. })
  457. },
  458. // 上传附件
  459. uploadSuccess(data, files, url) {
  460. console.log(data, files, url)
  461. // this.deptBudgetList.
  462. // this.formData.append('files', files)
  463. // this.feedbackObj.uploadNameAttachment = data.appendixName
  464. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  465. // // this.newAppendixs = files
  466. // this.onChangeFlag = true
  467. },
  468. editClick(row) {
  469. var status = ''
  470. if (row.status == '待执行' || row.status == '已完成') {
  471. status = '执行中'
  472. } else if (row.status == '执行中') {
  473. status = '已完成'
  474. }
  475. this.$confirm(`是否将状态改为${status}`, '提示', {
  476. confirmButtonText: '确定',
  477. cancelButtonText: '取消',
  478. type: 'warning',
  479. })
  480. .then(() => {
  481. editstatus({ id: row.id })
  482. .toPromise()
  483. .then((response) => {
  484. this.$notify.success({
  485. title: '成功',
  486. message: '状态修改成功',
  487. })
  488. this.getList()
  489. })
  490. .catch((response) => {
  491. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  492. })
  493. })
  494. .catch(() => {
  495. return false
  496. })
  497. },
  498. selecttaskType(e) {
  499. for (var i = 0; i < this.taskTypeList.length; i++) {
  500. if (this.taskTypeList[i].value == e) {
  501. this.searchType = this.taskTypeList[i].type
  502. }
  503. }
  504. },
  505. fujian(row) {
  506. if (
  507. row.receiveAttachmentPath === null ||
  508. row.receiveAttachmentPath === ''
  509. ) {
  510. EventBus.$emit(
  511. 'warning',
  512. this.$t('system.noticeCircular.NoInformation')
  513. )
  514. } else {
  515. this.accessoryTFs = true
  516. }
  517. this.appendixIdss = row.receiveAttachmentPath
  518. },
  519. handleExamine(row) {
  520. console.log(row)
  521. this.$router.push({
  522. name: 'purchaseContractExamine',
  523. query: { id: row.id, status: row.status },
  524. })
  525. },
  526. handleAdd() {
  527. this.$router.push({ path: 'purchaseContractAdd' })
  528. },
  529. handleEdit(row) {
  530. this.$router.push({
  531. name: 'purchaseContractEdit',
  532. query: { id: row.id },
  533. })
  534. },
  535. // 关闭 dialog时 处理文件url 初始化upload组件
  536. handleCloe() {
  537. this.dialogViewSpareMoney = false
  538. },
  539. history(row) {
  540. console.log(row)
  541. billoperatehis({ id: row.id })
  542. .toPromise()
  543. .then((response) => {
  544. this.historyList = response
  545. })
  546. },
  547. find() {
  548. if (this.value2) {
  549. this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
  550. this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
  551. } else {
  552. this.startDate = ''
  553. this.endDate = ''
  554. }
  555. this.currentPage = 1
  556. this.getList()
  557. },
  558. async exportlist() {
  559. const { data } = await export1(
  560. {
  561. compId: sessionStorage.getItem('ws-pf_compId'),
  562. contractType: this.contractType,
  563. currentPage: this.currentPage,
  564. pageSize: this.pageSize,
  565. searchType: this.searchType,
  566. searchKeyWord: this.searchKeyWord,
  567. startDate: this.startDate,
  568. endDate: this.endDate,
  569. },
  570. {},
  571. { responseType: 'blob' }
  572. ).toPromise()
  573. downloadFile({
  574. res: data,
  575. fileName: `${
  576. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  577. }_采购合同`,
  578. type: 'xls',
  579. })
  580. },
  581. // deletecontract(){},
  582. //删除
  583. handleDelete(row) {
  584. var handleDelete = ' ' //sfdkd
  585. if (row.handleDelete == '待执行' || row.handleDelete == '已完成') {
  586. handleDelete = '执行中'
  587. } else if (row.handleDelete == '执行中') {
  588. handleDelete = '已完成'
  589. }
  590. this.$confirm(`合同删除后不可恢复,是否继续删除?`, '提示', {
  591. confirmButtonText: '确定',
  592. cancelButtonText: '取消',
  593. type: 'warning',
  594. })
  595. .then(() => {
  596. deletecontract({ id: row.id })
  597. .toPromise()
  598. .then((response) => {
  599. this.$notify.success({
  600. title: '成功',
  601. message: '删除成功',
  602. })
  603. this.getList()
  604. })
  605. .catch((response) => {
  606. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  607. })
  608. })
  609. .catch(() => {
  610. return false
  611. })
  612. },
  613. },
  614. }
  615. </script>
  616. <style lang="scss" scoped>
  617. .vertical-text-left {
  618. width: 62px;
  619. text-align: right;
  620. }
  621. .flex {
  622. display: flex;
  623. }
  624. .el-range-editor.el-input__inner {
  625. margin-left: 10px;
  626. }
  627. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  628. width: 30px;
  629. margin-left: -10px;
  630. border-top-left-radius: 0px;
  631. border-bottom-left-radius: 0px;
  632. }
  633. .el-button--primary {
  634. background-color: #5878e8;
  635. border-color: #5878e8;
  636. }
  637. .el-button--default {
  638. border: 1px solid #5473e8;
  639. color: #5473e8;
  640. }
  641. .warning {
  642. width: 100%;
  643. height: 2px;
  644. background: red;
  645. }
  646. .executory,
  647. .inExecution,
  648. .done {
  649. width: 6px;
  650. height: 6px;
  651. display: inline-block;
  652. border-radius: 50%;
  653. position: relative;
  654. top: -1px;
  655. }
  656. .executory {
  657. background: #ff9f24;
  658. }
  659. .inExecution {
  660. background: #5878e8;
  661. }
  662. .done {
  663. background: #50cad4;
  664. }
  665. .top-grade {
  666. background: linear-gradient(90deg, #5678e9, #7993f6);
  667. color: #fff;
  668. padding: 3px;
  669. border-radius: 2px;
  670. }
  671. .second-class {
  672. background: linear-gradient(90deg, #50cdd9, #82e2ea);
  673. color: #fff;
  674. padding: 3px;
  675. border-radius: 2px;
  676. }
  677. .third-class {
  678. background: linear-gradient(90deg, #ffa735, #ffbf70);
  679. color: #fff;
  680. padding: 3px;
  681. border-radius: 2px;
  682. }
  683. .substandard {
  684. background: linear-gradient(90deg, #b2b4bb, #ced0d5);
  685. color: #fff;
  686. padding: 3px;
  687. border-radius: 2px;
  688. }
  689. .wrap {
  690. width: 400px;
  691. position: absolute;
  692. top: 131px;
  693. left: 794px;
  694. transform-origin: right center;
  695. z-index: 2005;
  696. }
  697. .vertical-line {
  698. height: 100px;
  699. border-left: 2px solid #e9ecf7;
  700. margin-left: 4px;
  701. padding: 0 3px;
  702. // border-image: -webkit-linear-gradient(#00eba7, #08b8e6) 30 30;
  703. // border-image: -moz-linear-gradient(#00eba7, #08b8e6) 30 30;
  704. // border-image: linear-gradient(#00eba7, #08b8e6) 30 30;
  705. }
  706. .el-pagination {
  707. padding: 10px 15px;
  708. margin-bottom: 0;
  709. text-align: center;
  710. }
  711. /deep/.el-pager li.active {
  712. color: #5878e8;
  713. cursor: default;
  714. }
  715. /deep/.el-pager li:hover {
  716. color: #5878e8;
  717. cursor: default;
  718. }
  719. .vertical-circle {
  720. width: 10px;
  721. height: 10px;
  722. border: 2px solid #5878e8;
  723. background-color: #ffffff;
  724. -webkit-border-radius: 100px;
  725. }
  726. .vertical-circle:first-child {
  727. color: red;
  728. }
  729. .vertical-text {
  730. margin: 0 10px;
  731. color: #8890b1;
  732. font-size: 12px;
  733. margin-top: -4px;
  734. }
  735. /deep/.el-table .el-table__header .cell,
  736. /deep/.el-table .el-table__body .cell {
  737. text-align: center;
  738. }
  739. .typeselect {
  740. width: 500px;
  741. }
  742. .padding-xs {
  743. padding: 15px;
  744. text-align: right;
  745. }
  746. .clearfix:after {
  747. content: '';
  748. display: block;
  749. clear: both;
  750. }
  751. .el-table {
  752. font-size: 16px;
  753. }
  754. .taskType {
  755. width: 100%;
  756. background-color: #fff;
  757. margin-top: 2px;
  758. margin-bottom: 10px;
  759. list-style: none;
  760. // padding-bottom: 20px;
  761. li {
  762. float: left;
  763. border: 1px solid #6ea0f3;
  764. border-radius: 5px;
  765. max-width: 190px;
  766. padding: 0 5px;
  767. text-align: center;
  768. margin: 10px 20px;
  769. cursor: pointer;
  770. font-size: 14px;
  771. p {
  772. margin: 8px 0px;
  773. span {
  774. color: #e74c3c;
  775. }
  776. }
  777. }
  778. li:hover {
  779. background-color: #e4eeff;
  780. color: #1d6ced;
  781. }
  782. }
  783. .el-date-editor--date {
  784. margin: 0 10px;
  785. }
  786. .findValue {
  787. margin: 0 10px;
  788. }
  789. /deep/.findValue .el-input__inner {
  790. border-top-right-radius: 0px;
  791. border-bottom-right-radius: 0px;
  792. }
  793. .button-container {
  794. display: flex;
  795. flex-wrap: nowrap;
  796. justify-content: space-between;
  797. align-items: center;
  798. background-color: #fff;
  799. width: 100%;
  800. height: 50px;
  801. padding: 0 10px;
  802. & > div {
  803. margin-left: 10px;
  804. display: flex;
  805. flex-wrap: nowrap;
  806. flex-direction: row;
  807. & > span {
  808. line-height: 50px;
  809. }
  810. }
  811. /deep/.auditFlow-box {
  812. position: unset;
  813. margin-left: 10px;
  814. &/deep/.auditFlow-icon {
  815. width: auto;
  816. padding-right: 30px;
  817. }
  818. &/deep/.auditFlow-main {
  819. position: absolute;
  820. }
  821. }
  822. }
  823. .box-app {
  824. display: inline-block;
  825. float: left;
  826. margin-left: 30px;
  827. line-height: 50px;
  828. }
  829. /deep/.el-dialog {
  830. .el-form-item {
  831. margin-bottom: 0 !important;
  832. .el-input--medium {
  833. textarea {
  834. min-height: 100px !important;
  835. }
  836. }
  837. }
  838. }
  839. .collapse-bottom {
  840. margin-bottom: 20px;
  841. }
  842. .input-main .textarea .el-textarea__inner {
  843. width: 100%;
  844. z-index: 1;
  845. }
  846. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  847. /* height: 82px;*/
  848. /*}*/
  849. // 控制select为只读的时候显示样式
  850. .hide-sel {
  851. .el-input__inner {
  852. border: 0px;
  853. }
  854. .el-icon-arrow-up {
  855. display: none;
  856. }
  857. .el-textarea__inner {
  858. background-color: #fff !important;
  859. border: 0;
  860. }
  861. .el-date-editor {
  862. i {
  863. display: none;
  864. }
  865. }
  866. .is-disabled {
  867. .el-input__inner:hover {
  868. background-color: #fff !important;
  869. border: 0;
  870. }
  871. color: #606266;
  872. .el-input__inner {
  873. background-color: #fff !important;
  874. border: 0;
  875. color: #606266;
  876. }
  877. .el-textarea__inner {
  878. background-color: #fff !important;
  879. border: 0;
  880. color: #606266;
  881. }
  882. }
  883. }
  884. // 控制select为只读的时候显示样式
  885. /deep/.ws-class-table-col {
  886. height: auto;
  887. padding: 0px 2px;
  888. /deep/.el-input__inner {
  889. padding: 0px 2px;
  890. }
  891. }
  892. /deep/.is-disabled {
  893. .el-input__prefix,
  894. .el-input__suffix {
  895. display: none;
  896. }
  897. .el-input__inner {
  898. background-color: #fff;
  899. border-color: #fff !important;
  900. color: #000 !important;
  901. font-size: 14px;
  902. cursor: text;
  903. padding: 0 !important;
  904. }
  905. }
  906. </style>