问题清单修改

This commit is contained in:
lSun 2025-06-14 17:11:13 +08:00
parent 3eb2fe7b30
commit 20c22b65e8
6 changed files with 96 additions and 71 deletions

View File

@ -63,6 +63,9 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column label="序号" type="index" width="100" align="center"> <el-table-column label="序号" type="index" width="100" align="center">
<template slot-scope="scope">
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="单位类型名称" label="单位类型名称"
@ -129,13 +132,13 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> --> />
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
@ -300,7 +303,7 @@ export default {
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 1000, pageSize: 10,
dictType: "bm_unit_type", dictType: "bm_unit_type",
dictLabel: undefined, dictLabel: undefined,
}, },

View File

@ -152,7 +152,8 @@
<!-- 协议单弹窗 --> <!-- 协议单弹窗 -->
<el-dialog :visible.sync="openPrint" width="1100px" append-to-body> <el-dialog :visible.sync="openPrint" width="1100px" append-to-body>
<div style="height: 600px; overflow-y: scroll"> <div id="checkId">
<div style="height: 600px; overflow-y: scroll" >
<vue-easy-print tableShow ref="remarksPrintRef" class="print"> <vue-easy-print tableShow ref="remarksPrintRef" class="print">
<div style="text-align: center; font-weight: 600; font-size: 16px"> <div style="text-align: center; font-weight: 600; font-size: 16px">
机具设备有偿使用费结算协议书 机具设备有偿使用费结算协议书
@ -229,6 +230,7 @@
</div> </div>
</vue-easy-print> </vue-easy-print>
</div> </div>
</div>
<div slot="footer" class="dialog-footer" style="text-align: center"> <div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" @click="print"> </el-button> <el-button type="primary" @click="print"> </el-button>
@ -249,6 +251,7 @@ import { getSltAgreementInfo,getProjectListByUnitIds,getAgreementInfoById } from
import vueEasyPrint from "vue-easy-print"; import vueEasyPrint from "vue-easy-print";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import printJS from 'print-js'
export default { export default {
name: 'CostApplyList', name: 'CostApplyList',
dicts: ['cost_status'], dicts: ['cost_status'],
@ -476,7 +479,14 @@ export default {
}, },
// //
print() { print() {
this.$refs.remarksPrintRef.print(); // this.$refs.remarksPrintRef.print();
printJS({
printable: 'checkId',
type: 'html',
targetStyles: ['*'],
maxWidth:'1400'
//
});
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */

View File

@ -251,6 +251,7 @@ import { passAll, rejectAll } from '@/api/part/partAccept';
import vueEasyPrint from "vue-easy-print"; import vueEasyPrint from "vue-easy-print";
import { downloadFile } from '@/utils/download' import { downloadFile } from '@/utils/download'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import printJS from 'print-js'
export default { export default {
name: "PartAcceptTwo", name: "PartAcceptTwo",
dicts: ['part_task_status'], dicts: ['part_task_status'],

View File

@ -9,7 +9,7 @@
value-format="yyyy-MM"> value-format="yyyy-MM">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item prop="keyWord"> <!-- <el-form-item prop="keyWord">
<el-input <el-input
v-model="queryParams.keyWord" v-model="queryParams.keyWord"
placeholder="请输入关键词" placeholder="请输入关键词"
@ -17,7 +17,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
maxlength="20" maxlength="20"
/> />
</el-form-item> </el-form-item>-->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>

View File

@ -8,7 +8,7 @@
v-show="showSearch" v-show="showSearch"
label-width="90px" label-width="90px"
> >
<el-form-item prop="time"> <!-- <el-form-item prop="time">
<el-date-picker <el-date-picker
v-model="queryParams.time" v-model="queryParams.time"
type="daterange" type="daterange"
@ -17,6 +17,16 @@
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item>-->
<el-form-item prop="time">
<el-date-picker
v-model="queryParams.time"
type="month"
placeholder="请选择月份"
value-format="yyyy-MM"
:clearable="false"
:editable="false"
/>
</el-form-item> </el-form-item>
<el-form-item prop="keyWord"> <el-form-item prop="keyWord">
<el-input <el-input
@ -227,8 +237,9 @@ export default {
this.loading = true; this.loading = true;
const params = { const params = {
keyWord: this.queryParams.keyWord, keyWord: this.queryParams.keyWord,
startTime: this.queryParams.time && this.queryParams.time[0], month: this.queryParams.time,
endTime: this.queryParams.time && this.queryParams.time[1], // startTime: this.queryParams.time && this.queryParams.time[0],
// endTime: this.queryParams.time && this.queryParams.time[1],
pageSize: this.queryParams.pageSize, pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum pageNum: this.queryParams.pageNum
} }

View File

@ -151,10 +151,10 @@
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="参数名称" prop="configName"> <el-form-item label="参数名称" prop="configName">
<el-input v-model="form.configName" placeholder="请输入参数名称" readonly /> <el-input v-model="form.configName" placeholder="请输入参数名称" :readonly="form.configId != undefined" />
</el-form-item> </el-form-item>
<el-form-item label="参数键名" prop="configKey"> <el-form-item label="参数键名" prop="configKey">
<el-input v-model="form.configKey" placeholder="请输入参数键名" readonly /> <el-input v-model="form.configKey" placeholder="请输入参数键名" :readonly="form.configId != undefined" />
</el-form-item> </el-form-item>
<el-form-item label="参数键值" prop="configValue"> <el-form-item label="参数键值" prop="configValue">
<el-input v-model="form.configValue" placeholder="请输入参数键值" /> <el-input v-model="form.configValue" placeholder="请输入参数键值" />