|
@@ -43,16 +43,21 @@
|
|
|
|
|
|
|
|
<template #slot-column-option="{scope}">
|
|
<template #slot-column-option="{scope}">
|
|
|
<el-button @click.stop="goDetail(scope.row)" size="medium" type="primary">查看明细</el-button>
|
|
<el-button @click.stop="goDetail(scope.row)" size="medium" type="primary">查看明细</el-button>
|
|
|
- <el-button @click.stop="" size="medium" type="primary">预订明细</el-button>
|
|
|
|
|
- <el-button @click.stop="" size="medium" type="primary">上下架记录</el-button>
|
|
|
|
|
- <el-button @click.stop="" size="medium" type="primary">路上记录</el-button>
|
|
|
|
|
- <el-button @click.stop="" size="medium" type="primary">待采记录</el-button>
|
|
|
|
|
|
|
+ <el-button @click.stop="getBookRecord(scope.row)" size="medium" type="primary">预订记录</el-button>
|
|
|
|
|
+ <el-button @click.stop="getOnRecord(scope.row)" size="medium" type="primary">上下架记录</el-button>
|
|
|
|
|
+ <el-button @click.stop="getRoadRecord(scope.row)" size="medium" type="primary">路上记录</el-button>
|
|
|
|
|
+ <el-button @click.stop="getCgRecord(scope.row)" size="medium" type="primary">待采记录</el-button>
|
|
|
<el-button @click.stop="getStock(scope.row)" size="medium" type="primary">库存明细</el-button>
|
|
<el-button @click.stop="getStock(scope.row)" size="medium" type="primary">库存明细</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
|
|
|
|
|
<stock-detail ref="stockDetail" :itemData="itemData" />
|
|
<stock-detail ref="stockDetail" :itemData="itemData" />
|
|
|
|
|
+ <total-book-record ref="totalBookRecord" :itemData="totalBookRecordData" />
|
|
|
|
|
+ <total-book-on-record ref="totalBookOnRecord" :itemData="totalBookOnRecordData" />
|
|
|
|
|
+
|
|
|
|
|
+ <total-book-road-record ref="totalBookRoadRecord" :itemData="totalBookRoadRecordData" />
|
|
|
|
|
+ <total-book-cg-record ref="totalBookCgRecord" :itemData="totalBookCgRecordData" />
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -63,10 +68,18 @@ import { getLodop } from '@/utils/lodop';
|
|
|
import { mapGetters } from 'vuex';
|
|
import { mapGetters } from 'vuex';
|
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
|
import stockDetail from './components/stock-detail';
|
|
import stockDetail from './components/stock-detail';
|
|
|
|
|
+import totalBookRecord from './components/total-book-record';
|
|
|
|
|
+import totalBookOnRecord from './components/total-book-on-record';
|
|
|
|
|
+import totalBookCgRecord from './components/total-book-cg-record';
|
|
|
|
|
+import totalBookRoadRecord from './components/total-book-road-record';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
SelOrder,
|
|
SelOrder,
|
|
|
- stockDetail
|
|
|
|
|
|
|
+ stockDetail,
|
|
|
|
|
+ totalBookRecord,
|
|
|
|
|
+ totalBookOnRecord,
|
|
|
|
|
+ totalBookCgRecord,
|
|
|
|
|
+ totalBookRoadRecord
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(['shopInfo', 'userInfo'])
|
|
...mapGetters(['shopInfo', 'userInfo'])
|
|
@@ -120,20 +133,46 @@ export default {
|
|
|
shop:{},
|
|
shop:{},
|
|
|
T:null,
|
|
T:null,
|
|
|
search:'',
|
|
search:'',
|
|
|
- itemData:{id:0}
|
|
|
|
|
|
|
+ itemData:{id:0},
|
|
|
|
|
+ totalBookRecordData:{},
|
|
|
|
|
+ totalBookOnRecordData:{},
|
|
|
|
|
+ totalBookRoadRecordData:{},
|
|
|
|
|
+ totalBookCgRecordData:{}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.init();
|
|
this.init();
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
-
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.itemSearchRef.focus()
|
|
this.$refs.itemSearchRef.focus()
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getCgRecord(info){
|
|
|
|
|
+ this.totalBookCgRecordData = {itemId:info.itemId,itemName:info.name,id:info.id}
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$refs.totalBookCgRecord.init()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getRoadRecord(info){
|
|
|
|
|
+ this.totalBookRoadRecordData = {itemId:info.itemId,itemName:info.name,id:info.id}
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$refs.totalBookRoadRecord.init()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getOnRecord(info){
|
|
|
|
|
+ this.totalBookOnRecordData = {itemId:info.itemId,itemName:info.name,id:info.id}
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$refs.totalBookOnRecord.init()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getBookRecord(info){
|
|
|
|
|
+ this.totalBookRecordData = {itemId:info.itemId,itemName:info.name,id:info.id}
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$refs.totalBookRecord.init()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getStock(info){
|
|
getStock(info){
|
|
|
this.itemData = {id:info.itemId,name:info.name}
|
|
this.itemData = {id:info.itemId,name:info.name}
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -249,7 +288,7 @@ export default {
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
|
- width: 750,
|
|
|
|
|
|
|
+ width: 800,
|
|
|
align: 'left',
|
|
align: 'left',
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
label: '操作'
|