|
|
@@ -9,6 +9,11 @@
|
|
|
</template>
|
|
|
|
|
|
<template #slot-column-option="{scope}">
|
|
|
+ <el-button @click.stop="goGhDetail(scope.row)" 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>
|
|
|
</template>
|
|
|
|
|
|
<template #slot-search-option="{scope}">
|
|
|
@@ -25,12 +30,26 @@
|
|
|
</template>
|
|
|
|
|
|
</x-crud>
|
|
|
+
|
|
|
+ <book-record ref="bookRecord" :currentData="bookRecordData" />
|
|
|
+ <book-on-record ref="bookOnRecord" :currentData="bookOnRecordData" />
|
|
|
+ <book-road-record ref="bookRoadRecord" :currentData="bookRoadRecordData" />
|
|
|
+ <book-cg-record ref="bookCgRecord" :currentData="bookCgRecordData" />
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters, mapActions } from 'vuex';
|
|
|
+import bookRecord from './components/book-record';
|
|
|
+import bookOnRecord from './components/book-on-record';
|
|
|
+import bookCgRecord from './components/book-cg-record';
|
|
|
+import bookRoadRecord from './components/book-road-record';
|
|
|
export default {
|
|
|
components: {
|
|
|
+ bookRecord,
|
|
|
+ bookOnRecord,
|
|
|
+ bookCgRecord,
|
|
|
+ bookRoadRecord
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -52,10 +71,43 @@ export default {
|
|
|
customId:0,
|
|
|
customName:'',
|
|
|
remainName:'',
|
|
|
- remainNum:0
|
|
|
+ remainNum:0,
|
|
|
+ bookCgRecordData:{},
|
|
|
+ bookRoadRecordData:{},
|
|
|
+ bookOnRecordData:{},
|
|
|
+ bookRecordData:{}
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ goGhDetail(info){
|
|
|
+
|
|
|
+ },
|
|
|
+ getCgRecord(info){
|
|
|
+ this.bookCgRecordData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookCgRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getRoadRecord(info){
|
|
|
+ this.bookRoadRecordData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookRoadRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getOnRecord(info){
|
|
|
+ this.bookOnRecordData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookOnRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getBookRecord(info){
|
|
|
+ let that = this
|
|
|
+ console.log(info)
|
|
|
+ this.bookRecordData = {customId:info.customId,customName:info.customName,id:info.id,itemName:info.name,itemId:info.itemId}
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.bookRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
onLoad({ ctx, app }) {
|
|
|
this.app = app;
|
|
|
|
|
|
@@ -112,8 +164,8 @@ export default {
|
|
|
op: {
|
|
|
visible: true,
|
|
|
props: {
|
|
|
- width: 600,
|
|
|
- align: 'center',
|
|
|
+ width: 760,
|
|
|
+ align: 'left',
|
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
|
},
|