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
19 KiB
1 lines
19 KiB
<view class="container"><view style="position:fixed;top:0;z-index:99;height:70px;width:100%;display:flex;background:#fff;padding-top:30px;"><uni-icons vue-id="cd44a1bc-1" type="left" size="10" data-event-opts="{{[['^tap',[['backPage']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><uni-card vue-id="cd44a1bc-2" title="{{(sales.supplierName==null?'暂无':sales.supplierName)+'--'+(supplier.consigneeMobile==null?'暂无':supplier.consigneeMobile)}}" thumbnail="/static/images/dingdan/dd0.png" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{supplier.province}}"><view class="uni-body">{{supplier.province+supplier.area+supplier.city+supplier.address+''}}</view></block></uni-card><block wx:if="{{isShare==false}}"><button style="height:30px;line-height:30px;position:absolute;top:95px;right:70px;background:blue;color:#fff;border-radius:7px;" open-type="share">分享</button></block><view class="tui-order-item boxbg"><block wx:if="{{storeFlag==1}}"><view style="color:red;height:30px;line-height:30px;">* 可根据供应商欠货情况,对欠货一栏进行操作</view></block><block wx:if="{{type==0&&sales.inStorageStatus==0}}"><view style="color:red;height:30px;line-height:30px;">* 请填写商品的采购价</view></block><view style="width:100%;background:#088FEB;height:30px;line-height:30px;color:#fff;text-align:center;display:flex;"><view style="width:5%;border-right:1px solid #fff;">图</view><view style="width:14%;border-right:1px solid #fff;">名称</view><view style="width:14%;border-right:1px solid #fff;">货号</view><view style="width:10%;border-right:1px solid #fff;">采购价</view><block wx:if="{{storeFlag==1}}"><view style="width:10%;border-right:1px solid #fff;">欠货</view></block><view style="width:10%;border-right:1px solid #fff;">数量</view><view style="width:9%;border-right:1px solid #fff;">总价</view><view style="width:9%;border-right:1px solid #fff;">批发价</view><view style="width:9%;border-right:1px solid #fff;">零售价</view><view style="{{'width:10%;border-right:1px solid #fff;'+('width:'+(storeFlag==1?'10%':'20%')+';')}}">颜色/尺码</view></view><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="width:100%;height:auto;line-height:30px;background:#fff;"><block wx:if="{{item.$orig.isShowBtn}}"><view data-event-opts="{{[['tap',[['closeMask',['',index]]]]]}}" style="position:fixed;top:0;left:0;z-index:98;width:100%;height:100%;opacity:1;" catchtap="__e"></view></block><view style="display:flex;height:30px;text-align:center;position:relative;border-bottom:1px solid #eee;"><view style="width:5%;border-right:1px solid #eee;position:relative;"><view style="width:100%;height:30px;margin:0 auto;"><block wx:if="{{item.$orig.productPicture}}"><image style="width:30px;height:30px;" src="{{item.$orig.productPicture}}" alt data-event-opts="{{[['tap',[['getChildrenPic',['$0'],[[['goodsList','',index]]]]]]]}}" catchtap="__e" class="_img"></image></block><block wx:else><view style="width:100%;height:100%;color:#777;background:#eee;">暂无</view></block></view></view><view style="width:14%;border-right:1px solid #eee;">{{''+(item.$orig.productName==null?'暂无':item.$orig.productName)+''}}</view><view style="width:14%;border-right:1px solid #eee;">{{''+(item.$orig.productSn==null?'暂无':item.$orig.productSn)+''}}</view><view style="width:10%;border-right:1px solid #eee;"><block wx:if="{{type==0&&sales.inStorageStatus==1}}"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="digit" disabled="{{sales.inStorageStatus==0?false:true}}" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index,'caigou']]]],['focus',[['obtainPrice',['$event','caigou',index]]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],[[['goodsList','',index,'stockLogList1.__$n0']]]]]]]}}" value="{{item.$orig.stockLogList1[0].purchasePrice}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></block><block wx:if="{{type==0&&sales.inStorageStatus==null}}"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="digit" disabled="{{true}}" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index,'caigou']]]],['focus',[['obtainPrice',['$event','caigou',index]]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],[[['goodsList','',index,'stockLogList1.__$n0']]]]]]]}}" value="{{item.$orig.stockLogList1[0].purchasePrice}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></block><block wx:if="{{type==0&&sales.inStorageStatus==0}}"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="digit" disabled="{{sales.inStorageStatus==0?false:true}}" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index,'caigou']]]],['focus',[['obtainPrice',['$event','caigou',index]]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],[[['goodsList','',index]]]]]]]}}" value="{{item.$orig.purchasePrice}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></block></view><block wx:if="{{storeFlag==1}}"><view style="width:10%;border-right:1px solid #eee;"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="number" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index,'qianhuo']]]],['focus',[['obtainPrice',['$event','qianhuo',index]]]],['input',[['__set_model',['$0','purchaseQian','$event',[]],[[['goodsList','',index]]]]]]]}}" value="{{item.$orig.purchaseQian}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></view></block><view style="width:10%;border-right:1px solid #eee;">{{''+(item.$orig.productCount==null?'暂无':item.$orig.productCount)+''}}</view><view style="width:9%;border-right:1px solid #eee;"><block wx:if="{{type==0&&sales.inStorageStatus==1}}"><text>{{''+(item.$orig.productCount*item.$orig.stockLogList1[0].purchasePrice==null?'暂无':item.g0)}}</text></block><block wx:if="{{type==0&&sales.inStorageStatus==0}}"><text>{{''+(item.$orig.productCount*item.$orig.purchasePrice==null?'暂无':item.g1)}}</text></block><block wx:if="{{type==0&&sales.inStorageStatus==null}}"><text>{{''+(item.$orig.productCount*item.$orig.purchasePrice==null?'暂无':item.g2)}}</text></block></view><block wx:if="{{isShare==false}}"><view style="width:9%;border-right:1px solid #eee;"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="digit" disabled="{{sales.inStorageStatus==0?false:true}}" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index,'pi']]]],['focus',[['obtainPrice',['$event','pifa',index]]]],['input',[['__set_model',['$0','wholesalePrice','$event',[]],[[['goodsList','',index]]]]]]]}}" value="{{item.$orig.wholesalePrice}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></view></block><block wx:if="{{isShare==false}}"><view style="width:9%;border-right:1px solid #eee;"><input style="height:30px;line-height:30px;color:#777;width:100%;" type="digit" disabled="{{sales.inStorageStatus==0?false:true}}" data-event-opts="{{[['blur',[['PriceAndWho',['$event',index]]]],['focus',[['obtainPrice',['$event','lingshou',index]]]],['input',[['__set_model',['$0','price','$event',[]],[[['goodsList','',index]]]]]]]}}" value="{{item.$orig.price}}" bindblur="__e" bindfocus="__e" bindinput="__e"/></view></block><view style="{{'width:10%;border-right:1px solid #eee;'+('width:'+(storeFlag==1?'10%':'20%')+';')}}"><block wx:if="{{item.$orig.noDaysort==false}}"><uni-icons vue-id="{{'cd44a1bc-3-'+index}}" type="down" size="7" data-event-opts="{{[['^tap',[['changeIcon',[index]]]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></block><block wx:if="{{item.$orig.noDaysort}}"><uni-icons vue-id="{{'cd44a1bc-4-'+index}}" type="up" size="7" data-event-opts="{{[['^tap',[['changeIcon',[index]]]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></block></view></view><block wx:for="{{item.l0}}" wx:for-item="items" wx:for-index="index" wx:key="index"><block wx:if="{{item.$orig.noDaysort}}"><view class="shop-collapse"><text>{{items.f0}}</text><text>{{"数量:"+(items.$orig.productCount==null?'暂无':items.$orig.productCount)}}</text></view></block></block></view></block><block wx:if="{{type==0&&sales.inStorageStatus!=0}}"><view class="tui-goods-info" style="width:100%;margin:20px auto 0;"><block wx:if="{{returnInv!=1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">应付金额</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.shouldPay==null?'暂无':sales.shouldPay}}</view></view></view></block><block wx:if="{{returnInv!=1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">已付金额</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.alreadyPay==null?'暂无':sales.alreadyPay}}</view></view></view></block><block wx:if="{{returnInv==1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">退货金额</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.alreadyPay==null?'暂无':sales.alreadyPay}}</view></view></view></block><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">{{dealings.lastDebtAmount>0?'之前欠款':'之前余额'}}</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{dealings.lastDebtAmount==null?'暂无':$root.g3}}</view></view></view><block wx:if="{{returnInv!=1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">余额抵扣</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.balanceDeductionAmount==null?'暂无':sales.balanceDeductionAmount}}</view></view></view></block><block wx:if="{{dealings.balanceDue>=0}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">累计欠款</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{dealings.balanceDue==null?'暂无':$root.g4}}</view></view></view></block><block wx:if="{{dealings.balanceDue<0}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">累计余额</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{dealings.balanceDue==null?'暂无':$root.g5}}</view></view></view></block><block wx:if="{{sales.noPay>=0&&returnInv!=1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">本次欠款</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.noPay==null?'暂无':$root.g6}}</view></view></view></block><block wx:if="{{sales.noPay<0&&returnInv!=1}}"><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">本次余额</view><view class="tui-goods-price tui-primary-color"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.noPay==null?'暂无':$root.g7}}</view></view></view></block><view class="tui-price-flex tui-size32" style="height:40px;line-height:40px;"><view class="tui-flex-shrink">其他费用</view><view class="tui-goods-price"><view class="tui-size-24">¥</view><view class="tui-price-large">{{sales.otherPay==null?'暂无':sales.otherPay}}</view></view></view><view class="tui-price-flex tui-size32"><view class="tui-flex-shrink">备注</view><view class="tui-goods-price"><uni-tooltip vue-id="cd44a1bc-5" content="{{sales.remark==null?'暂无':sales.remark}}" placement="left" bind:__l="__l" vue-slots="{{['default']}}"><view style="width:200px;height:40rpx;overflow:hidden;text-align:right;">{{sales.remark==null?'':sales.remark}}</view><text style="color:blue;">查看更多</text></uni-tooltip></view></view></view></block><block wx:if="{{type==0&&sales.inStorageStatus==0}}"><view class="tui-goods-info"><view class="price-box-list"><block wx:if="{{type==0}}"><view class="price-box"><view style="flex:1;text-align:left;padding-left:20rpx;">{{'供应商:'+(dealings.dealingsUserName?dealings.dealingsUserName:'')+''}}</view><block wx:if="{{dealings.lastDebtAmount>=0}}"><view style="flex:1;text-align:right;padding-right:20rpx;">{{'之前欠款:'+dealings.lastDebtAmount+''}}</view></block><block wx:if="{{dealings.lastDebtAmount<0}}"><view style="flex:1;text-align:right;padding-right:20rpx;">{{'之前余额:'+$root.g8+''}}</view></block></view></block><block wx:if="{{returnInv!=1}}"><view class="content-list"><view class="list-name">应付金额</view><view class="list-val"><input type="text" data-event-opts="{{[['input',[['__set_model',['','shouldPay','$event',[]]]]]]}}" value="{{shouldPay}}" bindinput="__e"/></view></view></block><block wx:if="{{returnInv==1}}"><view class="content-list"><view class="list-name">退货金额</view><view class="list-val"><input type="text" data-event-opts="{{[['focus',[['obtainPrice',['$event','alreadyPay']]]],['blur',[['changePay',['$event']]]],['input',[['__set_model',['','alreadyPay','$event',[]]]]]]}}" value="{{alreadyPay}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></view></view></block><block wx:if="{{returnInv!=1}}"><view class="content-list"><view class="list-name">已付金额</view><view class="list-val"><input type="text" data-event-opts="{{[['focus',[['obtainPrice',['$event','alreadyPay']]]],['blur',[['changePay',['$event']]]],['input',[['__set_model',['','alreadyPay','$event',[]]]]]]}}" value="{{alreadyPay}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></view></view></block><block wx:if="{{yuedikou!=0&&type==0&&returnInv!=1}}"><view class="content-list"><view class="list-name">余额抵扣</view><view class="list-val"><input type="digit" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['','yuedikou','$event',[]]]]]]}}" value="{{yuedikou}}" bindinput="__e"/></view></view></block><block wx:if="{{zhiqianqiankuan>0&&type==0}}"><view class="content-list"><view class="list-name">累计欠款</view><view class="list-val"><input type="digit" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['','leijiqiankuan','$event',[]]]]]]}}" value="{{leijiqiankuan}}" bindinput="__e"/></view></view></block><block wx:if="{{leijiqiankuan<0&&type==0}}"><view class="content-list"><view class="list-name">累计余额</view><view class="list-val"><input type="digit" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','abs(leijiqiankuan)','$event',[]],['Math']]]]]}}" value="{{$root.g10}}" bindinput="__e"/></view></view></block><block wx:if="{{noPay>=0&&type==0&&returnInv!=1}}"><view class="content-list"><view class="list-name">本次欠款</view><view class="list-val"><input type="digit" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['','noPay','$event',[]]]]]]}}" value="{{noPay}}" bindinput="__e"/></view></view></block><block wx:if="{{noPay<0&&type==0&&returnInv!=1}}"><view class="content-list"><view class="list-name">本次余额</view><view class="list-val"><input type="digit" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','abs(noPay)','$event',[]],['Math']]]]]}}" value="{{$root.g12}}" bindinput="__e"/></view></view></block><view class="content-list"><view class="list-name">其他费用</view><view class="list-val"><input type="text" data-event-opts="{{[['input',[['__set_model',['','otherPay','$event',[]]]]]]}}" value="{{otherPay}}" bindinput="__e"/></view></view><view class="content-list"><view class="list-name">备注</view><view><textarea maxlength="-1" data-event-opts="{{[['input',[['__set_model',['','remark','$event',[]]]]]]}}" value="{{remark}}" bindinput="__e"></textarea></view></view></view></view></block></view><view class="tui-order-info boxbg"><view class="tui-order-title">订单信息</view><view class="tui-order-content" style="border-bottom:1px solid #E0E0E0;"><view class="tui-order-flex"><view class="tui-item-title">订单号:</view><view class="tui-item-content">{{sales.id}}</view></view><view class="tui-order-flex"><view class="tui-item-title">操作人:</view><view class="tui-item-content">{{sales.createByName}}</view></view><view class="tui-order-flex"><view class="tui-item-title">入库时间:</view><view class="tui-item-content">{{sales.createTime}}</view></view></view></view><block wx:if="{{isShare==false}}"><view class="tui-tabbar"><block wx:if="{{returnInv==1}}"><view class="tui-btn-mr"><kk-printer class="vue-ref" vue-id="cd44a1bc-6" bufferData="{{bufferData}}" defaultText="打印小票" data-ref="kkprinter" data-event-opts="{{[['^onPrintSmall',[['onPrintSmall']]]]}}" bind:onPrintSmall="__e" bind:__l="__l"></kk-printer></view></block><block wx:if="{{sales.inStorageStatus!=0&&sales.delFlag!=1&&type==0&&storeFlag!=1}}"><view data-event-opts="{{[['tap',[['returnPrice',['$event']]]]]}}" class="tui-btn-mr" catchtap="__e">撤销</view></block><block wx:if="{{sales.inStorageStatus!=0&&sales.delFlag!=1&&type==0&&storeFlag!=1}}"><view data-event-opts="{{[['tap',[['cancelOrder',['$event']]]]]}}" class="tui-btn-mr" catchtap="__e">撤销并复制</view></block><block wx:if="{{sales.inStorageStatus!=0&&sales.delFlag==1&&type==0&&storeFlag!=1}}"><view data-event-opts="{{[['tap',[['goSaleGoods',['$event']]]]]}}" class="tui-btn-mr" catchtap="__e">重新入库</view></block><block wx:if="{{type==0&&sales.inStorageStatus==0&&storeFlag!=1}}"><view data-event-opts="{{[['tap',[['inventorySubmit',['$event']]]]]}}" class="tui-btn-mr" bindtap="__e">确认提交</view></block><block wx:if="{{sales.inStorageStatus==1&&sales.delFlag!=1&&storeFlag!=1}}"><view data-event-opts="{{[['tap',[['batchPrint',['$event']]]]]}}" class="tui-btn-mr" bindtap="__e">批量打印</view></block><block wx:if="{{storeFlag==1}}"><view data-event-opts="{{[['tap',[['confirmInventory',['$event']]]]]}}" class="tui-btn-mr" bindtap="__e">确认入库</view></block></view></block><uni-popup class="vue-ref" vue-id="cd44a1bc-7" type="dialog" data-ref="priceDialog" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog class="vue-ref" vue-id="{{('cd44a1bc-8')+','+('cd44a1bc-7')}}" mode="input" inputType="digit" title="采购价" placeholder="请输入采购价" data-ref="purInput" data-event-opts="{{[['^confirm',[['changePrice']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-popup-dialog></uni-popup><uni-popup class="vue-ref" vue-id="cd44a1bc-9" background-color="#fff" data-ref="imgPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="showImg-box" style="{{'height:'+(screenHeight*0.8+'px !important')+';'}}"><swiper class="swiper-box" indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" current="{{swiperDotIndex}}" data-event-opts="{{[['change',[['lunbochange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bigImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><view class="swiper-item"><image style="width:100%;height:100%;border-radius:10px;" mode="aspectFit" show-menu-by-longpress="{{true}}" src="{{item.productPicture}}" alt></image></view></swiper-item></block></swiper></view></uni-popup><uni-popup class="vue-ref" vue-id="cd44a1bc-10" type="dialog" data-ref="inputDialog" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog class="vue-ref" vue-id="{{('cd44a1bc-11')+','+('cd44a1bc-10')}}" mode="input" inputType="digit" title="回款金额" placeholder="请输入回款金额" data-ref="inputClose" data-event-opts="{{[['^confirm',[['sureNpPay']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-popup-dialog></uni-popup></view>
|