purchaseContract.vue 21 KB

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