salesContract.vue 28 KB

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