|
|
|
@ -3,18 +3,24 @@ |
|
|
|
<u-alert description="点击可跳转至入库单" type="primary"></u-alert> |
|
|
|
<view class="ulList" v-if="list.length > 0"> |
|
|
|
<ul> |
|
|
|
<li v-for="item in list" @tap="gotoDetail(item.id)"> |
|
|
|
<uni-card :title="item.id == null ?'暂无':item.id" :sub-title="item.createTime == null ?'暂无':item.createTime" :extra="'共'+(item.totalAmount == null ?'暂无':item.totalAmount) + '件'" |
|
|
|
<li v-for="item in list" @tap="returnPrice(item)"> |
|
|
|
<uni-card :title="item.id == null ?'暂无':item.id" |
|
|
|
:sub-title="item.createTime == null ?'暂无':item.createTime" |
|
|
|
:extra="'共'+(item.totalAmount == null ?'暂无':item.totalAmount) + '件'" |
|
|
|
thumbnail="/static/images/dingdan/dd1.png"> |
|
|
|
<view class="uni-body"><text class="cardText">销售员:</text> {{item.createBy == null ?'暂无':item.createBy}}</view> |
|
|
|
<view class="uni-body"> <text class="cardText"> 总成本:</text> <text class="priceText"> |
|
|
|
{{item.shouldPay == null ?'暂无':item.shouldPay}} </text> <text decode class="cardText"> |
|
|
|
{{' 欠款: '}} </text> <text class="priceText">{{item.noPay == null ?'暂无':item.noPay}} |
|
|
|
</text></view> |
|
|
|
<view class="uni-body"><text class="cardText"> |
|
|
|
订单状态:</text>{{item.inStorageStatus == 0 ?'未入库' :'已入库'}} |
|
|
|
销售员:</text>{{item.createBy == null ?'暂无':item.createBy}} |
|
|
|
</view> |
|
|
|
<view v-if="item.inStorageStatus== 0" class="return-price" @tap="returnPrice(item)">更新</view> |
|
|
|
<view class="uni-body" v-if="type==0"> |
|
|
|
<text class="cardText">总成本:</text> |
|
|
|
<text class="priceText">{{item.shouldPay == null ?'暂无':item.shouldPay}} </text> |
|
|
|
<text decode class="cardText">{{' 欠款: '}} </text> |
|
|
|
<text class="priceText">{{item.noPay == null ?'暂无':item.noPay}}</text> |
|
|
|
</view> |
|
|
|
<view class="uni-body"> |
|
|
|
<text class="cardText">订单状态:</text>{{item.inStorageStatus == 0 ?'未入库' :'已入库'}} |
|
|
|
</view> |
|
|
|
<view v-if="item.inStorageStatus== 0 && type==0" class="return-price" @tap="returnPrice(item)">更新</view> |
|
|
|
</uni-card> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
@ -39,7 +45,8 @@ |
|
|
|
inStorageStatus: '', |
|
|
|
supplierName: '', |
|
|
|
startDate: '', |
|
|
|
endDate:'' |
|
|
|
endDate: '', |
|
|
|
type: '' |
|
|
|
// status: 'loadmore', |
|
|
|
// page: 1, |
|
|
|
// totalPages: 0, |
|
|
|
@ -54,6 +61,7 @@ |
|
|
|
onLoad(option) { |
|
|
|
this.inStorageStatus = option.inStorageStatus || '' |
|
|
|
this.getList() |
|
|
|
this.type = uni.getStorageSync('type') |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getList() { |
|
|
|
@ -102,6 +110,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.return-price { |
|
|
|
position: absolute; |
|
|
|
bottom: 30rpx; |
|
|
|
|