inOutWarehouseTaskEdit.vue 26 KB

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