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
13 KiB
1 lines
13 KiB
<view class="page1"><view class="formBox"><uni-forms class="vue-ref" vue-id="6e366e19-1" modelValue="{{formData}}" rules="{{rules}}" labelWidth="170rpx" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('6e366e19-2')+','+('6e366e19-1')}}" label="商品名称" name="productName" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6e366e19-3')+','+('6e366e19-2')}}" type="text" placeholder="请输入商品名称" trim="all" value="{{formData.productName}}" data-event-opts="{{[['^input',[['__set_model',['$0','productName','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-4')+','+('6e366e19-1')}}" label="商品主图" name="productPicture" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{formData.productPicture!=''}}"><view><image class="upload-img _img" src="{{formData.productPicture}}" alt></image></view></block><u-upload vue-id="{{('6e366e19-5')+','+('6e366e19-4')}}" fileList="{{formData.productPicture}}" name="1" multiple="{{true}}" maxCount="{{1}}" data-event-opts="{{[['^afterRead',[['afterRead']]],['^delete',[['deletePic']]]]}}" bind:afterRead="__e" bind:delete="__e" bind:__l="__l"></u-upload></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-6')+','+('6e366e19-1')}}" label="批发价" name="wholesalePrice" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入批发价" data-event-opts="{{[['focus',[['obtainPrice',['$event','wholesalePrice']]]],['blur',[['changessPrice',['$event','wholesalePrice']]]],['input',[['__set_model',['$0','wholesalePrice','$event',[]],['formData']]]]]}}" value="{{formData.wholesalePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-7')+','+('6e366e19-1')}}" label="商品分类" name="categoryId" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-list"><view class="list-val"><input style="border-bottom:1px solid #fff;text-align:center;" type="text" placeholder="请选择商品分类" disabled="{{true}}" data-event-opts="{{[['tap',[['goGategoryLow',['$event']]]]]}}" value="{{typeItem.categoryName}}" bindtap="__e"/><uni-icons style="margin-left:40rpx;line-height:70rpx;" vue-id="{{('6e366e19-8')+','+('6e366e19-7')}}" type="right" size="16" bind:__l="__l"></uni-icons></view></view></uni-forms-item><block wx:if="{{customerCategoryList!=null}}"><view style="display:flex;"><view style="width:28%;"></view><view style="width:72%;min-height:80rpx;padding:0 20rpx 20rpx 0;"><block wx:for="{{customerCategoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view>{{''+item.categoryName+":"+item.categoryPrice+''}}</view></block></view></view></block><uni-forms-item vue-id="{{('6e366e19-9')+','+('6e366e19-1')}}" label="添加规格" name="categoryId" bind:__l="__l" vue-slots="{{['default']}}"><view class="content-list"><view class="list-val"><input style="border-bottom:1px solid #fff;text-align:center;" type="text" placeholder="点击选择规格" disabled="{{true}}" data-event-opts="{{[['tap',[['ejectRuleSelect',['$event']]]]]}}" bindtap="__e"/></view></view></uni-forms-item><block wx:for="{{multipleList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="display:flex;"><view style="width:28%;">{{''+item.attributeName+''}}</view><view style="width:72%;min-height:80rpx;padding:0 20rpx 20rpx 0;"><block wx:for="{{item.productAttributeValueVoList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view style="float:left;padding-right:20rpx;">{{''+item1.value+''}}</view></block></view></view></block><uni-forms-item vue-id="{{('6e366e19-10')+','+('6e366e19-1')}}" label="商品条码" name="barcode" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6e366e19-11')+','+('6e366e19-10')}}" type="text" placeholder="可以扫码商品条码添加" trim="all" value="{{formData.barcode}}" data-event-opts="{{[['^input',[['__set_model',['$0','barcode','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput><u-icon vue-id="{{('6e366e19-12')+','+('6e366e19-10')}}" name="camera" size="36" data-event-opts="{{[['^tap',[['scanCodeAdd',['$event']]]]]}}" catch:tap="__e" bind:__l="__l"></u-icon></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-13')+','+('6e366e19-1')}}" label="多图上传" name="productPicture" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['pictureAdd',['$event']]]]]}}" class="upload-img" style="background:#eee;text-align:center;line-height:160rpx;" bindtap="__e"><uni-icons vue-id="{{('6e366e19-14')+','+('6e366e19-13')}}" type="camera" size="28" color="#777" bind:__l="__l"></uni-icons></view><view style="overflow-x:scroll;display:flex;width:350rpx;"><block wx:for="{{formData.productPictures}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{formData.productPictures!=''}}"><view style="width:160rpx;height:160rpx;margin-left:20rpx;"><image class="upload-img _img" src="{{item.productPicture}}" alt></image></view></block></block></view></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-15')+','+('6e366e19-1')}}" label="尾货预警" name="salesWeek" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('6e366e19-16')+','+('6e366e19-15')}}" type="date" clear-icon="{{false}}" value="{{formData.salesWeek}}" data-event-opts="{{[['^input',[['__set_model',['$0','salesWeek','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('6e366e19-17')+','+('6e366e19-1')}}" label="货品简介" name="productIntro" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6e366e19-18')+','+('6e366e19-17')}}" type="textarea" autoHeight="{{true}}" placeholder="请输入货品简介" trim="all" value="{{formData.productIntro}}" data-event-opts="{{[['^input',[['__set_model',['$0','productIntro','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item></uni-forms><view><button data-event-opts="{{[['tap',[['submit']]]]}}" catchtap="__e">保存</button></view></view><uni-popup class="vue-ref" vue-id="6e366e19-19" background-color="#fff" data-ref="addTypeDialog" data-event-opts="{{[['^change',[['changeAddType']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="add-popup-content"><view class="add-popup-title"><text>颜色尺码库</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('6e366e19-20')+','+('6e366e19-19')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view class="add-popup-container"><view class="_ul"><block wx:for="{{defaultList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_li"><view class="title-fur"><view class="name">{{item.name}}</view><u-icon vue-id="{{('6e366e19-21-'+index)+','+('6e366e19-19')}}" size="20" name="plus" color="#5fd9ee" data-event-opts="{{[['^tap',[['toggle',[index]]]]]}}" bind:tap="__e" bind:__l="__l"></u-icon></view><view class="content-fur"><block wx:for="{{item.list}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['isCheckPrec',['$0','$1',index1],[[['defaultList','',index]],[['defaultList','',index],['list','',index1,'value']]]]]]]}}" class="{{['content-low',item1.checked?'checked':'']}}" catchtap="__e">{{item1.value}}</view></block></view></view></block></view><view class="add-popup-bottom"><view data-event-opts="{{[['tap',[['dialogInputConfirm']]]]}}" class="add-popup-btn" bindtap="__e">确认</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="6e366e19-22" type="dialog" data-ref="addDialog" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog class="vue-ref" vue-id="{{('6e366e19-23')+','+('6e366e19-22')}}" mode="input" title="请输入规格名" value="{{specVal}}" placeholder="请输入规格名称" data-ref="addClose" data-event-opts="{{[['^confirm',[['addSpec']]],['^close',[['dialogClose']]]]}}" bind:confirm="__e" bind:close="__e" bind:__l="__l"></uni-popup-dialog></uni-popup><uni-popup class="vue-ref" vue-id="6e366e19-24" background-color="#fff" data-ref="carPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="height:auto !important;"><view style="font-size:36rpx;font-weight:bold;text-align:center;">提示</view><block wx:if="{{goodsList!=''}}"><view style="width:100%;font-weight:bold;text-align:center;font-size:28rpx;margin:20rpx 0;">{{''+formData.productSn+'有以下库存,确认继续删除吗?'}}</view></block><view class="tui-order-item boxbg"><view style="display:flex;border-bottom:1px solid #eee;height:50rpx;line-height:50rpx;"><view style="width:70%;text-align:center;border-right:1px solid #eee;">商品规格</view><view style="width:29%;text-align:center;">数量</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="shop-box" style="position:relative;"><view style="height:50rpx;line-height:50rpx;"><view style="width:70%;text-align:center;border-right:1px solid #eee;float:left;height:50rpx;overflow:hidden;">{{''+item.f0+''}}</view><view style="width:29%;text-align:center;float:left;">{{''+item.$orig.stockCount+''}}</view></view></view></block></view><view class="popup-bottom"><view class="popup-bottom-left"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bottom-btn" style="background:linear-gradient(90deg, #FF9797, #FFC1E0);" bindtap="__e">再想想</view></view><view class="popup-bottom-right"><view data-event-opts="{{[['tap',[['cancelCheck',['$event']]]]]}}" class="bottom-btn" bindtap="__e">取消选中</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="6e366e19-25" background-color="#fff" data-ref="customPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="height:auto;max-height:600rpx;margin-bottom:0;"><block wx:for="{{customerCategoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view style="height:60rpx;line-height:60rpx;">{{''+item.categoryName+''}}</view><input style="height:60rpx;padding-left:20rpx;border:1px solid #eee;border-radius:10rpx;" type="digit" placeholder="请输入客户价格" data-event-opts="{{[['input',[['__set_model',['$0','categoryPrice','$event',[]],[[['customerCategoryList','',index]]]]]]]}}" value="{{item.categoryPrice}}" bindinput="__e"/></view></block><view data-event-opts="{{[['tap',[['updateCate',['$event']]]]]}}" style="text-align:center;margin-top:20rpx;width:100%;height:60rpx;line-height:60rpx;background:#088FEB;color:#fff;" bindtap="__e"> 确认 </view></view></uni-popup><uni-popup class="vue-ref" vue-id="6e366e19-26" background-color="#fff" data-ref="warnPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="width:500rpx;height:760rpx;"><view style="font-size:36rpx;font-weight:bold;text-align:center;">提示</view><view style="width:100%;font-weight:bold;font-size:28rpx;line-height:40rpx;margin:20rpx 0;display:flex;flex-direction:column;"><text>{{"历次入库总数量:"+guigeNum}}</text><text style="margin:20rpx 0;">{{"差价:"+guigeNum+" * ("+oldPurchasePrice+" - "+formData.purchasePrice+")\n\t\t\t\t\t= "+zPrice}}</text><view>是否使用此<input style="width:150rpx;border-bottom:1px solid #000;color:red;text-align:center;display:inline-block;" type="text" data-event-opts="{{[['input',[['__set_model',['','zPrice','$event',[]]]]]]}}" value="{{zPrice}}" bindinput="__e"/>{{'(金额可修改)金额,给供应商“'+dataList.supplierName+"”回款?"}}</view></view><view style="border:1px solid #eee;height:70rpx;margin:30rpx auto 0;"><uni-datetime-picker bind:input="__e" vue-id="{{('6e366e19-27')+','+('6e366e19-26')}}" type="datetime" clear-icon="{{false}}" value="{{single}}" data-event-opts="{{[['^input',[['__set_model',['','single','$event',[]]]]]]}}" bind:__l="__l"></uni-datetime-picker></view><view style="border:1px solid #eee;height:140rpx;margin:30rpx auto 0;"><textarea style="width:100%;height:100%;padding:10rpx;" maxlength="-1" placeholder="请输入充值备注" data-event-opts="{{[['input',[['__set_model',['','rechargeRemark','$event',[]]],['changeRemark',['$event']]]]]}}" value="{{rechargeRemark}}" bindinput="__e"></textarea></view><view class="popup-bottom" style="position:unset;margin-top:20rpx;"><view class="popup-bottom-left"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bottom-btn" style="background:linear-gradient(90deg, #FF9797, #FFC1E0);" bindtap="__e">不需要</view></view><view class="popup-bottom-right"><view data-event-opts="{{[['tap',[['supplierCollection',['$event']]]]]}}" class="bottom-btn" bindtap="__e">回款</view></view></view></view></uni-popup></view>
|