From 2b773dd14058d4eeacb38b0813edecc86170fd0c Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 26 六月 2024 15:37:26 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1
---
company/src/components/business/OperaApplyChangeMonthWindow.vue | 188 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 188 insertions(+), 0 deletions(-)
diff --git a/company/src/components/business/OperaApplyChangeMonthWindow.vue b/company/src/components/business/OperaApplyChangeMonthWindow.vue
new file mode 100644
index 0000000..4a0d276
--- /dev/null
+++ b/company/src/components/business/OperaApplyChangeMonthWindow.vue
@@ -0,0 +1,188 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="100%"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <TableLayout :permissions="['business:applychange:query']">
+ <!-- 鎼滅储琛ㄥ崟 -->
+ <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
+ <el-form-item label="淇濆崟鐘舵��" prop="status">
+ <el-select v-model="searchForm.status" placeholder="璇烽�夋嫨" @change="search">
+ <el-option label="鍏ㄩ儴" value=""></el-option>
+ <el-option label="寰呯缃�" value="0"></el-option>
+ <el-option label="寰呭鏍�" value="1"></el-option>
+ <el-option label="宸茬敓鏁�" value="2"></el-option>
+ <el-option label="鐢宠閫�鍥�" value="3"></el-option>
+ <!-- 3 4 閮芥槸閫�鍥炵敵璇蜂腑-->
+ <el-option label="宸查��鍥�" value="5"></el-option>
+ <el-option label="宸插叧闂�" value="6"></el-option>
+ <el-option label="寰呭嚭鍗�" value="7"></el-option>
+ <el-option label="鎵规敼鐢宠涓�" value="9"></el-option>
+ </el-select>
+ </el-form-item>
+<!-- <el-form-item label="淇濋櫓鏂规" prop="baseSolutionsId">
+ <el-select v-model="searchForm.baseSolutionsId" placeholder="璇烽�夋嫨" @change="search">
+ <el-option
+ v-for="item in solutionList"
+ :key="item.baseId"
+ :label="item.name"
+ :value="item.baseId">
+ </el-option>
+ </el-select>
+ </el-form-item>-->
+ <el-form-item label="骞翠唤" prop="year">
+ <el-date-picker
+ v-model="searchForm.year"
+ type="year"
+ @change="search"
+ :clearable="false"
+ value-format="yyyy"
+ placeholder="璇烽�夋嫨骞翠唤"
+ format="yyyy" >
+ </el-date-picker>
+ </el-form-item>
+ <section>
+ <el-button type="primary" @click="search">鎼滅储</el-button>
+ <el-button @click="reset">閲嶇疆</el-button>
+ </section>
+ </el-form>
+ <!-- 琛ㄦ牸鍜屽垎椤� -->
+ <template v-slot:table-wrap>
+ <el-table
+ v-loading="isWorking.search"
+ :data="dataList"
+ stripe
+ show-summary
+ :summary-method="getSummaries"
+ >
+ <el-table-column label="搴忓彿" width="80px">
+ <template slot-scope="scope">
+ <span>{{scope.$index + 1}}</span>
+ </template>
+ </el-table-column>
+ <el-table-column prop="month" label="骞存湀" ></el-table-column>
+ <el-table-column prop="countNum" label="鐢宠鍗曟暟" ></el-table-column>
+ <el-table-column prop="fee" label="璐圭敤鍙樻洿(鍏�)" ></el-table-column>
+ </el-table>
+ </template>
+ <!-- 璇︽儏 -->
+ </TableLayout>
+ <template v-slot:footer>
+ <el-button @click="visible=false">杩斿洖</el-button>
+ </template>
+ </GlobalWindow>
+</template>
+<script>
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import { all as solutionAll } from '@/api/business/solutions'
+import { monthList } from '@/api/business/applyChange'
+export default {
+ name: 'OperaApplyChangeMonthWindow',
+ extends: BaseTable,
+ components: { TableLayout ,GlobalWindow},
+ data () {
+ return {
+ // 鎼滅储
+ visible:false,
+ title: '',
+ searchForm: {
+ status: '',
+ type: '0',
+ applyId:null,
+ baseSolutionsId: '',
+ createDateE: '',
+ createDateS: '',
+ year:null
+ },
+ solutionList: [],
+ dataList: []
+ }
+ },
+ created () {
+ this.config({
+ module: '鍔犲噺淇濇崲鍘傜敵璇蜂俊鎭〃',
+ api: '/business/applyChange',
+ 'field.id': 'id',
+ 'field.main': 'id'
+ })
+ },
+ methods: {
+ open(title,taget){
+ this.searchForm.applyId = taget.id
+ this.title = title + "-" + taget.solutionsName
+ this.visible = true
+ this.searchForm.year = new Date().getFullYear().toString()
+ this.search()
+ this.getAll()
+ },
+ getSummaries (param) {
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '鍚堣'
+ } else if (index == 3) {
+ let price = 0
+ data.forEach(item => {
+ price += item.fee
+ })
+ sums[index] = price.toFixed(2)
+ }
+ })
+ return sums;
+ },
+ getAll () {
+ solutionAll({ dataType: 2 }).then(res => {
+ this.solutionList = res
+ }).catch(err => {
+ })
+ },
+ search () {
+ monthList(this.searchForm).then(res => {
+ this.dataList = res
+ }).catch(err => {
+ })
+ },
+ changeTime (e) {
+ if (e.length > 0) {
+ this.searchForm.createDateS = e[0]
+ this.searchForm.createDateE = e[1]
+ } else {
+ this.searchForm.createDateS = ''
+ this.searchForm.createDateE = ''
+ }
+ this.search()
+ },
+ reset () {
+ this.searchForm.createDateS = ''
+ this.searchForm.createDateE = ''
+ this.searchForm.time = []
+ this.$refs.searchForm.resetFields()
+ this.search()
+ }
+ }
+}
+</script>
+<style scoped>
+/* 鑷畾涔夊悎璁¤鑳屾櫙鑹� */
+::v-deep .el-table .el-table__footer-wrapper tr {
+ background-color: #f2f2f2;
+}
+::v-deep .el-table__footer tr {
+ background-color: #f2f2f2;
+}
+
+/* 鑷畾涔夊悎璁¤鏂囨湰棰滆壊 */
+::v-deep .el-table .el-table__footer-wrapper tr td {
+ color: red;
+}
+::v-deep .el-table__footer tr td {
+ color: red;
+ font-weight: bold;
+}
+</style>
--
Gitblit v1.9.3