purchaseContract.vue 27 KB

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