<style scoped>
|
.title {
|
height: 60px;
|
line-height: 60px;
|
}
|
|
.search {
|
background-color: #fff;
|
height: 80px;
|
display: flex;
|
align-items: center;
|
}
|
|
.search_thing {
|
display: flex;
|
align-items: center;
|
height: 50px;
|
}
|
|
.search_label {
|
width: 120px;
|
font-size: 14px;
|
text-align: right;
|
}
|
|
.search_input {
|
width: calc(100% - 120px);
|
}
|
|
.table {
|
margin-top: 10px;
|
background-color: #fff;
|
width: calc(100% - 40px);
|
height: calc(100% - 60px - 80px - 10px - 40px);
|
padding: 20px;
|
}
|
|
.el-form-item {
|
margin-bottom: 16px;
|
}
|
</style>
|
|
<template>
|
<div class="inspection_order">
|
<div style="width: 100%;height: 100%;">
|
<div>
|
<el-row class="title">
|
<el-col :span="12" style="padding-left: 20px;">费用统计</el-col>
|
<el-col :span="12" style="text-align: right;">
|
<el-button size="small" type="primary">OA推送</el-button>
|
</el-col>
|
</el-row>
|
</div>
|
<div class="search">
|
<div class="search_thing">
|
<div class="search_label">时间范围:</div>
|
<div class="search_input">
|
<el-date-picker
|
v-model="dates"
|
type="datetimerange"
|
range-separator="至"
|
format="yyyy-MM-dd HH:mm:ss"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期"
|
size="small">
|
</el-date-picker>
|
</div>
|
</div>
|
<div class="search_thing">
|
<div class="search_label">委托人:</div>
|
<div class="search_input"><el-input size="small" placeholder="请输入" clearable
|
v-model="componentData.entity.name" @keyup.enter.native="refreshTable()"></el-input></div>
|
</div>
|
<div class="search_thing" style="padding-left: 30px;">
|
<el-button size="small" @click="refresh()">重 置</el-button>
|
<el-button size="small" type="primary" @click="refreshTable()">查 询</el-button>
|
</div>
|
</div>
|
<div class="table">
|
<ValueTable ref="ValueTable" :url="$api.insOrder.costStatistics" :componentData="componentData"
|
:key="upIndex" @handleWeave="handleWeave"/>
|
</div>
|
</div>
|
<el-dialog title="在线编制" :visible.sync="claimVisible" width="70%" :modal-append-to-body="false">
|
<Word style="height:70vh" v-if="claimVisible" ref="Word"/>
|
<span slot="footer" class="dialog-footer">
|
<el-button @click="claimVisible = false">取 消</el-button>
|
<el-button type="primary" @click="confirmClaim">确 定</el-button>
|
</span>
|
</el-dialog>
|
</div>
|
</template>
|
|
<script>
|
import ValueTable from '../tool/value-table.vue'
|
import Word from '../tool/word.vue'
|
export default {
|
components: {
|
ValueTable,
|
Word,
|
},
|
data() {
|
return {
|
componentData: {
|
entity: {
|
name: null,
|
orderBy: {
|
field: 'id,ins_sample_id',
|
order: 'asc'
|
}
|
},
|
isIndex: true,
|
showSelect: false,
|
select: false,
|
do: [],
|
linkEvent:{},
|
tagField: {
|
type: {
|
select: [{
|
value: 0,
|
type: 'success',
|
label: '普通'
|
}, {
|
value: 1,
|
type: 'warning',
|
label: '优先'
|
}, {
|
value: 2,
|
type: 'danger',
|
label: '紧急'
|
}]
|
},
|
createUser: {
|
select: []
|
}
|
},
|
selectField: {},
|
requiredAdd: [],
|
requiredUp: []
|
},
|
entityCopy: {},
|
upIndex: 0,
|
claimVisible:false,
|
dates: []
|
}
|
},
|
mounted() {
|
this.entityCopy = this.HaveJson(this.componentData.entity)
|
this.getPower()
|
},
|
methods: {
|
refreshTable() {
|
this.$refs['ValueTable'].selectList()
|
},
|
refresh() {
|
this.componentData.entity = this.HaveJson(this.entityCopy)
|
this.upIndex++
|
},
|
handleWeave(){
|
this.claimVisible = true;
|
},
|
// 权限分配
|
getPower(radio) {
|
let power = JSON.parse(sessionStorage.getItem('power'))
|
let up = false
|
let del = false
|
let add = false
|
for (var i = 0; i < power.length; i++) {
|
if (power[i].menuMethod == 'upInsOrder') {
|
up = true
|
}
|
if (power[i].menuMethod == 'addInsOrder') {
|
add = true
|
}
|
}
|
if (!up) {
|
this.componentData.do.splice(4, 1)
|
}
|
},
|
handleClose() {
|
this.upLoad = false;
|
},
|
confirmClaim(){
|
console.log(11111111111,this.$refs.Word.getValue())
|
}
|
}
|
}
|
</script>
|