平板端快衣店
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 line
18 KiB

2 months ago
<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="12" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></uni-forms-item><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><uni-forms-item vue-id="{{('b9d1a310-10')+','+('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><uni-forms-item vue-id="{{('b9d1a310-11')+','+('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:40px;" vue-id="{{('b9d1a310-12')+','+('b9d1a310-11')}}" type="right" size="7" bind:__l="__l"></uni-icons></view></view></uni-forms-item><uni-forms-item vue-id="{{('b9d1a310-13')+','+('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']]]]]}}