|
@@ -5,10 +5,12 @@
|
|
|
<view class="container">
|
|
|
<view class="head">
|
|
|
<view class="photo">
|
|
|
- <img src="@/assets/img/photoCopy 3@1x.png" alt="">
|
|
|
+ <u-avatar size="84" :src="outUser.headImg"></u-avatar>
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
<view class="name">
|
|
|
- {{info.createByName}}
|
|
|
+ {{outUser.name}}
|
|
|
</view>
|
|
|
<view class="submit">
|
|
|
提交了<text>出库申请</text>
|
|
@@ -59,22 +61,22 @@
|
|
|
<view class="title">
|
|
|
出库设备清单
|
|
|
</view>
|
|
|
- <view class="amount">
|
|
|
- 全部 <text>18</text> 件设备
|
|
|
+ <view class="amount" @click="gotoUrl('pages/projectDepartment/branch/exportApplication/deliveriedList?id='+id)">
|
|
|
+ 全部 <text>{{recordsTotal}}</text> 件设备
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 清单信息 -->
|
|
|
- <view class="list-infos" v-for="item in 2">
|
|
|
+ <view class="list-infos" v-for="(item,i) in outRecordDeviceList" :key="i" >
|
|
|
<view class="infos-head">
|
|
|
<view class="name">
|
|
|
- 接地线 220kV 无杆
|
|
|
+ {{item.deviceName}}
|
|
|
</view>
|
|
|
<view class="state">
|
|
|
- 预出库 <text>2</text>
|
|
|
+ 预出库 <text>{{item.needCount}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="infos">
|
|
|
+ <view class="infos" v-if="false">
|
|
|
<view class="infos-1">
|
|
|
<view class="infos-item">
|
|
|
<view class="item-name">
|
|
@@ -117,157 +119,15 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <!-- 流程 -->
|
|
|
- <view class="process">
|
|
|
- <view class="title">
|
|
|
- 流程
|
|
|
- </view>
|
|
|
- <u-time-line>
|
|
|
-
|
|
|
- <u-time-line-item node-top="10">
|
|
|
- <template v-slot:node>
|
|
|
- <view>
|
|
|
- <view class="u-node" style="background:#CDCDCD;">
|
|
|
- <!-- 此处为uView的icon组件 -->
|
|
|
- <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-slot:content>
|
|
|
- <view class="u-order">
|
|
|
- <view class="u-order-desc">
|
|
|
- <view class="level">
|
|
|
- 项目部
|
|
|
- </view>
|
|
|
- <view class="date">
|
|
|
- 2023-03-26 13:00
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="u-order-time">
|
|
|
- <view class="photo">
|
|
|
- <img src="@/assets/img/level.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="confirm">
|
|
|
- <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="name">
|
|
|
- 李天择
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-time-line-item>
|
|
|
-
|
|
|
- <u-time-line-item node-top="10">
|
|
|
- <template v-slot:node>
|
|
|
- <view class="">
|
|
|
- <view class="u-node" style="background:#CDCDCD;">
|
|
|
- <!-- 此处为uView的icon组件 -->
|
|
|
- <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-slot:content>
|
|
|
- <view class="u-order">
|
|
|
- <view class="u-order-desc">
|
|
|
- <view class="level">
|
|
|
- 部门负责人
|
|
|
- </view>
|
|
|
- <view class="date">
|
|
|
- 2023-03-26 13:00
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="u-order-time">
|
|
|
- <view class="photo">
|
|
|
- <img src="@/assets/img/level.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="confirm">
|
|
|
- <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="name">
|
|
|
- 李天择
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-time-line-item>
|
|
|
- <u-time-line-item node-top="10">
|
|
|
- <template v-slot:node>
|
|
|
- <view>
|
|
|
- <view class="u-node" style="background:#CDCDCD;">
|
|
|
- <!-- 此处为uView的icon组件 -->
|
|
|
- <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-slot:content>
|
|
|
- <view class="u-order">
|
|
|
- <view class="u-order-desc">
|
|
|
- <view class="level">
|
|
|
- 主管领导
|
|
|
- </view>
|
|
|
- <view class="date">
|
|
|
- 2023-03-26 13:00
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="u-order-time">
|
|
|
- <view class="photo">
|
|
|
- <img src="@/assets/img/level.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="confirm">
|
|
|
- <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="name">
|
|
|
- 李天择
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-time-line-item>
|
|
|
-
|
|
|
- <u-time-line-item node-top="10">
|
|
|
- <template v-slot:node>
|
|
|
- <view class="">
|
|
|
- <view class="u-node" style="background:#CDCDCD;">
|
|
|
- <!-- 此处为uView的icon组件 -->
|
|
|
- <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-slot:content>
|
|
|
- <view class="u-order">
|
|
|
- <view class="u-order-desc">
|
|
|
- <view class="level">
|
|
|
- 仓库管理
|
|
|
- </view>
|
|
|
- <view class="state">
|
|
|
- 等待出库
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="u-order-time">
|
|
|
- <view class="photo">
|
|
|
- <img src="@/assets/img/level.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="confirm">
|
|
|
- <img src="@/assets/img/riFill-gradienter-fill@1x.png" alt="">
|
|
|
- </view>
|
|
|
- <view class="name">
|
|
|
- 周乐心
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-time-line-item>
|
|
|
- </u-time-line>
|
|
|
- </view>
|
|
|
+ <approveList ref="approveList"
|
|
|
+ :outRecordDetailObj="outRecordDetailObj"
|
|
|
+ :approveList="approveList"></approveList>
|
|
|
</view>
|
|
|
<!-- 确认出库 -->
|
|
|
<view class="bottom" >
|
|
|
- <button>确认出库</button>
|
|
|
+ <!-- <button>确认出库</button> -->
|
|
|
+ <u-button v-if="info.status==0" type="revoke" >撤销</u-button>
|
|
|
+ <u-button v-if="info.status==1" type="primary" >签字验收</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -276,13 +136,22 @@
|
|
|
import * as API from '@/apis/pagejs/projectDepartment.js'
|
|
|
import {
|
|
|
recordStatus
|
|
|
- } from '@/apis/pagejs/projectDepartment.js'
|
|
|
+ } from '@/apis/status.js'
|
|
|
+ import approveList from "@/components/ApproveList.vue"
|
|
|
+
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ approveList
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
id:"",
|
|
|
info:{},
|
|
|
- outRecordDeviceList:[]
|
|
|
+ outUser:{},
|
|
|
+ outRecordDetailObj:{},
|
|
|
+ outRecordDeviceList:[],
|
|
|
+ approveList:[],
|
|
|
+ recordsTotal:0,
|
|
|
}
|
|
|
},
|
|
|
onLoad(op){
|
|
@@ -299,7 +168,8 @@
|
|
|
pageIndex:1,
|
|
|
}).then((res) => {
|
|
|
uni.hideLoading();
|
|
|
- this.outRecordDeviceList=res.data.outRecordDeviceList;
|
|
|
+ this.outRecordDeviceList=res.data.data;
|
|
|
+ this.recordsTotal=res.data.recordsTotal;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|
|
@@ -315,8 +185,10 @@
|
|
|
API.outRecordDetail({
|
|
|
id:this.id,
|
|
|
}).then((res) => {
|
|
|
-
|
|
|
+ this.outRecordDetailObj=res.data;
|
|
|
this.info=res.data.outRecord;
|
|
|
+ this.approveList=res.data.approveList;
|
|
|
+ this.outUser=res.data.outUser;
|
|
|
this.getList()
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
@@ -347,7 +219,9 @@
|
|
|
width: 84rpx;
|
|
|
height: 84rpx;
|
|
|
border-radius: 100rpx;
|
|
|
-
|
|
|
+ .u-avatar{
|
|
|
+
|
|
|
+ }
|
|
|
img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -475,99 +349,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 流程
|
|
|
- .process {
|
|
|
- background-color: #fff;
|
|
|
- margin-top: 24rpx;
|
|
|
- padding: 24rpx 32rpx;
|
|
|
-
|
|
|
- .title {
|
|
|
- color: rgba(51, 51, 51, 1);
|
|
|
- font-size: 32rpx;
|
|
|
- }
|
|
|
- .u-time-axis-item{
|
|
|
- //margin-bottom: 76rpx;
|
|
|
- }
|
|
|
- .u-time-axis {
|
|
|
- //padding: 18rpx 40rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .u-node {
|
|
|
- width: 18rpx;
|
|
|
- height: 18rpx;
|
|
|
- border-radius: 100rpx !important;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- background: #d0d0d0;
|
|
|
- }
|
|
|
- .u-order{
|
|
|
- margin-bottom: 32rpx;
|
|
|
- }
|
|
|
- .u-order-title {
|
|
|
- color: #333333;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 32rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .u-order-desc {
|
|
|
- margin-bottom: 16rpx;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .level {
|
|
|
- color: #333333;
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- .date {
|
|
|
- color: rgba(119, 119, 119, 1);
|
|
|
- }
|
|
|
-
|
|
|
- .state {
|
|
|
- color: rgba(255, 121, 0, 1);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .u-order-time {
|
|
|
- width: 90rpx;
|
|
|
- color: #777777;
|
|
|
- font-size: 28rpx;
|
|
|
- margin-top: 16rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .photo {
|
|
|
- width: 56rpx;
|
|
|
- height: 56rpx;
|
|
|
- border-radius: 100px;
|
|
|
- margin-bottom: 4rpx;
|
|
|
-
|
|
|
- img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- overflow: hidden;
|
|
|
- position: relative;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .confirm {
|
|
|
- position: absolute;
|
|
|
- top: 46rpx;
|
|
|
- left: 56rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .name {
|
|
|
- color: rgba(51, 51, 51, 1);
|
|
|
- font-size: 24rpx;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// .u-time-axis{
|
|
|
// .u-time-axis-item:last-of-type{
|
|
@@ -584,13 +366,13 @@
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
- uni-button{
|
|
|
- border-radius: 8px;
|
|
|
- background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
|
|
|
- color: rgba(255, 255, 255, 1);
|
|
|
- font-size: 32rpx;
|
|
|
- line-height: 88rpx;
|
|
|
+ // uni-button{
|
|
|
+ // border-radius: 8px;
|
|
|
+ // background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
|
|
|
+ // color: rgba(255, 255, 255, 1);
|
|
|
+ // font-size: 32rpx;
|
|
|
+ // line-height: 88rpx;
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
</style>
|