salesContract.vue 27 KB

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