1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <div>
- <uni-nav-bar title="退仓复核" :status-bar="true" background-color="#3F92F9" color="#FFF">
- <view slot="left">
- <u-icon name="account-fill" color="#FFF" size="35"></u-icon>
- <span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
- </view>
- <view slot="right" @tap="$utils.open(`/pages/index/index`)">
- <span style="color: #FFFFFF;">返回</span>
- </view>
- </uni-nav-bar>
- <ul >
- <li v-for="i in checkList" :key="i.stockBackId">
- <view class="text">
- 退仓人员:{{i.realName}}
- </view>
- <view class="text">
- 提交时间:{{i.operationTime}}
- </view>
- <view class="text">
- 面料卷数:{{i.operationNum}}
- </view>
- <view class="text">
- 面料米数:{{i.operationMeters}}
- </view>
- <button style="" @click="toDtl(i.stockBackId)">去复核</button>
- </li>
- </ul>
- </div>
- </template>
- <script>
- export default{
- name:"xx",
- data(){
- return{
- checkList:[],
- }
- },
- created(){
- this.selectList()
- },
- methods:{
- toDtl(_id){
- console.log(_id)
- const v = this
- uni.removeStorage({
- key: 'reviewDtl',
- success: function (res) {
- v.$utils.open(`/pages/warehouse/reviewDtl?id=${_id}`)
- },fail() {
- v.$utils.open(`/pages/warehouse/reviewDtl?id=${_id}`)
- }
- });
-
- },
- selectList(){
- const v = this
- uni.request({
- url: 'http://120.79.80.64:8050' + '/cloudApi/stockBack/checkList',
- method: 'POST',
- header:{
- 'Content-Type' : 'application/json',
- },
- data: v.req,
- success: res => {
- console.log(res)
- this.checkList = res.data.data
- },
- });
- },
- },
- }
- </script>
- <style scoped lang="less">
- ul{
-
- padding: 0 20rpx;
- li{
- .text{
- height: 60rpx;
- line-height: 60rpx;
- padding: 0 20rpx;
- }
- border-radius: 5rpx;
- list-style: none;
- background-color: #fff;
- overflow: hidden;
- margin-top: 20rpx;
- button{
- background-color: blue;
- margin-top: 20prx;
- color: #fff;
- }
- }
- }
- </style>
|