1 line
16 KiB
Plaintext
1 line
16 KiB
Plaintext
<view data-event-opts="{{[['tap',[['closeAllDropdowns',['$event']]]]]}}" class="page-container data-v-22102fb8" style="{{(pageContainerStyle)}}" bindtap="__e"><block wx:if="{{currentTab==='photo'&&!showBcodeCamera}}"><view class="form-container data-v-22102fb8"><block wx:if="{{isLoading}}"><text class="data-v-22102fb8">正在识别中...</text></block><block wx:else><block wx:if="{{errorMsg}}"><text class="data-v-22102fb8">{{errorMsg}}</text></block><block wx:else><view class="book-info data-v-22102fb8"><view class="info-item info-item-row data-v-22102fb8"><warehouse-selector style="flex:0.4;" vue-id="1ff6484e-1" initialStorage="{{selectedStorage}}" initialWarehouse="{{selectedWarehouse}}" data-ref="warehouseSelector" data-event-opts="{{[['^labelClick',[['navigateBack']]],['^storageSelected',[['handleStorageSelected']]]]}}" bind:labelClick="__e" bind:storageSelected="__e" class="data-v-22102fb8 vue-ref" bind:__l="__l"></warehouse-selector><view class="half-item data-v-22102fb8" style="flex:0.6;"><text class="label data-v-22102fb8">印刷时间</text><view data-event-opts="{{[['tap',[['showPrintTimeKeyboard',['$event']]]]]}}" class="input-field time-input-view data-v-22102fb8" bindtap="__e"><text class="data-v-22102fb8">{{bookInfo.printTime||'请输入印刷时间'}}</text></view><button class="upload-btn data-v-22102fb8" type="default" size="mini" data-event-opts="{{[['tap',[['chooseImage',['$event']]]]]}}" bindtap="__e">识图上传</button></view></view><view class="info-item data-v-22102fb8"><view class="half-item data-v-22102fb8"><text class="label data-v-22102fb8">书名</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入书名" disabled="{{hasNormalImages}}" data-event-opts="{{[['input',[['__set_model',['$0','bookName','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.bookName}}" bindinput="__e"/><button class="{{['upload-btn','data-v-22102fb8',(hasNormalImages)?'scan-btn-disabled':'']}}" type="default" size="mini" disabled="{{hasNormalImages}}" data-event-opts="{{[['tap',[['getBookName',['$event']]]]]}}" bindtap="__e">书名查询</button></view></view><view class="info-item data-v-22102fb8"><view class="half-item data-v-22102fb8"><text class="label data-v-22102fb8">作者</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入作者" data-event-opts="{{[['input',[['__set_model',['$0','author','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.author}}" bindinput="__e"/><button data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="dropdown-btn data-v-22102fb8" catchtap="__e">▼</button><block wx:if="{{authorDropdownVisible}}"><view class="dropdown-list data-v-22102fb8"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view class="data-v-22102fb8"><view data-event-opts="{{[['tap',[['selectAuthor',['$0'],[[['authorOptions','',idx]]]]]]]}}" class="dropdown-item data-v-22102fb8" bindtap="__e">{{item.$orig}}</view><block wx:if="{{idx<item.g0-1}}"><view class="dropdown-divider data-v-22102fb8"></view></block></view></block></view></block></view></view><view class="info-item data-v-22102fb8" style="position:relative;"><text class="label data-v-22102fb8">出版社</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入出版社" data-event-opts="{{[['input',[['__set_model',['$0','publisher','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.publisher}}" bindinput="__e"/><button data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="dropdown-btn data-v-22102fb8" catchtap="__e">▼</button><block wx:if="{{publisherDropdownVisible}}"><view class="dropdown-list data-v-22102fb8" style="top:70rpx;left:0;"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view class="data-v-22102fb8"><view data-event-opts="{{[['tap',[['selectPublisher',['$0'],[[['publisherOptions','',idx]]]]]]]}}" class="dropdown-item data-v-22102fb8" bindtap="__e">{{item.$orig}}</view><block wx:if="{{idx<item.g1-1}}"><view class="dropdown-divider data-v-22102fb8"></view></block></view></block></view></block></view><view class="info-item category-container data-v-22102fb8"><view class="half-item data-v-22102fb8"><text class="label data-v-22102fb8">图书分类</text><picker mode="multiSelector" range="{{categoryColumns}}" range-key="name" value="{{categoryIndexes}}" data-event-opts="{{[['columnchange',[['onCategoryColumnChange',['$event']]]],['change',[['onCategoryChange',['$event']]]]]}}" bindcolumnchange="__e" bindchange="__e" class="data-v-22102fb8"><view class="picker-single data-v-22102fb8">{{''+(categoryPathText||'请选择分类')+''}}</view></picker></view></view><view class="info-item info-item-row data-v-22102fb8"><view class="half-item format-item data-v-22102fb8" style="position:relative;"><text class="label data-v-22102fb8">开本</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入开本" data-event-opts="{{[['input',[['__set_model',['$0','format','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.format}}" bindinput="__e"/><button data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="dropdown-btn data-v-22102fb8" catchtap="__e">▼</button><block wx:if="{{formatDropdownVisible}}"><view class="dropdown-list data-v-22102fb8" style="top:70rpx;left:0;max-height:300rpx;"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view class="data-v-22102fb8"><view data-event-opts="{{[['tap',[['selectFormat',['$0'],[[['formatOptions','',idx]]]]]]]}}" class="dropdown-item data-v-22102fb8" bindtap="__e">{{item.$orig}}</view><block wx:if="{{idx<item.g2-1}}"><view class="dropdown-divider data-v-22102fb8"></view></block></view></block></view></block></view><view class="half-item isbn-item data-v-22102fb8"><text class="label data-v-22102fb8">书号</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入统一书号" data-event-opts="{{[['input',[['__set_model',['$0','unifyIsbn','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.unifyIsbn}}" bindinput="__e"/></view></view><view class="info-item info-item-row data-v-22102fb8"><view class="half-item format-item data-v-22102fb8"><text class="label data-v-22102fb8">定价</text><input class="input-field data-v-22102fb8" type="digit" placeholder="请输入定价" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.price}}" bindinput="__e"/></view><view class="half-item isbn-item data-v-22102fb8"><text class="label data-v-22102fb8">字数</text><input class="input-field data-v-22102fb8" type="number" placeholder="请输入字数" data-event-opts="{{[['input',[['__set_model',['$0','wordage','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.wordage}}" bindinput="__e"/></view></view><view class="info-item data-v-22102fb8"><view class="half-item data-v-22102fb8"><text class="label data-v-22102fb8">ISBN</text><input class="input-field data-v-22102fb8" type="text" placeholder="请输入ISBN" disabled="{{hasNormalImages}}" data-event-opts="{{[['input',[['__set_model',['$0','isbn','$event',[]],['bookInfo']]]]]}}" value="{{bookInfo.isbn}}" bindinput="__e"/></view></view></view></block></block><book-condition-select bind:change="__e" vue-id="1ff6484e-2" data-ref="conditionSelect" data-event-opts="{{[['^change',[['onConditionChange']]]]}}" class="data-v-22102fb8 vue-ref" bind:__l="__l"></book-condition-select><price-stock-control vue-id="1ff6484e-3" price="{{value4}}" stock="{{value3}}" data-event-opts="{{[['^updatePrice',[['__set_sync',['$0','value4','$event'],['']]]],['^updateStock',[['__set_sync',['$0','value3','$event'],['']]]],['^priceChange',[['onPriceChange']]],['^stockChange',[['onStockChange']]]]}}" bind:updatePrice="__e" bind:updateStock="__e" bind:priceChange="__e" bind:stockChange="__e" class="data-v-22102fb8" bind:__l="__l"></price-stock-control><camera-upload vue-id="1ff6484e-4" maxCount="{{9}}" isbn="{{bookInfo.isbn}}" bookName="{{bookInfo.bookName}}" value="{{fileList1}}" data-event-opts="{{[['^input',[['__set_model',['','fileList1','$event',[]]],['handleFileChange']]],['^cameraStatusChange',[['handleCameraStatusChange']]],['^uploadStatusChange',[['handleUploadStatusChange']]]]}}" bind:input="__e" bind:cameraStatusChange="__e" bind:uploadStatusChange="__e" class="data-v-22102fb8" bind:__l="__l"></camera-upload><on-sale-products vue-id="1ff6484e-5" initialOnSaleProducts="{{onSaleProducts}}" initialDisplayOnSaleProducts="{{displayOnSaleProducts}}" initialCompareType="{{compareType}}" isbn="{{bookInfo.isbn}}" bookName="{{bookInfo.bookName}}" showCompareButton="{{false}}" showCopyrightButton="{{true}}" publisher="{{bookInfo.publisher}}" author="{{bookInfo.author}}" showFilterButton="{{false}}" data-ref="onSaleProductsComponent" data-event-opts="{{[['^compareTypeChange',[['handleCompareTypeChange']]],['^copyrightCompare',[['handleCopyrightCompare']]],['^filtersApplied',[['handleFiltersApplied']]],['^filtersReset',[['handleFiltersReset']]],['^productsUpdated',[['handleProductsUpdated']]]]}}" bind:compareTypeChange="__e" bind:copyrightCompare="__e" bind:filtersApplied="__e" bind:filtersReset="__e" bind:productsUpdated="__e" class="data-v-22102fb8 vue-ref" bind:__l="__l"></on-sale-products><view class="view-container data-v-22102fb8" style="margin-top:40rpx;"><view data-event-opts="{{[['tap',[['getBookRecords',['$event']]]]]}}" class="view-item data-v-22102fb8" style="display:flex;align-items:center;" bindtap="__e"><view class="blue-block data-v-22102fb8"></view><text class="general-label data-v-22102fb8" style="background:none;padding:0;">上书记录</text></view></view><view hidden="{{!(showSubmitButton&&!showBcodeCamera)}}" class="form-item fixed-bottom data-v-22102fb8"><button class="submit-btn data-v-22102fb8" type="primary" disabled="{{isSubmitting||isUploading}}" data-event-opts="{{[['tap',[['submitForm',['$event']]]]]}}" bindtap="__e">{{isSubmitting?'正在提交...':isUploading?'图片上传中...':'提交'}}</button><u-popup class="form-popup data-v-22102fb8" vue-id="1ff6484e-6" show="{{popupDialog.show}}" mode="center" bind:__l="__l" vue-slots="{{['default']}}"><view class="popupContentBox data-v-22102fb8">{{popupDialog.title}}</view><view class="popupContentBox data-v-22102fb8">{{popupDialog.content}}</view><view class="c_box_ data-v-22102fb8"><image class="popup-image data-v-22102fb8" src="{{popupDialog.imgSrc}}" mode="aspectFill"></image></view><view class="select-container data-v-22102fb8"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="custom-select data-v-22102fb8" bindtap="__e"><text class="data-v-22102fb8">{{popupDialog.selectedSeries||'请选择'}}</text></view></view><u-picker vue-id="{{('1ff6484e-7')+','+('1ff6484e-6')}}" show="{{popupDialog.showPicker}}" columns="{{[popupDialog.seriesOptions]}}" data-event-opts="{{[['^confirm',[['onSeriesConfirm']]],['^cancel',[['e4']]]]}}" bind:confirm="__e" bind:cancel="__e" class="data-v-22102fb8" bind:__l="__l"></u-picker><view class="button-group data-v-22102fb8"><view data-event-opts="{{[['tap',[['onPopupCancel',['$event']]]]]}}" class="btn cancel-btn data-v-22102fb8" bindtap="__e"><text class="data-v-22102fb8">{{popupDialog.cancelText}}</text></view><view data-event-opts="{{[['tap',[['onPopupConfirm',['$event']]]]]}}" class="btn confirm-btn data-v-22102fb8" bindtap="__e"><text class="data-v-22102fb8">{{popupDialog.confirmText}}</text></view></view></u-popup></view></view></block><block wx:if="{{showBcodeCamera}}"><bcode-camera style="position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;" vue-id="1ff6484e-8" tipsText="请将书籍对准取景框" color="rgba(0, 122, 255, 0.8)" showScanEffect="{{true}}" scanMode="{{true}}" customStyle="{{$root.a0}}" data-event-opts="{{[['^onConfirm',[['handleBcodeCameraResult']]],['^onCancel',[['handleBcodeCameraCancel']]],['^onUpload',[['handleBcodeCameraResult']]]]}}" bind:onConfirm="__e" bind:onCancel="__e" bind:onUpload="__e" class="data-v-22102fb8" bind:__l="__l" vue-slots="{{['default']}}"><view class="scan-container data-v-22102fb8"><view class="grid-background data-v-22102fb8"></view><view class="scan-line data-v-22102fb8"></view></view></bcode-camera></block><block wx:if="{{showRecognizing&&previewImageUrl}}"><view class="recognizing-preview-box data-v-22102fb8"><image class="recognizing-preview-img data-v-22102fb8" src="{{previewImageUrl}}" mode="aspectFit"></image><view class="recognizing-overlay-on-image data-v-22102fb8"><view class="scan-line data-v-22102fb8"></view><view class="recognizing-text data-v-22102fb8">正在识别中...</view></view></view></block><block wx:if="{{printTimePopupVisible}}"><view class="print-time-popup data-v-22102fb8"><view class="print-time-container data-v-22102fb8"><view class="print-time-header data-v-22102fb8"><text class="data-v-22102fb8">出版时间</text><text data-event-opts="{{[['tap',[['closePrintTimePopup',['$event']]]]]}}" class="close-btn data-v-22102fb8" bindtap="__e">×</text></view><view class="print-time-tabs data-v-22102fb8"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="{{['tab-item','data-v-22102fb8',(printTimeTab==='input')?'active':'']}}" bindtap="__e"><text class="data-v-22102fb8">填写时间</text><block wx:if="{{printTimeTab==='input'}}"><view class="tab-line data-v-22102fb8"></view></block></view><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" class="{{['tab-item','data-v-22102fb8',(printTimeTab==='year')?'active':'']}}" bindtap="__e"><text class="data-v-22102fb8">选择年代</text><block wx:if="{{printTimeTab==='year'}}"><view class="tab-line data-v-22102fb8"></view></block></view></view><block wx:if="{{printTimeTab==='input'}}"><view class="print-time-content data-v-22102fb8"><view class="time-input-fields data-v-22102fb8"><view class="input-group data-v-22102fb8"><input class="time-input year-input data-v-22102fb8" type="text" placeholder="年" focus="{{printTimeActiveInput==='year'}}" readonly="{{true}}" data-event-opts="{{[['focus',[['e7',['$event']]]],['input',[['__set_model',['','printTimeYear','$event',[]]]]]]}}" value="{{printTimeYear}}" bindfocus="__e" bindinput="__e"/></view><view class="input-group data-v-22102fb8"><input class="time-input month-input data-v-22102fb8" type="text" placeholder="月" focus="{{printTimeActiveInput==='month'}}" readonly="{{true}}" data-event-opts="{{[['focus',[['e8',['$event']]]],['input',[['__set_model',['','printTimeMonth','$event',[]]]]]]}}" value="{{printTimeMonth}}" bindfocus="__e" bindinput="__e"/></view></view></view></block><block wx:if="{{printTimeTab==='year'}}"><view class="print-time-content year-selection data-v-22102fb8"><view class="year-grid data-v-22102fb8"><block wx:for="{{decades}}" wx:for-item="decade" wx:for-index="__i0__" wx:key="label"><view data-event-opts="{{[['tap',[['selectDecade',['$0'],[[['decades','label',decade.label,'value']]]]]]]}}" class="decade-item data-v-22102fb8" bindtap="__e">{{''+decade.label+''}}</view></block></view></view></block><view class="numeric-keyboard data-v-22102fb8"><view class="keyboard-row data-v-22102fb8"><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['1']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">1</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['2']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">2</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['3']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">3</view><view data-event-opts="{{[['tap',[['deletePrintTimeDigit',['$event']]]]]}}" class="key-item delete-key data-v-22102fb8" bindtap="__e">×</view></view><view class="keyboard-row data-v-22102fb8"><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['4']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">4</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['5']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">5</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['6']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">6</view></view><view class="keyboard-row data-v-22102fb8"><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['7']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">7</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['8']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">8</view><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['9']]]]]}}" class="key-item data-v-22102fb8" bindtap="__e">9</view></view><view class="keyboard-row data-v-22102fb8"><view data-event-opts="{{[['tap',[['inputPrintTimeDigit',['0']]]]]}}" class="key-item zero-key data-v-22102fb8" bindtap="__e">0</view><view data-event-opts="{{[['tap',[['confirmPrintTime',['$event']]]]]}}" class="key-item keyboard-btn data-v-22102fb8" bindtap="__e">确定</view></view></view></view></view></block></view> |