diff --git a/src/api/haianWarehouse/warehousePallet.js b/src/api/haianWarehouse/warehousePallet.js
index 6313c2c..c4d9308 100644
--- a/src/api/haianWarehouse/warehousePallet.js
+++ b/src/api/haianWarehouse/warehousePallet.js
@@ -35,3 +35,9 @@ export const haiAnGetMaxPalletNoByFamily = data => createAPI('/autoWareHourceHai
// 海安托盘批量生成 - rqrq
export const haiAnBatchGeneratePallet = data => createAPI('/autoWareHourceHaian/haiAnPallet/batchGeneratePallet', 'post', data)
+
+// 海安托盘标签明细,弹窗展示位置、层数、标签、物料、批次、数量、WDR - rqrq
+export const haiAnListPalletLabelDetails = data => createAPI('/autoWareHourceHaian/haiAnPallet/listLabelDetails', 'post', data)
+
+// 货架托盘同步当前标签明细到立库,不在货架时后端拒绝 - rqrq
+export const haiAnSyncPalletDetailToWcs = data => createAPI('/autoWareHourceHaian/haiAnPallet/syncPalletDetailToWcs', 'post', data)
diff --git a/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue b/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue
index 22644b4..520a8a2 100644
--- a/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue
+++ b/src/views/modules/haianWarehouse/automatedWarehouse/agvTask54.vue
@@ -131,8 +131,8 @@
-
-
+
+
diff --git a/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue b/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue
index 41ffcd0..91f1e80 100644
--- a/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue
+++ b/src/views/modules/haianWarehouse/warehousePallet/warehousePallet54.vue
@@ -97,6 +97,25 @@
@selection-change="selectionChangeHandle"
style="width: 100%;"
>
+
+
+
+ 查看明细
+ {{ syncingPalletId === scope.row.palletId ? '同步中...' : '同步WCS' }}
+ 同步WCS
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatQty(scope.row.qty) }}
+
+
+
+
+
+
{
+ if (requestSeq !== this.detailRequestSeq) {
+ return
+ }
+ if (data && data.code === 0) {
+ this.detailDialog.rows = data.rows || []
+ } else {
+ this.$alert((data && data.msg) || '查询托盘明细失败', '提示', { confirmButtonText: '确定' })
+ }
+ }).catch(() => {
+ if (requestSeq !== this.detailRequestSeq) {
+ return
+ }
+ this.$message.error('查询托盘明细失败')
+ }).finally(() => {
+ if (requestSeq === this.detailRequestSeq) {
+ this.detailDialog.loading = false
+ }
+ })
+ },
+ // 货架托盘把当前标签明细推给立库;失败弹框,点确认后提示消失 - rqrq
+ syncWcs(row) {
+ if (!this.hasWcsLocation(row) || this.syncingPalletId) {
+ return
+ }
+ this.syncingPalletId = row.palletId
+ haiAnSyncPalletDetailToWcs({
+ site: this.currentSite,
+ palletId: row.palletId
+ }).then(({ data }) => {
+ if (data && data.code === 0) {
+ this.$message.success((data && data.msg) || '同步WCS成功')
+ } else {
+ this.$alert((data && data.msg) || '同步WCS失败', '提示', { confirmButtonText: '确定' })
+ }
+ }).catch(() => {
+ this.$message.error('同步WCS失败')
+ }).finally(() => {
+ this.syncingPalletId = ''
+ })
}
}
}