inOutWarehouseTaskEdit.vue 27 KB

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