salesContract.vue 25 KB

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