|
|
@@ -0,0 +1,75 @@
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <basicLayout
|
|
|
+ ref="basicLayout"
|
|
|
+ :oldFormPath="{
|
|
|
+ add:''
|
|
|
+ }"
|
|
|
+ tableName="vacationTable"
|
|
|
+ idName="sa_writeoffbillid"
|
|
|
+ :apiId="{query:20221215165504,del:20221124090304}"
|
|
|
+ :options="options"
|
|
|
+ :detailPath="{
|
|
|
+ path:'/writeoffbillDetail'
|
|
|
+ }"
|
|
|
+ @listData="listData"
|
|
|
+ @listCreate="listCreate">
|
|
|
+ <div slot="custom">
|
|
|
+ <div class="label_center">
|
|
|
+ <p class="search__label">范围:</p>
|
|
|
+ <el-select v-model="isnext" style="margin-right:10px" size="small" placeholder="请选择范围" @change="areaChange">
|
|
|
+ <el-option label="今年" value="0"></el-option>
|
|
|
+ <el-option label="明年" value="1"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <template v-slot:tbList="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.data.column.data[[scope.data.column.columnname]]}}
|
|
|
+ </div>
|
|
|
+ <div v-if="!scope.data.column.data[[scope.data.column.columnname]] && scope.data.column.data[[scope.data.column.columnname]] !== 0">--</div>
|
|
|
+ </template>
|
|
|
+ <template v-slot:tbOpreation="scope">
|
|
|
+ </template>
|
|
|
+ </basicLayout>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { log } from '@antv/g2plot/lib/utils'
|
|
|
+export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ options:[],
|
|
|
+ isnext:'0'
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ listData (data) {
|
|
|
+ console.log(data);
|
|
|
+
|
|
|
+ },
|
|
|
+ listCreate (param) {
|
|
|
+ console.log('触发');
|
|
|
+
|
|
|
+ param.content.isnext = 0
|
|
|
+ },
|
|
|
+ async areaChange () {
|
|
|
+ this.$refs.basicLayout.param.content.isnext=this.isnext
|
|
|
+ this.$refs.basicLayout.param.content.pageNumber=1
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id": 20221214094904,
|
|
|
+ "content": {
|
|
|
+ "isnext": this.isnext //0今年,1明年
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$refs.basicLayout.listData()
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+</script>
|
|
|
+<style>
|
|
|
+</style>
|