diff --git a/app/src/main/java/com/ckkj/griddlebiz/product/DeviceManageActivity.java b/app/src/main/java/com/ckkj/griddlebiz/product/DeviceManageActivity.java index 3f71ce9..6f18287 100644 --- a/app/src/main/java/com/ckkj/griddlebiz/product/DeviceManageActivity.java +++ b/app/src/main/java/com/ckkj/griddlebiz/product/DeviceManageActivity.java @@ -207,7 +207,7 @@ public class DeviceManageActivity extends BaseActivity +public class ProductInboundActivity + extends BaseActivity implements ProductInboundContract.ProductInboundView, EasyPermissions.PermissionCallbacks { private static final int REQUEST_CAMERA_SCAN = 0x140; @@ -54,14 +62,23 @@ public class ProductInboundActivity extends BaseActivity mPendingList = new ArrayList<>(); + /** 当前等待确认删除的商品 */ + private final List mDeleteTargets = new ArrayList<>(); + private PendingInboundAdapter mPendingAdapter; + @Override public ProductInboundPresenter createPresenter() { return new ProductInboundPresenter(new ProductInboundImpl()); @@ -80,13 +97,30 @@ public class ProductInboundActivity extends BaseActivity + viewBinding.scrollContent.fullScroll(View.FOCUS_DOWN)); + } + + /** + * 刷新列表并同步顶部已选数量 + */ + private void refreshPendingList() { + mPendingAdapter.setNewData(mPendingList); + updatePendingTotal(); + } + + /** + * 顶部数量只统计当前勾选的商品 + */ + private void updatePendingTotal() { + int selectedCount = 0; + for (InboundPendingEntity item : mPendingList) { + if (item.isSelected()) { + selectedCount++; + } + } + viewBinding.tvPendingTotal.setText( + getString(R.string.product_inbound_total, selectedCount)); + } + + /** + * 删除顶部“删除”按钮对应的已勾选商品 + */ + private void deleteSelected() { + List selected = new ArrayList<>(); + for (InboundPendingEntity item : mPendingList) { + if (item.isSelected()) { + selected.add(item); + } + } + if (selected.isEmpty()) { + ToastUtil.showShort(mContext, R.string.product_inbound_select_delete); + return; + } + showDeleteDialog(selected); + } + + /** + * 删除确认弹窗 + */ + private void showDeleteDialog(List targets) { + if (targets == null || targets.isEmpty()) { + return; + } + if (mDeleteDialog != null && mDeleteDialog.isShowing()) { + return; + } + mDeleteTargets.clear(); + mDeleteTargets.addAll(targets); + + mDeleteBinding = DialogProductInboundDeleteLayoutBinding.inflate(getLayoutInflater()); + mDeleteDialog = new Dialog(this, R.style.ProductManualCodeDialog); + mDeleteDialog.setContentView(mDeleteBinding.getRoot()); + mDeleteDialog.setCanceledOnTouchOutside(true); + + mDeleteBinding.dialogRoot.setOnClickListener(v -> dismissDeleteDialog()); + mDeleteBinding.tvDeleteCancel.setOnClickListener(v -> dismissDeleteDialog()); + mDeleteBinding.tvDeleteConfirm.setOnClickListener(v -> confirmDelete()); + mDeleteDialog.show(); + + Window window = mDeleteDialog.getWindow(); + if (window != null) { + window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); + window.setGravity(Gravity.CENTER); + window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, + WindowManager.LayoutParams.MATCH_PARENT); + } + } + + private void confirmDelete() { + mPendingList.removeAll(mDeleteTargets); + refreshPendingList(); + dismissDeleteDialog(); + } + + private void dismissDeleteDialog() { + if (mDeleteDialog != null && mDeleteDialog.isShowing()) { + mDeleteDialog.dismiss(); + } + mDeleteDialog = null; + mDeleteBinding = null; + mDeleteTargets.clear(); + } + + /** + * 提交勾选的商品;5.4 整批入库接口待接入 + */ + private void submitInbound() { + List selected = new ArrayList<>(); + for (InboundPendingEntity item : mPendingList) { + if (item.isSelected()) { + selected.add(item); + } + } + if (selected.isEmpty()) { + ToastUtil.showShort(mContext, R.string.product_inbound_select_submit); + return; + } + ToastUtil.showShort(mContext, R.string.product_inbound_submit_pending); } @Override @@ -274,6 +465,7 @@ public class ProductInboundActivity extends BaseActivity { +public class DeviceListAdapter extends BaseQuickAdapter { public interface OnDeviceClickListener { void onDeviceClick(DeviceEntity device); @@ -31,137 +26,80 @@ public class DeviceListAdapter extends RecyclerView.Adapter mData = new ArrayList<>(); public DeviceListAdapter(Context context, boolean pendingMode, OnDeviceClickListener listener) { + super(pendingMode ? R.layout.item_device_pending : R.layout.item_device_all, + new ArrayList<>()); this.mContext = context; this.mPendingMode = pendingMode; this.mListener = listener; } - /** - * 整体替换列表数据 - */ - public void setData(List data) { - mData.clear(); - if (data != null) { - mData.addAll(data); - } - notifyDataSetChanged(); - } - - @NonNull @Override - public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { - LayoutInflater inflater = LayoutInflater.from(mContext); + protected void convert(BaseViewHolder holder, DeviceEntity item) { if (mPendingMode) { - ItemDevicePendingBinding binding = - ItemDevicePendingBinding.inflate(inflater, parent, false); - return new PendingHolder(binding); + bindPending(holder, item); + } else { + bindAll(holder, item); } - ItemDeviceAllBinding binding = ItemDeviceAllBinding.inflate(inflater, parent, false); - return new DeviceHolder(binding); - } - - @Override - public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) { - DeviceEntity device = mData.get(position); - if (holder instanceof DeviceHolder) { - ((DeviceHolder) holder).bind(device); - } else if (holder instanceof PendingHolder) { - ((PendingHolder) holder).bind(device); - } - } - - @Override - public int getItemCount() { - return mData.size(); + holder.itemView.setOnClickListener(v -> { + if (mListener != null && item.getDeviceId() != null) { + mListener.onDeviceClick(item); + } + }); } /** * 全部设备卡片 */ - private class DeviceHolder extends RecyclerView.ViewHolder { + private void bindAll(BaseViewHolder holder, DeviceEntity item) { + holder.setText(R.id.tv_device_code, safeText(item.getDeviceCode())); + holder.setText(R.id.tv_device_name, safeText(item.getDeviceName())); + holder.setText(R.id.tv_activation_date, formatDate(item.getActivationTime())); + holder.setText(R.id.tv_total_runtime, formatRuntime(item.getTotalRuntime())); - private final ItemDeviceAllBinding binding; - - DeviceHolder(ItemDeviceAllBinding binding) { - super(binding.getRoot()); - this.binding = binding; - } - - void bind(DeviceEntity device) { - binding.tvDeviceCode.setText(safeText(device.getDeviceCode())); - binding.tvDeviceName.setText(safeText(device.getDeviceName())); - binding.tvActivationDate.setText(formatDate(device.getActivationTime())); - binding.tvTotalRuntime.setText(formatRuntime(device.getTotalRuntime())); - - boolean fault = "1".equals(device.getFaultStatus()); - boolean online = "1".equals(device.getOnlineStatus()); - int statusText; - int statusBg; - int statusColor; - if (fault) { - statusText = R.string.device_manage_status_fault; - statusBg = R.drawable.device_manage_status_fault_bg; - statusColor = R.color.device_manage_status_fault; - } else if (online) { - statusText = R.string.device_manage_status_online; - statusBg = R.drawable.device_manage_status_online_bg; - statusColor = R.color.device_manage_status_online; - } else { - statusText = R.string.device_manage_status_offline; - statusBg = R.drawable.device_manage_status_offline_bg; - statusColor = R.color.device_manage_text_secondary; - } - binding.tvDeviceStatus.setText(statusText); - binding.tvDeviceStatus.setBackgroundResource(statusBg); - binding.tvDeviceStatus.setTextColor(ContextCompat.getColor(mContext, statusColor)); - binding.ivDeviceIcon.setImageResource(online || fault - ? R.mipmap.icon_device_manage_box : R.mipmap.icon_device_manage_box_offline); - - binding.tvFaultStatus.setText(fault - ? R.string.device_manage_status_fault : R.string.device_manage_fault_normal); - - binding.getRoot().setOnClickListener(v -> { - if (mListener != null && device.getDeviceId() != null) { - mListener.onDeviceClick(device); - } - }); + boolean fault = "1".equals(item.getFaultStatus()); + boolean online = "1".equals(item.getOnlineStatus()); + int statusText; + int statusBg; + int statusColor; + if (fault) { + statusText = R.string.device_manage_status_fault; + statusBg = R.drawable.device_manage_status_fault_bg; + statusColor = R.color.device_manage_status_fault; + } else if (online) { + statusText = R.string.device_manage_status_online; + statusBg = R.drawable.device_manage_status_online_bg; + statusColor = R.color.device_manage_status_online; + } else { + statusText = R.string.device_manage_status_offline; + statusBg = R.drawable.device_manage_status_offline_bg; + statusColor = R.color.device_manage_text_secondary; } + holder.setText(R.id.tv_device_status, mContext.getString(statusText)); + holder.setBackgroundRes(R.id.tv_device_status, statusBg); + holder.setTextColor(R.id.tv_device_status, ContextCompat.getColor(mContext, statusColor)); + holder.setImageResource(R.id.iv_device_icon, online || fault + ? R.mipmap.icon_device_manage_box : R.mipmap.icon_device_manage_box_offline); + holder.setText(R.id.tv_fault_status, mContext.getString(fault + ? R.string.device_manage_status_fault : R.string.device_manage_fault_normal)); } /** * 待激活设备卡片:区分未激活与已售未激活 */ - private class PendingHolder extends RecyclerView.ViewHolder { + private void bindPending(BaseViewHolder holder, DeviceEntity item) { + holder.setText(R.id.tv_pending_code, safeText(item.getDeviceCode())); + holder.setText(R.id.tv_pending_name, safeText(item.getDeviceName())); + holder.setText(R.id.tv_stock_in_date, formatDate(item.getStockInTime())); + holder.setText(R.id.tv_activation_time, formatDateTime(item.getActivationTime())); - private final ItemDevicePendingBinding binding; - - PendingHolder(ItemDevicePendingBinding binding) { - super(binding.getRoot()); - this.binding = binding; - } - - void bind(DeviceEntity device) { - binding.tvPendingCode.setText(safeText(device.getDeviceCode())); - binding.tvPendingName.setText(safeText(device.getDeviceName())); - binding.tvStockInDate.setText(formatDate(device.getStockInTime())); - binding.tvActivationTime.setText(formatDateTime(device.getActivationTime())); - - boolean sold = "1".equals(device.getSaleStatus()); - binding.tvPendingStatus.setText(sold - ? R.string.device_manage_sold_not_activated : R.string.device_manage_not_activated); - binding.tvPendingStatus.setTextColor(ContextCompat.getColor(mContext, - sold ? R.color.device_manage_orange : R.color.device_manage_text_secondary)); - binding.ivPendingIcon.setImageResource(R.mipmap.icon_device_manage_box); - - binding.getRoot().setOnClickListener(v -> { - if (mListener != null && device.getDeviceId() != null) { - mListener.onDeviceClick(device); - } - }); - } + boolean sold = "1".equals(item.getSaleStatus()); + holder.setText(R.id.tv_pending_status, mContext.getString(sold + ? R.string.device_manage_sold_not_activated : R.string.device_manage_not_activated)); + holder.setTextColor(R.id.tv_pending_status, ContextCompat.getColor(mContext, + sold ? R.color.device_manage_orange : R.color.device_manage_text_secondary)); + holder.setImageResource(R.id.iv_pending_icon, R.mipmap.icon_device_manage_box); } /** diff --git a/app/src/main/java/com/ckkj/griddlebiz/product/adapter/PendingInboundAdapter.java b/app/src/main/java/com/ckkj/griddlebiz/product/adapter/PendingInboundAdapter.java new file mode 100644 index 0000000..e6306de --- /dev/null +++ b/app/src/main/java/com/ckkj/griddlebiz/product/adapter/PendingInboundAdapter.java @@ -0,0 +1,60 @@ +package com.ckkj.griddlebiz.product.adapter; + +import com.chad.library.adapter.base.BaseQuickAdapter; +import com.chad.library.adapter.base.BaseViewHolder; +import com.ckkj.griddlebiz.R; +import com.ckkj.griddlebiz.product.entity.InboundPendingEntity; + +import java.util.List; + +/** + * 待入库商品列表适配器。 + */ +public class PendingInboundAdapter extends BaseQuickAdapter { + + public interface Listener { + // 勾选状态变化,用于刷新已选数量 + void onSelectedChanged(); + + // 点击单条删除 + void onDelete(InboundPendingEntity item); + } + + private final Listener mListener; + + public PendingInboundAdapter(List data, Listener listener) { + super(R.layout.item_product_inbound_pending, data); + this.mListener = listener; + } + + @Override + protected void convert(BaseViewHolder holder, InboundPendingEntity item) { + holder.setText(R.id.tv_device_sn, item.getDeviceCode()); + holder.setVisible(R.id.tv_badge, item.isAlreadyInbound()); + holder.setImageResource(R.id.cb_pending, item.isSelected() + ? R.mipmap.icon_product_inbound_check_on + : R.mipmap.icon_product_inbound_check_off); + + // 点击整行或勾选框都切换选中状态 + holder.itemView.setOnClickListener(v -> toggle(holder, item)); + holder.getView(R.id.cb_pending).setOnClickListener(v -> toggle(holder, item)); + holder.getView(R.id.iv_delete).setOnClickListener(v -> { + if (mListener != null) { + mListener.onDelete(item); + } + }); + } + + /** + * 切换勾选状态并刷新当前行图标 + */ + private void toggle(BaseViewHolder holder, InboundPendingEntity item) { + item.setSelected(!item.isSelected()); + holder.setImageResource(R.id.cb_pending, item.isSelected() + ? R.mipmap.icon_product_inbound_check_on + : R.mipmap.icon_product_inbound_check_off); + if (mListener != null) { + mListener.onSelectedChanged(); + } + } +} diff --git a/app/src/main/java/com/ckkj/griddlebiz/product/entity/InboundPendingEntity.java b/app/src/main/java/com/ckkj/griddlebiz/product/entity/InboundPendingEntity.java new file mode 100644 index 0000000..72646f9 --- /dev/null +++ b/app/src/main/java/com/ckkj/griddlebiz/product/entity/InboundPendingEntity.java @@ -0,0 +1,57 @@ +package com.ckkj.griddlebiz.product.entity; + +import java.io.Serializable; + +/** + * 待入库列表项:扫码预览成功后加入页面列表,勾选后等待整批入库。 + */ +public class InboundPendingEntity implements Serializable { + + private Long deviceId; + private String deviceCode; + private String deviceName; + /** 是否勾选 */ + private boolean selected; + /** 是否已在列表中(重复扫码时标记) */ + private boolean alreadyInbound; + + public Long getDeviceId() { + return deviceId; + } + + public void setDeviceId(Long deviceId) { + this.deviceId = deviceId; + } + + public String getDeviceCode() { + return deviceCode; + } + + public void setDeviceCode(String deviceCode) { + this.deviceCode = deviceCode; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public boolean isSelected() { + return selected; + } + + public void setSelected(boolean selected) { + this.selected = selected; + } + + public boolean isAlreadyInbound() { + return alreadyInbound; + } + + public void setAlreadyInbound(boolean alreadyInbound) { + this.alreadyInbound = alreadyInbound; + } +} diff --git a/app/src/main/res/drawable/product_inbound_badge_bg.xml b/app/src/main/res/drawable/product_inbound_badge_bg.xml new file mode 100644 index 0000000..ae30ba1 --- /dev/null +++ b/app/src/main/res/drawable/product_inbound_badge_bg.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/product_inbound_submit_bg.xml b/app/src/main/res/drawable/product_inbound_submit_bg.xml new file mode 100644 index 0000000..1edb16b --- /dev/null +++ b/app/src/main/res/drawable/product_inbound_submit_bg.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/dialog_product_inbound_delete_layout.xml b/app/src/main/res/layout/dialog_product_inbound_delete_layout.xml new file mode 100644 index 0000000..53846a7 --- /dev/null +++ b/app/src/main/res/layout/dialog_product_inbound_delete_layout.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_product_inbound_pending.xml b/app/src/main/res/layout/item_product_inbound_pending.xml new file mode 100644 index 0000000..d4e0d0c --- /dev/null +++ b/app/src/main/res/layout/item_product_inbound_pending.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/product_inbound_layout.xml b/app/src/main/res/layout/product_inbound_layout.xml index 22231e1..18ff95b 100644 --- a/app/src/main/res/layout/product_inbound_layout.xml +++ b/app/src/main/res/layout/product_inbound_layout.xml @@ -36,58 +36,162 @@ android:textStyle="bold" /> - - + android:background="#F5F5F5"> - + android:layout_height="match_parent" + android:clipToPadding="false" + android:fillViewport="true" + android:overScrollMode="never" + android:paddingBottom="88dp" + android:scrollbars="none"> - - - - + android:layout_height="wrap_content" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + android:text="@string/product_inbound_submit" + android:textColor="@android:color/white" + android:textSize="16sp" + android:fontFamily="sans-serif-medium" /> + diff --git a/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_off.png b/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_off.png new file mode 100644 index 0000000..21dcca2 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_off.png differ diff --git a/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_on.png b/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_on.png new file mode 100644 index 0000000..93fcdb7 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon_product_inbound_check_on.png differ diff --git a/app/src/main/res/mipmap-hdpi/icon_product_inbound_scan_circle.png b/app/src/main/res/mipmap-hdpi/icon_product_inbound_scan_circle.png new file mode 100644 index 0000000..b2e8295 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon_product_inbound_scan_circle.png differ diff --git a/app/src/main/res/mipmap-hdpi/icon_product_inbound_trash.png b/app/src/main/res/mipmap-hdpi/icon_product_inbound_trash.png new file mode 100644 index 0000000..c58b94c Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon_product_inbound_trash.png differ diff --git a/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_off.png b/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_off.png new file mode 100644 index 0000000..629ec7b Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_off.png differ diff --git a/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_on.png b/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_on.png new file mode 100644 index 0000000..cb18587 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/icon_product_inbound_check_on.png differ diff --git a/app/src/main/res/mipmap-mdpi/icon_product_inbound_scan_circle.png b/app/src/main/res/mipmap-mdpi/icon_product_inbound_scan_circle.png new file mode 100644 index 0000000..97d728a Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/icon_product_inbound_scan_circle.png differ diff --git a/app/src/main/res/mipmap-mdpi/icon_product_inbound_trash.png b/app/src/main/res/mipmap-mdpi/icon_product_inbound_trash.png new file mode 100644 index 0000000..8c0c234 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/icon_product_inbound_trash.png differ diff --git a/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_off.png b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_off.png new file mode 100644 index 0000000..2ed0cc5 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_off.png differ diff --git a/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_on.png b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_on.png new file mode 100644 index 0000000..4fabf86 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_check_on.png differ diff --git a/app/src/main/res/mipmap-xhdpi/icon_product_inbound_scan_circle.png b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_scan_circle.png new file mode 100644 index 0000000..9932ca0 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_scan_circle.png differ diff --git a/app/src/main/res/mipmap-xhdpi/icon_product_inbound_trash.png b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_trash.png new file mode 100644 index 0000000..3c0b0fd Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/icon_product_inbound_trash.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_off.png b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_off.png new file mode 100644 index 0000000..b5810b3 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_off.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_on.png b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_on.png new file mode 100644 index 0000000..26572bc Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_check_on.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_scan_circle.png b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_scan_circle.png new file mode 100644 index 0000000..3dc8d26 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_scan_circle.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_trash.png b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_trash.png new file mode 100644 index 0000000..a95d69a Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/icon_product_inbound_trash.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_off.png b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_off.png new file mode 100644 index 0000000..d98890f Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_off.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_on.png b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_on.png new file mode 100644 index 0000000..83b1eb5 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_check_on.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_scan_circle.png b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_scan_circle.png new file mode 100644 index 0000000..a0da657 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_scan_circle.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_trash.png b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_trash.png new file mode 100644 index 0000000..397d545 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/icon_product_inbound_trash.png differ diff --git a/app/src/main/res/values-en/product_strings.xml b/app/src/main/res/values-en/product_strings.xml index f0b1891..eb5fab7 100644 --- a/app/src/main/res/values-en/product_strings.xml +++ b/app/src/main/res/values-en/product_strings.xml @@ -17,6 +17,22 @@ No camera is available on this device. Please enter the SN code manually. No barcode was detected. Please try again. Device found: %1$s (%2$s) + Pending Inbound Products + Total: %1$d + Delete + Select + Device SN: + Already Inbound + Submit Inbound + Added: %1$s + This device is already in the pending list + Select products to delete first + Select products to inbound first + Batch inbound is not connected yet + Delete Confirmation + Are you sure you want to delete the selected products + Cancel + Confirm Scan to Inbound Choose from Gallery Decoding image… diff --git a/app/src/main/res/values/product_strings.xml b/app/src/main/res/values/product_strings.xml index 270fdad..9b55ac0 100644 --- a/app/src/main/res/values/product_strings.xml +++ b/app/src/main/res/values/product_strings.xml @@ -17,6 +17,22 @@ 当前设备没有可用相机,请手动输入 SN 码 未识别到条码,请重试 识别成功:%1$s(%2$s) + 待入库商品 + 合计:%1$d + 删除 + 选择 + 设备 SN: + 已入库 + 提交入库 + 已添加:%1$s + 该设备已在待入库列表 + 请先选择要删除的设备 + 请先勾选要入库的设备 + 整批入库接口待接入 + 删除确认 + 确定要删除选中的商品吗? + 取消 + 确认 扫码入库 从相册选择 正在识别图片…