|
|
@@ -22,7 +22,7 @@
|
|
|
type="primary"
|
|
|
|
|
|
size="mini"
|
|
|
- @click="handSelfPick"
|
|
|
+ @click=""
|
|
|
>自建处置单</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -38,48 +38,26 @@
|
|
|
|
|
|
|
|
|
<template v-slot:action="{ row }">
|
|
|
- <el-button type="text" size="mini" @click="handDetailed(row)"
|
|
|
+ <el-button type="text" size="mini"
|
|
|
>详情</el-button
|
|
|
>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
|
|
|
- <!-- <addPick v-if="addPickShow" @close="close"></addPick>
|
|
|
- <selfBuildPick v-if="selfBuildPickShow" @close="close"></selfBuildPick>
|
|
|
-
|
|
|
- <detailed
|
|
|
- @detailedClose="detailedClose"
|
|
|
- v-if="detailedShow"
|
|
|
- :detailedObj="detailedObj"
|
|
|
- ></detailed>
|
|
|
-
|
|
|
- <selfDetailed
|
|
|
- @detailedClose="detailedClose"
|
|
|
- v-if="selfDetailedShow"
|
|
|
- :detailedObj="detailedObj"
|
|
|
- ></selfDetailed> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { getPage, returnPage } from '@/api/byProduct/index';
|
|
|
-
|
|
|
+ import { getPage } from '@/api/byProduct/index';
|
|
|
import productSearch from './components/product-search.vue';
|
|
|
|
|
|
- // import addPick from './components/addPick.vue';
|
|
|
- // import selfBuildPick from './components/selfBuildPick.vue';
|
|
|
|
|
|
- // import detailed from '@/views/produce/components/picking/detailed.vue';
|
|
|
- // import selfDetailed from './components/selfDetailed.vue';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
productSearch
|
|
|
- // addPick,
|
|
|
- // selfBuildPick,
|
|
|
- // detailed,
|
|
|
- // selfDetailed
|
|
|
+
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
@@ -88,15 +66,9 @@
|
|
|
loading: false,
|
|
|
selection: [],
|
|
|
|
|
|
- addPickShow: false,
|
|
|
- selfBuildPickShow: false,
|
|
|
|
|
|
- detailedShow: false,
|
|
|
- detailedObj: null,
|
|
|
|
|
|
- selfDetailedShow: false,
|
|
|
-
|
|
|
- statusList: ['未领料', '领料中', '已出库', '已驳回']
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -166,8 +138,6 @@
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
{
|
|
|
prop: '',
|
|
|
label: '操作',
|
|
|
@@ -211,47 +181,10 @@
|
|
|
};
|
|
|
},
|
|
|
|
|
|
- handPick() {
|
|
|
- this.addPickShow = true;
|
|
|
- },
|
|
|
-
|
|
|
- close(val) {
|
|
|
- if (val) {
|
|
|
- this.reload();
|
|
|
- }
|
|
|
- this.addPickShow = false;
|
|
|
- this.selfBuildPickShow = false;
|
|
|
- },
|
|
|
|
|
|
- handSelfPick() {
|
|
|
- this.selfBuildPickShow = true;
|
|
|
- },
|
|
|
-
|
|
|
- selfClose(val) {
|
|
|
- if (val) {
|
|
|
- this.reload();
|
|
|
- }
|
|
|
- this.selfBuildPickShow = false;
|
|
|
- },
|
|
|
-
|
|
|
- handDetailed(row) {
|
|
|
- this.detailedObj = JSON.stringify(row);
|
|
|
- if (row.type == 1) {
|
|
|
- this.selfDetailedShow = true;
|
|
|
- } else {
|
|
|
- this.detailedShow = true;
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- detailedClose() {
|
|
|
- this.detailedShow = false;
|
|
|
- this.selfDetailedShow = false;
|
|
|
- },
|
|
|
|
|
|
handleSelectionChange(data) {
|
|
|
- let ids = [];
|
|
|
- ids = data.map((item) => item.id);
|
|
|
- this.$emit('selectionChange', ids);
|
|
|
+ console.log(data);
|
|
|
},
|
|
|
/* 刷新表格 */
|
|
|
reload(where = {}) {
|