purchaseContract.vue 23 KB

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