diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js
index a140934c..82d278a7 100644
--- a/klp-ui/src/api/wms/coil.js
+++ b/klp-ui/src/api/wms/coil.js
@@ -305,3 +305,18 @@ export function cancelSpecialSplit(pendingActionId) {
})
}
+/**
+ * 钢卷被退货,发给客户的钢卷被退货
+ */
+export function returnCoil(coilId) {
+ if (!coilId) {
+ return Promise.reject(new Error('coilId is required'))
+ }
+ return request({
+ url: '/wms/materialCoil/return',
+ method: 'post',
+ params: {
+ coilId
+ }
+ })
+}
diff --git a/klp-ui/src/assets/icons/svg/warehouse.svg b/klp-ui/src/assets/icons/svg/warehouse.svg
new file mode 100644
index 00000000..69755c97
--- /dev/null
+++ b/klp-ui/src/assets/icons/svg/warehouse.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue
index 4ab14ebe..5e56c867 100644
--- a/klp-ui/src/views/wms/coil/panels/base.vue
+++ b/klp-ui/src/views/wms/coil/panels/base.vue
@@ -173,6 +173,10 @@
撤回发货
+
+
+ 退货钢卷
查看异常
@@ -325,7 +329,8 @@ import {
getMaterialCoilTrace,
exportCoil,
cancelExportCoil,
- checkCoilNo
+ checkCoilNo,
+ returnCoil
} from "@/api/wms/coil";
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
import QRCode from "../../print/components/QRCode.vue";
@@ -943,6 +948,19 @@ export default {
}).catch(() => {
});
},
+ handleReturnCoil(row) {
+ this.$modal.confirm('是否确认退货钢卷编号为"' + row.currentCoilNo + '"的退货操作?').then(() => {
+ this.buttonLoading = true;
+ returnCoil(row.coilId).then(response => {
+ this.$modal.msgSuccess("退货成功");
+ this.getList();
+ }).catch(error => {
+ this.$modal.msgError("退货失败");
+ }).finally(() => {
+ this.buttonLoading = false;
+ });
+ })
+ },
handleExportTimeChange(row) {
if (row.exportTime) {
row.exportTime = row.exportTime.replace('T', ' ');
diff --git a/klp-ui/src/views/wms/coil/views/exit.vue b/klp-ui/src/views/wms/coil/views/exit.vue
new file mode 100644
index 00000000..949c624e
--- /dev/null
+++ b/klp-ui/src/views/wms/coil/views/exit.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/report/zha/team.vue b/klp-ui/src/views/wms/report/zha/team.vue
index 4890d803..8771cc09 100644
--- a/klp-ui/src/views/wms/report/zha/team.vue
+++ b/klp-ui/src/views/wms/report/zha/team.vue
@@ -4,11 +4,11 @@
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期">
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期">