From 0a35a0ebbe694b87f2531d133b3be6b95bd62c69 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 08 五月 2024 14:21:17 +0800 Subject: [PATCH] 提交一把 --- company/src/components/business/OperaApplyChangeCheckWindow.vue | 415 +++++++++++++++++++++++++++++++--------------------------- 1 files changed, 220 insertions(+), 195 deletions(-) diff --git a/company/src/components/business/OperaApplyChangeCheckWindow.vue b/company/src/components/business/OperaApplyChangeCheckWindow.vue index 7450712..3b97ea4 100644 --- a/company/src/components/business/OperaApplyChangeCheckWindow.vue +++ b/company/src/components/business/OperaApplyChangeCheckWindow.vue @@ -18,8 +18,10 @@ <!-- 涓婁紶淇濋櫓鍗� --> <div v-if="visible3==true" class="form"> <div class="form_item"> - <div class="form_item_label">瀹㈡埛鏈熸湜鎵瑰崟鐢熸晥璧锋湡锛�</div> + <div class="form_item_label">鏈熸湜鎵瑰鐢熸晥鏃ユ湡锛�</div> <div class="form_item_val">{{ model.applyStartTime }}</div> + <div class="form_item_label">鏈熸湜鎵瑰噺鐢熸晥鏃ユ湡锛�</div> + <div class="form_item_val">{{ model.delValidTime }}</div> </div> <div class="form_item"> <div class="form_item_label">鎵瑰崟鐢熸晥璧锋湡鏄惁涓�鑷达細</div> @@ -31,7 +33,7 @@ </div> </div> <div class="form_item" v-if="form.selectRadio === 1"> - <div class="form_item_label"><span>*</span>鎵瑰崟鐢熸晥璧锋湡锛�</div> + <div class="form_item_label"><span>*</span>鎵瑰鐢熸晥鏃ユ湡锛�</div> <div class="form_item_val"> <el-date-picker v-model="form.applyStartTime" @@ -41,9 +43,22 @@ </el-date-picker> </div> </div> + <div class="form_item" v-if="form.selectRadio === 1"> + <div class="form_item_label"><span>*</span>鎵瑰噺鐢熸晥鏃ユ湡锛�</div> + <div class="form_item_val"> + <el-date-picker + v-model="form.delValidTime" + type="date" + value-format="yyyy-MM-dd HH:mm:ss" + placeholder="閫夋嫨鏃ユ湡"> + </el-date-picker> + </div> + </div> <div class="form_item"> - <div class="form_item_label">鎵瑰崟鐢熸晥璧锋湡锛�</div> + <div class="form_item_label">鎵瑰鐢熸晥鏃ユ湡锛�</div> <div class="form_item_val">{{ form.applyStartTime }}</div> + <div class="form_item_label">鎵瑰噺鐢熸晥鏃ユ湡锛�</div> + <div class="form_item_val">{{ form.delValidTime }}</div> </div> <div class="form_item"> <div class="form_item_label"><span>*</span>鎵瑰崟鍙凤細</div> @@ -61,8 +76,10 @@ <!-- 淇敼淇濋櫓鍗� --> <div v-if="visible4==true" class="form"> <div class="form_item"> - <div class="form_item_label">鎵瑰崟鐢熸晥璧锋湡锛�</div> + <div class="form_item_label">鎵瑰鐢熸晥鏃ユ湡锛�</div> <div class="form_item_val">{{ model.applyStartTime }}</div> + <div class="form_item_label">鎵瑰噺鐢熸晥鏃ユ湡锛�</div> + <div class="form_item_val">{{ model.delValidTime }}</div> </div> <div class="form_item"> <div class="form_item_label"><span>*</span>鎵瑰崟鍙凤細</div> @@ -121,225 +138,233 @@ export default { name: 'OperaApplyChangeCheckWindow', extends: BaseOpera, - components: {UploadFile, GlobalWindow }, + components: { UploadFile, GlobalWindow }, data () { return { // 琛ㄥ崟鏁版嵁 model: {}, - falg :0, + falg: 0, form: { - id: null, - backCheckInfo:'', - dealBackInfo:'', - editCheckInfo:'', - editValidCode: '', - applyStartTime:null, - validCode:null, - pidanFile:null, - editPidanFile:null, - fileList1: [], - fileList2: [], - selectRadio:0 + id: null, + backCheckInfo: '', + dealBackInfo: '', + editCheckInfo: '', + editValidCode: '', + applyStartTime: null, + delValidTime: null, + validCode: null, + pidanFile: null, + editPidanFile: null, + fileList1: [], + fileList2: [], + selectRadio: 0 }, visible1: false, visible3: false, visible4: false, visible5: false, - visible6: false, + visible6: false } }, created () { - this.config({ - api: '/business/insuranceApply', - 'field.id': 'id' - }) + this.config({ + api: '/business/insuranceApply', + 'field.id': 'id' + }) }, methods: { - open(title,target,flag){ - this.visible=true - this.model={} - this.form= { - id: null, - backCheckInfo:'', - dealBackInfo:'', - editCheckInfo:'', - editValidCode: '', - applyStartTime:null, - validCode:null, - pidanFile:null, - editPidanFile:null, - fileList1: [], - fileList2: [], - selectRadio:0 - }, - this.model=target - this.form.applyStartTime=this.model.applyStartTime - this.form.editValidCode=this.model.validCode - this.title=title - this.flag = flag - this.visible1 = false - this.visible3 = false - this.visible4 = false - this.visible5 = false - this.visible6 = false - if(flag == 1){ - this.visible1 = true - } - if(flag == 3){ - this.visible3 = true - } - if(flag == 4){ - this.visible4 = true - } - if(flag == 5){ - this.visible5 = true - } - if(flag == 6){ - this.visible6 = true - } - }, - doSubmit(){ + open (title, target, flag) { + this.visible = true + this.model = {} + this.form = { + id: null, + backCheckInfo: '', + dealBackInfo: '', + editCheckInfo: '', + editValidCode: '', + delValidTime: null, + applyStartTime: null, + validCode: null, + pidanFile: null, + editPidanFile: null, + fileList1: [], + fileList2: [], + selectRadio: 0 + }, + this.model = target + this.form.applyStartTime = this.model.applyStartTime + this.form.delValidTime = this.model.delValidTime + this.form.editValidCode = this.model.validCode + this.title = title + this.flag = flag + this.visible1 = false + this.visible3 = false + this.visible4 = false + this.visible5 = false + this.visible6 = false + if (flag == 1) { + this.visible1 = true + } + if (flag == 3) { + this.visible3 = true + } + if (flag == 4) { + this.visible4 = true + } + if (flag == 5) { + this.visible5 = true + } + if (flag == 6) { + this.visible6 = true + } + }, + doSubmit () { if (this.flag == 1) { - if (!this.form.backCheckInfo) { - this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�') - return - } + if (!this.form.backCheckInfo) { + this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�') + return + } this.backDo() } else if (this.flag == 3) { - if (this.form.selectRadio === 1 && !this.form.applyStartTime) { - this.$message.warning('璇烽�夋嫨鎵瑰崟鐢熸晥璧锋湡') - return - } - if (!this.form.validCode) { - this.$message.warning('璇疯緭鍏ユ壒鍗曞彿') - return - } - if (!this.form.pidanFile) { - this.$message.warning('璇蜂笂浼犳壒鍗�') - return - } + if (this.form.selectRadio === 1 && !this.form.applyStartTime) { + this.$message.warning('璇烽�夋嫨鎵瑰鐢熸晥鏃ユ湡') + return + } + if (this.form.selectRadio === 1 && !this.form.delValidTime) { + this.$message.warning('璇烽�夋嫨鎵瑰噺鐢熸晥鏃ユ湡') + return + } + if (!this.form.validCode) { + this.$message.warning('璇疯緭鍏ユ壒鍗曞彿') + return + } + if (!this.form.pidanFile) { + this.$message.warning('璇蜂笂浼犳壒鍗�') + return + } this.uploadPidan() } else if (this.flag == 4) { - if (!this.form.editValidCode) { - this.$message.warning('璇疯緭鍏ユ壒鍗曞彿') - return - } - if (!this.form.editPidanFile) { - this.$message.warning('璇蜂笂浼犳壒鍗�') - return - } - if (!this.form.editCheckInfo) { - this.$message.warning('璇疯緭鍏ヤ慨鏀瑰師鍥�') - return - } + if (!this.form.editValidCode) { + this.$message.warning('璇疯緭鍏ユ壒鍗曞彿') + return + } + if (!this.form.editPidanFile) { + this.$message.warning('璇蜂笂浼犳壒鍗�') + return + } + if (!this.form.editCheckInfo) { + this.$message.warning('璇疯緭鍏ヤ慨鏀瑰師鍥�') + return + } this.editPidan() } else if (this.flag == 5) { - if (!this.form.dealBackInfo) { - this.$message.warning('璇疯緭鍏ヨ鏄�') - return - } + if (!this.form.dealBackInfo) { + this.$message.warning('璇疯緭鍏ヨ鏄�') + return + } this.dealBackApply(1) } else if (this.flag == 6) { - if (!this.form.dealBackInfo) { - this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�') - return - } + if (!this.form.dealBackInfo) { + this.$message.warning('璇疯緭鍏ラ��鍥炶鏄�') + return + } this.dealBackApply(0) } }, - selectChange(){ - if(this.form.selectRadio == 0){ - this.form.applyStartTime = this.model.validTime - }else{ - this.form.applyStartTime = '' - } - }, - baoxianFileUploaded(data){ - this.form.pidanFile=data - }, - editBaoxianFileUploaded(data){ - this.form.editPidanFile=data - }, - backDo(){ - this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') - .then(() => { - this.isWorking = true - backChagne({id:this.model.id,checkInfo:this.form.backCheckInfo}) - .then(response => { - this.visible = false - this.$emit('success') - }).catch(err => { - this.$tip.apiFailed(err) - }) - }) - }, - dealBackApply(type){ - this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') - .then(() => { - this.isWorking = true - dealBackChangeApply({ id: this.model.id, checkInfo: this.form.dealBackInfo, dealBackApply: type }) - .then(response => { - this.visible = false - this.$emit('success') - }).catch(err => { - this.$tip.apiFailed(err) - }) - }) - }, - uploadPidan(){ - this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') - .then(() => { - this.isWorking = true - uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) - .then(response => { - this.visible = false - this.$emit('success') - }).catch(err => { - this.$tip.apiFailed(err) - }) - }) - - }, - editPidan(){ - this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') - .then(() => { - this.isWorking = true - editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) - .then(response => { - this.visible = false - this.$emit('success') - }).catch(err => { - this.$tip.apiFailed(err) - }) - }) - }, - handleRemove(file, fileList) { - console.log(file, fileList); - }, - handlePreview(file) { - console.log(file); - }, - handleExceed(files, fileList) { - this.$message.warning(`褰撳墠闄愬埗閫夋嫨 3 涓枃浠讹紝鏈閫夋嫨浜� ${files.length} 涓枃浠讹紝鍏遍�夋嫨浜� ${files.length + fileList.length} 涓枃浠禶); - }, - beforeRemove(file, fileList) { - return this.$confirm(`纭畾绉婚櫎 ${ file.name }锛焋); - }, - successEvent() { - - }, - handleSizeChange(val) { - console.log(`姣忛〉 ${val} 鏉); - }, - handleCurrentChange(val) { - console.log(`褰撳墠椤�: ${val}`); - }, - handleClick(tab, event) { - console.log(tab, event); - }, - onSubmit() { - + selectChange () { + if (this.form.selectRadio == 0) { + this.form.applyStartTime = this.model.applyStartTime + this.form.delValidTime = this.model.delValidTime + } else { + // this.form.applyStartTime = '' + // this.form.delValidTime = '' } + }, + baoxianFileUploaded (data) { + this.form.pidanFile = data + }, + editBaoxianFileUploaded (data) { + this.form.editPidanFile = data + }, + backDo () { + this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') + .then(() => { + this.isWorking = true + backChagne({ id: this.model.id, checkInfo: this.form.backCheckInfo }) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { + this.$tip.apiFailed(err) + }) + }) + }, + dealBackApply (type) { + this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') + .then(() => { + this.isWorking = true + dealBackChangeApply({ id: this.model.id, checkInfo: this.form.dealBackInfo, dealBackApply: type }) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { + this.$tip.apiFailed(err) + }) + }) + }, + uploadPidan () { + this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') + .then(() => { + this.isWorking = true + uploadChangePidan({ id: this.model.id, applyStartTime: this.form.applyStartTime, delValidTime: this.form.delValidTime, validCode: this.form.validCode, pidanFile: this.form.pidanFile }) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { + this.$tip.apiFailed(err) + }) + }) + }, + editPidan () { + this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') + .then(() => { + this.isWorking = true + editChangePidan({ id: this.model.id, checkInfo: this.form.editCheckInfo, validCode: this.form.editValidCode, pidanFile: this.form.editPidanFile }) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { + this.$tip.apiFailed(err) + }) + }) + }, + handleRemove (file, fileList) { + console.log(file, fileList) + }, + handlePreview (file) { + console.log(file) + }, + handleExceed (files, fileList) { + this.$message.warning(`褰撳墠闄愬埗閫夋嫨 3 涓枃浠讹紝鏈閫夋嫨浜� ${files.length} 涓枃浠讹紝鍏遍�夋嫨浜� ${files.length + fileList.length} 涓枃浠禶) + }, + beforeRemove (file, fileList) { + return this.$confirm(`纭畾绉婚櫎 ${file.name}锛焋) + }, + successEvent () { + + }, + handleSizeChange (val) { + console.log(`姣忛〉 ${val} 鏉) + }, + handleCurrentChange (val) { + console.log(`褰撳墠椤�: ${val}`) + }, + handleClick (tab, event) { + console.log(tab, event) + }, + onSubmit () { + + } } } </script> -- Gitblit v1.9.3