|
@@ -1,8 +1,8 @@
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
-::v-deep a {
|
|
|
|
- color: #409eff;
|
|
|
|
- display: block;
|
|
|
|
-}
|
|
|
|
|
|
+ ::v-deep a {
|
|
|
|
+ color: #409eff;
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
@@ -42,7 +42,7 @@
|
|
:style="
|
|
:style="
|
|
item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
|
|
item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
|
|
"
|
|
"
|
|
- >{{ item.value }}</span
|
|
|
|
|
|
+ >{{ item.value }}</span
|
|
><span>{{ item.nickMame }}</span>
|
|
><span>{{ item.nickMame }}</span>
|
|
</div>
|
|
</div>
|
|
</el-option>
|
|
</el-option>
|
|
@@ -63,7 +63,8 @@
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
|
|
- >搜索</el-button
|
|
|
|
|
|
+ >搜索
|
|
|
|
+ </el-button
|
|
>
|
|
>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -72,7 +73,8 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
style="margin-bottom: 15px"
|
|
style="margin-bottom: 15px"
|
|
- >导出</el-button
|
|
|
|
|
|
+ >导出
|
|
|
|
+ </el-button
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -98,6 +100,19 @@
|
|
width="100px"
|
|
width="100px"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
|
|
+ label="可绑达人数"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="promotersCount"
|
|
|
|
+ width="100px"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.promotersCount }}
|
|
|
|
+ <el-button size="mini" type="text" @click="editCount(scope.row)">编辑</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
label="(总)领样达人数"
|
|
label="(总)领样达人数"
|
|
align="center"
|
|
align="center"
|
|
prop="sampleCount"
|
|
prop="sampleCount"
|
|
@@ -178,9 +193,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.voucherOrderAmount
|
|
|
|
- ? allMoney(scope.row.voucherOrderAmount / 100)
|
|
|
|
- : "-"
|
|
|
|
|
|
+ scope.row.voucherOrderAmount
|
|
|
|
+ ? allMoney(scope.row.voucherOrderAmount / 100)
|
|
|
|
+ : "-"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -192,9 +207,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.regimentalPromotionAmount
|
|
|
|
- ? allMoney(scope.row.regimentalPromotionAmount / 100)
|
|
|
|
- : "-"
|
|
|
|
|
|
+ scope.row.regimentalPromotionAmount
|
|
|
|
+ ? allMoney(scope.row.regimentalPromotionAmount / 100)
|
|
|
|
+ : "-"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -206,9 +221,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.voucherRegimentalPromotionAmount
|
|
|
|
- ? allMoney(scope.row.voucherRegimentalPromotionAmount / 100)
|
|
|
|
- : "-"
|
|
|
|
|
|
+ scope.row.voucherRegimentalPromotionAmount
|
|
|
|
+ ? allMoney(scope.row.voucherRegimentalPromotionAmount / 100)
|
|
|
|
+ : "-"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -220,9 +235,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.totalRegimentalSettleAmount
|
|
|
|
- ? allMoney(scope.row.totalRegimentalSettleAmount / 100)
|
|
|
|
- : "-"
|
|
|
|
|
|
+ scope.row.totalRegimentalSettleAmount
|
|
|
|
+ ? allMoney(scope.row.totalRegimentalSettleAmount / 100)
|
|
|
|
+ : "-"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -234,9 +249,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.voucherTotalRegimentalSettleAmount
|
|
|
|
- ? allMoney(scope.row.voucherTotalRegimentalSettleAmount / 100)
|
|
|
|
- : "-"
|
|
|
|
|
|
+ scope.row.voucherTotalRegimentalSettleAmount
|
|
|
|
+ ? allMoney(scope.row.voucherTotalRegimentalSettleAmount / 100)
|
|
|
|
+ : "-"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -249,173 +264,111 @@
|
|
:limit.sync="queryParams.pageSize"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="编辑数量"
|
|
|
|
+ :visible.sync="editCountVisible"
|
|
|
|
+ width="500px"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
|
|
+ <el-input placeholder="请输入数量" style="width: 100%" v-model="promotersCount">
|
|
|
|
+ </el-input>
|
|
|
|
+
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitPromotersCount" :loading="promotersCountLoading"
|
|
|
|
+ >确 定
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ @click="
|
|
|
|
+ promotersCountLoading = false;
|
|
|
|
+ editCountVisible = false;
|
|
|
|
+ promotersCount = null;
|
|
|
|
+ submitUserId = null;
|
|
|
|
+ "
|
|
|
|
+ >取 消
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- getSupplyChainUserList,
|
|
|
|
- getBdReportList,
|
|
|
|
- downFilePost,
|
|
|
|
-} from "@/api/supplyChain/supplyChain";
|
|
|
|
-export default {
|
|
|
|
- name: "Investment",
|
|
|
|
- dicts: ["sys_normal_disable"],
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- downLoadLoading: false,
|
|
|
|
- dialogTableVisible: false,
|
|
|
|
- logPage: {
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- },
|
|
|
|
- logData: [],
|
|
|
|
- logTotal: 0,
|
|
|
|
- logLoading: false,
|
|
|
|
- // 遮罩层
|
|
|
|
- loading: true,
|
|
|
|
- // 选中数组
|
|
|
|
- ids: [],
|
|
|
|
- // 非单个禁用
|
|
|
|
- single: true,
|
|
|
|
- // 非多个禁用
|
|
|
|
- multiple: true,
|
|
|
|
- // 显示搜索条件
|
|
|
|
- showSearch: true,
|
|
|
|
- // 总条数
|
|
|
|
- total: 0,
|
|
|
|
- // 字典表格数据
|
|
|
|
- typeList: [],
|
|
|
|
- // 弹出层标题
|
|
|
|
- title: "",
|
|
|
|
- // 是否显示弹出层
|
|
|
|
- open: false,
|
|
|
|
- // 分配销售
|
|
|
|
- openAllocation: false,
|
|
|
|
- // 选择的销售id
|
|
|
|
- saleId: undefined,
|
|
|
|
- // 获取用户id
|
|
|
|
- userId: undefined,
|
|
|
|
- roleId:undefined,
|
|
|
|
- // 销售列表
|
|
|
|
- saleList: [],
|
|
|
|
- // 分配销售确定loading
|
|
|
|
- confirmLoadingSale: false,
|
|
|
|
- // 日期范围
|
|
|
|
- dateRange: [],
|
|
|
|
- // 查询参数
|
|
|
|
- queryParams: {
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- collectSampleId: undefined,
|
|
|
|
- orderStartDate: undefined,
|
|
|
|
- orderEndDate: undefined,
|
|
|
|
- },
|
|
|
|
- uploadDate: [new Date(), new Date()],
|
|
|
|
- //查询参数所用下拉数据
|
|
|
|
- queryParamsList: {
|
|
|
|
- personList: [],
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
- created() {
|
|
|
|
- this.userId = this.$store.getters.userId;
|
|
|
|
- this.roleId = this.$store.getters.roles[0];
|
|
|
|
- let date = new Date();
|
|
|
|
- let y = date.getFullYear();
|
|
|
|
- let MM = date.getMonth() + 1;
|
|
|
|
- MM = MM < 10 ? "0" + MM : MM;
|
|
|
|
- let dd = date.getDate();
|
|
|
|
- dd = dd < 10 ? "0" + dd : dd;
|
|
|
|
- this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.getPersonList();
|
|
|
|
- this.getList();
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- /** 导出按钮操作 */
|
|
|
|
- handleExport() {
|
|
|
|
- this.downLoadLoading = true;
|
|
|
|
- downFilePost(
|
|
|
|
- "/isv/supply_chain/exportBdReportList",
|
|
|
|
- this.addDateRange(
|
|
|
|
- this.queryParams,
|
|
|
|
- this.uploadDate,
|
|
|
|
- "orderStartDate",
|
|
|
|
- "orderEndDate"
|
|
|
|
- )
|
|
|
|
- ).then((res) => {
|
|
|
|
- let blob = new Blob([res], {
|
|
|
|
- type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
|
|
- });
|
|
|
|
- let downloadElement = document.createElement("a");
|
|
|
|
- let href = window.URL.createObjectURL(blob); //创建下载的链接
|
|
|
|
- downloadElement.href = href;
|
|
|
|
- downloadElement.download = `渠道管理.xlsx`; //下载后文件名
|
|
|
|
- document.body.appendChild(downloadElement);
|
|
|
|
- downloadElement.click(); //点击下载
|
|
|
|
- document.body.removeChild(downloadElement); //下载完成移除元素
|
|
|
|
- window.URL.revokeObjectURL(href); //释放掉blob对象
|
|
|
|
- this.downLoadLoading = false;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- toIndexDetail(item) {
|
|
|
|
- this.$router.replace({
|
|
|
|
- path: "/supplyChain/channelDetails",
|
|
|
|
- query: {
|
|
|
|
- id: item.collectSampleId,
|
|
|
|
- orderStartDate: this.uploadDate[0],
|
|
|
|
- orderEndDate: this.uploadDate[1],
|
|
|
|
|
|
+ import {
|
|
|
|
+ getSupplyChainUserList,
|
|
|
|
+ getBdReportList,
|
|
|
|
+ downFilePost,
|
|
|
|
+ submitPromotersCount,
|
|
|
|
+ } from "@/api/supplyChain/supplyChain";
|
|
|
|
+
|
|
|
|
+ export default {
|
|
|
|
+ name: "Investment",
|
|
|
|
+ dicts: ["sys_normal_disable"],
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ submitUserId:null,
|
|
|
|
+ promotersCountLoading: false,
|
|
|
|
+ promotersCount: null,
|
|
|
|
+ editCountVisible: false,
|
|
|
|
+ downLoadLoading: false,
|
|
|
|
+ dialogTableVisible: false,
|
|
|
|
+ logPage: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
},
|
|
},
|
|
- });
|
|
|
|
- },
|
|
|
|
- getPersonList() {
|
|
|
|
- getSupplyChainUserList().then((response) => {
|
|
|
|
- this.queryParamsList.personList = response.rows;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- /** 查询字典类型列表 */
|
|
|
|
- getList() {
|
|
|
|
- this.loading = true;
|
|
|
|
- if(this.roleId == 'bd' ){
|
|
|
|
- this.queryParams.collectSampleId = this.userId
|
|
|
|
- }
|
|
|
|
- getBdReportList(
|
|
|
|
- this.addDateRange(
|
|
|
|
- this.queryParams,
|
|
|
|
- this.uploadDate,
|
|
|
|
- "orderStartDate",
|
|
|
|
- "orderEndDate"
|
|
|
|
- )
|
|
|
|
- ).then((response) => {
|
|
|
|
- this.typeList = response.rows;
|
|
|
|
- this.total = response.total;
|
|
|
|
- this.loading = false;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 取消按钮
|
|
|
|
- cancel() {
|
|
|
|
- this.open = false;
|
|
|
|
- this.confirmLoading = false;
|
|
|
|
- this.reset();
|
|
|
|
- },
|
|
|
|
- // 表单重置
|
|
|
|
- reset() {
|
|
|
|
- this.form = {};
|
|
|
|
- this.dateFile = null;
|
|
|
|
- this.resetForm("form");
|
|
|
|
- },
|
|
|
|
- /** 搜索按钮操作 */
|
|
|
|
- handleQuery() {
|
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ logData: [],
|
|
|
|
+ logTotal: 0,
|
|
|
|
+ logLoading: false,
|
|
|
|
+ // 遮罩层
|
|
|
|
+ loading: true,
|
|
|
|
+ // 选中数组
|
|
|
|
+ ids: [],
|
|
|
|
+ // 非单个禁用
|
|
|
|
+ single: true,
|
|
|
|
+ // 非多个禁用
|
|
|
|
+ multiple: true,
|
|
|
|
+ // 显示搜索条件
|
|
|
|
+ showSearch: true,
|
|
|
|
+ // 总条数
|
|
|
|
+ total: 0,
|
|
|
|
+ // 字典表格数据
|
|
|
|
+ typeList: [],
|
|
|
|
+ // 弹出层标题
|
|
|
|
+ title: "",
|
|
|
|
+ // 是否显示弹出层
|
|
|
|
+ open: false,
|
|
|
|
+ // 分配销售
|
|
|
|
+ openAllocation: false,
|
|
|
|
+ // 选择的销售id
|
|
|
|
+ saleId: undefined,
|
|
|
|
+ // 获取用户id
|
|
|
|
+ userId: undefined,
|
|
|
|
+ roleId: undefined,
|
|
|
|
+ // 销售列表
|
|
|
|
+ saleList: [],
|
|
|
|
+ // 分配销售确定loading
|
|
|
|
+ confirmLoadingSale: false,
|
|
|
|
+ // 日期范围
|
|
|
|
+ dateRange: [],
|
|
|
|
+ // 查询参数
|
|
|
|
+ queryParams: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ collectSampleId: undefined,
|
|
|
|
+ orderStartDate: undefined,
|
|
|
|
+ orderEndDate: undefined,
|
|
|
|
+ },
|
|
|
|
+ uploadDate: [new Date(), new Date()],
|
|
|
|
+ //查询参数所用下拉数据
|
|
|
|
+ queryParamsList: {
|
|
|
|
+ personList: [],
|
|
|
|
+ },
|
|
|
|
+ };
|
|
},
|
|
},
|
|
- /** 重置按钮操作 */
|
|
|
|
- resetQuery() {
|
|
|
|
- this.dateRange = [];
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.userId = this.$store.getters.userId;
|
|
|
|
+ this.roleId = this.$store.getters.roles[0];
|
|
let date = new Date();
|
|
let date = new Date();
|
|
let y = date.getFullYear();
|
|
let y = date.getFullYear();
|
|
let MM = date.getMonth() + 1;
|
|
let MM = date.getMonth() + 1;
|
|
@@ -423,14 +376,138 @@ export default {
|
|
let dd = date.getDate();
|
|
let dd = date.getDate();
|
|
dd = dd < 10 ? "0" + dd : dd;
|
|
dd = dd < 10 ? "0" + dd : dd;
|
|
this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
|
|
this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
|
|
- this.resetForm("queryForm");
|
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
|
- this.handleQuery();
|
|
|
|
},
|
|
},
|
|
- // 多选框选中数据
|
|
|
|
- handleSelectionChange(selection) {
|
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.getPersonList();
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+
|
|
|
|
+ submitPromotersCount() {
|
|
|
|
+ if (!!this.promotersCount) {
|
|
|
|
+ this.promotersCountLoading = true;
|
|
|
|
+ submitPromotersCount({
|
|
|
|
+ userId : this.submitUserId,
|
|
|
|
+ promotersCount:this.promotersCount
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.promotersCountLoading = false;
|
|
|
|
+ this.editCountVisible = false;
|
|
|
|
+ this.submitUserId = null;
|
|
|
|
+ this.promotersCount = null;
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$message.success("添加成功");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.promotersCountLoading = false;
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("请填写数量");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ editCount(item) {
|
|
|
|
+ this.editCountVisible = true;
|
|
|
|
+ this.submitUserId = item.collectSampleId;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ /** 导出按钮操作 */
|
|
|
|
+ handleExport() {
|
|
|
|
+ this.downLoadLoading = true;
|
|
|
|
+ downFilePost(
|
|
|
|
+ "/isv/supply_chain/exportBdReportList",
|
|
|
|
+ this.addDateRange(
|
|
|
|
+ this.queryParams,
|
|
|
|
+ this.uploadDate,
|
|
|
|
+ "orderStartDate",
|
|
|
|
+ "orderEndDate"
|
|
|
|
+ )
|
|
|
|
+ ).then((res) => {
|
|
|
|
+ let blob = new Blob([res], {
|
|
|
|
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
|
|
+ });
|
|
|
|
+ let downloadElement = document.createElement("a");
|
|
|
|
+ let href = window.URL.createObjectURL(blob); //创建下载的链接
|
|
|
|
+ downloadElement.href = href;
|
|
|
|
+ downloadElement.download = `渠道管理.xlsx`; //下载后文件名
|
|
|
|
+ document.body.appendChild(downloadElement);
|
|
|
|
+ downloadElement.click(); //点击下载
|
|
|
|
+ document.body.removeChild(downloadElement); //下载完成移除元素
|
|
|
|
+ window.URL.revokeObjectURL(href); //释放掉blob对象
|
|
|
|
+ this.downLoadLoading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ toIndexDetail(item) {
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ path: "/supplyChain/channelDetails",
|
|
|
|
+ query: {
|
|
|
|
+ id: item.collectSampleId,
|
|
|
|
+ orderStartDate: this.uploadDate[0],
|
|
|
|
+ orderEndDate: this.uploadDate[1],
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getPersonList() {
|
|
|
|
+ getSupplyChainUserList().then((response) => {
|
|
|
|
+ this.queryParamsList.personList = response.rows;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 查询字典类型列表 */
|
|
|
|
+ getList() {
|
|
|
|
+ this.loading = true;
|
|
|
|
+ if (this.roleId == 'bd') {
|
|
|
|
+ this.queryParams.collectSampleId = this.userId
|
|
|
|
+ }
|
|
|
|
+ getBdReportList(
|
|
|
|
+ this.addDateRange(
|
|
|
|
+ this.queryParams,
|
|
|
|
+ this.uploadDate,
|
|
|
|
+ "orderStartDate",
|
|
|
|
+ "orderEndDate"
|
|
|
|
+ )
|
|
|
|
+ ).then((response) => {
|
|
|
|
+ this.typeList = response.rows;
|
|
|
|
+ this.total = response.total;
|
|
|
|
+ this.loading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 取消按钮
|
|
|
|
+ cancel() {
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.confirmLoading = false;
|
|
|
|
+ this.reset();
|
|
|
|
+ },
|
|
|
|
+ // 表单重置
|
|
|
|
+ reset() {
|
|
|
|
+ this.form = {};
|
|
|
|
+ this.dateFile = null;
|
|
|
|
+ this.resetForm("form");
|
|
|
|
+ },
|
|
|
|
+ /** 搜索按钮操作 */
|
|
|
|
+ handleQuery() {
|
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
+ resetQuery() {
|
|
|
|
+ this.dateRange = [];
|
|
|
|
+ let date = new Date();
|
|
|
|
+ let y = date.getFullYear();
|
|
|
|
+ let MM = date.getMonth() + 1;
|
|
|
|
+ MM = MM < 10 ? "0" + MM : MM;
|
|
|
|
+ let dd = date.getDate();
|
|
|
|
+ dd = dd < 10 ? "0" + dd : dd;
|
|
|
|
+ this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
|
|
|
|
+ this.resetForm("queryForm");
|
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
|
+ this.handleQuery();
|
|
|
|
+ },
|
|
|
|
+ // 多选框选中数据
|
|
|
|
+ handleSelectionChange(selection) {
|
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ };
|
|
</script>
|
|
</script>
|