purchaseContract.vue 28 KB

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