From 382bdb654a32bcfd27c8e7fe1417325ef98c495a Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 16:19:51 +0800
Subject: [PATCH] 编辑产品的时候新增产品,产品名称不显示的问题修改
---
src/views/overview/index.vue | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/views/overview/index.vue b/src/views/overview/index.vue
index 0985bf7..b177112 100644
--- a/src/views/overview/index.vue
+++ b/src/views/overview/index.vue
@@ -23,26 +23,31 @@
<el-dropdown class="set" placement="bottom" trigger="click" @command="handleCommand">
<div @click.stop="moreClick()">...</div>
<el-dropdown-menu slot="dropdown">
- <el-dropdown-item :command="{ command: '鍏ㄩ儴', item }">鍏ㄩ儴</el-dropdown-item>
- <el-dropdown-item :command="{ command: '灏辩华', item }">灏辩华</el-dropdown-item>
- <el-dropdown-item :command="{ command: '瀹屾垚', item }">瀹屾垚</el-dropdown-item>
+ <el-dropdown-item :command="{ command: 0, item }">鍏ㄩ儴</el-dropdown-item>
+ <el-dropdown-item :command="{ command: 3, item }">灏辩华</el-dropdown-item>
+ <el-dropdown-item :command="{ command: 4, item }">瀹屾垚</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="bottom">
<div class="left">
- <div class="left_view" @click.stop="statusClick(item, '灏辩华')">
+ <div class="left_view" @click.stop="statusClick(item, 3)">
<span>{{ item.readyCount }}</span>
<span style="margin-left: 5px">灏辩华</span>
</div>
</div>
<div class="right">
- <div class="right_status" @click.stop="statusClick(item, '瀹屾垚')">
+ <div class="right_status" @click.stop="statusClick(item, 4)">
<span style="cursor: pointer">{{ item.finishCount + " 瀹屾垚" }}</span>
</div>
<!-- <div class="right_status" style="margin-top: 5px">
<span style="cursor: pointer">4 寤舵湡</span>
</div> -->
+ </div>
+ <div class="right">
+ <div class="right_status" @click.stop="statusClick(item, 5)">
+ <span style="cursor: pointer">{{ item.cancelCount + " 宸插彇娑�" }}</span>
+ </div>
</div>
</div>
</div>
@@ -90,7 +95,7 @@
console.log(item)
this.$router.push({
name: "overviewList",
- params: { name: item.name, workType: item.baseOperationType, id: item.id, status: status }
+ query: { name: item.name, workType: item.baseOperationType+'', id: item.id+'', status: status,code:item.warehouse.code }
})
},
async getData() {
@@ -99,15 +104,14 @@
page: this.pagerOptions.currPage,
pageSize: this.pagerOptions.pageSize
}).then((res) => {
- console.log(res.data.data)
- if (res.data.code === 200) {
- const list = res.data.data.map((item) => {
+ if (res.code === 200) {
+ const list = res.data.map((item) => {
return {
...item
}
})
this.tableList = list || []
- this.pagerOptions.totalCount = res.data.total
+ this.pagerOptions.totalCount = res.total
}
})
},
@@ -193,7 +197,7 @@
}
}
.right {
- width: 50%;
+ width: 25%;
.right_status {
margin-top: 5px;
}
--
Gitblit v1.8.0