inOutWarehouseTaskEdit.vue 26 KB

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