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
20 KiB
1 lines
20 KiB
<view class="page1"><view class="formBox"><uni-forms class="vue-ref" vue-id="b9d1a310-1" modelValue="{{formData}}" rules="{{rules}}" labelWidth="170rpx" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('b9d1a310-2')+','+('b9d1a310-1')}}" label="商品名称" name="productName" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('b9d1a310-3')+','+('b9d1a310-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="{{('b9d1a310-4')+','+('b9d1a310-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="{{('b9d1a310-5')+','+('b9d1a310-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="{{('b9d1a310-6')+','+('b9d1a310-1')}}" label="货号" name="productSn" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput vue-id="{{('b9d1a310-7')+','+('b9d1a310-6')}}" clearable="{{false}}" type="text" placeholder="请输入货号" trim="all" value="{{formData.productSn}}" data-event-opts="{{[['^blur',[['getSnIsRepeat']]],['^input',[['__set_model',['$0','productSn','$event',[]],['formData']]]]]}}" bind:blur="__e" bind:input="__e" bind:__l="__l"></uni-easyinput><uni-icons vue-id="{{('b9d1a310-8')+','+('b9d1a310-6')}}" type="refresh" color="#777" size="36" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></uni-forms-item><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-9')+','+('b9d1a310-1')}}" label="团长佣金(%)" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入团长佣金" data-event-opts="{{[['focus',[['obtainPrice',['$event','purchasePrice']]]],['blur',[['changessPrice',['$event','purchasePrice']]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],['formData']]]]]}}" value="{{formData.purchasePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><block wx:else><view><uni-forms-item vue-id="{{('b9d1a310-10')+','+('b9d1a310-1')}}" label="采购价" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入采购价" data-event-opts="{{[['focus',[['obtainPrice',['$event','purchasePrice']]]],['blur',[['changessPrice',['$event','purchasePrice']]]],['input',[['__set_model',['$0','purchasePrice','$event',[]],['formData']]]]]}}" value="{{formData.purchasePrice}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-11')+','+('b9d1a310-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></view></block><block wx:else><view><uni-forms-item vue-id="{{('b9d1a310-12')+','+('b9d1a310-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></view></block><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-13')+','+('b9d1a310-1')}}" label="主播佣金(%)" name="commission" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入主播佣金" data-event-opts="{{[['focus',[['obtainPrice',['$event','commission']]]],['blur',[['changessPrice',['$event','commission']]]],['input',[['__set_model',['$0','commission','$event',[]],['formData']]]]]}}" value="{{formData.commission}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><uni-forms-item vue-id="{{('b9d1a310-14')+','+('b9d1a310-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="{{('b9d1a310-15')+','+('b9d1a310-14')}}" type="right" size="16" bind:__l="__l"></uni-icons></view></view></uni-forms-item><uni-forms-item vue-id="{{('b9d1a310-16')+','+('b9d1a310-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',[['addCustomPrice',['$event']]]]]}}" bindtap="__e"/><uni-icons style="margin-left:40rpx;line-height:70rpx;" vue-id="{{('b9d1a310-17')+','+('b9d1a310-16')}}" 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="{{('b9d1a310-18')+','+('b9d1a310-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="{{('b9d1a310-19')+','+('b9d1a310-1')}}" label="商品条码" name="barcode" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('b9d1a310-20')+','+('b9d1a310-19')}}" 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="{{('b9d1a310-21')+','+('b9d1a310-19')}}" 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="{{('b9d1a310-22')+','+('b9d1a310-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="{{('b9d1a310-23')+','+('b9d1a310-22')}}" 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><block wx:if="{{shopId=='1960543009070256129'}}"><view><uni-forms-item vue-id="{{('b9d1a310-24')+','+('b9d1a310-1')}}" label="日常价" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入日常价" data-event-opts="{{[['focus',[['obtainPrice',['$event','price']]]],['blur',[['changessPrice',['$event','price']]]],['input',[['__set_model',['$0','price','$event',[]],['formData']]]]]}}" value="{{formData.price}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><block wx:else><view><uni-forms-item vue-id="{{('b9d1a310-25')+','+('b9d1a310-1')}}" label="零售价" name="price" bind:__l="__l" vue-slots="{{['default']}}"><input class="content-input" type="digit" placeholder="请输入零售价" data-event-opts="{{[['focus',[['obtainPrice',['$event','price']]]],['blur',[['changessPrice',['$event','price']]]],['input',[['__set_model',['$0','price','$event',[]],['formData']]]]]}}" value="{{formData.price}}" bindfocus="__e" bindblur="__e" bindinput="__e"/></uni-forms-item></view></block><uni-forms-item vue-id="{{('b9d1a310-26')+','+('b9d1a310-1')}}" label="尾货预警" name="salesWeek" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('b9d1a310-27')+','+('b9d1a310-26')}}" 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="{{('b9d1a310-28')+','+('b9d1a310-1')}}" label="库存预警" name="tailWarn" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('b9d1a310-29')+','+('b9d1a310-28')}}" type="digit" placeholder="请设置库存预警最低件数" trim="all" value="{{formData.tailWarn}}" data-event-opts="{{[['^input',[['__set_model',['$0','tailWarn','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('b9d1a310-30')+','+('b9d1a310-1')}}" label="货品简介" name="productIntro" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('b9d1a310-31')+','+('b9d1a310-30')}}" 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="b9d1a310-32" background-color="#fff" is-mask-click="{{true}}" data-ref="SNDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="type-popup" style="max-height:1000rpx;overflow:scroll;margin-bottom:0;border-radius:0;"><view style="height:80rpx;font-size:36rpx;font-weight:bold;line-height:80rpx;text-align:center;"> 点击选择已有规则 </view><view style="width:90%;margin:0 auto;"><block wx:for="{{snList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['generateSn',['$0'],[[['snList','',index,'value']]]]]]]}}" style="height:80rpx;line-height:80rpx;font-size:28rpx;border-bottom:1px solid #eee;display:flex;" bindtap="__e"><view style="width:90%;">{{index+1+" 、 "+item.text}}</view><uni-icons style="width:10%;text-align:center;" vue-id="{{('b9d1a310-33-'+index)+','+('b9d1a310-32')}}" type="right" size="16" bind:__l="__l"></uni-icons></view></block></view><view style="height:80rpx;font-size:36rpx;font-weight:bold;line-height:80rpx;text-align:center;"> 生成新规则 </view><view style="height:80rpx;font-size:22rpx;font-weight:bold;line-height:80rpx;color:red;text-align:center;"> *如生成新的货号规则,可在下方输入框新增 </view><view class="sn-content-list"><view class="sn-list-name" style="width:156rpx;">前缀</view><view class="sn-list-val" style="width:245rpx;"><input style="width:245rpx;" type="text" placeholder="请输入前缀规则" data-event-opts="{{[['input',[['__set_model',['','prefixRule','$event',[]]]]]]}}" value="{{prefixRule}}" bindinput="__e"/></view></view><view class="sn-content-list"><view class="sn-list-name" style="width:156rpx;">生成位数</view><view class="sn-list-val" style="width:245rpx;"><input style="width:245rpx;" type="number" placeholder="请输入位数规则" data-event-opts="{{[['input',[['__set_model',['','numRule','$event',[]]]]]]}}" value="{{numRule}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['startGetSn',['$event']]]]]}}" style="width:100%;height:70rpx;line-height:70rpx;margin-top:20rpx;text-align:center;border-radius:0;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;" bindtap="__e"><view>开始生成</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="b9d1a310-34" 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="{{('b9d1a310-35')+','+('b9d1a310-34')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['e1']]]]}}" 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="{{('b9d1a310-36-'+index)+','+('b9d1a310-34')}}" 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="b9d1a310-37" type="dialog" data-ref="addDialog" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog class="vue-ref" vue-id="{{('b9d1a310-38')+','+('b9d1a310-37')}}" 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="b9d1a310-39" 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',[['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',[['cancelCheck',['$event']]]]]}}" class="bottom-btn" bindtap="__e">取消选中</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="b9d1a310-40" 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="b9d1a310-41" 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="{{('b9d1a310-42')+','+('b9d1a310-41')}}" 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',[['e3',['$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>
|