inOutWarehouseTaskEdit.vue 26 KB

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