purchaseContract.vue 23 KB

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