123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <template>
- <view class="warp">
- <view class="topInfo">
- <view class="topInfo-item">
- <view class="flex info">
- <view class="logo">
- <image src="../../../static/img/reject.png" mode="" v-if="status == '已驳回'"
- style="height: 40rpx;"></image><!-- 驳回 -->
- <image src="../../../static/img/tongguo.png" mode="" v-if="status == '已通过'"
- style="height: 40rpx;"></image><!-- 通过 -->
- <image src="../../../static/img/daishenhe.png" mode=""
- v-if="status == '审核中' || status == '待决策人审核'"
- style="height: 40rpx;"></image><!-- 待审核 -->
- </view>
- <view class="infoText">{{status}}</view>
- </view>
- <view class="infoData">{{updateDate}}</view>
- </view>
- </view>
- <view class='content1'>
- <view class='row content-item'>
- <view class="left" style="color: #878C9C;">仓库</view>
- <view class="right">{{warehouseName}}</view>
- </view>
- <view class="content-item">
- <view v-for="(item,index) in List">
- <view class='row row1'>
- <view class="left title">{{item.paymentNo}}</view>
- <view class="right title">{{item.carNo}}</view>
- </view>
- <view class='row'>
- <view class="left goodsInfoCss">{{item.goodsName}}({{item.netWeight}}kg -
- ¥{{item.tidalGrainPrice}})</view>
- <view class="right priceCss">¥{{item.amountIngPayable}}</view>
- </view>
- </view>
- </view>
- </view>
- <u-toast ref="uToast" />
- <view style='padding:10px;' class='flex bottom-btn'>
- <u-button @click='fanHui' type="success" class="btn2">返回</u-button>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex';
- export default {
- data() {
- return {
- id: "",
- currentPage: 1,
- pageSize: 100,
- List: [],
- status: "",
- updateDate:"",
- warehouseName:"",
- }
- },
- onLoad(options) {
- this.id = options.id
- },
- onShow(options) {
- this.getList()
- },
- computed: {
- ...mapState(['hasLogin', 'userInfo']),
- },
- methods: {
- getList() {
- //查仓库名
- this.$api.doRequest('get', '/paymentManagement/getInfo', {
- id: this.id
- }).then(res => {
- if (res.data.code == 200) {
- this.status = res.data.data.approveStatus
- this.updateDate = res.data.data.updateDate
- this.warehouseName = res.data.data.warehouseName
- this.$api.doRequest('get', '/paymentManagement/selectPaymentManagement', {
- currentPage: this.currentPage,
- pageSize: this.pageSize,
- warehouseName: res.data.data.warehouseName,
- managementType: 1
- }).then(res1 => {
- if (res1.data.code == 200) {
- this.List = res1.data.data.records
- }
- })
- }
- })
- },
- fanHui(){
- uni.navigateBack()
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .warp {
- margin: 10rpx;
- padding: 20rpx 20rpx 240rpx 20rpx;
- }
- .content1 {
- margin-top: 30rpx;
- .content-item {
- border-radius: 20rpx;
- background: white;
- padding: 40rpx 20rpx;
- margin-bottom: 30rpx;
- }
- .title {
- font-size: 32rpx;
- font-weight: 600;
- color: #333333;
- margin: 30rpx 0;
- }
- .goodsInfoCss {
- font-size: 28rpx;
- font-weight: 600;
- color: #878C9C;
- margin: 26rpx 10rpx;
- }
- .priceCss {
- font-size: 40rpx;
- margin: 26rpx 10rpx;
- color: #22C572;
- font-weight: 600;
- }
- .row {
- display: flex;
- justify-content: space-between;
- border-bottom: 1px solid #EEEEEE;
- .right,
- input {
- font-size: 28rpx;
- // color: #333333;
- }
- }
- }
- .bottom-btn {
- width: 100%;
- position: fixed;
- bottom: 0;
- display: flex;
- z-index: 2;
- left: 0;
- background-color: #f8f8f8;
- flex-direction: column;
- .btn1,
- .btn2 {
- width: 100%;
- margin-bottom: 26rpx;
- border-radius: 90rpx;
- }
- .btn1 {
- background: white;
- color: #00C265;
- }
- }
- .row1 {
- border-bottom: 0 !important;
- }
- .topInfo {
- height: 210rpx;
- background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
- padding: 30rpx;
- .topInfo-item {
- height: 150rpx;
- background-color: #FFFFFF;
- border-radius: 20rpx;
- padding: 40rpx;
- .logo {
- width: 40rpx;
- height: 40rpx;
- margin-top: 8rpx;
- }
- .infoText {
- font-size: 36rpx;
- font-weight: 600;
- margin-left: 20rpx;
- }
- .infoData {
- color: #878C9C;
- font-size: 26rpx;
- margin-top: 10rpx;
- }
- }
- }
- </style>
|