Issueandreceipt_task_details.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="OutList.taskStatus == '已驳回'||EnterList.taskStatus == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-else-if="OutList.taskStatus == '已通过'||EnterList.taskStatus == '已通过'||OutList.taskStatus == '执行中'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode="" v-else-if="OutList.taskStatus == '审核中'||OutList.taskStatus == '待审核'||EnterList.taskStatus == '待审核'"
  12. style="height: 40rpx;"></image><!-- 待审核 -->
  13. </view>
  14. <view class="infoText" v-if="OutList.taskStatus">{{OutList.taskStatus}}</view>
  15. <view class="infoText" v-else>{{EnterList.taskStatus}}</view>
  16. </view>
  17. <view class="infoData" v-if="OutList.updateDate">{{OutList.updateDate}}</view>
  18. <view class="infoData" v-else>{{EnterList.updateDate}}</view>
  19. </view>
  20. </view>
  21. <view class="content1">
  22. <u-form :model="OutList" ref="uForm">
  23. <u-form-item label="任务类型" prop="inOutType" label-width="140" class="uForm_item">
  24. <u-input v-model="OutList.inOutType" input-align="right" disabled v-if="OutList.inOutType" />
  25. <u-input v-model="EnterList.inOutType" input-align="right" disabled v-else />
  26. </u-form-item>
  27. <view v-if="retreatList.judge == 3 && retreatList">
  28. <!-- 退库 -->
  29. <view class="uForm_item">
  30. <view class="title part2">{{retreatList.inOutType}}</view>
  31. <view class='row'>
  32. <view class="left">编号</view>
  33. <view class="right">退库({{retreatList.inOutTaskNo}}}</view>
  34. </view>
  35. <view class='row'>
  36. <view class="left">仓库</view>
  37. <view class="right">{{retreatList.warehouseName}}</view>
  38. </view>
  39. <view class='row'>
  40. <view class="left">出库类型</view>
  41. <view class="right">{{retreatList.inOutType}}</view>
  42. </view>
  43. <view class='row' v-if="retreatList.inOutType == '移库出库'">
  44. <view class="left" style="width: 180rpx;">移库任务编号</view>
  45. <view class="right">{{retreatList.moveTaskNo}}</view>
  46. </view>
  47. <view class='row' v-if="retreatList.inOutType != '移库出库'">
  48. <view class="left">合同编号</view>
  49. <view class="right">{{retreatList.contractNo}}</view>
  50. </view>
  51. <view class='row'>
  52. <view class="left">货名</view>
  53. <view class="right">{{retreatList.goodsName}}</view>
  54. </view>
  55. <view class='row'>
  56. <view class="left">重量(吨)</view>
  57. <view class="right">{{retreatList.weight}}</view>
  58. </view>
  59. <view class='row'>
  60. <view class="left">预计出库日期</view>
  61. <view class="right">{{retreatList.predictDate}}</view>
  62. </view>
  63. <!-- <view class='row'>
  64. <view class="left">预估运费(元/吨)</view>
  65. <view class="right">{{retreatList.estimatedFreight}}</view>
  66. </view> -->
  67. <view class='row'>
  68. <view class="left">收货人</view>
  69. <view class="right">{{retreatList.agent}}</view>
  70. </view>
  71. </view>
  72. <view class="uForm_item">
  73. <u-form-item label="品级" prop="grade" label-width="150" disabled>
  74. <u-input v-model="retreatList.grade" input-align="right" placeholder="" @click='show=true'
  75. disabled />
  76. </u-picker>
  77. </u-form-item>
  78. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
  79. <u-input v-model="retreatList.bulkDensity" input-align="right" placeholder="" disabled/>
  80. </u-form-item>
  81. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
  82. <u-input v-model="retreatList.waterContent" input-align="right" placeholder="" disabled/>
  83. </u-form-item>
  84. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160">
  85. <u-input v-model="retreatList.unitPrice" input-align="right" placeholder="" disabled/>
  86. </u-form-item>
  87. </view>
  88. </view>
  89. <view v-if="OutList.judge == 1">
  90. <view class="uForm_item">
  91. <!-- 出库 -->
  92. <view class="title part2">{{OutList.inOutType}}</view>
  93. <view class='row'>
  94. <view class="left">编号</view>
  95. <view class="right">出库({{OutList.inOutTaskNo}})</view>
  96. </view>
  97. <view class='row'>
  98. <view class="left">仓库</view>
  99. <view class="right">{{OutList.warehouseName}}</view>
  100. </view>
  101. <view class='row'>
  102. <view class="left">出库类型</view>
  103. <view class="right">{{OutList.inOutType}}</view>
  104. </view>
  105. <view class='row' v-if="OutList.inOutType == '移库出库'">
  106. <view class="left" style="width: 180rpx;">移库任务编号</view>
  107. <view class="right">{{OutList.moveTaskNo}}</view>
  108. </view>
  109. <view class='row' v-if="OutList.inOutType != '移库出库'">
  110. <view class="left">合同编号</view>
  111. <view class="right">{{OutList.contractNo}}</view>
  112. </view>
  113. <view class='row'>
  114. <view class="left">货名</view>
  115. <view class="right">{{OutList.goodsName}}</view>
  116. </view>
  117. <view class='row'>
  118. <view class="left">重量(吨)</view>
  119. <view class="right">{{OutList.weight}}</view>
  120. </view>
  121. <view class='row'>
  122. <view class="left">预计出库日期</view>
  123. <view class="right">{{OutList.predictDate}}</view>
  124. </view>
  125. <!-- <view class='row'>
  126. <view class="left">预估运费(元/吨)</view>
  127. <view class="right">{{OutList.estimatedFreight}}</view>
  128. </view> -->
  129. <view class='row'>
  130. <view class="left">发货人</view>
  131. <view class="right">{{OutList.agent}}</view>
  132. </view>
  133. </view>
  134. <view class="uForm_item">
  135. <u-form-item label="品级" prop="grade" label-width="150" v-if="retreatList.inOutType != '退库'">
  136. <u-input v-model="OutList.grade" input-align="right" placeholder=""
  137. disabled />
  138. </u-form-item>
  139. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  140. v-if="retreatList.inOutType != '退库'">
  141. <u-input v-model="OutList.bulkDensity" input-align="right" placeholder="" disabled/>
  142. </u-form-item>
  143. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  144. v-if="retreatList.inOutType != '退库'" >
  145. <u-input v-model="OutList.waterContent" input-align="right" placeholder="" disabled/>
  146. </u-form-item>
  147. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
  148. v-if="retreatList.inOutType != '退库'">
  149. <u-input v-model="OutList.unitPrice" input-align="right" placeholder="" disabled/>
  150. </u-form-item>
  151. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top"
  152. v-if="OutList.inOutType != '移库出库'">
  153. <u-input v-model="OutList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  154. type="textarea" class="textarea" maxlength="150" disabled/>
  155. </u-form-item>
  156. <u-form-item v-if="retreatList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber"
  157. label-width="170">
  158. <u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" disabled/>
  159. </u-form-item>
  160. </view>
  161. </view>
  162. <view v-if="EnterList.judge == 2 && EnterList">
  163. <view class="uForm_item">
  164. <!-- 入库 -->
  165. <view class="title part2">{{EnterList.inOutType}}</view>
  166. <view class='row'>
  167. <view class="left">编号</view>
  168. <view class="right">入库({{EnterList.inOutTaskNo}})</view>
  169. </view>
  170. <view class='row'>
  171. <view class="left">仓库</view>
  172. <view class="right">{{EnterList.warehouseName}}</view>
  173. </view>
  174. <view class='row'>
  175. <view class="left">入库类型</view>
  176. <view class="right">{{EnterList.inOutType}}</view>
  177. </view>
  178. <view class='row' v-if="EnterList.inOutType == '移库入库'">
  179. <view class="left" style="width: 180rpx;">移库任务编号</view>
  180. <view class="right">{{EnterList.moveTaskNo}}</view>
  181. </view>
  182. <view class='row' v-if="EnterList.inOutType != '移库入库'">
  183. <view class="left">合同编号</view>
  184. <view class="right">{{EnterList.contractNo}}</view>
  185. </view>
  186. <view class='row'>
  187. <view class="left">货名</view>
  188. <view class="right">{{EnterList.goodsName}}</view>
  189. </view>
  190. <view class='row'>
  191. <view class="left">重量(吨)</view>
  192. <view class="right">{{EnterList.weight}}</view>
  193. </view>
  194. <view class='row'>
  195. <view class="left">预计入库日期</view>
  196. <view class="right">{{EnterList.predictDate}}</view>
  197. </view>
  198. <!-- <view class='row'>
  199. <view class="left">预估运费(元/吨)</view>
  200. <view class="right">{{EnterList.estimatedFreight}}</view>
  201. </view> -->
  202. <view class='row'>
  203. <view class="left">收货人</view>
  204. <view class="right">{{EnterList.agent}}</view>
  205. </view>
  206. </view>
  207. <view class="uForm_item">
  208. <u-form-item label="品级" prop="grade" label-width="150" v-if="EnterList.inOutType != '移库入库' ">
  209. <u-input v-model="EnterList.grade" input-align="right" placeholder="请选择品级"
  210. @click='show=true' disabled />
  211. </u-picker>
  212. </u-form-item>
  213. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  214. v-if="EnterList.inOutType != '移库入库'">
  215. <u-input v-model="EnterList.bulkDensity" input-align="right" placeholder="请输入容重占比" disabled/>
  216. </u-form-item>
  217. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  218. v-if="EnterList.inOutType != '移库入库'">
  219. <u-input v-model="EnterList.waterContent" input-align="right" placeholder="请输入水分占比" disabled/>
  220. </u-form-item>
  221. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
  222. v-if="EnterList.inOutType != '移库入库'">
  223. <u-input v-model="EnterList.unitPrice" input-align="right" placeholder="请输入单价" disabled/>
  224. </u-form-item>
  225. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
  226. <u-input v-model="EnterList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  227. type="textarea" class="textarea" maxlength="150" disabled/>
  228. </u-form-item>
  229. <u-form-item v-if="OutList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
  230. <u-input v-model="EnterList.binNumber" input-align="right" placeholder="未指定" disabled/>
  231. </u-form-item>
  232. </view>
  233. </view>
  234. <view class="uForm_item" v-if="OutList.taskTypeKey == 3 && !EnterList.judge">
  235. <view class="deleteText">移库入库(已删除)</view>
  236. </view>
  237. </u-form>
  238. </view>
  239. <view style='padding:10px;' class='flex bottom-btn'>
  240. <u-button @click='fanHui' type="success" class="btn1" hover-class='none'>返回</u-button>
  241. </view>
  242. </view>
  243. </template>
  244. <script>
  245. import {
  246. mapState
  247. } from 'vuex';
  248. export default {
  249. data() {
  250. return {
  251. id: "",
  252. OutList: {}, //出
  253. EnterList: {}, //入
  254. retreatList: {}, //退
  255. type: '移库',
  256. show: false,
  257. show1: false,
  258. border: false,
  259. rejectInfo: "", //驳回原因
  260. pjList: [{
  261. type: '一等品'
  262. },
  263. {
  264. type: '二等品'
  265. },
  266. {
  267. type: '三等品'
  268. },
  269. {
  270. type: '等外'
  271. }
  272. ],
  273. }
  274. },
  275. // onReady() {
  276. // this.$refs.uForm.setRules(this.rules);
  277. // },
  278. onLoad(options) {
  279. this.id = options.id
  280. this.getList()
  281. },
  282. computed: {
  283. ...mapState(['hasLogin', 'userInfo']),
  284. },
  285. methods: {
  286. getList() {
  287. this.$api.doRequest('get', '/inOutWarehouseTask/getTask', {
  288. id: this.id
  289. }).then(res => {
  290. if (res.data.code == 200) {
  291. this.$api.doRequest('get', '/inOutWarehouseTask/getInOutWarehouseTask', {
  292. relevanceId: res.data.data.relevanceId
  293. }).then(res => {
  294. if (res.data.code == 200) {
  295. for (let i = 0; i < res.data.data.length; i++) {
  296. if (res.data.data[i].inOutType == "移库出库" || res.data.data[i]
  297. .inOutType == "贸易服务出库" || res.data.data[i].inOutType == "销售出库" ||
  298. res.data.data[i].inOutType == "暂存出库") {
  299. this.OutList = res.data.data[i]
  300. this.OutList.judge = 1
  301. } else if (res.data.data[i].inOutType == "移库入库" || res.data.data[i]
  302. .inOutType == "暂存入库" || res
  303. .data.data[i].inOutType == "采购入库" || res.data.data[i].inOutType ==
  304. "贸易服务入库") {
  305. this.EnterList = res.data.data[i]
  306. this.EnterList.judge = 2
  307. } else if (res.data.data[i].inOutType == "退库") {
  308. this.retreatList = res.data.data[i]
  309. this.retreatList.judge = 3
  310. }
  311. }
  312. }
  313. })
  314. }
  315. })
  316. },
  317. // pjPicker(e) {
  318. // this.OutList.grade = this.pjList[e[0]].type
  319. // this.OutList.gradeKey = e[0] + 1
  320. // },
  321. // pjPicker1(e) {
  322. // this.EnterList.grade = this.pjList[e[0]].type
  323. // this.EnterList.gradeKey = e[0] + 1
  324. // },
  325. fanHui(){
  326. uni.navigateBack()
  327. }
  328. }
  329. }
  330. </script>
  331. <style scoped lang="scss">
  332. .content1 {
  333. margin: 10rpx;
  334. padding-bottom: 120rpx;
  335. .title {
  336. height: 70rpx;
  337. line-height: 60rpx;
  338. font-size: 32rpx;
  339. font-weight: 600;
  340. color: #333333;
  341. border-bottom: 2rpx solid #EEEEEE;
  342. }
  343. }
  344. .uForm {
  345. padding: 0 40rpx;
  346. }
  347. .u-form-item {
  348. padding: 0;
  349. }
  350. .bottom-btn {
  351. width: 100%;
  352. position: fixed;
  353. bottom: 0;
  354. display: flex;
  355. z-index: 2;
  356. left: 0;
  357. background-color: #f8f8f8;
  358. flex-direction: column;
  359. .btn1,
  360. .btn2 {
  361. width: 100%;
  362. margin-bottom: 26rpx;
  363. border-radius: 90rpx;
  364. }
  365. .btn1 {
  366. background: white;
  367. color: #00C265;
  368. }
  369. }
  370. .submit {
  371. width: 50%;
  372. background: #22C572;
  373. border-radius: 10rpx;
  374. }
  375. .part2 {
  376. margin-top: 20rpx;
  377. }
  378. .textarea {
  379. border: 1px solid #ccc;
  380. border-radius: 10rpx;
  381. background-color: #F9F9FA;
  382. height: 100px;
  383. }
  384. .row {
  385. display: flex;
  386. justify-content: space-between;
  387. // border-bottom: 1px solid #EEEEEE;
  388. padding: 21rpx 0;
  389. .right,
  390. input {
  391. font-size: 28rpx;
  392. color: #333333;
  393. }
  394. }
  395. //弹出框
  396. // .popup {
  397. // padding: 30rpx;
  398. // border-radius: 20rpx;
  399. // }
  400. .rejectInfoCss {
  401. border: 1px solid #ccc;
  402. border-radius: 10rpx;
  403. background-color: #F9F9FA;
  404. height: 100px;
  405. margin: 30rpx;
  406. }
  407. .uForm_item {
  408. padding: 20rpx;
  409. background-color: #FFFFFF;
  410. margin: 20rpx;
  411. border-radius: 20rpx;
  412. }
  413. .rejectText {
  414. text-align: center;
  415. }
  416. .topInfo {
  417. height: 210rpx;
  418. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  419. padding: 30rpx;
  420. .topInfo-item {
  421. height: 150rpx;
  422. background-color: #FFFFFF;
  423. border-radius: 20rpx;
  424. padding: 40rpx;
  425. .logo {
  426. width: 40rpx;
  427. height: 40rpx;
  428. margin-top: 8rpx;
  429. }
  430. .infoText {
  431. font-size: 36rpx;
  432. font-weight: 600;
  433. margin-left: 20rpx;
  434. }
  435. .infoData {
  436. color: #878C9C;
  437. font-size: 26rpx;
  438. margin-top: 10rpx;
  439. }
  440. }
  441. }
  442. .deleteText{
  443. text-align: center;
  444. color: #AFB3BF;
  445. }
  446. </style>