容量:
{{item.maxStock}}
@@ -50,7 +64,7 @@
+
+
diff --git a/src/views/shelfs/replenishment/mixins/initStore.js b/src/views/shelfs/replenishment/mixins/initStore.js
new file mode 100644
index 0000000..f93cd6c
--- /dev/null
+++ b/src/views/shelfs/replenishment/mixins/initStore.js
@@ -0,0 +1,20 @@
+import { pageSize } from "@/config";
+
+export default {
+ data() {
+ return {
+ dataForm: {
+ query: "", active: "", deviceTypeId: "",
+ size: pageSize, from: 0
+ },
+ isEdit: false,
+ isPostSelf: false,
+ cacheRow: {},
+ loading: false,
+ leftTableData: [],
+ devices: 0,
+ outOfStockDevices: 0,
+ leftSelectRow: {},
+ }
+ }
+}
diff --git a/src/views/shelfs/replenishment/mixins/props.js b/src/views/shelfs/replenishment/mixins/props.js
new file mode 100644
index 0000000..85b441e
--- /dev/null
+++ b/src/views/shelfs/replenishment/mixins/props.js
@@ -0,0 +1,36 @@
+import initStore from "./initStore";
+export default {
+ props: {
+ storex: {
+ type: Object,
+ default: () => initStore
+ }
+ },
+
+ computed: {
+ leftSelectRow() {
+ return this.storex.leftSelectRow
+ },
+ dataForm() {
+ return this.storex.dataForm
+ },
+ isEdit() {
+ return this.storex.isEdit
+ },
+ isPostSelf() {
+ return this.storex.isPostSelf
+ },
+ loading() {
+ return this.storex.loading
+ },
+ leftTableData() {
+ return this.storex.leftTableData
+ },
+ outOfStockDevices() {
+ return this.storex.outOfStockDevices
+ },
+ devices() {
+ return this.storex.outOfStockDevices
+ },
+ }
+}
\ No newline at end of file
diff --git a/src/views/shelfs/replenishment/mixins/table.js b/src/views/shelfs/replenishment/mixins/table.js
new file mode 100644
index 0000000..c7b8eb1
--- /dev/null
+++ b/src/views/shelfs/replenishment/mixins/table.js
@@ -0,0 +1,43 @@
+import {get_shelfs_device_summary, get_shelfs_device_lists} from '../../../../api/devicesStatus';
+
+export default {
+ methods: {
+ search(formdata) {
+ this.dataForm = {...this.dataForm, ...formdata}
+ this.getLeftData()
+ },
+ async getLeftData() {
+ this.loading = true;
+ var params = {...this.dataForm};
+ var {devices, outOfStockDevices} = await get_shelfs_device_summary(
+ params
+ );
+ var tableData = await get_shelfs_device_lists(params);
+ this.leftTableData = tableData;
+ this.devices = devices;
+ this.outOfStockDevices = outOfStockDevices;
+ this.loading = false;
+ },
+ clickrowleft(row) {
+ this.isEdit = false
+ this.leftSelectRow = row
+ this.$nextTick(() => {
+ this.isEdit = true
+ })
+ },
+ changePaginationleft(page) {
+ this.dataForm.from = (page - 1) * this.dataForm.size;
+ this.getLeftData()
+ },
+ changeReplenishment(row, stock) {
+ if (row.typeId == 'quxia') {
+ this.$router.push('/shelfs/replenishment/quxia?id=' + row.id + '&stock=' + stock)
+ } else {
+ this.$router.push('/shelfs/replenishment/quxia-vm?id=' + row.id)
+ }
+ }
+ },
+ mounted() {
+ this.getLeftData()
+ }
+}
diff --git a/src/views/shelfs/replenishment/quxia-vm.vue b/src/views/shelfs/replenishment/quxia-vm.vue
new file mode 100644
index 0000000..b09ad78
--- /dev/null
+++ b/src/views/shelfs/replenishment/quxia-vm.vue
@@ -0,0 +1,373 @@
+
+
+
+
编号:{{$route.query.id}}
+
设备名称:{{detailData.deviceName}}
+
地址:{{detailData.province + detailData.city + detailData.district +detailData.street +detailData.locationName}}
+
+
+ 状态:
+ 在线
+ 离线
+
+
+
+
+
+
+
+
+
+ 一键补满
+ 重置
+ 确定补货
+
+
+
暂无数据,请配置货道
+
+
+
第{{index +1}}层
+
+
+
+
+
+
+
![]()
+
+
{{items.name}}
+
货道号: {{index +1}}{{idx}} 零售价: ¥{{items.price}}
+
容量: {{items.stock}} 最大容量: {{items.maxStock}}
+
+
+
缺货
+
+
+
+ {{ items.replenishNum - items.stock}} 件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shelfs/replenishment/quxia.vue b/src/views/shelfs/replenishment/quxia.vue
new file mode 100644
index 0000000..7dc4624
--- /dev/null
+++ b/src/views/shelfs/replenishment/quxia.vue
@@ -0,0 +1,261 @@
+
+
+
+
编号:{{$route.query.id}}
+
设备名称:{{detailData.deviceName}}
+
地址:{{detailData.province + detailData.city + detailData.district +detailData.street +detailData.locationName}}
+
+
+ 状态:
+ 在线
+ 离线
+
+
+
+
+ 一键开门
+ 确定补货
+ 开门补货
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 正常
+ 缺货
+ 售罄
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shelfs/replenishment/table.vue b/src/views/shelfs/replenishment/table.vue
new file mode 100644
index 0000000..c8998ca
--- /dev/null
+++ b/src/views/shelfs/replenishment/table.vue
@@ -0,0 +1,162 @@
+
+
+
{$emit('clickrow',row)}"
+ >
+
+
+
+ {{scope.row.name}}
+
+
+
+
+
+ 酒店售货机
+ 自助售货机
+
+
+
+
+ 在线
+ 离线
+
+
+
+
+
+ {{scope.row.stockState| filterStockState(scope.row)}}
+
+
+
+
+
+ 补货
+ 调整库存
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shelfs/status/form.vue b/src/views/shelfs/status/form.vue
index 24acb6a..398e8cb 100644
--- a/src/views/shelfs/status/form.vue
+++ b/src/views/shelfs/status/form.vue
@@ -1,92 +1,104 @@
-
diff --git a/src/views/shelfs/status/index.vue b/src/views/shelfs/status/index.vue
index e0210ea..91a7bf1 100644
--- a/src/views/shelfs/status/index.vue
+++ b/src/views/shelfs/status/index.vue
@@ -57,6 +57,13 @@ export default {
postShelfApply1(item) {
this.$router.push(`/shelfs/putaway?id=${item.id}&name=${item.name}`);
},
+ clickrowleft(row) {
+ this.isEdit = false;
+ this.$nextTick(() => {
+ this.isEdit = true;
+ this.cacheRow = row;
+ });
+ },
go2add() {
this.$router.push(`/shelfs/add`);
},
diff --git a/src/views/shelfs/status/mixins/initStore.js b/src/views/shelfs/status/mixins/initStore.js
index 68fd804..f93cd6c 100644
--- a/src/views/shelfs/status/mixins/initStore.js
+++ b/src/views/shelfs/status/mixins/initStore.js
@@ -17,4 +17,4 @@ export default {
leftSelectRow: {},
}
}
-}
\ No newline at end of file
+}
diff --git a/src/views/shelfs/status/mixins/props.js b/src/views/shelfs/status/mixins/props.js
index 85b441e..1098702 100644
--- a/src/views/shelfs/status/mixins/props.js
+++ b/src/views/shelfs/status/mixins/props.js
@@ -1,9 +1,14 @@
import initStore from "./initStore";
+
export default {
props: {
storex: {
type: Object,
default: () => initStore
+ },
+ cargo: {
+ type: Boolean,
+ default: false
}
},
@@ -33,4 +38,4 @@ export default {
return this.storex.outOfStockDevices
},
}
-}
\ No newline at end of file
+}
diff --git a/src/views/shelfs/status/rightEdit.vue b/src/views/shelfs/status/rightEdit.vue
index f13f2a6..f8603d5 100644
--- a/src/views/shelfs/status/rightEdit.vue
+++ b/src/views/shelfs/status/rightEdit.vue
@@ -1,56 +1,583 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @finish="finishUpadteEditItems"
+ :visible.sync="ItemEditProductModalStatus"
+ v-if="ItemEditProductModalStatus"
+ :editItem="editItem"
+ />
diff --git a/src/views/shelfs/status/table.vue b/src/views/shelfs/status/table.vue
index e976932..dac1521 100644
--- a/src/views/shelfs/status/table.vue
+++ b/src/views/shelfs/status/table.vue
@@ -1,6 +1,9 @@
-
+
设备列表
@@ -19,8 +22,14 @@
:row-class-name="tableRowClassName"
@row-click="(row)=>{$emit('clickrow',row)}"
>
-
-
+
+
{{scope.row.name}}
-
-
+
+
+
+ 酒店售货机
+ 自助售货机
+
+
+
在线
离线
@@ -38,7 +62,10 @@
-