From 0f409b25f91717e00e10c37738740b22583cb4ff Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 08 五月 2024 09:00:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1
---
company/src/views/enterprise/myPolicy.vue | 246 ++++++++++++++++++++++++------------------------
1 files changed, 123 insertions(+), 123 deletions(-)
diff --git a/company/src/views/enterprise/myPolicy.vue b/company/src/views/enterprise/myPolicy.vue
index 8ba7467..cebff07 100644
--- a/company/src/views/enterprise/myPolicy.vue
+++ b/company/src/views/enterprise/myPolicy.vue
@@ -152,129 +152,129 @@
</template>
<script>
- import BaseTable from '@/components/base/BaseTable'
- import TableLayout from '@/layouts/TableLayout'
- import Pagination from '@/components/common/Pagination'
- import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow'
- import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
- import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication'
- import renewalInsurance from '@/components/enterprise/renewalInsurance'
- import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow'
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow'
+import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
+import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication'
+import renewalInsurance from '@/components/enterprise/renewalInsurance'
+import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow'
- import { all as solutionAll} from '@/api/business/solutions'
- import { getCaptcha, closeApplyNotice } from '@/api/business/notices'
- export default {
- name: 'myPolicy',
- extends: BaseTable,
- components: {
- TableLayout,
- Pagination,
- OperaInsuranceApplyWindow,
- OperaInsuranceApplyDetails,
- renewalInsurance,
- additionSubtractionApplication,
- OperaWtbApplyShopWindow
- },
- data () {
- return {
- // 鎼滅储
- searchForm: {
- code: '',
- endTimeE: '',
- endTimeS: '',
- startTimeE: '',
- startTimeS: '',
- baseSolutionId: '',
- statusCollect: '2'
- },
- obj: {
- renewalNum: 0,
- waitSignNum: 0
- },
- time1: [],
- time2: [],
- solutionList:[]
- }
- },
- created () {
- this.config({
- module: '鎶曚繚鐢宠淇℃伅琛�',
- api: '/business/insuranceApply',
- 'field.id': 'id',
- 'field.main': 'id'
- })
- this.search()
- this.loadSelectList()
- this.getNum()
- },
- methods:{
- godetail (row) {
- if (row.solutionType == 1) {
- this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: row.id })
- } else {
- this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.id })
- }
- },
- see() {
- this.searchForm.statusCollect = '7'
- this.search()
- },
- closeRemind(type) {
- this.$confirm('纭畾鍏抽棴姝ゆ彁绀哄悧?', '鎻愮ず', {
- confirmButtonText: '纭畾',
- cancelButtonText: '鍙栨秷',
- type: 'warning'
- }).then(() => {
- closeApplyNotice(type)
- .then(res => {
- this.getNum()
- })
- }).catch(() => {
-
- });
- },
- getNum() {
- getCaptcha()
- .then(res => {
- this.obj.renewalNum = res.renewalNum
- this.obj.waitSignNum = res.waitSignNum
- })
- },
- reset() {
- this.time1 = []
- this.time2 = []
- this.searchForm.endTimeE = ''
- this.searchForm.endTimeS = ''
- this.searchForm.startTimeE = ''
- this.searchForm.startTimeS = ''
- this.$refs.searchForm.resetFields()
- this.search()
- },
- changeE(e) {
- if (e.length > 0) {
- this.searchForm.endTimeS = e[0]
- this.searchForm.endTimeE = e[1]
- } else {
- this.searchForm.endTimeS = ''
- this.searchForm.endTimeE = ''
- }
- this.search()
- },
- changeS(e) {
- if (e.length > 0) {
- this.searchForm.startTimeS = e[0]
- this.searchForm.startTimeE = e[1]
- } else {
- this.searchForm.startTimeS = ''
- this.searchForm.startTimeE = ''
- }
- this.search()
- },
- loadSelectList() {
- solutionAll({ dataType: 0 }).then(res => {
- this.solutionList = res
- })
- }
- }
+import { all as solutionAll } from '@/api/business/solutions'
+import { getCaptcha, closeApplyNotice } from '@/api/business/notices'
+export default {
+ name: 'myPolicy',
+ extends: BaseTable,
+ components: {
+ TableLayout,
+ Pagination,
+ OperaInsuranceApplyWindow,
+ OperaInsuranceApplyDetails,
+ renewalInsurance,
+ additionSubtractionApplication,
+ OperaWtbApplyShopWindow
+ },
+ data () {
+ return {
+ // 鎼滅储
+ searchForm: {
+ code: '',
+ endTimeE: '',
+ endTimeS: '',
+ startTimeE: '',
+ startTimeS: '',
+ baseSolutionId: '',
+ statusCollect: '2'
+ },
+ obj: {
+ renewalNum: 0,
+ waitSignNum: 0
+ },
+ time1: [],
+ time2: [],
+ solutionList: []
}
+ },
+ created () {
+ this.config({
+ module: '鎶曚繚鐢宠淇℃伅琛�',
+ api: '/business/insuranceApply',
+ 'field.id': 'id',
+ 'field.main': 'id'
+ })
+ this.search()
+ this.loadSelectList()
+ this.getNum()
+ },
+ methods: {
+ godetail (row) {
+ if (row.solutionType == 1) {
+ this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: row.id })
+ } else {
+ this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: row.id })
+ }
+ },
+ see () {
+ this.searchForm.statusCollect = '7'
+ this.search()
+ },
+ closeRemind (type) {
+ this.$confirm('纭畾鍏抽棴姝ゆ彁绀哄悧?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ closeApplyNotice(type)
+ .then(res => {
+ this.getNum()
+ })
+ }).catch(() => {
+
+ })
+ },
+ getNum () {
+ getCaptcha()
+ .then(res => {
+ this.obj.renewalNum = res.renewalNum
+ this.obj.waitSignNum = res.waitSignNum
+ })
+ },
+ reset () {
+ this.time1 = []
+ this.time2 = []
+ this.searchForm.endTimeE = ''
+ this.searchForm.endTimeS = ''
+ this.searchForm.startTimeE = ''
+ this.searchForm.startTimeS = ''
+ this.$refs.searchForm.resetFields()
+ this.search()
+ },
+ changeE (e) {
+ if (e.length > 0) {
+ this.searchForm.endTimeS = e[0]
+ this.searchForm.endTimeE = e[1]
+ } else {
+ this.searchForm.endTimeS = ''
+ this.searchForm.endTimeE = ''
+ }
+ this.search()
+ },
+ changeS (e) {
+ if (e.length > 0) {
+ this.searchForm.startTimeS = e[0]
+ this.searchForm.startTimeE = e[1]
+ } else {
+ this.searchForm.startTimeS = ''
+ this.searchForm.startTimeE = ''
+ }
+ this.search()
+ },
+ loadSelectList () {
+ solutionAll({ dataType: 0 }).then(res => {
+ this.solutionList = res
+ })
+ }
+ }
+}
</script>
--
Gitblit v1.9.3