-
- sku
+
@@ -54,7 +54,7 @@
-
+
@@ -63,14 +63,14 @@
-
+
@@ -130,12 +130,9 @@
@selection-change="crud.selectionChangeHandler">
-
+
-
-
- {{ dict.label.item_type[scope.row.goodType] }}
-
+
@@ -161,7 +158,7 @@
-
+
{
+ this.areas = res.content.map(function (obj) {
+ if (obj.hasChildren) {
+ obj.children = null
+ }
+ return obj
+ })
+ })
+ },
handleSuccess(response, file, fileList,crud) {
let myError = response.toString();//转字符串
diff --git a/src/views/base-data/point/index.vue b/src/views/base-data/point/index.vue
index 83a754a..06f3850 100644
--- a/src/views/base-data/point/index.vue
+++ b/src/views/base-data/point/index.vue
@@ -37,28 +37,36 @@
:value="area.name"
/>
-
-
-
-
-
+
+ 容器入场
+
+
+ 容器搬运
+
导入
-
- 批量调整
-
-
-
+
+
-
+
-
-
+
+
-
-
+
+
+
+
+
@@ -144,11 +150,9 @@
/>
-
-
+
+
+
+
+
@@ -184,21 +197,19 @@
{{ dict.label.point_type[scope.row.type] }}
+
+
+ {{ scope.row.area.name }}
+
+
{{ dict.label.use_status[scope.row.status] }}
-
-
+
- {{ scope.row.area.name }}
-
-
-
-
-
- {{ scope.row.dept.name }}
+ {{ scope.row.storageType }}
@@ -211,7 +222,7 @@
/>
-
+
+ >
+
+
呼叫空车
- 满车入库
-
+
呼叫满车
空车入库
@@ -259,8 +271,9 @@ import viewFullStockIn from '@/views/base-data/point/fullStockIn.vue';
import viewFullStockOut from '@/views/base-data/point/fullStockOut.vue';
import pointUrl from '@/api/point'
import multiAdjust from "@/views/base-data/point/multiAdjust.vue";
+import {getStockTypes} from "@/api/stockType";
-const defaultForm = {id: null, status: 'FREE', enabled: 1, code: null, name: null, description: null, area: null}
+const defaultForm = {id: null, status: 'FREE', enabled: 1, code: null, name: null, description: null, area: null, storageType: null}
export default {
name: 'Point',
components: {
@@ -286,8 +299,10 @@ export default {
return {
//地标点数据
fileList:[],
+ //存储类型(容器)
+ storageTypes:[],
from1: [],
- fromBack: [],
+ fromBack: {storageType: null,ids:[]},
pointListData: [],
headers: {'Authorization': getToken()},
queryTypeOptions: [
@@ -300,7 +315,7 @@ export default {
],
callStock: {
pointCode: '',
- agvScene: 'ZC'
+ ids: []
},
callStockBack: {
pointCode: '',
@@ -333,6 +348,7 @@ export default {
this.getArea()
//获取点位表的数据
this.getPointListData();
+ this.getStorageTypes();
},
methods: {
handleSuccess(response, file, fileList, crud) {
@@ -376,26 +392,45 @@ export default {
})
})
},
- //呼叫空车
- callEmpty() {
- this.callStock.pointCode = this.from1.pointCode
- this.callStock.agvScene = "ZC"
- pointUrl.pointCallStock(this.callStock).then(res => {
- this.callEmptyCarStatus = false;
- this.crud.notify("呼叫成功", CRUD.NOTIFICATION_TYPE.SUCCESS);
- }).catch(e => {
- this.crud.notify("呼叫失败", CRUD.NOTIFICATION_TYPE.ERROR);
+ getStorageTypes() {
+ getStockTypes({ }).then(res => {
+ this.storageTypes= res.content.map(function(obj) {
+ if (obj.hasChildren) {
+ obj.children = null
+ }
+ return obj
+ })
})
},
- //空车入库
- callStockBackIn() {
- this.callStockBack.pointCode = this.fromBack.pointCode
- this.callStockBack.agvScene = "ZC"
- pointUrl.pointStockBack(this.callStockBack).then(res => {
- this.EmptyCarBackStatus = false;
- this.crud.notify("呼叫成功", CRUD.NOTIFICATION_TYPE.SUCCESS);
+ //容器搬运
+ callEmpty(datas) {
+ const ids = [];
+ for (let i = 0; i < datas.length; i++) {
+ ids.push(datas[i].id)
+ }
+ this.callStock.pointCode = this.from1.pointCode
+ this.callStock.ids=ids
+ pointUrl.pointCallStock(this.callStock).then(res => {
+ this.callEmptyCarStatus = false;
+ this.crud.toQuery()
+ this.crud.notify("搬运成功", CRUD.NOTIFICATION_TYPE.SUCCESS);
}).catch(e => {
- this.crud.notify("呼叫失败", CRUD.NOTIFICATION_TYPE.ERROR);
+ this.crud.notify("搬运失败", CRUD.NOTIFICATION_TYPE.ERROR);
+ })
+ },
+ //容器入场
+ callStockBackIn(datas) {
+ const ids = [];
+ for (let i = 0; i < datas.length; i++) {
+ ids.push(datas[i].id)
+ }
+ this.fromBack.ids=ids;
+ pointUrl.pointStockBack(this.fromBack).then(res => {
+ this.EmptyCarBackStatus = false;
+ this.crud.toQuery()
+ this.crud.notify("入场成功", CRUD.NOTIFICATION_TYPE.SUCCESS);
+ }).catch(e => {
+ this.crud.notify("入场失败", CRUD.NOTIFICATION_TYPE.ERROR);
})
},
//获取点位表的数据
diff --git a/src/views/business-data/asn/index.vue b/src/views/business-data/asn/index.vue
new file mode 100644
index 0000000..3263316
--- /dev/null
+++ b/src/views/business-data/asn/index.vue
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+ 开始收货
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label.asn_status[scope.row.status] }}
+
+
+
+
+
+
+
+
+ 查看明细
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business-data/asnDetail/index.vue b/src/views/business-data/asnDetail/index.vue
index f8466fe..b1219b3 100644
--- a/src/views/business-data/asnDetail/index.vue
+++ b/src/views/business-data/asnDetail/index.vue
@@ -5,6 +5,8 @@
+
-