storageContract.vue 27 KB

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