From a4945c89ee72aa8b6f2c0a75653a3256a2b30b4f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 16 五月 2024 19:02:57 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OpearaUnionChangeUnit.vue | 130 ++++++++++++++++++++++++-------------------
1 files changed, 73 insertions(+), 57 deletions(-)
diff --git a/company/src/components/business/OpearaUnionChangeUnit.vue b/company/src/components/business/OpearaUnionChangeUnit.vue
index 61c4110..b5f950b 100644
--- a/company/src/components/business/OpearaUnionChangeUnit.vue
+++ b/company/src/components/business/OpearaUnionChangeUnit.vue
@@ -2,7 +2,7 @@
<GlobalWindow
:title="title"
width="100%"
- text="鍔犲噺淇濈敵璇�"
+ text="鎻愪氦"
:visible.sync="visible"
:confirm-working="isWorking"
@confirm="confirm"
@@ -19,9 +19,10 @@
<div style="display: flex; flex-direction: column;">
<el-date-picker
v-model="form.applyDate"
- placeholder="鍓嶉�夋嫨鏃ユ湡"
+ placeholder="璇烽�夋嫨鏃ユ湡"
+ :picker-options="pickerOptions"
type="date"
- format="yyyy 骞� MM 鏈� dd 鏃�"
+ format="yyyy-MM-dd"
value-format="yyyy-MM-dd" />
<span style="color: #F95601; font-size: 14px;">锛�2. 娆℃棩鐢熸晥鎶曚繚璇蜂簬17:30鍓嶆彁浜わ紝瓒呮椂鎻愪氦浠ヤ繚闄╁崟涓哄噯锛�</span>
</div>
@@ -88,16 +89,16 @@
</el-table>
<div style="color: #F95601; font-size: 14px;width: 100%;text-align: left">锛�3. 璇峰厛閫夋嫨鑷冲皯涓�鏉$敵璇峰悗鎻愪氦鎶曚繚鐢宠锛�</div>
<div class="info" v-if="model">
- <span v-if="model.specialAgreement">{{model.specialAgreement}}</span>
- <span v-if="model.specialInfo">{{model.specialInfo}}</span>
- <span v-if="model.ortherInfo">{{model.ortherInfo}}</span>
+ <span v-if="model.specialAgreement" v-html="model.specialAgreement"></span>
+ <span v-if="model.specialInfo" v-html="model.specialInfo"> </span>
+ <span v-if="model.ortherInfo" v-html="model.ortherInfo"> </span>
</div>
<!-- 閫夋嫨鐢宠鍗� -->
<ApplyChangeDetails ref="ApplyChangeDetails" @success="getValue" />
<el-dialog
title="閫夋嫨淇濋櫓鍗�"
:visible.sync="visibleSelect"
- width="70%"
+ width="80%"
:modal="true"
:show-close="false"
append-to-body
@@ -129,6 +130,7 @@
<el-table-column prop="code" label="淇濆崟鍙�" min-width="100px"></el-table-column>
<el-table-column prop="solutionName" label="淇濋櫓鏂规" min-width="100px"></el-table-column>
<el-table-column prop="insureNum" label="鎶曚繚浜烘暟" min-width="100px"></el-table-column>
+ <el-table-column prop="changeApplyNum" label="鐢宠鍗曟暟" min-width="100px"></el-table-column>
<el-table-column prop="fee" label="鎬昏垂鐢紙鍏冿級" min-width="100px"></el-table-column>
<el-table-column prop="createDate" label="鎻愪氦鏃堕棿" min-width="100px"></el-table-column>
</el-table>
@@ -159,11 +161,11 @@
import { merge } from '@/api/business/unionChange'
import ApplyChangeDetails from '@/components/business/ApplyChangeUnitDetails'
import { fetchList as pageUnionList } from '@/api/business/unionApply'
-import {getDetail} from "@/api/business/insuranceApply";
+import { getDetail } from '@/api/business/insuranceApply'
export default {
name: 'add_subtract_entrust',
extends: BaseOpera,
- components: { GlobalWindow, ApplyChangeDetails,selectApplicationForm },
+ components: { GlobalWindow, ApplyChangeDetails, selectApplicationForm },
data () {
return {
form: {
@@ -172,12 +174,13 @@
applyDate: null,
businessType: 1
},
- visibleSelect:false,
+ visibleSelect: false,
solutions: [],
- currentPage:0,
+ currentPage: 0,
list: [],
- tableData:[],
- tableTotal:0,
+ pickerOptions: {},
+ tableData: [],
+ tableTotal: 0,
endTime: '',
item: null,
model: null,
@@ -200,25 +203,25 @@
})
},
methods: {
- rowselect(row){
- this.$refs.multipleTable.toggleRowSelection(row,true);
+ rowselect (row) {
+ this.$refs.multipleTable.toggleRowSelection(row, true)
},
- rowselect1(row){
- this.$refs.multipleTable1.toggleRowSelection(row,true);
+ rowselect1 (row) {
+ this.$refs.multipleTable1.toggleRowSelection(row, true)
},
- checkDetial(row){
+ checkDetial (row) {
getDetail(row.applyId).then(res => {
// this.apply = res
- this.$refs.ApplyChangeDetails.open('鏇存崲娲鹃仯鍗曚綅浜哄憳',res, row,2)
+ this.$refs.ApplyChangeDetails.open('鏇存崲娲鹃仯鍗曚綅浜哄憳', res, row, 2)
}).catch(err => {
})
},
- handleSelectionChange(rows){
+ handleSelectionChange (rows) {
this.form.applyIds = []
// 鍋囪鍙栧嚭 id 瀛楁
rows.forEach(item => {
const id = item.id
- if ( this.form.applyIds.indexOf(id) === -1) {
+ if (this.form.applyIds.indexOf(id) === -1) {
this.form.applyIds.push(id)
}
})
@@ -227,27 +230,36 @@
console.log(rows)
if (rows.length > 1) {
// clearSelection 鐢ㄤ簬澶氶�夎〃鏍硷紝娓呯┖鐢ㄦ埛鐨勯�夋嫨
- this.$refs.multipleTable1.clearSelection();
- this.$refs.multipleTable1.toggleRowSelection(rows[rows.length-1]);
+ this.$refs.multipleTable1.clearSelection()
+ this.$refs.multipleTable1.toggleRowSelection(rows[rows.length - 1])
}
- if (rows.length >= 1) {
+ if (rows.length >= 1) {
// 閫変腑鐨勮瀵瑰儚鏀捐繘鏁扮粍锛屾柟渚垮悗缁鏁版嵁杩涜鎿嶄綔
- this.model =rows[rows.length-1]
+ this.model = rows[rows.length - 1]
} else if (rows.length === 0) {
this.model = null
}
},
- selectDo(){
- if(!this.model){
+ selectDo () {
+ if (!this.model) {
this.$tip.apiFailed({
type: 'error',
message: '璇烽�夋嫨鑷冲皯涓�鏉$敵璇疯褰曡繘琛屾搷浣�'
})
return
}
- this.visibleSelect=false
+ this.visibleSelect = false
this.form.unionApplyId = this.model.id
- this.getList();
+ var that = this
+ this.pickerOptions = {
+ disabledDate (time) {
+ var start = new Date(that.model.startTime)
+ start.setDate(start.getDate() + 1)
+ var end = new Date(that.model.endTime)
+ return (time.getTime() < start.getTime() || time.getTime() > end.getTime())
+ }
+ }
+ this.getList()
},
confirm () {
this.$refs.form.validate((valid) => {
@@ -255,12 +267,12 @@
if (!valid) {
return
}
- if(this.form.applyIds == null || this.form.applyIds.length ===0){
+ if (this.form.applyIds == null || this.form.applyIds.length === 0) {
this.$tip.apiFailed({
type: 'error',
message: '璇烽�夋嫨鑷冲皯涓�鏉$敵璇疯褰曡繘琛屾姇淇濈敵璇凤紒!'
})
- return;
+ return
}
this.$confirm('纭鎻愪氦锛岃浠旂粏鏍稿淇℃伅銆�', '鎻愮ず', {
confirmButtonText: '纭畾',
@@ -269,16 +281,16 @@
center: true
}).then(() => {
merge(this.form)
- .then(response => {
- this.$message({
- type: 'success',
- message: '鎻愪氦鎴愬姛!'
- })
- this.visible = false
- this.$emit('success')
- }).catch(err => {
- this.$tip.apiFailed(err)
- })
+ .then(response => {
+ this.$message({
+ type: 'success',
+ message: '鎻愪氦鎴愬姛!'
+ })
+ this.visible = false
+ this.$emit('success')
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ })
}).catch(() => {
this.$message({
type: 'info',
@@ -289,12 +301,12 @@
},
open (title, target) {
this.title = title
- this.model= null
- this.list= []
- this.visibleSelect=false
- this.tableData=[]
- this.tableTotal=0
- this.item= null
+ this.model = null
+ this.list = []
+ this.visibleSelect = false
+ this.tableData = []
+ this.tableTotal = 0
+ this.item = null
if (target) {
this.$nextTick(() => {
this.$refs.form.resetFields()
@@ -308,21 +320,22 @@
// this.getUnionApplyList()
this.visible = true
},
- getValue(){
+ getValue () {
},
- selectBaoxiandan(){
+ selectBaoxiandan () {
this.currentPage = 1
- this.visibleSelect=true
- this.$refs.multipleTable.clearSelection();
+ this.visibleSelect = true
+ this.$refs.multipleTable.clearSelection()
this.getUnionApplyList()
},
- getUnionApplyList(){
+ getUnionApplyList () {
pageUnionList({
capacity: 10,
page: this.currentPage,
model: {
- status: 3,
+ queryFlag: 2,
+ status: 3
}
}).then(res => {
this.tableData.list = res.records
@@ -337,10 +350,10 @@
},
getList () {
listAll({
- solutionType:1,
- type:1,
- unionApplyId: this.model.id,
- status: 7
+ solutionType: 1,
+ type: 1,
+ unionApplyId: this.model.id,
+ status: 7
}).then(res => {
this.list = res
this.$nextTick(() => {
@@ -373,6 +386,9 @@
align-items: center;
}
}
+::v-deep .desc_item_from .el-table__header .el-checkbox{
+ display:none!important;
+}
.submit {
width: 100%;
display: flex;
--
Gitblit v1.9.3