diff --git a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue index d30aabf..62107c4 100644 --- a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue +++ b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue @@ -29,6 +29,7 @@ + 采购 {{type?'通知领料':'通知退料'}} @@ -67,13 +68,7 @@ export default { this.init() }, - computed: { - repairCount() { - return this.selectedRepairList.reduce((val, item) => { - return item.num + val - }, 0) - } - }, + computed: {}, methods: { /** * 初始化配件数据 @@ -169,7 +164,19 @@ export default { },700) } }) + }, + + /** + * 跳转采购页面 + */ + toPart(){ + const formData = this.formData; + formData.items = this.wares; + uni.navigateTo({ + url: '/pages-warehouse/inOutWarehouse/part?formData='+encodeURIComponent(JSON.stringify(formData)) + }) } + } } diff --git a/pages-warehouse/inOutWarehouse/part.vue b/pages-warehouse/inOutWarehouse/part.vue new file mode 100644 index 0000000..bcc46e6 --- /dev/null +++ b/pages-warehouse/inOutWarehouse/part.vue @@ -0,0 +1,314 @@ + + + + + diff --git a/pages.json b/pages.json index 56d9fe4..a348fd6 100644 --- a/pages.json +++ b/pages.json @@ -189,6 +189,12 @@ "navigationBarTitleText": "" } }, + { + "path": "inOutWarehouse/part", + "style": { + "navigationBarTitleText": "" + } + }, { "path": "todoDetail/todoDetail", "style": {