修改复核发货页面
This commit is contained in:
parent
dc7f8a67a1
commit
de85ae5a1e
@ -13,7 +13,7 @@
|
||||
<view class="search-row">
|
||||
<u-search
|
||||
v-model="keyword"
|
||||
:placeholder="isDetailReadOnly ? '已复核,仅可查看' : (showDetailView ? '扫描/输入条码' : (printStationId ? '搜索快递单号/波次号' : '扫描/输入打印台编号'))"
|
||||
:placeholder="isDetailReadOnly ? '已复核,仅可查看' : (showDetailView ? '扫描/输入条码' : (printStationId || printMode === 'noPrint' ? '搜索快递单号/波次号' : '扫描/输入打印台编号'))"
|
||||
:bg-color="isDetailReadOnly ? '#f0f0f0' : '#f5f5f5'"
|
||||
shape="round"
|
||||
:show-action="false"
|
||||
@ -206,6 +206,11 @@
|
||||
:class="{ 'settings-option--active': printMode === 'reviewFirst' }"
|
||||
@click="printMode = 'reviewFirst'; saveSettings(); showSettingsPopup = false"
|
||||
>先复核后打印</text>
|
||||
<text
|
||||
class="settings-option"
|
||||
:class="{ 'settings-option--active': printMode === 'noPrint' }"
|
||||
@click="printMode = 'noPrint'; saveSettings(); showSettingsPopup = false"
|
||||
>不打印</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="settings-row">
|
||||
@ -514,8 +519,11 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
||||
return g;
|
||||
},
|
||||
effectivePrintMode() {
|
||||
// 散单模式只走先复核后打印
|
||||
return this.listType === 'single' ? 'reviewFirst' : this.printMode;
|
||||
// 散单模式只走先复核后打印或不打印
|
||||
if (this.listType === 'single' && this.printMode !== 'noPrint') {
|
||||
return 'reviewFirst';
|
||||
}
|
||||
return this.printMode;
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -835,7 +843,7 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
||||
try {
|
||||
const stored = uni.getStorageSync('review_settings');
|
||||
if (stored) {
|
||||
if (stored.printMode === 'printFirst' || stored.printMode === 'reviewFirst') {
|
||||
if (stored.printMode === 'printFirst' || stored.printMode === 'reviewFirst' || stored.printMode === 'noPrint') {
|
||||
this.printMode = stored.printMode;
|
||||
}
|
||||
if (typeof stored.weighAfterReview === 'boolean') {
|
||||
@ -1169,8 +1177,8 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
||||
}
|
||||
return;
|
||||
}
|
||||
// 已绑定打印台,切换到搜索订单功能
|
||||
if (this.printStationId) {
|
||||
// 已绑定打印台或设置为不打印时,切换到搜索订单功能
|
||||
if (this.printStationId || this.printMode === 'noPrint') {
|
||||
this.requestScanOrder(text);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user