|
|
|
@ -1,59 +1,63 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="mytable">
|
|
|
|
|
<el-button size="small" type="primary" @click="getList" >查询</el-button>
|
|
|
|
|
<el-button size="small" type="success" @click="add" >新增</el-button>
|
|
|
|
|
<el-button size="small" type="danger" @click="remove" >删除</el-button>
|
|
|
|
|
<el-button size="small" type="success" @click="saveGxcd" >保存</el-button>
|
|
|
|
|
<vxe-grid
|
|
|
|
|
id="dhId"
|
|
|
|
|
ref="xGridDh"
|
|
|
|
|
border
|
|
|
|
|
resizable
|
|
|
|
|
keep-source
|
|
|
|
|
:align="'center'"
|
|
|
|
|
:height="height"
|
|
|
|
|
:auto-resize="true"
|
|
|
|
|
:columns="dhjhTableColumn"
|
|
|
|
|
:data="dhjhList"
|
|
|
|
|
:custom-config="{storage: true }"
|
|
|
|
|
:edit-config="{
|
|
|
|
|
<div>
|
|
|
|
|
<el-row style="width: 100%;text-align: right;margin-bottom: 3px">
|
|
|
|
|
<el-button size="small" type="primary" @click="getList" >查询</el-button>
|
|
|
|
|
<el-button size="small" type="success" @click="add" >新增</el-button>
|
|
|
|
|
<el-button size="small" type="danger" @click="remove" >删除</el-button>
|
|
|
|
|
<el-button size="small" type="success" @click="saveGxcd" >保存</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<vxe-grid
|
|
|
|
|
id="dhId"
|
|
|
|
|
ref="xGridDh"
|
|
|
|
|
border
|
|
|
|
|
resizable
|
|
|
|
|
keep-source
|
|
|
|
|
:align="'center'"
|
|
|
|
|
:height="height"
|
|
|
|
|
:auto-resize="true"
|
|
|
|
|
:columns="dhjhTableColumn"
|
|
|
|
|
:data="dhjhList"
|
|
|
|
|
:custom-config="{storage: true }"
|
|
|
|
|
:edit-config="{
|
|
|
|
|
trigger: 'click',
|
|
|
|
|
mode: 'row',
|
|
|
|
|
showStatus: true,
|
|
|
|
|
}"
|
|
|
|
|
:scroll-x="{enabled: true}"
|
|
|
|
|
:scroll-y="{enabled: true}"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
show-overflow
|
|
|
|
|
show-header-overflow
|
|
|
|
|
>
|
|
|
|
|
<template #month_edit="{ row }">
|
|
|
|
|
<vxe-input
|
|
|
|
|
v-model="row.month"
|
|
|
|
|
type="month"
|
|
|
|
|
value-format="yyyy/MM"
|
|
|
|
|
placeholder=""
|
|
|
|
|
transfer
|
|
|
|
|
></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
<template #allArriveData_edit="{ row }">
|
|
|
|
|
<vxe-input
|
|
|
|
|
v-model="row.allArriveData"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy/MM/dd"
|
|
|
|
|
placeholder=""
|
|
|
|
|
transfer
|
|
|
|
|
></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-grid>
|
|
|
|
|
:scroll-x="{enabled: true}"
|
|
|
|
|
:scroll-y="{enabled: true}"
|
|
|
|
|
highlight-current-row
|
|
|
|
|
highlight-hover-row
|
|
|
|
|
show-overflow
|
|
|
|
|
show-header-overflow
|
|
|
|
|
>
|
|
|
|
|
<template #month_edit="{ row }">
|
|
|
|
|
<vxe-input
|
|
|
|
|
v-model="row.month"
|
|
|
|
|
type="month"
|
|
|
|
|
value-format="yyyy/MM"
|
|
|
|
|
placeholder=""
|
|
|
|
|
transfer
|
|
|
|
|
></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
<template #allArriveData_edit="{ row }">
|
|
|
|
|
<vxe-input
|
|
|
|
|
v-model="row.allArriveData"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy/MM/dd"
|
|
|
|
|
placeholder=""
|
|
|
|
|
transfer
|
|
|
|
|
></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-grid>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getDhjhAll, saveDhjh, removeDhjh} from '@/api/jhzx/pc'
|
|
|
|
|
export default {
|
|
|
|
|
name:'GxCD',
|
|
|
|
|
name:'Dhjh',
|
|
|
|
|
props:{
|
|
|
|
|
height:{
|
|
|
|
|
type:Number,
|
|
|
|
|