|
|
@@ -10,6 +10,12 @@
|
|
|
|
|
|
<template #slot-column-option="{scope}">
|
|
|
<el-button @click.stop="goDetail(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 #table-column-name="{scope}">
|
|
|
@@ -20,13 +26,27 @@
|
|
|
<el-input v-model="search" placeholder="搜索客户" size="big" clearable="true" style="width:300px;" ref="customSearchRef" @input="changeSearch()" @focus="search=''"></el-input>
|
|
|
</template>
|
|
|
|
|
|
+ <book-custom-record ref="bookCustomRecord" :itemData="bookCustomRecordData" />
|
|
|
+ <book-custom-on-record ref="bookCustomOnRecord" :itemData="bookCustomOnRecordData" />
|
|
|
+
|
|
|
+ <book-custom-road-record ref="bookCustomRoadRecord" :itemData="bookCustomRoadRecordData" />
|
|
|
+ <book-custom-cg-record ref="bookCustomCgRecord" :itemData="bookCustomCgRecordData" />
|
|
|
+
|
|
|
</x-crud>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters, mapActions } from 'vuex';
|
|
|
+import bookCustomRecord from './components/book-custom-record';
|
|
|
+import bookCustomOnRecord from './components/book-custom-on-record';
|
|
|
+import bookCustomCgRecord from './components/book-custom-cg-record';
|
|
|
+import bookCustomRoadRecord from './components/book-custom-road-record';
|
|
|
export default {
|
|
|
components: {
|
|
|
+ bookCustomRecord,
|
|
|
+ bookCustomOnRecord,
|
|
|
+ bookCustomCgRecord,
|
|
|
+ bookCustomRoadRecord
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -43,7 +63,11 @@ export default {
|
|
|
loading: false,
|
|
|
ghsId:0,
|
|
|
endTime:'',
|
|
|
- search:''
|
|
|
+ search:'',
|
|
|
+ bookCustomCgRecordData:{},
|
|
|
+ bookCustomRoadRecordData:{},
|
|
|
+ bookCustomOnRecordData:{},
|
|
|
+ bookCustomRecordData:{}
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -52,6 +76,30 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCgRecord(info){
|
|
|
+ this.bookCustomCgRecordData = {customId:info.customId,customName:info.name,id:info.id}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookCustomCgRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getRoadRecord(info){
|
|
|
+ this.bookCustomRoadRecordData = {customId:info.customId,customName:info.name,id:info.id}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookCustomRoadRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getOnRecord(info){
|
|
|
+ this.bookCustomOnRecordData = {customId:info.customId,customName:info.name,id:info.id}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookCustomOnRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getBookRecord(info){
|
|
|
+ this.bookCustomRecordData = {customId:info.customId,customName:info.name,id:info.id}
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.bookCustomRecord.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
changeSearch(){
|
|
|
let that = this
|
|
|
if(this.T != null){
|
|
|
@@ -59,7 +107,7 @@ export default {
|
|
|
}
|
|
|
this.T = setTimeout(function(){
|
|
|
that.app.refresh({search:that.search})
|
|
|
- },700)
|
|
|
+ },650)
|
|
|
},
|
|
|
goDetail(info){
|
|
|
let query = {customId:info.customId,customName:info.name}
|
|
|
@@ -109,7 +157,7 @@ export default {
|
|
|
op: {
|
|
|
visible: true,
|
|
|
props: {
|
|
|
- width: 700,
|
|
|
+ width: 750,
|
|
|
align: 'left',
|
|
|
fixed: 'right',
|
|
|
label: '操作'
|