inOutWarehouseTaskEdit.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. // 查看出入库任务
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">查看出入库任务</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
  10. <img
  11. width="6"
  12. height="10"
  13. style="vertical-align: bottom; margin-right: 3px"
  14. src="../../../public/img/lujing.png"
  15. alt
  16. />返回
  17. </el-button>
  18. </el-col>
  19. </el-row>
  20. <div class="basicInformation">
  21. <div class="nav">
  22. <span class="ziti">
  23. 任务类型:
  24. <h1 class="ziti1" v-show="dataList.inOutType == '移库入库'||dataList.inOutType == '移库出库'"> 移库任务</h1>
  25. <h1 class="ziti1" v-show="dataList.inOutType == '销售出库'||dataList.inOutType == '暂存出库'||dataList.inOutType == '贸易服务出库'||dataList.inOutType == '采购出库'"> 出库任务</h1>
  26. <h1 class="ziti1" v-show="dataList.inOutType == '采购入库'||dataList.inOutType == '暂存入库'||dataList.inOutType == '贸易服务入库'||dataList.inOutType == '退库'"> 入库任务</h1>
  27. </span>
  28. </div>
  29. <div class="nav2"></div>
  30. <div v-if="dataList.taskTypeKey != 2&&dataList.taskTypeKey != 4" class="center1">
  31. <!--出库=-->
  32. <div class="small-title">
  33. <img
  34. style="position: relative; top: 40px; left: -22px;"
  35. width="19"
  36. height="19"
  37. src="../../../public/img/cangku.png"
  38. alt
  39. />
  40. <h3>出库任务({{ dataList.inOutTaskNo }} )</h3>
  41. </div>
  42. <el-form ref="dataList" :model="dataList" label-width="140px">
  43. <!-- 仓库名 -->
  44. <el-form-item label="仓库名">
  45. <el-option
  46. v-for="item in warehouseNameList"
  47. :key="item.constKey"
  48. :label="item.warehouseName"
  49. :value="item.warehouseName"
  50. />
  51. {{dataList.warehouseName}}
  52. <!-- </el-select> -->
  53. </el-form-item>
  54. <!-- 出库类型 -->
  55. <el-form-item label="出库类型">
  56. <el-option
  57. v-for="item in storageType"
  58. :key="item.constKey"
  59. v-if="
  60. (dataList.taskTypeKey == 1 &&
  61. item.constValue != '移库出库') ||
  62. (dataList.taskTypeKey == 3 &&
  63. item.constValue == '移库出库') ||
  64. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  65. "
  66. :label="item.constValue"
  67. :value="item.constValue"
  68. />
  69. {{dataList.inOutType}}
  70. <!-- </el-select> -->
  71. </el-form-item>
  72. <!-- 合同编号 -->
  73. <!-- 合同编号 -->
  74. <el-form-item label="合同编号" v-if="dataList.taskTypeKey != 3">
  75. {{dataList.contractNo}}
  76. </el-form-item>
  77. <el-form-item label="移库任务编号" v-if="dataList.taskTypeKey == 3">
  78. {{dataList.moveTaskNo}}
  79. </el-form-item>
  80. <!-- 货名 -->
  81. <el-form-item label="货名" class="huom">
  82. <el-option
  83. v-for="item in goodnameList"
  84. :key="item.constKey"
  85. :label="item.constValue"
  86. :value="item.constValue"
  87. ></el-option>
  88. {{dataList.goodsName}}
  89. <!-- </el-select> -->
  90. </el-form-item>
  91. <!--重量(吨)-->
  92. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  93. {{dataList.weight}}
  94. </el-form-item>
  95. <!-- 品级 -->
  96. <el-form-item label="品级">
  97. <el-option
  98. v-for="item in gradeList"
  99. :key="item.constKey"
  100. :label="item.constValue"
  101. :value="item.constValue"
  102. />
  103. {{dataList.grade}}
  104. <!-- </el-select> -->
  105. </el-form-item>
  106. <!--容重(克/升)>=-->
  107. <el-form-item label="容重(克/升)>=">
  108. {{dataList.bulkDensity}}
  109. </el-form-item>
  110. <!--水分(%)<=-->
  111. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  112. {{dataList.waterContent}}
  113. </el-form-item>
  114. <!--单价(元/吨)-->
  115. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  116. {{dataList.unitPrice}}
  117. </el-form-item>
  118. <!--预计出库日期-->
  119. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  120. {{dataList.predictDate}}
  121. </el-form-item>
  122. <!--经办人-->
  123. <el-form-item label="出库经办人">
  124. {{dataList.agent}}
  125. <el-option
  126. v-for="item in options"
  127. :key="item.value"
  128. :label="item.staffName"
  129. :value="item.staffName"
  130. />
  131. </el-form-item>
  132. <!--业务描述=-->
  133. <el-form-item label="业务描述">
  134. {{dataList.businessDescribe}}
  135. </el-form-item>
  136. </el-form>
  137. </div>
  138. <div v-if="dataList.taskTypeKey != 1" class="center1">
  139. <div class="small-title">
  140. <img
  141. style="position: relative; top: 40px; left: -22px;"
  142. width="19"
  143. height="19"
  144. src="../../../public/img/cangku.png"
  145. alt
  146. />
  147. <h3>入库任务({{dataList1.inOutTaskNo }} )</h3>
  148. </div>
  149. <el-form ref="form" :model="form" label-width="140px">
  150. <!-- 仓库名 -->
  151. <el-form-item label="仓库名">
  152. {{dataList1.warehouseName}}
  153. <el-option
  154. v-for="item in warehouseNameList"
  155. :key="item.constKey"
  156. :label="item.warehouseName"
  157. :value="item.warehouseName"
  158. />
  159. </el-form-item>
  160. <!-- 出库类型 -->
  161. <el-form-item label="入库类型">
  162. <el-option
  163. v-for="item in storageType1"
  164. :key="item.constKey"
  165. v-if="
  166. (dataList.taskTypeKey == 2 &&
  167. item.constValue != '移库入库') ||
  168. (dataList.taskTypeKey == 3 &&
  169. item.constValue == '移库入库') ||
  170. (dataList.taskTypeKey == 4 && item.constValue == '退库')
  171. "
  172. :label="item.constValue"
  173. :value="item.constValue"
  174. />
  175. {{dataList1.inOutType}}
  176. <!-- </el-select> -->
  177. </el-form-item>
  178. <!-- 合同编号 -->
  179. <el-form-item label="合同编号" v-if="dataList1.taskTypeKey != 3">
  180. {{dataList.contractNo}}
  181. </el-form-item>
  182. <el-form-item label="移库任务编号" v-if="dataList1.taskTypeKey == 3">
  183. {{dataList.moveTaskNo}}
  184. </el-form-item>
  185. <!-- 货名 -->
  186. <el-form-item label="货名" class="huom">
  187. <el-option
  188. v-for="item in goodnameList"
  189. :key="item.constKey"
  190. :label="item.constValue"
  191. :value="item.constValue"
  192. ></el-option>
  193. {{dataList1.goodsName}}
  194. </el-form-item>
  195. <!--重量(吨)-->
  196. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  197. {{dataList1.weight}}
  198. </el-form-item>
  199. <!-- 品级 -->
  200. <el-form-item label="品级">
  201. <el-option
  202. v-for="item in gradeList"
  203. :key="item.constKey"
  204. :label="item.constValue"
  205. :value="item.constValue"
  206. />
  207. {{dataList1.grade}}
  208. </el-form-item>
  209. <!--容重(克/升)>=-->
  210. <el-form-item label="容重(克/升)>=">
  211. {{dataList1.bulkDensity}}
  212. </el-form-item>
  213. <!--水分(%)<=-->
  214. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  215. {{dataList1.waterContent}}
  216. </el-form-item>
  217. <!--单价(元/吨)-->
  218. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  219. {{dataList1.unitPrice}}
  220. </el-form-item>
  221. <!--预计出库日期-->
  222. <el-form-item label="预计入库日期" span="1" prop="predictDate" class="deliverydate">
  223. {{dataList1.predictDate}}
  224. </el-form-item>
  225. <!--经办人-->
  226. <el-form-item label="入库经办人">
  227. <el-option
  228. v-for="item in options"
  229. :key="item.value"
  230. :label="item.staffName"
  231. :value="item.staffName"
  232. />
  233. {{dataList1.agent}}
  234. </el-form-item>
  235. <!--业务描述=-->
  236. <el-form-item label="业务描述">
  237. {{dataList1.businessDescribe}}
  238. </el-form-item>
  239. </el-form>
  240. </div>
  241. <div v-if="dataList.taskTypeKey == 4" class="center1">
  242. <!--出库=-->
  243. <div class="small-title">
  244. <img
  245. style="position: relative; top: 40px; left: -22px;"
  246. width="19"
  247. height="19"
  248. src="../../../public/img/cangku.png"
  249. alt
  250. />
  251. <h3>出库任务({{ dataList.inOutTaskNo }} )</h3>
  252. </div>
  253. <el-form ref="dataList" :model="dataList" label-width="140px">
  254. <!-- 仓库名 -->
  255. <el-form-item label="仓库名">
  256. <el-option
  257. v-for="item in warehouseNameList"
  258. :key="item.constKey"
  259. :label="item.warehouseName"
  260. :value="item.warehouseName"
  261. />
  262. {{dataList.warehouseName}}
  263. </el-form-item>
  264. <!-- 出库类型 -->
  265. <el-form-item label="出库类型">
  266. <el-option
  267. v-for="item in storageType"
  268. :key="item.constKey"
  269. v-if="
  270. (dataList.taskTypeKey == 1 &&
  271. item.constValue != '移库出库') ||
  272. (dataList.taskTypeKey == 3 &&
  273. item.constValue == '移库出库') ||
  274. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  275. "
  276. :label="item.constValue"
  277. :value="item.constValue"
  278. />
  279. {{dataList.inOutType}}
  280. <!-- </el-select> -->
  281. </el-form-item>
  282. <!-- 合同编号 -->
  283. <el-form-item label="合同编号">
  284. <el-option
  285. v-for="item in contractNoList"
  286. :key="item.constKey"
  287. :label="item.contractNo"
  288. :value="item.contractNo"
  289. ></el-option>
  290. {{dataList.contractNo}}
  291. <!-- </el-select> -->
  292. </el-form-item>
  293. <!-- 货名 -->
  294. <el-form-item label="货名" class="huom">
  295. <el-option
  296. v-for="item in goodnameList"
  297. :key="item.constKey"
  298. :label="item.constValue"
  299. :value="item.constValue"
  300. ></el-option>
  301. {{dataList.goodsName}}
  302. <!-- </el-select> -->
  303. </el-form-item>
  304. <!--重量(吨)-->
  305. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  306. {{dataList.weight}}
  307. </el-form-item>
  308. <!-- 品级 -->
  309. <el-form-item label="品级">
  310. <el-option
  311. v-for="item in gradeList"
  312. :key="item.constKey"
  313. :label="item.constValue"
  314. :value="item.constValue"
  315. />
  316. {{dataList.grade}}
  317. <!-- </el-select> -->
  318. </el-form-item>
  319. <!--容重(克/升)>=-->
  320. <el-form-item label="容重(克/升)>=">
  321. {{dataList.bulkDensity}}
  322. </el-form-item>
  323. <!--水分(%)<=-->
  324. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  325. {{dataList.waterContent}}
  326. </el-form-item>
  327. <!--单价(元/吨)-->
  328. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  329. {{dataList.unitPrice}}
  330. </el-form-item>
  331. <!--预计出库日期-->
  332. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  333. {{dataList.predictDate}}
  334. </el-form-item>
  335. <!--经办人-->
  336. <el-form-item label="出库经办人">
  337. {{dataList.agent}}
  338. <el-option
  339. v-for="item in options"
  340. :key="item.value"
  341. :label="item.staffName"
  342. :value="item.staffName"
  343. />
  344. <!-- </el-select> -->
  345. </el-form-item>
  346. <!--业务描述=-->
  347. <el-form-item label="业务描述">
  348. {{dataList.businessDescribe}}
  349. </el-form-item>
  350. </el-form>
  351. </div>
  352. <el-table
  353. class="wenzi"
  354. :data="taskhistories"
  355. style="width: 80%"
  356. height="180"
  357. >
  358. <el-table-column prop="operatorMajorRoleName" label="审核人">
  359. </el-table-column>
  360. <el-table-column prop="inOutTaskNo" label="审核结果">
  361. <template scope="scope">
  362. <span v-if='scope.row.approved'>通过</span>
  363. <span v-if='!scope.row.approved'>驳回</span>
  364. </template>
  365. </el-table-column>
  366. <el-table-column prop="createTime" label="审核时间"></el-table-column>
  367. <el-table-column prop="auditMind" label="驳回原因"></el-table-column>
  368. </el-table>
  369. </div>
  370. <!-- 提交 -->
  371. <div style="text-align: right; padding: 10px" class="center">
  372. <el-button class="bg-bottom" type="primary" size="small" @click="close()">关闭</el-button>
  373. </div>
  374. </div>
  375. </template>
  376. <script>
  377. import {
  378. getwarehousename,
  379. xialaNo,
  380. addoreditoutput,
  381. outexamine,
  382. gettaskhistories
  383. } from '@/model/tasksport/index'
  384. import Pagination from '@/components/Pagination'
  385. import { mapActions, mapGetters, mapState } from 'vuex'
  386. import WsUpload from '@/components/WsUpload'
  387. import { dayjs, EventBus } from 'base-core-lib'
  388. export default {
  389. name: 'viewSpareMoney',
  390. components: {
  391. WsUpload,
  392. Pagination
  393. },
  394. watch: {
  395. isShow(val) {
  396. this.showType = val
  397. }
  398. },
  399. computed: {
  400. ...mapGetters(['deptBudgetList'])
  401. },
  402. data() {
  403. return {
  404. //弹出框
  405. dialogViewSpareMoney: false,
  406. dialogApproveFormVisible: false,
  407. // 船舶类型
  408. monetaryKey: null,
  409. // 表格显示数据
  410. tableDate: [],
  411. // 是否显示
  412. showType: true,
  413. // 年
  414. year: '',
  415. contractNoList: [],
  416. deptBudgetTotal: 0,
  417. readonly: true,
  418. currentPage: 1,
  419. taskhistories:[],
  420. pageSize: 10,
  421. searchType: 1,
  422. searchKeyWord: '',
  423. radio: '1',
  424. contractType: 2,
  425. startDate: null,
  426. endDate: null,
  427. goodnameList: [],
  428. checked: true,
  429. form: {},
  430. staffList: [],
  431. options: [],
  432. storageType: [],
  433. storageType1: [],
  434. outContractNo: [],
  435. // 提交类型
  436. submitType: true,
  437. status: [],
  438. unitPricechange: [],
  439. warehouseNameList: [],
  440. warehouseNameList1: [],
  441. waterContentchange: [],
  442. appendixIdsAdd: '',
  443. uploadSuccess: {},
  444. warehouseInOutDetail: {},
  445. onChange: {},
  446. deptBudgetList1: [],
  447. gradeList: [],
  448. rules: {
  449. netWeight: [
  450. {
  451. required: true,
  452. type: 'number',
  453. message: '请输入活动名称',
  454. trigger: 'blur'
  455. }
  456. ]
  457. },
  458. size: 10,
  459. compId: sessionStorage.getItem('ws-pf_compId'),
  460. deptCircularPage: {},
  461. packtypeList: {},
  462. date: {
  463. year: dayjs().format('YYYY'),
  464. month: dayjs().format('MM')
  465. },
  466. contractList: [],
  467. inOutTaskNo: '',
  468. inOutTaskNo1: '',
  469. dataList: { taskTypeKey: '1' },
  470. dataList1: { taskTypeKey: '1' },
  471. historyList: [],
  472. pickerBeginDateBefore: {
  473. disabledDate: time => {
  474. return time.getTime() > Date.now()
  475. }
  476. },
  477. accessoryTFs: false
  478. }
  479. },
  480. mounted() {
  481. this.getList()
  482. },
  483. methods: {
  484. //返回按钮
  485. revert() {
  486. this.$router.go(-1)
  487. },
  488. returnsales() {
  489. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  490. },
  491. // 获取当前年月日
  492. getdate() {
  493. var date = new Date()
  494. var year = date.getFullYear() //获取完整的年份(4位)
  495. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  496. var datetime = date.getDate() //获取当前日(1-31)
  497. if (mouth < 10) {
  498. mouth = '0' + mouth
  499. }
  500. if (datetime < 10) {
  501. datetime = '0' + datetime
  502. }
  503. return year + mouth + datetime
  504. },
  505. // 随机验证码
  506. verifyinit() {
  507. var arr = []
  508. for (var i = 48; i < 123; i++) {
  509. if (i > 57 && i < 65) continue
  510. if (i > 90 && i < 97) continue
  511. arr.push(String.fromCharCode(i))
  512. }
  513. arr.sort(function() {
  514. return Math.random() - 0.5
  515. })
  516. arr.length = 4
  517. return arr.join('')
  518. },
  519. dataFilter(val) {
  520. // console.log(val,"名")
  521. this.deptBudgetList.staffList = val
  522. if (val) {
  523. //val存在
  524. this.options = this.staffList.filter(item => {
  525. if (
  526. !!~item.staffName.indexOf(val) ||
  527. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  528. ) {
  529. return true
  530. }
  531. })
  532. } else {
  533. //val为空时,还原数组
  534. this.options = this.staffList
  535. }
  536. },
  537. selectstaff(e) {
  538. for (var i = 0; i < this.staffList.length; i++) {
  539. if (this.staffList[i].staffName == e) {
  540. this.dataList.agentKey = this.staffList[i].staffId
  541. }
  542. }
  543. },
  544. selectstaff1(e) {
  545. for (var i = 0; i < this.staffList.length; i++) {
  546. if (this.staffList[i].staffName == e) {
  547. this.dataList1.agentKey = this.staffList[i].staffId
  548. }
  549. }
  550. },
  551. requestadd(list, status) {
  552. this.$refs.dataList.validate(valid => {
  553. if (valid) {
  554. list.compId = sessionStorage.getItem('ws-pf_compId')
  555. list.publisher =
  556. sessionStorage.getItem('ws-pf_roleName') +
  557. sessionStorage.getItem('ws-pf_staffName')
  558. addoreditoutput(list)
  559. .toPromise()
  560. .then(response => {
  561. this.$message.success('添加成功')
  562. this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
  563. })
  564. } else {
  565. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  566. return false
  567. }
  568. })
  569. },
  570. //关闭
  571. close() {
  572. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  573. },
  574. tarechange(e) {
  575. if (this.dataList.grossWeight && this.dataList.tare) {
  576. this.dataList.netWeight = Number(
  577. this.dataList.grossWeight - this.dataList.tare
  578. )
  579. }
  580. },
  581. grossWeightchange(e) {
  582. if (this.dataList.grossWeight && this.dataList.tare) {
  583. this.dataList.netWeight = Number(
  584. this.dataList.grossWeight - this.dataList.tare
  585. )
  586. }
  587. },
  588. selectgoodsName(e) {
  589. for (var i = 0; i < this.goodnameList.length; i++) {
  590. if (this.goodnameList[i].constValue == e) {
  591. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  592. }
  593. }
  594. },
  595. selectgoodsName1(e) {
  596. for (var i = 0; i < this.goodnameList.length; i++) {
  597. if (this.goodnameList[i].constValue == e) {
  598. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  599. }
  600. }
  601. },
  602. selectpackingMethod(e) {
  603. for (var i = 0; i < this.packtypeList.length; i++) {
  604. if (this.packtypeList[i].constValue == e) {
  605. this.dataList.packingMethodKey = this.packtypeList[i].constKey
  606. }
  607. }
  608. },
  609. selectpackingMethod1(e) {
  610. for (var i = 0; i < this.packtypeList.length; i++) {
  611. if (this.packtypeList[i].constValue == e) {
  612. this.dataList1.packingMethodKey = this.packtypeList[i].constKey
  613. }
  614. }
  615. },
  616. selectstorageType(e) {
  617. for (var i = 0; i < this.storageType.length; i++) {
  618. if (this.storageType[i].constValue == e) {
  619. this.dataList.inOutTypeKey = this.storageType[i].constKey
  620. }
  621. }
  622. },
  623. selectstorageType1(e) {
  624. for (var i = 0; i < this.storageType1.length; i++) {
  625. if (this.storageType1[i].constValue == e) {
  626. this.dataList1.inOutTypeKey = this.storageType[i].constKey
  627. }
  628. }
  629. },
  630. handleClose() {
  631. this.accessoryTFs = false
  632. },
  633. tasktypechange() {
  634. this.tasknumber()
  635. },
  636. GetRandomNum(Min, Max) {
  637. var Range = Max - Min
  638. var Rand = Math.random()
  639. return Min + Math.round(Rand * Range)
  640. },
  641. getList() {
  642. gettaskhistories({businessKey: this.$route.query.businessKey,workflowId: this.$route.query.workflowId}).toPromise()
  643. .then((response) => {
  644. this.taskhistories=response
  645. })
  646. outexamine({ relevanceId: this.$route.query.relevanceId })
  647. .toPromise()
  648. .then(response => {
  649. if (response.length > 1) {
  650. this.dataList = response[0]
  651. this.dataList1 = response[1]
  652. } else {
  653. if(response[0].taskTypeKey==2){
  654. this.dataList1 = response[0]
  655. }else{
  656. this.dataList = response[0]
  657. }
  658. }
  659. })
  660. },
  661. }
  662. }
  663. </script>
  664. <style lang="scss" scoped>
  665. /deep/.basicInformation {
  666. .el-info-table {
  667. border: none;
  668. position: relative;
  669. }
  670. .el-form-item {
  671. width: 33.3333%;
  672. border: none;
  673. margin: 0;
  674. .el-form-item__label {
  675. text-align: left;
  676. font-size: 14px;
  677. font-weight: 400;
  678. color: #8890b1;
  679. }
  680. .el-form-item__content {
  681. padding-left: 0px;
  682. padding-right: 10px;
  683. // background: #fff;
  684. white-space: nowrap;
  685. height: 40px;
  686. display: flex;
  687. -webkit-box-align: center;
  688. align-items: center;
  689. text-align: left;
  690. overflow: hidden;
  691. }
  692. }
  693. }
  694. /deep/.el-radio {
  695. color: #606266;
  696. font-weight: 500;
  697. line-height: 1;
  698. cursor: pointer;
  699. white-space: nowrap;
  700. outline: 0;
  701. margin-right: 30px;
  702. margin-top: 15px;
  703. }
  704. /deep/.el-radio__inner {
  705. border: 1px solid #dcdfe6;
  706. border-radius: 100%;
  707. width: 14px;
  708. height: 14px;
  709. background-color: #fff;
  710. cursor: pointer;
  711. -webkit-box-sizing: border-box;
  712. box-sizing: border-box;
  713. margin-left: 100px;
  714. }
  715. /deep/.el-radio__input {
  716. white-space: nowrap;
  717. cursor: pointer;
  718. outline: 0;
  719. line-height: 1;
  720. vertical-align: middle;
  721. margin-top: -1px;
  722. }
  723. .title {
  724. position: relative;
  725. padding-left: 10px;
  726. }
  727. .title::before {
  728. content: '';
  729. display: inline-block;
  730. width: 5px;
  731. height: 30px;
  732. background: #5473e8;
  733. position: absolute;
  734. left: 0;
  735. }
  736. .el-form {
  737. padding: 0 15%;
  738. display: flex;
  739. flex-wrap: wrap;
  740. margin-left: -50px;
  741. margin-top: 15px;
  742. width: 110%;
  743. }
  744. .el-button--primary {
  745. background-color: #5878e8;
  746. border-color: #5878e8;
  747. }
  748. .el-col {
  749. background: #f6f7fc;
  750. }
  751. .bg-right {
  752. text-align: right;
  753. padding: 16px 20px;
  754. }
  755. .center {
  756. margin: 10px auto;
  757. margin-right: 180px;
  758. }
  759. /deep/.el-form-item__label {
  760. width: 160px;
  761. }
  762. .inspector {
  763. width: 50%;
  764. }
  765. /deep/.el-form-item--small .el-form-item__label,
  766. .el-form-item--small .el-form-item__content {
  767. text-align: left;
  768. }
  769. /deep/.el-input--small {
  770. font-size: 13px;
  771. position: relative;
  772. display: inline-block;
  773. }
  774. .center1 .small-title {
  775. margin-left: 323px;
  776. }
  777. .center1 {
  778. width: 90%;
  779. margin: 0 auto;
  780. margin-left: 10px;
  781. margin-top: 25px;
  782. }
  783. /deep/.el-input--small .el-input__inner {
  784. height: 32px;
  785. line-height: 32px;
  786. }
  787. /deep/.el-select {
  788. display: inline-block;
  789. position: relative;
  790. width: 100%;
  791. }
  792. .annu {
  793. height: 81px;
  794. background: #ffffff;
  795. border-radius: 4px;
  796. }
  797. .basicInformation .el-form-item {
  798. width: 50.3333%;
  799. border: none;
  800. margin: 0;
  801. }
  802. .huom {
  803. width: 100px;
  804. }
  805. .el-form {
  806. font-size: 14px;
  807. font-family: PingFangSC-Regular, PingFang SC;
  808. font-weight: 400;
  809. color: #8890b1;
  810. line-height: 16px;
  811. margin-left: 130px;
  812. }
  813. .a {
  814. margin-left: -32px;
  815. }
  816. .el-radio-group {
  817. margin-left: 80px;
  818. }
  819. .ding {
  820. height: 23px;
  821. background: #e8ecf6;
  822. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  823. }
  824. .nav2 {
  825. height: 25px;
  826. background: #e8ecf6;
  827. margin-top: 15px;
  828. }
  829. .ziti {
  830. width: 72px;
  831. height: 20px;
  832. font-size: 14px;
  833. font-family: PingFangSC-Regular, PingFang SC;
  834. font-weight: 400;
  835. color: #8890b1;
  836. line-height: 20px;
  837. margin-left: 314px;
  838. /* margin-top: 112px; */
  839. }
  840. /deep/.ziti1 {
  841. height: 40px;
  842. font-size: 16px;
  843. font-family: PingFangSC-Medium, PingFang SC;
  844. font-weight: 500;
  845. color: #262626;
  846. line-height: 20px;
  847. margin-left: 381px;
  848. margin-top: -21px;
  849. width: 100px;
  850. }
  851. .winseaview-view {
  852. padding: 0 0 20px;
  853. }
  854. .container {
  855. overflow: scroll;
  856. height: 93vh;
  857. }
  858. /deep/.basicInformation .el-form-item .el-form-item__content {
  859. padding-left: 0px;
  860. padding-right: 10px;
  861. white-space: nowrap;
  862. height: 40px;
  863. display: -webkit-box;
  864. display: -ms-flexbox;
  865. display: flex;
  866. -webkit-box-align: center;
  867. -ms-flex-align: center;
  868. align-items: center;
  869. text-align: left;
  870. overflow: hidden;
  871. font-size: 12px;
  872. font-family: PingFangSC-Regular, PingFang SC;
  873. font-weight: 400;
  874. color: #232323;
  875. line-height: 14px;
  876. }
  877. .nav {
  878. width: 400px;
  879. height: 20px;
  880. }
  881. .wenzi{
  882. margin:0 auto;
  883. }
  884. </style>