|
@@ -9,13 +9,13 @@
|
|
|
<!-- <el-button type="primary" size="mini" @click.stop="newAdd()">新建产品
|
|
|
</el-button> -->
|
|
|
</template>
|
|
|
- <template slot-scope="{ row, index }" slot="id">
|
|
|
+ <!-- <template slot-scope="{ row, index }" slot="id">
|
|
|
<span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.cname }}
|
|
|
</span>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template slot-scope="{ row, index }" slot="menu">
|
|
|
<el-tooltip class="item" effect="dark" content="盘存" placement="top">
|
|
|
- <i class="tradingIcon icon-inStock" />
|
|
|
+ <i class="tradingIcon icon-inStock" @click="rowCell(row, index)" />
|
|
|
</el-tooltip>
|
|
|
<!-- <el-tooltip class="item" effect="dark" content="删除" placement="top">
|
|
|
<i class="tradingIcon icon-del" />
|
|
@@ -48,7 +48,7 @@
|
|
|
<script>
|
|
|
import detailsPage from "./detailsPage";
|
|
|
import { option } from "./js/optionList";
|
|
|
-import { getList,getAllgoods} from "@/api/basicData/Inventory";
|
|
|
+import { getList, getAllgoods } from "@/api/basicData/Inventory";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
@@ -113,6 +113,9 @@ export default {
|
|
|
refreshChange() {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
|
+ rowCell(row, index) {
|
|
|
+ this.$refs.crud.rowEdit(row, index)
|
|
|
+ },
|
|
|
newAdd() {
|
|
|
this.show = false;
|
|
|
},
|
|
@@ -132,13 +135,6 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- editOpen(row, status) {
|
|
|
- this.detailData = {
|
|
|
- id: row.id,
|
|
|
- status: status
|
|
|
- };
|
|
|
- this.show = false;
|
|
|
- },
|
|
|
currentChange(val) {
|
|
|
this.page.currentPage = val;
|
|
|
},
|