inOutWarehouseTaskEdit.vue 26 KB

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