You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.9 KiB
1 lines
2.9 KiB
<view class="page1" style="overflow:scroll;height:100%;"><view style="background:#fff;height:100rpx;"><view class="content-list" style="padding-top:20rpx;"><view class="list-name">供应商</view><uni-data-select class="uni-data-select" vue-id="c22dd7fc-1" clear="{{false}}" localdata="{{supplierList}}" placeholder="请选择供应商" value="{{gysId}}" data-event-opts="{{[['^change',[['supplierChange']]],['^input',[['__set_model',['','gysId','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-select></view></view><view class="heji"><view style="flex:1;">合计</view><view style="flex:1;">{{totalAmount+"件"}}</view><view style="flex:1;">{{totalPrice+"元"}}</view></view><view style="width:95%;margin:0 auto 100rpx;border:1.5px solid #000;border-radius:10px;"><uni-table vue-id="c22dd7fc-2" emptyText="请选择供应商后查看" bind:__l="__l" vue-slots="{{['default']}}"><uni-tr style="background:#F08080;" vue-id="{{('c22dd7fc-3')+','+('c22dd7fc-2')}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-th vue-id="{{('c22dd7fc-4')+','+('c22dd7fc-3')}}" align="center" width="70" bind:__l="__l" vue-slots="{{['default']}}">货号</uni-th><uni-th vue-id="{{('c22dd7fc-5')+','+('c22dd7fc-3')}}" align="center" width="70" bind:__l="__l" vue-slots="{{['default']}}">品名</uni-th><uni-th vue-id="{{('c22dd7fc-6')+','+('c22dd7fc-3')}}" align="center" width="70" bind:__l="__l" vue-slots="{{['default']}}">进价</uni-th><uni-th vue-id="{{('c22dd7fc-7')+','+('c22dd7fc-3')}}" align="center" width="55" bind:__l="__l" vue-slots="{{['default']}}">库存</uni-th><uni-th vue-id="{{('c22dd7fc-8')+','+('c22dd7fc-3')}}" align="center" width="80" bind:__l="__l" vue-slots="{{['default']}}">成本</uni-th></uni-tr><block wx:for="{{inventoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-tr vue-id="{{('c22dd7fc-9-'+index)+','+('c22dd7fc-2')}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-td vue-id="{{('c22dd7fc-10-'+index)+','+('c22dd7fc-9-'+index)}}" align="center" bind:__l="__l" vue-slots="{{['default']}}"><text>{{''+(item.productSn==null?"":item.productSn)+''}}</text></uni-td><uni-td vue-id="{{('c22dd7fc-11-'+index)+','+('c22dd7fc-9-'+index)}}" align="center" bind:__l="__l" vue-slots="{{['default']}}">{{''+(item.productName==null?"0":item.productName)+''}}</uni-td><uni-td vue-id="{{('c22dd7fc-12-'+index)+','+('c22dd7fc-9-'+index)}}" align="center" bind:__l="__l" vue-slots="{{['default']}}">{{''+(item.purchasePrice==null?"0":item.purchasePrice)+''}}</uni-td><uni-td vue-id="{{('c22dd7fc-13-'+index)+','+('c22dd7fc-9-'+index)}}" align="center" bind:__l="__l" vue-slots="{{['default']}}">{{''+(item.stockCount==null?"0":item.stockCount)+''}}</uni-td><uni-td vue-id="{{('c22dd7fc-14-'+index)+','+('c22dd7fc-9-'+index)}}" align="center" bind:__l="__l" vue-slots="{{['default']}}">{{''+(item.price==null?"0":item.price)+''}}</uni-td></uni-tr></block></uni-table></view></view>
|