inOutWarehouseTaskEdit.vue 28 KB

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