|
@@ -4,7 +4,7 @@
|
|
<view style='background:#fff;display:flex;' class="cu-bar search">
|
|
<view style='background:#fff;display:flex;' class="cu-bar search">
|
|
<view style='flex:6;' class="search-form round Medium">
|
|
<view style='flex:6;' class="search-form round Medium">
|
|
<text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
|
|
<text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
|
|
- <input type="text" maxlength="20" :focus="true" v-model="searchKeyWord" @confirm="doSearch()"
|
|
|
|
|
|
+ <input type="text" maxlength="20" v-model="searchKeyWord" @confirm="doSearch()"
|
|
placeholder="请输入买方名称或编号" confirm-type="search"></input>
|
|
placeholder="请输入买方名称或编号" confirm-type="search"></input>
|
|
</view>
|
|
</view>
|
|
<view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
|
|
<view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
|
|
@@ -20,15 +20,19 @@
|
|
<view class='wrap' v-for='item in dataInfo'>
|
|
<view class='wrap' v-for='item in dataInfo'>
|
|
<view style='margin:5px;padding:10px 0;border-bottom:1px solid #eee;' class="flex justify-between align-item-center">
|
|
<view style='margin:5px;padding:10px 0;border-bottom:1px solid #eee;' class="flex justify-between align-item-center">
|
|
<view style='color:#878C9C;'>{{item.paymentNo}}</view>
|
|
<view style='color:#878C9C;'>{{item.paymentNo}}</view>
|
|
- <view class='not' v-if='item.status=="待结算"'>待付款</view>
|
|
|
|
- <view class='already' v-else>已付款</view>
|
|
|
|
|
|
+ <view class='already' v-if='item.status=="全部付款"'>已付款</view>
|
|
|
|
+ <view class='not' v-else>待付款</view>
|
|
</view>
|
|
</view>
|
|
<view style='line-height:30px;'>
|
|
<view style='line-height:30px;'>
|
|
<view class='purchaser'>买方</view><view style='font-size:14px;display:inline-block;'>{{item.compName}}</view>
|
|
<view class='purchaser'>买方</view><view style='font-size:14px;display:inline-block;'>{{item.compName}}</view>
|
|
</view>
|
|
</view>
|
|
<view style='line-height:30px;'>
|
|
<view style='line-height:30px;'>
|
|
- <view class='seller'>卖方</view><view style='font-size:14px;display:inline-block;'>{{item.customerName}}</view>
|
|
|
|
-
|
|
|
|
|
|
+ <view class='flex justify-between align-item-center'>
|
|
|
|
+ <view >
|
|
|
|
+ <view class='seller'>卖方</view><view style='font-size:14px;display:inline-block;'>{{item.customerName}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view>{{item.carNo}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class='flex justify-between align-item-center'>
|
|
<view class='flex justify-between align-item-center'>
|
|
<view style="color:#878C9C;padding:5px;">{{item.goodsName}}</view>
|
|
<view style="color:#878C9C;padding:5px;">{{item.goodsName}}</view>
|
|
@@ -42,13 +46,13 @@
|
|
<view>{{item.amountIngPayable}}</view>
|
|
<view>{{item.amountIngPayable}}</view>
|
|
</view>
|
|
</view>
|
|
<view class='flex justify-between align-item-center'>
|
|
<view class='flex justify-between align-item-center'>
|
|
- <view style='color:#878C9C;padding:5px;'>单价</view>
|
|
|
|
|
|
+ <view style='color:#878C9C;padding:5px;'>已付</view>
|
|
<view>{{item.amountEdPayable}}</view>
|
|
<view>{{item.amountEdPayable}}</view>
|
|
</view>
|
|
</view>
|
|
<view style='flex-direction:row-reverse;' class='flex'>
|
|
<view style='flex-direction:row-reverse;' class='flex'>
|
|
- <view @click='showImage(3,item)' class='button'>结算单</view>
|
|
|
|
- <view @click='showImage(2,item)' class='button'>检斤单</view>
|
|
|
|
- <view @click='showImage(1,item)' class='button'>质检单</view>
|
|
|
|
|
|
+ <view v-show="item.pictureAddress" @click='showImage(item.pictureAddress)' class='button'>结算单</view>
|
|
|
|
+ <view v-show="item.weighingPictureAddress" @click='showImage(item.weighingPictureAddress)' class='button'>检斤单</view>
|
|
|
|
+ <view v-show="item.qualityInspectionPictureAddress" @click='showImage(item.qualityInspectionPictureAddress)' class='button'>质检单</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-show="isContent">
|
|
<view v-show="isContent">
|
|
@@ -56,7 +60,7 @@
|
|
</view>
|
|
</view>
|
|
<view @click='closepop' class='popup' v-if='show'>
|
|
<view @click='closepop' class='popup' v-if='show'>
|
|
<view class='imagewrap' style='text-align:center;'>
|
|
<view class='imagewrap' style='text-align:center;'>
|
|
- <image :src="img" mode=""></image>
|
|
|
|
|
|
+ <image :src="img" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
<view @click='xiazai' class='xiazai'><image style='width:24px;height:24px;' src="../../static/img/erp/xiazai@3x.png" mode=""></image></view>
|
|
<view @click='xiazai' class='xiazai'><image style='width:24px;height:24px;' src="../../static/img/erp/xiazai@3x.png" mode=""></image></view>
|
|
</view>
|
|
</view>
|
|
@@ -139,16 +143,14 @@
|
|
});
|
|
});
|
|
|
|
|
|
},
|
|
},
|
|
- showImage(status,item){
|
|
|
|
- console.log(1111)
|
|
|
|
- if(status==1){
|
|
|
|
- this.img=item.qualityInspectionPictureAddress
|
|
|
|
- }else if(status==2){
|
|
|
|
- this.img=item.weighingPictureAddress
|
|
|
|
- }else if(status==3){
|
|
|
|
- this.img=item.pictureAddress
|
|
|
|
- }
|
|
|
|
- this.show=true
|
|
|
|
|
|
+ showImage(url){
|
|
|
|
+ var img = [];
|
|
|
|
+ img.push(url)
|
|
|
|
+ uni.previewImage({
|
|
|
|
+ current:0,
|
|
|
|
+ urls: img
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
tabcarchange(status){
|
|
tabcarchange(status){
|
|
this.TabCur=status
|
|
this.TabCur=status
|
|
@@ -243,6 +245,8 @@
|
|
}
|
|
}
|
|
if(data.length==0){
|
|
if(data.length==0){
|
|
this.isContent=true
|
|
this.isContent=true
|
|
|
|
+ this.isLoadMore = false
|
|
|
|
+ this.loadStatus = 'nomore'
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|