浏览代码

调整代码

xz
zhoujie 9 个月前
父节点
当前提交
d4f491cb09

+ 1
- 1
src/crud/components/UD.operation.vue 查看文件

@@ -198,7 +198,7 @@ function onSuccess(response: any) {
fileName: originalFileName
}
importFn(
'ac5e26d97b08466f8d24f1686936bd86',
'/settlew/attachmentinformation/insert',
() => { },
params
)

+ 225
- 164
src/views/settlement/businessManagement/settlementNotice/etcProvincialNotification/index.vue 查看文件

@@ -1,38 +1,91 @@
<template>
<div>
<crud-template class="as-weight" :ref="(el) => (crudRef = el)" :home-data="field" @btnSearch="btnSearch"
@refreshLeft="refreshLeft" :tableData="tableData" @CurrentChange="handleCurrentChange" @importData="handleSuccess"
@generateAeport="generateAeport" @download="downloadHandle" @pageSizeChange="(val) => {
field.paging.currentPage = 1
field.paging.pageSize = val
getList()
}
">
<crud-template
class="as-weight"
:ref="(el) => (crudRef = el)"
:home-data="field"
@btnSearch="btnSearch"
@refreshLeft="refreshLeft"
:tableData="tableData"
@CurrentChange="handleCurrentChange"
@importData="handleSuccess"
@generateAeport="generateAeport"
@download="downloadHandle"
@pageSizeChange="
(val) => {
field.paging.currentPage = 1
field.paging.pageSize = val
getList()
}
"
>
<template #search>
<el-select clearable style="width: 200px" v-model="searchForm.settleChannel" placeholder="请选择清分方">
<el-option v-for="item in ETC_PROVINCIAL_NOTICE_CHANNEL" :key="item.value" :label="item.label"
:value="item.value" />
<el-select
clearable
style="width: 200px"
v-model="searchForm.settleChannel"
placeholder="请选择清分方"
>
<el-option
v-for="item in ETC_PROVINCIAL_NOTICE_CHANNEL"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-input maxlength="60" v-trim clearable v-model="searchForm.remark" style="width: 200px"
placeholder="请输入备注信息" />
<el-input
maxlength="60"
v-trim
clearable
v-model="searchForm.remark"
style="width: 200px"
placeholder="请输入备注信息"
/>
<div class="date-label">清分日期:</div>
<el-date-picker unlink-panels v-model="timeValue" type="daterange" range-separator="到"
start-placeholder="清分开始日期" end-placeholder="清分结束日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
@change="dateChangeHandle" :default-time="defaultTime" />
<el-date-picker
unlink-panels
v-model="timeValue"
type="daterange"
range-separator="到"
start-placeholder="清分开始日期"
end-placeholder="清分结束日期"
value-format="YYYY-MM-DD"
format="YYYY-MM-DD"
@change="dateChangeHandle"
:default-time="defaultTime"
/>
</template>
<template #status1="{ scope }">
<el-button v-if="!scope.row.tjconfirmation" size="small" type="success"
@click="confirm(scope.row, 'TAIJI')">确认</el-button>
<el-button
v-if="!scope.row.tjconfirmation"
size="small"
type="success"
@click="confirm(scope.row, 'TAIJI')"
>
确认
</el-button>
<span v-else>已确认</span>
</template>
<template #status2="{ scope }">
<el-button size="small" v-if="!scope.row.technologyConfirmation" type="success"
@click="confirm(scope.row, 'TECHNOLOGY')">确认</el-button>
<el-button
size="small"
v-if="!scope.row.technologyConfirmation"
type="success"
@click="confirm(scope.row, 'TECHNOLOGY')"
>
确认
</el-button>
<span v-else>已确认</span>
</template>
<template #status3="{ scope }">
<el-button size="small" v-if="!scope.row.settleConfirmation" type="success"
@click="confirm(scope.row, 'SETTLE')">确认</el-button>
<el-button
size="small"
v-if="!scope.row.settleConfirmation"
type="success"
@click="confirm(scope.row, 'SETTLE')"
>
确认
</el-button>
<span v-else>已确认</span>
</template>
</crud-template>
@@ -41,167 +94,175 @@

<!-- ETC省内通知书统计表 -->
<script lang="ts" setup>
// @ts-ignore crudFrom模板
import CrudTemplate from '@/crud/index.vue'
import { ref, computed, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import $storeinitData from '@/store/initData' //引入tab vuex
import { IsPermission } from '@/router/routerUtil'
import { useRoute } from 'vue-router'
const route = useRoute()
// 请求函数
import BaseService from '@/utils/baseService'
// @ts-ignore crudFrom模板
import CrudTemplate from '@/crud/index.vue'
import { ref, computed, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import $storeinitData from '@/store/initData' //引入tab vuex
import { IsPermission } from '@/router/routerUtil'
import { useRoute } from 'vue-router'
const route = useRoute()
// 请求函数
import BaseService from '@/utils/baseService'

//crud配置
import crudConfig from './crudConfig'
//crud配置
import crudConfig from './crudConfig'

const ETC_PROVINCIAL_NOTICE_CHANNEL = computed(() => {
return $storeinitData.state.dictData['ETC_PROVINCIAL_NOTICE_CHANNEL'] || []
})
const ETC_PROVINCIAL_NOTICE_CHANNEL = computed(() => {
return $storeinitData.state.dictData['ETC_PROVINCIAL_NOTICE_CHANNEL'] || []
})

// 拿到配置
const { field } = crudConfig(route)
const defaultTime: any = getDefaultTime('day', 1, 'YYYY-MM-DD')
// 拿到配置
const { field } = crudConfig(route)
const defaultTime: any = getDefaultTime('day', 1, 'YYYY-MM-DD')

const timeValue = ref(defaultTime)
function dateChangeHandle(val) {
if (val) {
searchForm.value.startTime = val[0]
searchForm.value.endTime = val[1]
} else {
searchForm.value.startTime = ''
searchForm.value.endTime = ''
}
const timeValue = ref(defaultTime)
function dateChangeHandle(val) {
if (val) {
searchForm.value.startTime = val[0]
searchForm.value.endTime = val[1]
} else {
searchForm.value.startTime = ''
searchForm.value.endTime = ''
}
}

//整个crud虚拟dom
const crudRef = ref()
// 获取数据,查询条件
const searchForm = ref({
//整个crud虚拟dom
const crudRef = ref()
// 获取数据,查询条件
const searchForm = ref({
startTime: defaultTime[0], //开始时间
endTime: defaultTime[1], //结束时间
settleChannel: '',
remark: '',
})
const tableData = ref([])
// 搜索按钮
function btnSearch() {
field.value.paging.currentPage = 1
getList()
}
// 搜索重置
function refreshLeft() {
field.value.paging.currentPage = 1
searchForm.value = {
startTime: defaultTime[0], //开始时间
endTime: defaultTime[1], //结束时间
settleChannel: '',
remark: '',
})
const tableData = ref([])
// 搜索按钮
function btnSearch() {
field.value.paging.currentPage = 1
getList()
}
// 搜索重置
function refreshLeft() {
field.value.paging.currentPage = 1
searchForm.value = {
startTime: defaultTime[0], //开始时间
endTime: defaultTime[1], //结束时间
settleChannel: '',
remark: '',
}
tableData.value = []
timeValue.value = defaultTime
getList()
tableData.value = []
timeValue.value = defaultTime
getList()
}
onMounted(() => {
getList()
})
// 处理请求参数
const handleParams = () => {
let params: any = {
pageNo: field.value.paging.currentPage,
pageSize: field.value.paging.pageSize,
...searchForm.value,
}
onMounted(() => {
getList()
})
// 处理请求参数
const handleParams = () => {
let params: any = {
pageNo: field.value.paging.currentPage,
pageSize: field.value.paging.pageSize,
...searchForm.value,
return params
}
// 获取数据
function getList(isInfo = false) {
const params = handleParams()
if (!params.startTime || !params.endTime) {
if (!isInfo) {
ElMessage.error('请选择统计开始时间和结束时间')
}
return params
return
}
// 获取数据
function getList(isInfo = false) {
const params = handleParams()
if (!params.startTime || !params.endTime) {
if (!isInfo) {
ElMessage.error('请选择统计开始时间和结束时间')
}
return
}
crudRef.value.tableLoding = true //表格loading效果
BaseService.postN('/settlew/treatment/provicequery', params).then(
(res: any) => {
crudRef.value.tableLoding = false
if (res && res.code === 0) {
let bizContent = res.data
let data = bizContent.data || []
tableData.value = data
console.log(bizContent)
crudRef.value.tableLoding = true //表格loading效果
BaseService.postN('/settlew/treatment/provicequery', params).then(
(res: any) => {
crudRef.value.tableLoding = false
if (res && res.code === 0) {
let bizContent = res.data
let data = bizContent.data || []
tableData.value = data
console.log(bizContent)

field.value.paging.total = bizContent.totalCount
field.value.paging.amountSum = bizContent.amountSum
field.value.paging.actualAmountPaidSum = bizContent.actualAmountPaidSum
} else {
ElMessage.error(res.message)
}
field.value.paging.total = bizContent.totalCount
field.value.paging.amountSum = bizContent.amountSum
field.value.paging.actualAmountPaidSum = bizContent.actualAmountPaidSum
} else {
ElMessage.error(res.message)
}
)
}
// 处理当前页数
function handleCurrentChange(val: number) {
field.value.paging.currentPage = val
getList()
}
}
)
}
// 处理当前页数
function handleCurrentChange(val: number) {
field.value.paging.currentPage = val
getList()
}

/***********上传下载**************/
import { exportFn, importFn, getDefaultTime, reportExportFn } from '@/views/settlement/exportFn'
// 文件上传到minio后触发
const handleSuccess = (url: any, reportFileName: any) => {
importFn(
'/settlew/treatment/proviceimport',
() => {
getList(true)
},
{
url,
reportFileName,
/***********上传下载**************/
import {
exportFn,
importFn,
getDefaultTime,
reportExportFn,
} from '@/views/settlement/exportFn'
// 文件上传到minio后触发
const handleSuccess = (url: any, reportFileName: any) => {
importFn(
'/settlew/treatment/proviceimport',
() => {
getList(true)
},
{
url,
reportFileName,
}
)
}
// 生成报表
function generateAeport() {
const params = handleParams()
console.log(params)
reportExportFn(
'/settlew/treatment/proviceexport',
params,
'ETC省内通知书统计表'
)
.then((res) => {
const initiateApprovalData =
field.value.searchOperation.initiateApprovalData
field.value.searchOperation.initiateApprovalData = {
...initiateApprovalData,
...res,
}
)
}
// 生成报表
function generateAeport() {
const params = handleParams()
console.log(params)
reportExportFn(
'/settlew/treatment/proviceexport',
params,
'ETC省内通知书统计表'
)
.then((res) => {
const initiateApprovalData =
field.value.searchOperation.initiateApprovalData
field.value.searchOperation.initiateApprovalData = {
...initiateApprovalData,
...res,
}
})
.finally(() => {
console.log('error')
})
}
// 下载
const downloadHandle = () => {
const params = handleParams()
console.log(params)
exportFn('/settlew/treatment/proviceexport', params, 'ETC省内通知书统计表')
}
})
.finally(() => {
console.log('error')
})
}
// 下载
const downloadHandle = () => {
const params = handleParams()
console.log(params)
exportFn('/settlew/treatment/proviceexport', params, 'ETC省内通知书统计表')
}

// 三方确认
const confirm = (row, type) => {
BaseService.postN('/settlew/notice/proviceconfirmation', { id: row.id, confirmationType: type }).then((res: any) => {
if (res && res.code === 0) {
ElMessage.success('确认成功!');
getList()
} else {
ElMessage.error(res.message);
}
});
}
// 三方确认
const confirm = (row, type) => {
BaseService.postN('/settlew/notice/proviceconfirmation', {
id: row.id,
confirmationType: type,
}).then((res: any) => {
if (res && res.code === 0) {
ElMessage.success('确认成功!')
getList()
} else {
ElMessage.error(res.message)
}
})
}
</script>
<style scoped lang="less">
.upload-btn {

+ 2
- 2
src/views/settlement/businessManagement/settlementNotice/etcProvincialOutsideNotification/index.vue 查看文件

@@ -21,10 +21,10 @@
start-placeholder="清分开始日期" end-placeholder="清分结束日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
@change="dateChangeHandle" :default-time="defaultTime" />
</template>
<template #searchCustomButton>
<!-- <template #searchCustomButton>
<el-button v-if="IsPermission(route, 'INCOMING_TIME')" type="warning"
@click="refreshData('', 1)">传入时间</el-button>
</template>
</template> -->
<template #operation="{ scope }">
<el-button v-if="IsPermission(route, 'REFRESH_DATA_LIST')" size="small" type="warning"
@click="refreshData(scope.row, 2)">刷新数据</el-button>

+ 1
- 1
src/views/settlement/incomeExpensesManagement/expenditureManagement/optionalModeCostStatistics/index.vue 查看文件

@@ -1,7 +1,7 @@
<template>
<div>
<crud-template :ref="(el) => (crudRef = el)" class="as-weight" :home-data="field" :table-data="tableData"
@btnSearch="btnSearch" @generateAeport="generateAeport" @importData=" " @refreshLeft="refreshLeft"
@btnSearch="btnSearch" @generateAeport="generateAeport" @importData="importData" @refreshLeft="refreshLeft"
@CurrentChange="handleCurrentChange" @download="downloadHandle" @pageSizeChange="(val) => {
field.paging.currentPage = 1
field.paging.pageSize = val

+ 1
- 0
src/views/settlement/incomeExpensesManagement/expenditureManagement/productServiceChargeStatistics/index.vue 查看文件

@@ -360,6 +360,7 @@
function getSelectList() {
BaseService.postN('/userw/agency/agencyqueryall').then((res: any) => {
if (res && res.code === 0) {
let bizContent = res.data;
console.log("====bizContent", bizContent);
let data = bizContent.agencyQueryAllModels || [];
let list = [] as Object[];

+ 1
- 1
src/views/settlement/incomeExpensesManagement/revenueManagement/officialCarIncomeDetailStatistics/index.vue 查看文件

@@ -350,7 +350,7 @@
searchForm.value.type = 2
searchForm.value.startTime = dateChange1(searchForm.value.startTime)
searchForm.value.endTime = dateChange1(searchForm.value.endTime)
exportFn('/settlew/optional/download', searchForm.value)
exportFn('/settlew/optional/officialcarincomemonthfind', searchForm.value)
}
onMounted(() => {
dateChangeHandle()

+ 1
- 1
src/views/settlement/incomeExpensesManagement/revenueManagement/officialVehicleIssuedCommodityDetailStatistics/index.vue 查看文件

@@ -344,7 +344,7 @@
searchForm.value.type = 2
searchForm.value.startTime = dateChange(value1.value[0])
searchForm.value.endTime = dateChange(value1.value[1])
exportFn('/settlew/optional/download', searchForm.value)
exportFn('/settlew/optional/officialcarincomemonthfind', searchForm.value)
}
onMounted(() => {
// dateChangeHandle()

正在加载...
取消
保存