@logwire/logwire-wms-pda-ui 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -88,6 +88,16 @@ export const submitSkuSnQuality = data => lwAxios.action({
|
|
|
88
88
|
data
|
|
89
89
|
})
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* 完成商品品检
|
|
93
|
+
* @param taskId 品检任务id
|
|
94
|
+
* @returns {Promise<{ quality: Object, printList: Array<Object> }>} 品检结果
|
|
95
|
+
*/
|
|
96
|
+
export const finishSkuQuality = taskId => lwAxios.action({
|
|
97
|
+
url: 'wmsMobileInboundPassQuality',
|
|
98
|
+
data: { taskId }
|
|
99
|
+
})
|
|
100
|
+
|
|
91
101
|
/**
|
|
92
102
|
* 提交品检异常
|
|
93
103
|
* @param data 品检异常数据
|
|
@@ -94,6 +94,10 @@
|
|
|
94
94
|
<lw-button plain @click="resetLpn">切换托盘</lw-button>
|
|
95
95
|
<lw-button @click="submitLpn">提交品检结果</lw-button>
|
|
96
96
|
</lw-bottom-bar>
|
|
97
|
+
<lw-bottom-bar v-else-if="canFinish">
|
|
98
|
+
<lw-button plain @click="resetSku" v-if="$route.query.lwComeFrom !== 'task'">切换商品</lw-button>
|
|
99
|
+
<lw-button @click="finishSku">完成当前商品品检</lw-button>
|
|
100
|
+
</lw-bottom-bar>
|
|
97
101
|
<van-dialog v-model="showSns" title="当前扫描的SN列表">
|
|
98
102
|
<sns-list :sns="sns" @remove="removeSn"/>
|
|
99
103
|
</van-dialog>
|
|
@@ -120,6 +124,7 @@
|
|
|
120
124
|
|
|
121
125
|
<script>
|
|
122
126
|
import {
|
|
127
|
+
finishSkuQuality,
|
|
123
128
|
getInboundFoundQualityCard,
|
|
124
129
|
getInboundGetQualityDetail, submitQualityAbnormal,
|
|
125
130
|
submitSkuQuality, submitSkuSnQuality
|
|
@@ -161,6 +166,9 @@ export default {
|
|
|
161
166
|
ownerId: this.task.asn.ownerId || null,
|
|
162
167
|
warehouseId: this.task.warehouseId || null,
|
|
163
168
|
}
|
|
169
|
+
},
|
|
170
|
+
canFinish () {
|
|
171
|
+
return !this.task.sku.needSn && this.task.qualityQty > 0 && this.task.sku.qualityType === '200'
|
|
164
172
|
}
|
|
165
173
|
},
|
|
166
174
|
created () {
|
|
@@ -290,6 +298,17 @@ export default {
|
|
|
290
298
|
this.sns.splice(idx, 1)
|
|
291
299
|
}
|
|
292
300
|
},
|
|
301
|
+
resetSku () {
|
|
302
|
+
this.$router.back()
|
|
303
|
+
},
|
|
304
|
+
finishSku () {
|
|
305
|
+
finishSkuQuality(this.task.id).then(res => {
|
|
306
|
+
if (res.quality) {
|
|
307
|
+
this.task = res.quality
|
|
308
|
+
this.$lwToast.success('品检完成')
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
},
|
|
293
312
|
showAbnormalPop () {
|
|
294
313
|
const lotData = this.$refs.lot.getData()
|
|
295
314
|
if (lotData.success) {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<!-- 单号 -->
|
|
22
22
|
<div class="lw-global-flex-between lw-global-row-start">
|
|
23
|
-
<div>
|
|
23
|
+
<div v-if="type === 'so'">
|
|
24
24
|
<span class="lw-global-title">
|
|
25
25
|
{{ $lwLanguage.get('wms_project.pda.outbound.delivery.soAndLpn.orderNo','单号') }}
|
|
26
26
|
</span>
|
|
@@ -29,6 +29,15 @@
|
|
|
29
29
|
</span>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
+
<div v-if="type === 'lpn'">
|
|
33
|
+
<span class="lw-global-title">
|
|
34
|
+
{{ $lwLanguage.get('wms_project.pda.outbound.delivery.action.lpn','托盘号') }}
|
|
35
|
+
</span>
|
|
36
|
+
<span class="lw-global-value-bold">
|
|
37
|
+
{{ item.palletNo }}
|
|
38
|
+
</span>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
32
41
|
<slot>
|
|
33
42
|
<lw-button
|
|
34
43
|
style="flex-shrink: 0"
|