inOutWarehouseTaskEdit.vue 28 KB

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