1 |
- <uni-drawer vue-id="0b1eab4b-1" mode="left" mask-click="{{false}}" width="85%" maskClick="{{true}}" data-ref="drawer" class="data-v-d5fe0dca vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view class="scroll-view data-v-d5fe0dca" scroll-y="true"><uni-section vue-id="{{('0b1eab4b-2')+','+('0b1eab4b-1')}}" title="{{'新增物资:'+(type==='in'?'入库':'出库')}}" type="line" class="data-v-d5fe0dca" bind:__l="__l"></uni-section><view class="form-wrap data-v-d5fe0dca"><uni-forms vue-id="{{('0b1eab4b-3')+','+('0b1eab4b-1')}}" label-position="top" rules="{{rules}}" model="{{form}}" data-ref="form" class="data-v-d5fe0dca vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{type==='in'}}"><view class="inbound data-v-d5fe0dca"><uni-forms-item vue-id="{{('0b1eab4b-4')+','+('0b1eab4b-3')}}" label="入库人员" name="accountId" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('0b1eab4b-5')+','+('0b1eab4b-4')}}" localdata="{{userList}}" placeholder="请选择入库人员" clear="{{false}}" value="{{form.accountId}}" data-event-opts="{{[['^input',[['__set_model',['$0','accountId','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-data-select></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-6')+','+('0b1eab4b-3')}}" label="入库类型" name="inboundType" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('0b1eab4b-7')+','+('0b1eab4b-6')}}" localdata="{{inboundTypeList}}" placeholder="请选择入库类型" clear="{{false}}" value="{{form.inboundType}}" data-event-opts="{{[['^input',[['__set_model',['$0','inboundType','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-data-select></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-8')+','+('0b1eab4b-3')}}" label="物资种类" name="goodsCatId" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('0b1eab4b-9')+','+('0b1eab4b-8')}}" localdata="{{goodsCats}}" placeholder="请选择物资种类" clear="{{false}}" value="{{form.goodsCatId}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsCatId','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-data-select></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-10')+','+('0b1eab4b-3')}}" label="物资数量" label-position="left" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-11')+','+('0b1eab4b-10')}}" placeholder="请输入物资数量" clearable="{{false}}" value="{{form.qty}}" data-event-opts="{{[['^input',[['__set_model',['$0','qty','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-12')+','+('0b1eab4b-3')}}" label="物资编号" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-13')+','+('0b1eab4b-12')}}" placeholder="请输入物资编号" clearable="{{false}}" value="{{form.goodsNo}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsNo','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-14')+','+('0b1eab4b-3')}}" label="存放位置" name="inboundLocation" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-15')+','+('0b1eab4b-14')}}" placeholder="请输入存放位置" clearable="{{false}}" value="{{form.inboundLocation}}" data-event-opts="{{[['^input',[['__set_model',['$0','inboundLocation','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-16')+','+('0b1eab4b-3')}}" label="物资名称" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-17')+','+('0b1eab4b-16')}}" value="{{form.goodsTitle}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsTitle','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-18')+','+('0b1eab4b-3')}}" label="生产日期" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('0b1eab4b-19')+','+('0b1eab4b-18')}}" type="date" value="{{form.goodsPdDate}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsPdDate','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-20')+','+('0b1eab4b-3')}}" label="过期时间" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('0b1eab4b-21')+','+('0b1eab4b-20')}}" type="date" value="{{form.goodsExpDate}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsExpDate','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('0b1eab4b-22')+','+('0b1eab4b-3')}}" label="物资说明" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-23')+','+('0b1eab4b-22')}}" type="textarea" maxlength="{{1000}}" placeholder="请输入物资说明" autoHeight="{{true}}" value="{{form.goodsDesc}}" data-event-opts="{{[['^input',[['__set_model',['$0','goodsDesc','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput><view class="word-limit data-v-d5fe0dca">{{$root.g0+"/1000"}}</view></uni-forms-item></view></block><block wx:if="{{type==='out'}}"><view class="outbound data-v-d5fe0dca"><uni-card vue-id="{{('0b1eab4b-24')+','+('0b1eab4b-3')}}" margin="10px 0" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-list vue-id="{{('0b1eab4b-25')+','+('0b1eab4b-24')}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-list-item vue-id="{{('0b1eab4b-26')+','+('0b1eab4b-25')}}" title="物资种类" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['footer']}}"><uni-tag vue-id="{{('0b1eab4b-27')+','+('0b1eab4b-26')}}" text="{{form.goodsCatTitle}}" type="success" class="data-v-d5fe0dca" slot="footer" bind:__l="__l"></uni-tag></uni-list-item><uni-list-item vue-id="{{('0b1eab4b-28')+','+('0b1eab4b-25')}}" title="库存数量" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['footer']}}"><uni-tag vue-id="{{('0b1eab4b-29')+','+('0b1eab4b-28')}}" text="{{''+form.qty}}" type="primary" class="data-v-d5fe0dca" slot="footer" bind:__l="__l"></uni-tag></uni-list-item></uni-list></uni-card><uni-forms-item vue-id="{{('0b1eab4b-30')+','+('0b1eab4b-3')}}" label="出库人员" name="accountId" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('0b1eab4b-31')+','+('0b1eab4b-30')}}" localdata="{{userList}}" placeholder="请选择出库人员" clear="{{false}}" value="{{form.accountId}}" data-event-opts="{{[['^input',[['__set_model',['$0','accountId','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-data-select></uni-forms-item><block wx:if="{{type==='out'}}"><uni-forms-item vue-id="{{('0b1eab4b-32')+','+('0b1eab4b-3')}}" label="出库类型" name="outboundType" required="{{true}}" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('0b1eab4b-33')+','+('0b1eab4b-32')}}" localdata="{{outboundTypeList}}" placeholder="请选择出库类型" clear="{{false}}" value="{{form.outboundType}}" data-event-opts="{{[['^input',[['__set_model',['$0','outboundType','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-data-select></uni-forms-item></block><uni-forms-item vue-id="{{('0b1eab4b-34')+','+('0b1eab4b-3')}}" label="出库地点" name="outboundLocation" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-35')+','+('0b1eab4b-34')}}" placeholder="请输入存放位置" clearable="{{false}}" value="{{form.outboundLocation}}" data-event-opts="{{[['^input',[['__set_model',['$0','outboundLocation','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput></uni-forms-item></view></block><uni-forms-item vue-id="{{('0b1eab4b-36')+','+('0b1eab4b-3')}}" label="备注" class="data-v-d5fe0dca" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('0b1eab4b-37')+','+('0b1eab4b-36')}}" type="textarea" maxlength="{{500}}" autoHeight="{{true}}" placeholder="请输入备注" value="{{form.remark}}" data-event-opts="{{[['^input',[['__set_model',['$0','remark','$event',[]],['form']]]]]}}" class="data-v-d5fe0dca" bind:__l="__l"></uni-easyinput><view class="word-limit data-v-d5fe0dca">{{$root.g1+"/500"}}</view></uni-forms-item></uni-forms><view class="handle-container data-v-d5fe0dca"><button class="save data-v-d5fe0dca" type="primary" data-event-opts="{{[['tap',[['onSubmit',['$event']]]]]}}" bindtap="__e">保存</button><button class="cancel data-v-d5fe0dca" type="default" data-event-opts="{{[['tap',[['close',['$event']]]]]}}" bindtap="__e">取消</button></view></view></scroll-view></uni-drawer>
|