| | |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿ä¼ä¸ï¼{{ apply.companyName }}</span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼å¾
ç¾ç½²</span> |
| | | <<<<<<< HEAD |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å¾
å®¡æ ¸</span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²ä¸ä¼ æ¹å</span> |
| | | ======= |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å·²ç¾ç« </span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²çæ</span> |
| | | >>>>>>> 35bd55ad951fe8c5fb997dfa7bd836ad53db96fe |
| | | <span v-if="model.status === 3 || model.status === 4">ä¿åç¶æï¼éåç³è¯·</span> |
| | | <span v-if="model.status === 5 || model.status === 8">ä¿åç¶æï¼å·²éå</span> |
| | | <span v-if="model.status === 7 || model.status === 6">ä¿åç¶æï¼å·²å
³é</span> |
| | |
| | | <div class="desc_item_label_left"> |
| | | <span>æä¿ä¼ä¸ï¼{{ apply.companyName }}</span> |
| | | <span v-if="model.status === 0">ä¿åç¶æï¼å¾
ç¾ç½²</span> |
| | | <<<<<<< HEAD |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å¾
å®¡æ ¸</span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²ä¸ä¼ æ¹å</span> |
| | | ======= |
| | | <span v-if="model.status === 1">ä¿åç¶æï¼å·²ç¾ç« </span> |
| | | <span v-if="model.status === 2">ä¿åç¶æï¼å·²çæ</span> |
| | | >>>>>>> 35bd55ad951fe8c5fb997dfa7bd836ad53db96fe |
| | | <span v-if="model.status === 3 || model.status === 4">ä¿åç¶æï¼éåç³è¯·</span> |
| | | <span v-if="model.status ===5 || model.status === 8">ä¿åç¶æï¼å·²éå</span> |
| | | <span v-if="model.status ===7">ä¿åç¶æï¼å·²å
³é</span> |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | width="60%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | |
| | | @confirm="confirm" |
| | | > |
| | | <!-- éåæä¿ --> |
| | | <div v-if="visible1==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«åéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.backCheckInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- ä¸ä¼ æä¿å --> |
| | | <div v-if="visible2==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¸ä¼ æä¿åï¼</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList" @uploadSuccess="toubaoFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-form v-if="visible1==true" :model="form" ref="form1" :rules="rules1" style="width: 100%;"> |
| | | <el-form-item label="å¡«åéå说æï¼" prop="backCheckInfo"> |
| | | <el-input type="textarea" v-model="form.backCheckInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible2==true" :model="form" ref="form2" :rules="rules2" style="width: 100%;"> |
| | | <el-form-item label="ä¸ä¼ æä¿åï¼" prop="toubaodanFile"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList" @uploadSuccess="toubaoFileUploaded" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- ä¸ä¼ ä¿é©å --> |
| | | <div v-if="visible3==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">å®¢æ·ææä¿é©çæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.applyStartTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¿é©çæèµ·ææ¯å¦ä¸è´ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | | <el-radio :label="0" >ä¸ä¿åä¸è´</el-radio> |
| | | <el-radio :label="1" >ä¸ä¿åä¸ä¸è´</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿é©çæèµ·æï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-date-picker |
| | | v-model="form.startTime" |
| | | 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_val">{{ form.startTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿åå·ï¼</div> |
| | | <div class="form_item_val" > |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¸ä¼ ä¿é©åï¼</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-form v-if="visible3==true" :model="form" ref="form3" :rules="rules3" style="width: 100%;"> |
| | | <el-form-item label="å®¢æ·ææä¿é©çæèµ·æï¼"> |
| | | {{ model.applyStartTime }} |
| | | </el-form-item> |
| | | <el-form-item label="" > |
| | | <el-radio-group v-model="form.selectRadio" @change="selectChange"> |
| | | <el-radio :label="0" >ä¸ä¿åä¸è´</el-radio> |
| | | <el-radio :label="1" >ä¸ä¿åä¸ä¸è´</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼" prop="startTime" > |
| | | <el-date-picker |
| | | v-model="form.startTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼"> |
| | | {{ form.startTime }} |
| | | </el-form-item> |
| | | <el-form-item label="ä¿åå·ï¼" prop="code"> |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¼ ä¿é©åï¼" prop="baoxianFile"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- ä¿®æ¹ä¿é©å --> |
| | | <div v-if="visible4==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label">ä¿é©çæèµ·æï¼</div> |
| | | <div class="form_item_val">{{ model.startTime }}</div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿åå·ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input v-model="form.editCode" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¸ä¼ ä¿é©åï¼</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>ä¿®æ¹åå ï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input placeholder="请è¾å
¥" v-model="form.editCheckInfo" ></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 驳åéåç³è¯· --> |
| | | <div v-if="visible5==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å¡«å说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- åæéåç³è¯· --> |
| | | <div v-if="visible6==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>åæéå说æï¼</div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.dealBackInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-form v-if="visible4==true" :model="form" ref="form4" :rules="rules4" style="width: 100%;"> |
| | | <el-form-item label="ä¿é©çæèµ·æï¼"> |
| | | {{ model.startTime }} |
| | | </el-form-item> |
| | | <el-form-item label="ä¿åå·ï¼" prop="editCode"> |
| | | <el-input v-model="form.editCode" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¼ ä¿é©åï¼" prop="editBaoxianFile"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿®æ¹åå ï¼" prop="editCheckInfo"> |
| | | <el-input type="textarea" v-model="form.editCheckInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible5==true || visible6==true" :model="form" ref="form5" :rules="rules5" style="width: 100%;"> |
| | | <el-form-item label="å¡«å说æï¼" prop="dealBackInfo"> |
| | | <el-input type="textarea" v-model="form.dealBackInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡® å®</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | |
| | | check |
| | | } from "@/api/business/insuranceApply"; |
| | | import UploadFile from "@/components/common/UploadFile"; |
| | | import {remark} from "@/api/business/settleClaims"; |
| | | export default { |
| | | name: 'OperaChangeApplyCheckWindow', |
| | | extends: BaseOpera, |
| | |
| | | // è¡¨åæ°æ® |
| | | model: {}, |
| | | falg :0, |
| | | rules1: { |
| | | backCheckInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules2: { |
| | | toubaodanFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules3: { |
| | | code: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | startTime: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | baoxianFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | }, |
| | | rules5: { |
| | | dealBackInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | rules4: { |
| | | editCode: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | editBaoxianFile: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ], |
| | | editCheckInfo: [ |
| | | { required: true, message: '请å®åä¿¡æ¯' } |
| | | ] |
| | | }, |
| | | form: { |
| | | id: null, |
| | | backCheckInfo:'', |
| | |
| | | }, |
| | | doSubmit(){ |
| | | if (this.flag == 1) { |
| | | this.backDo() |
| | | } else if (this.flag == 2) { |
| | | this.uploadToubaodan() |
| | | this.$refs.form1.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.backDo() |
| | | }) |
| | | } else if (this.flag == 2) { |
| | | this.$refs.form2.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.uploadToubaodan() |
| | | }) |
| | | } else if (this.flag == 3) { |
| | | this.uploadBaoxiandan() |
| | | this.$refs.form3.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.uploadBaoxiandan() |
| | | }) |
| | | } else if (this.flag == 4) { |
| | | this.editBaoxiandan() |
| | | this.$refs.form4.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.editBaoxiandan() |
| | | }) |
| | | } else if (this.flag == 5) { |
| | | this.dealBackApply(1) |
| | | this.$refs.form5.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.dealBackApply(1) |
| | | }) |
| | | } else if (this.flag == 6) { |
| | | this.dealBackApply(0) |
| | | this.$refs.form5.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.dealBackApply(0) |
| | | }) |
| | | } |
| | | }, |
| | | selectChange(){ |
| | |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="goSign">ç¾ç½²æä¿å</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('æä¿è¯¦æ
å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 10" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ æä¿å',model,2)">ä¸ä¼ æä¿å</el-button> |
| | | <el-button v-if="model.status == 3" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="model.status == 5" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('æä¿è¯¦æ
å',model,0)">导åºè¯¦å</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">æ¥çæä¿å</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">æ¥çä¿é©å</el-button> |
| | | <el-button v-if="model.status == 10" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ æä¿å',model,2)">ä¸ä¼ æä¿å</el-button> |
| | | <el-button v-if="model.status == 3" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¸ä¼ ä¿é©å',model,3)">ä¸ä¼ ä¿é©å</el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳åéåç³è¯·',model,5)">驳åéåç³è¯·</el-button> |
| | | <el-button v-if="model.status == 0" type="primary" @click="$refs.InsuranceDetails.open('æä¿å®¡æ ¸',model,1)">æä¿å®¡æ ¸</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('éåæä¿',model,1)">éåæä¿</el-button> |
| | | <el-button v-if="model.status == 5" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('ä¿®æ¹ä¿é©å',model,4)">ä¿®æ¹ä¿é©å</el-button> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div v-if="visible1==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | <span>*</span>æ¥æ¡å·ï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <input type="text" v-model="form.reportNum" placeholder="请è¾å
¥"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="visible2==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | <span>*</span>å¤çè¿å±ï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.bizInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-if="visible3==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | <span>*</span>填忤é说æï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.backInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-if="visible4==true" class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | <span>*</span>ç»æ¡å
å®¹ï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.doneInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | å»ççèµï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <input v-model="form.ylClaimAccount" placeholder="请è¾å
¥" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | 误工çèµï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <input v-model="form.wgClaimAccount" placeholder="请è¾å
¥" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | 伤æ®çèµï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <input v-model="form.scClaimAccount" placeholder="请è¾å
¥" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | æ»äº¡çèµï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <input v-model="form.swClaimAccount" placeholder="请è¾å
¥" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-form v-if="visible1==true" :model="form" ref="form1" :rules="rules1" style="width: 100%;"> |
| | | <el-form-item label="æ¥æ¡å·ï¼" prop="reportNum"> |
| | | <el-input v-model="form.reportNum" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible2==true" :model="form" ref="form2" :rules="rules2" style="width: 100%;"> |
| | | <el-form-item label="å¤çè¿å±ï¼" prop="bizInfo"> |
| | | <el-input type="textarea" v-model="form.bizInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible3==true" :model="form" ref="form3" :rules="rules3" style="width: 100%;"> |
| | | <el-form-item label="æ¤é说æï¼" prop="backInfo"> |
| | | <el-input type="textarea" v-model="form.backInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form v-if="visible4==true" :model="form" ref="form4" :rules="rules4" style="width: 100%;"> |
| | | <el-form-item label="ç»æ¡å
容ï¼" prop="doneInfo"> |
| | | <el-input type="textarea" v-model="form.doneInfo" @change="changeAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å»ççèµ(å
)ï¼" prop="ylClaimAccount"> |
| | | <el-input type="number" v-model="form.ylClaimAccount" @change="changeAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="误工çèµ(å
)ï¼" prop="wgClaimAccount"> |
| | | <el-input type="number" v-model="form.wgClaimAccount" @change="changeAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="伤æ®çèµ(å
)ï¼" prop="scClaimAccount"> |
| | | <el-input type="number" v-model="form.scClaimAccount" @change="changeAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æ»äº¡çèµ(å
)ï¼" prop="swClaimAccount"> |
| | | <el-input type="number" v-model="form.swClaimAccount" @change="changeAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æ»éé¢ï¼" > |
| | | <el-input type="number" readonly v-model="form.totalAccount" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div v-if="visible5 ==true" class="form"> |
| | | <div class="form_span" v-for="(item,index) in remarkLogList" :key="index"> |
| | | <span>çèµå-{{ item.creatorName }} {{item.createDate }}</span> |
| | | <span>{{item.content }}</span> |
| | | </div> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"> |
| | | <span>*</span>å¡«å夿³¨æ ç¾ï¼ |
| | | </div> |
| | | <div class="form_item_val"> |
| | | <textarea v-model="form.remarkInfo" placeholder="请è¾å
¥"></textarea> |
| | | </div> |
| | | </div> |
| | | <el-form :model="form" ref="form5" :rules="rules5" style="width: 100%;"> |
| | | <el-form-item label="å¡«å夿³¨æ ç¾ï¼" prop="remarkInfo"> |
| | | <el-input type="textarea" v-model="form.remarkInfo" placeholder="请è¾å
¥" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit">ç¡®å®</el-button> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {addCode, back, dealBiz,doneCommit, remark} from "@/api/business/settleClaims"; |
| | | export default { |
| | | name: 'OperaSettleClaimsCheckWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | remarkLogList:[], |
| | | type:0, |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | checkInfo: null, |
| | | bizInfo: null, |
| | | doneInfo: null, |
| | | backInfo: null, |
| | | remarkInfo: null, |
| | | ylClaimAccount: null, |
| | | wgClaimAccount: null, |
| | | swClaimAccount: null, |
| | | scClaimAccount: null, |
| | | reportNum: null, |
| | | }, |
| | | model:{}, |
| | | activeName: 'first', |
| | | reverse: true, |
| | | tableData: [], |
| | | visible1: false, |
| | | visible2: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/settleClaims', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target,target1,type){ |
| | | this.model ={} |
| | | this.model = target |
| | | this.title=title |
| | | this.visible=true |
| | | this.type=type |
| | | this.remarkLogList= target1 |
| | | this.visible1=false, |
| | | this.visible2= false, |
| | | this.visible3=false, |
| | | this. visible4= false, |
| | | this. visible5= false |
| | | this.form=target |
| | | this. form= { |
| | | id: null, |
| | | checkInfo: null, |
| | | doneInfo: null, |
| | | remarkInfo: null, |
| | | bizInfo: null, |
| | | backInfo: null, |
| | | ylClaimAccount: null, |
| | | wgClaimAccount: null, |
| | | swClaimAccount: null, |
| | | scClaimAccount: null, |
| | | reportNum: null, |
| | | } |
| | | if(type==1){ |
| | | this.visible1=true |
| | | } |
| | | if(type==2){ |
| | | this.visible2=true |
| | | } |
| | | if(type==3){ |
| | | this.visible3=true |
| | | } |
| | | if(type==4){ |
| | | this.visible4=true |
| | | } |
| | | if(type==5){ |
| | | this.visible5=true |
| | | } |
| | | }, |
| | | doSubmit(type) { |
| | | var that =this |
| | | if(this.type ===5){ |
| | | // this.isWorking = true |
| | | remark({id:that.model.id,checkInfo:that.form.remarkInfo}) |
| | | .then(response => { |
| | | this.visible=false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }else if(this.type === 4){ |
| | | // this.isWorking = true |
| | | doneCommit({id: that.model.id, checkInfo: that.form.doneInfo, |
| | | ylClaimAccount: that.form.ylClaimAccount, |
| | | wgClaimAccount: that.form.wgClaimAccount, |
| | | swClaimAccount: that.form.swClaimAccount, |
| | | scClaimAccount: that.form.scClaimAccount}) |
| | | .then(response => { |
| | | this.visible=false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }else if(this.type===2){ |
| | | //çèµå¤ç |
| | | dealBiz({ id: that.model.id, checkInfo:that.form.bizInfo }) |
| | | .then(response => { |
| | | this.visible=false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }else if(this.type===3){ |
| | | //çèµå¤ç |
| | | back({ id: that.model.id, checkInfo:that.form.backInfo }) |
| | | .then(response => { |
| | | this.visible=false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }else if(this.type===1){ |
| | | //æ·»å 夿¡å· |
| | | addCode({ id: that.model.id, reportNum:that.form.reportNum }) |
| | | .then(response => { |
| | | this.visible=false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { addCode, back, dealBiz, doneCommit, remark } from '@/api/business/settleClaims' |
| | | export default { |
| | | name: 'OperaSettleClaimsCheckWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | remarkLogList: [], |
| | | type: 0, |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | checkInfo: null, |
| | | bizInfo: null, |
| | | doneInfo: null, |
| | | backInfo: null, |
| | | remarkInfo: null, |
| | | ylClaimAccount: 0, |
| | | wgClaimAccount: 0, |
| | | swClaimAccount: 0, |
| | | scClaimAccount: 0, |
| | | reportNum: null, |
| | | totalAccount:0 |
| | | }, |
| | | model: {}, |
| | | activeName: 'first', |
| | | reverse: true, |
| | | tableData: [], |
| | | visible1: false, |
| | | visible2: false, |
| | | visible3: false, |
| | | visible4: false, |
| | | visible5: false, |
| | | rules1: { |
| | | reportNum: [ |
| | | { required: true, message: '请è¾å
¥' } |
| | | ] |
| | | }, |
| | | rules2: { |
| | | bizInfo: [ |
| | | { required: true, message: '请è¾å
¥' } |
| | | ] |
| | | }, |
| | | rules3: { |
| | | backInfo: [ |
| | | { required: true, message: '请è¾å
¥' } |
| | | ] |
| | | }, |
| | | rules5: { |
| | | remarkInfo: [ |
| | | { required: true, message: '请è¾å
¥' } |
| | | ] |
| | | }, |
| | | rules4: { |
| | | doneInfo: [ |
| | | { required: true, message: '请è¾å
¥' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/settleClaims', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open (title, target, target1, type) { |
| | | this.model = {} |
| | | this.model = target |
| | | this.title = title |
| | | this.visible = true |
| | | this.type = type |
| | | this.remarkLogList = target1 |
| | | this.visible1 = false, |
| | | this.visible2 = false, |
| | | this.visible3 = false, |
| | | this.visible4 = false, |
| | | this.visible5 = false |
| | | this.form = target |
| | | this.form = { |
| | | id: null, |
| | | checkInfo: null, |
| | | doneInfo: null, |
| | | remarkInfo: null, |
| | | bizInfo: null, |
| | | backInfo: null, |
| | | ylClaimAccount: 0, |
| | | wgClaimAccount: 0, |
| | | swClaimAccount: 0, |
| | | scClaimAccount: 0, |
| | | reportNum: null, |
| | | totalAccount:0 |
| | | } |
| | | if (type == 1) { |
| | | this.visible1 = true |
| | | } |
| | | if (type == 2) { |
| | | this.visible2 = true |
| | | } |
| | | if (type == 3) { |
| | | this.visible3 = true |
| | | } |
| | | if (type == 4) { |
| | | this.visible4 = true |
| | | } |
| | | if (type == 5) { |
| | | this.visible5 = true |
| | | } |
| | | }, |
| | | changeAccount(){ |
| | | this.form.swClaimAccount = parseFloat(this.form.swClaimAccount).toFixed(2) |
| | | this.form.scClaimAccount = parseFloat(this.form.scClaimAccount).toFixed(2) |
| | | this.form.wgClaimAccount = parseFloat(this.form.wgClaimAccount).toFixed(2) |
| | | this.form.ylClaimAccount = parseFloat(this.form.ylClaimAccount).toFixed(2) |
| | | this.form.totalAccount = parseFloat( this.form.scClaimAccount || 0) + parseFloat( this.form.swClaimAccount || 0) |
| | | + parseFloat( this.form.wgClaimAccount|| 0) |
| | | + parseFloat( this.form.ylClaimAccount|| 0) |
| | | }, |
| | | doSubmit (type) { |
| | | var that = this |
| | | if (this.type === 5) { |
| | | this.$refs.form5.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | remark({ id: that.model.id, checkInfo: that.form.remarkInfo }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | } else if (this.type === 4) { |
| | | this.$refs.form4.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | doneCommit({ |
| | | id: that.model.id, |
| | | checkInfo: that.form.doneInfo, |
| | | ylClaimAccount: that.form.ylClaimAccount, |
| | | wgClaimAccount: that.form.wgClaimAccount, |
| | | swClaimAccount: that.form.swClaimAccount, |
| | | scClaimAccount: that.form.scClaimAccount |
| | | }).then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | } else if (this.type === 2) { |
| | | this.$refs.form2.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | // çèµå¤ç |
| | | dealBiz({ id: that.model.id, checkInfo: that.form.bizInfo }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } else if (this.type === 3) { |
| | | this.$refs.form3.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | back({ id: that.model.id, checkInfo: that.form.backInfo }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } else if (this.type === 1) { |
| | | // æ·»å 夿¡å· |
| | | this.$refs.form1.validate((valid) => { |
| | | // debugger |
| | | if (!valid) { |
| | | return |
| | | } |
| | | addCode({ id: that.model.id, reportNum: that.form.reportNum }) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$tip.apiFailed(err) |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | .v-modal { |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | width="100%" |
| | | submitText="è¿åä¿®æ¹" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | export default { |
| | | name: 'OperaCompanyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: {}, |
| | | tableData:[] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/taxes', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | getSummaries(param) { |
| | | const { columns, data } = param; |
| | | const sums = []; |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = 'å计'; |
| | | return; |
| | | } else { |
| | | if (index == 9||index==10||index==11||index==12) { |
| | | const values = data.map(item => Number(item[column.property])); |
| | | if (!values.every(value => isNaN(value))) { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | | const value = Number(curr); |
| | | if (!isNaN(value)) { |
| | | return prev + curr; |
| | | } else { |
| | | return prev; |
| | | } |
| | | }, 0); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | return sums; |
| | | } |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | export default { |
| | | name: 'OperaCompanyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: {}, |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/taxes', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,targer){ |
| | | |
| | | }, |
| | | getSummaries (param) { |
| | | const { columns, data } = param |
| | | const sums = [] |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = 'å计' |
| | | } else { |
| | | if (index == 9 || index == 10 || index == 11 || index == 12) { |
| | | const values = data.map(item => Number(item[column.property])) |
| | | if (!values.every(value => isNaN(value))) { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | | const value = Number(curr) |
| | | if (!isNaN(value)) { |
| | | return prev + curr |
| | | } else { |
| | | return prev |
| | | } |
| | | }, 0) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | return sums |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | justify-content: space-between; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 18px; |
| | | font-size: 14px; |
| | | font-weight: 500; |
| | | color: #000000; |
| | | } |
| | |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">å¾
ç¾ç½²</span> |
| | | <span v-if="row.status === 1">å·²ç¾ç« </span> |
| | | <span v-if="row.status === 2">å·²ä¸ä¼ æ¹å</span> |
| | | <span v-if="row.status === 2">å·²çæ</span> |
| | | <span v-if="row.status === 3 || row.status === 4">éåç³è¯·</span> |
| | | <span v-if="row.status ===5 || row.status === 8">å·²éå</span> |
| | | <span v-if="row.status ===7">å·²å
³é</span> |
| | |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">å¾
ç¾ç½²</span> |
| | | <span v-if="row.status === 1">å·²ç¾ç« </span> |
| | | <span v-if="row.status === 2">å·²ä¸ä¼ æ¹å</span> |
| | | <span v-if="row.status === 2">å·²çæ</span> |
| | | <span v-if="row.status === 3 || row.status === 4">éåç³è¯·</span> |
| | | <span v-if="row.status ===5 || row.status === 8">å·²éå</span> |
| | | <span v-if="row.status ===7">å·²å
³é</span> |
| | |
| | | <span v-if="row.status === 2">平尿¤å</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyId" label="ç³è¯·ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyId" label="ç³è¯·å¼ç¥¨æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyId" label="ç³è¯·äºº" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyName" label="ç³è¯·ä¼ä¸" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="ç³è¯·å¼ç¥¨æ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="creatorName" label="ç³è¯·äºº" min-width="100px"></el-table-column> |
| | | <el-table-column prop="price" label="å¼ç¥¨éé¢ï¼å
ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column label="æä¿ç±»å" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="å票çµåç" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <img v-if="row.imgurlfull!=null" :src="row.imgurlfull" style="width: 90px;height: 90px"> |
| | | <img v-if="row.imgurlFull!=null" :src="row.imgurlFull" style="width: 40px;height: 40px"> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" min-width="100px"> |
| | | <el-table-column label="æä½" min-width="180px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button v-if="row.status==0" type="text" @click="$refs.OperaTaxesUploadWindow.open('ä¸ä¼ å票',row)">ä¸ä¼ å票</el-button> |
| | | <el-button v-if="row.status ==1 " type="text" @click="$refs.OperaTaxesUploadWindow.open('ä¿®æ¹å票',row)">ä¿®æ¹å票</el-button> |
| | | <el-button type="text">ç³è¯·è¯¦æ
</el-button> |
| | | <el-button type="text" @click="$refs.OperaTaxesWindow.open('ç³è¯·è¯¦æ
',row)">ç³è¯·è¯¦æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <artifactId>mybatis-plus-join</artifactId> |
| | | <version>1.4.2.2</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-mail</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | |
| | | } |
| | | } |
| | | zipOutputStream.closeArchiveEntry(); |
| | | file.delete(); |
| | | } |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty(value = "ææä¿é©çæèµ·æ") |
| | | @ExcelColumn(name="ææä¿é©çæèµ·æ") |
| | | //å
¥å |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | //åºå |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | // //åºå |
| | | // @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date validTime; |
| | | |
| | | @ApiModelProperty(value = "æ¹åå·") |
| | |
| | | @ApiModelProperty(value = "ä¿é©çææ¢æ") |
| | | @TableField(exist = false) |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "æ¹æ¡é®ä»¶") |
| | | @TableField(exist = false) |
| | | private String solutionEmail; |
| | | @ApiModelProperty(value = "æ¥å¿è®°å½") |
| | | @TableField(exist = false) |
| | | private List<ApplyLog> applyLogList; |
| | |
| | | |
| | | @ApiModelProperty(value = "ææä¿é©çææ¢æ") |
| | | @ExcelColumn(name="ææä¿é©çææ¢æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date applyEndTime; |
| | | |
| | | @ApiModelProperty(value = "ææä¿é©çæèµ·æ") |
| | | @ExcelColumn(name="ææä¿é©çæèµ·æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date applyStartTime; |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çææ¢æ") |
| | | @ExcelColumn(name="å®é
ä¿é©çææ¢æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "å®é
ä¿é©çæèµ·æ") |
| | | @ExcelColumn(name="å®é
ä¿é©çæèµ·æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | // @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date startTime; |
| | | |
| | | @ApiModelProperty(value = "æè¿æä½æ¶é´") |
| | |
| | | @ApiModelProperty(value = "æ¹æ¡åç§°") |
| | | @TableField(exist = false) |
| | | private String solutionsName; |
| | | @ApiModelProperty(value = "æ¹æ¡é®ä»¶") |
| | | @TableField(exist = false) |
| | | private String solutionEmail; |
| | | @ApiModelProperty(value = "ç¾ç« å
³é®å") |
| | | @TableField(exist = false) |
| | | private String signKeyword; |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * çä¿¡é®ä»¶ä¿¡æ¯è¡¨ |
| | |
| | | @ApiModelProperty(value = "å
³è对象类å") |
| | | @ExcelColumn(name="å
³è对象类å") |
| | | private String objType; |
| | | @ApiModelProperty(value = "éä»¶éå") |
| | | @TableField(exist = false) |
| | | private List<Map<String,Object>> fileList; |
| | | |
| | | } |
| | |
| | | */ |
| | | Integer create(SmsEmail smsEmail); |
| | | Integer sendSms(SmsEmail smsEmail); |
| | | Integer sendEmail(SmsEmail smsEmail); |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | |
| | | applyLogType = Constants.ApplyLogType.CA_PALTFORM_REFUSE_APPLY; |
| | | info = applyLogType.getInfo(); |
| | | info = info.replace("${param}", param.getCheckInfo()); |
| | | update.setStatus(Constants.ApplyChangeStatus.SIGNATURE.getKey()); |
| | | // |
| | | if( Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey())){ |
| | | update.setStatus(Constants.ApplyChangeStatus.SIGNATURE.getKey()); |
| | | }else if( Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey())){ |
| | | update.setStatus(Constants.ApplyChangeStatus.UPLOAD.getKey()); |
| | | } |
| | | }else{ |
| | | //妿æ¯åæ,两ç§ç³è¯·éåç¶æé½å¯æä½ |
| | | if(!(Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey()) |
| | | ||Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥ç³è¯·ç¶æå·²æµè½¬ï¼å½å䏿¯æè¯¥æä½~"); |
| | | } |
| | | applyLogType = Constants.ApplyLogType.CA_PALTFORM_REFUSE_APPLY; |
| | | if( Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey())){ |
| | | update.setStatus(Constants.ApplyChangeStatus.SIGNATURE.getKey()); |
| | | }else if( Constants.equalsInteger(model.getStatus(),Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey())){ |
| | | update.setStatus(Constants.ApplyChangeStatus.UPLOAD.getKey()); |
| | | } |
| | | update.setStatus(Constants.ApplyChangeStatus.PLATFORM_AGREE.getKey()); |
| | | applyLogType = Constants.ApplyLogType.CA_PLATFORM_AGREE_BACK_APPLY; |
| | | } |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(user.getId()); |
| | |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Company company = user.getCompany(); |
| | | if(debugModel){ |
| | | company = companyMapper.selectById(model.getCompanyId()); |
| | | company = companyMapper.selectById(model.getCompanyId()); |
| | | } |
| | | if(company== null || StringUtils.isBlank( company.getEmail()) || !Constants.equalsInteger(company.getSignStatus(),Constants.THREE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼ä¼ä¸å°æªå
·å¤å¨çº¿ç¾ç« æ¡ä»¶ï¼è¯·è系平å°ç®¡çå确认~"); |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.third.EmailService; |
| | | import com.doumee.service.business.third.SignService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.io.File; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | @Autowired |
| | | private InsuranceApplyMapper insuranceApplyMapper; |
| | | @Autowired |
| | | private ApplyChangeMapper applyChangeMapper; |
| | | private SmsEmailService smsEmailService; |
| | | @Autowired |
| | | private ApplyChangeJoinMapper applyChangeMapper; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | |
| | | return tempFileName; |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | return null; |
| | | |
| | | } |
| | | |
| | | |
| | | public Integer uploadSignedFileDo(InsuranceApply model,String fileurl) { |
| | | public Multifile uploadSignedFileDo(InsuranceApply model,String fileurl,String fullUrl) { |
| | | InsuranceApply update = new InsuranceApply(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | |
| | | f.setObjType(Constants.MultiFile.BD_SIGNED_PDF.getKey()); |
| | | f.setType(Constants.TWO); |
| | | f.setFileurl(fileurl); |
| | | f.setFileurlFull(fullUrl); |
| | | f.setInfo("æä¿åä¼ä¸ç¾çº¦åå"); |
| | | f.setName("æä¿åç¾çº¦åå.pdf"); |
| | | multifileMapper.insert(f); |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.SIGNATURE; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | return 1; |
| | | |
| | | startSendEmail(f, model.getCompanyName(),model.getSolutionsName(),model.getSolutionEmail()); |
| | | return f; |
| | | |
| | | } |
| | | public Integer uploadChangeSignedFileDo(ApplyChange model,String fileurl) { |
| | | public Multifile uploadChangeSignedFileDo(ApplyChange model,String fileurl,String fullurl) { |
| | | ApplyChange update = new ApplyChange(); |
| | | update.setEditDate(new Date()); |
| | | update.setEditor(model.getCreator()); |
| | |
| | | f.setObjType(Constants.equalsInteger(Constants.ZERO,model.getType())?Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey() : Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey()); |
| | | f.setType(Constants.TWO); |
| | | f.setFileurl(fileurl); |
| | | f.setFileurlFull(fullurl); |
| | | f.setInfo("ä¼ä¸ç³è¯·è¡¨ç¾ç½²æä»¶"); |
| | | f.setName("ç¾ç« ç³è¯·è¡¨.pdf"); |
| | | multifileMapper.insert(f); |
| | | Constants.ApplyLogType applyLogType =Constants.equalsInteger(Constants.ZERO,model.getType())? Constants.ApplyLogType.CA_JIAJIAN_APPLY_SIGN: Constants.ApplyLogType.CA_CHANGUNIT_APPLY_SIGN; |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(), null,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | return 1; |
| | | |
| | | startSendEmail(f,model.getCompanyName(),model.getSolutionsName(),model.getSolutionEmail()); |
| | | return f; |
| | | |
| | | } |
| | | |
| | | private void startSendEmail(Multifile f, String companyName, String solutionsName, String solutionEmail) { |
| | | if(StringUtils.isBlank(solutionEmail) || f==null|| StringUtils.isBlank(f.getFileurl())){ |
| | | return; |
| | | } |
| | | SmsEmail email = new SmsEmail(); |
| | | email.setTitle(f.getInfo()); |
| | | email.setEmail(solutionEmail); |
| | | email.setContent("æ¥èªä¼ä¸ã"+companyName+"ãå
³äºä¿é©æ¹æ¡ã"+solutionsName+"ãç"+f.getInfo()); |
| | | File file = Constants.getFileByNetFile(f.getFileurlFull(),f.getName()); |
| | | if(file!=null && file.isFile()){ |
| | | Map<String,Object> files = new HashMap<>(); |
| | | files.put("name",f.getName()); |
| | | files.put("file",file); |
| | | email.setFileList(new ArrayList<>()); |
| | | email.getFileList().add(files); |
| | | smsEmailService.sendEmail(email); |
| | | file.delete();//åéåå é¤ä¸´æ¶æä»¶ |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void dealWaitSignedData(){ |
| | | List<InsuranceApply> applyList = insuranceApplyMapper.selectList(new QueryWrapper<InsuranceApply>().lambda() |
| | | List<InsuranceApply> applyList = insuranceApplyJoinMapper.selectJoinList(InsuranceApply.class, |
| | | new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.WAIT_SIGNATURE.getKey()) |
| | | .isNotNull(InsuranceApply::getSignApplyNo)); |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+ |
| | | systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode(); |
| | | if(applyList !=null && applyList.size()>0 ){ |
| | | for(InsuranceApply model : applyList){ |
| | | String status = signService.linkFileStatus(model.getSignApplyNo()); |
| | |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | } |
| | | uploadSignedFileDo(model,fileUrl); |
| | | uploadSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | } |
| | | List<ApplyChange> chagneList = applyChangeMapper.selectList(new QueryWrapper<ApplyChange>().lambda() |
| | | List<ApplyChange> chagneList = applyChangeMapper.selectJoinList(ApplyChange.class, |
| | | new MPJLambdaWrapper<ApplyChange>() |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.UPLOAD.getKey()) |
| | | .isNotNull(ApplyChange::getSignApplyNo)); |
| | | if(chagneList !=null && chagneList.size()>0 ){ |
| | |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | } |
| | | uploadChangeSignedFileDo(model,fileUrl); |
| | | uploadChangeSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | } |
| | |
| | | } |
| | | if(Constants.equalsInteger(data.getSignStatus(), Constants.THREE )){ |
| | | //妿已ä¿å
¨,å¯ä¸è½½ç¾çº¦éä»¶ |
| | | InsuranceApply model = insuranceApplyMapper.selectOne(new QueryWrapper<InsuranceApply>().lambda().eq(InsuranceApply::getSignApplyNo,data.getApplyNo()).last("limit 1" )); |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+ |
| | | systemDictDataBiz.queryByCode(Constants.OSS,Constants.APPLY_FILE).getCode(); |
| | | InsuranceApply model = insuranceApplyJoinMapper.selectJoinOne(InsuranceApply.class, |
| | | new MPJLambdaWrapper<InsuranceApply>() |
| | | .selectAll(InsuranceApply.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(InsuranceApply::getSignApplyNo,data.getApplyNo()) |
| | | .last("limit 1" )); |
| | | if(model != null && Constants.equalsInteger(model.getStatus(),Constants.InsuranceApplyStatus.WAIT_SIGNATURE.getKey())){ |
| | | //宿ç¾ç½²å·²å®ææä½ |
| | | String link = signService.linkFile(data.getApplyNo()); |
| | |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | } |
| | | uploadSignedFileDo(model,fileUrl); |
| | | uploadSignedFileDo(model,fileUrl,path+fileUrl); |
| | | return; |
| | | } |
| | | |
| | | ApplyChange applyChange = applyChangeMapper.selectOne(new QueryWrapper<ApplyChange>().lambda().eq(ApplyChange::getSignApplyNo,data.getApplyNo()).last("limit 1" )); |
| | | ApplyChange applyChange = applyChangeMapper.selectJoinOne(ApplyChange.class, |
| | | new MPJLambdaWrapper<ApplyChange>() |
| | | .selectAll(ApplyChange.class) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getEmail,InsuranceApply::getSolutionEmail) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .eq(ApplyChange::getSignApplyNo,data.getApplyNo()).last("limit 1" )); |
| | | if(applyChange != null &&Constants.equalsInteger(applyChange.getStatus(),Constants.ApplyChangeStatus.UPLOAD.getKey())){ |
| | | String link = signService.linkFile(data.getApplyNo()); |
| | | String fileUrl = uploadSignFile(link); |
| | |
| | | //妿ä¸è½½å¤±è´¥ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | | return; |
| | | } |
| | | uploadChangeSignedFileDo(applyChange,fileUrl); |
| | | uploadChangeSignedFileDo(applyChange,fileUrl,path+fileUrl); |
| | | } |
| | | }else if(Constants.equalsInteger(data.getSignStatus(), Constants.TWO )){ |
| | | //妿已æç¾ï¼æ¸
é¤ååï¼ä¸æ¬¡ç¾ç« éæ°çææ°åå |
| | |
| | | info = info.replace("${param}", update.getCheckInfo()); |
| | | ApplyLog log = new ApplyLog(update,applyLogType.getName(),info,update.getId(),applyLogType.getKey(),JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | return 1; |
| | | |
| | | } |
| | |
| | | |
| | | Constants.SettleClaimsLogType applyLogType = Constants.SettleClaimsLogType.PLATFORM_REMARK; |
| | | String info =applyLogType.getInfo(); |
| | | info = info.replace("${param}", update.getCheckInfo()); |
| | | info = info.replace("${param}", param.getCheckInfo()); |
| | | SettleClaimsLog log = new SettleClaimsLog(update,applyLogType.getName(), info,update.getId(),applyLogType.getKey(), JSONObject.toJSONString(model), JSONObject.toJSONString(update)); |
| | | settleClaimsLogMapper.insert(log); |
| | | return 1; |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmailService; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private EmayService emayService; |
| | | @Autowired |
| | | private EmailService emailService; |
| | | |
| | | public static void isCaptcheValide(SmsEmailMapper smsEmailMapper, String phone, String captche) { |
| | | SmsEmail model = smsEmailMapper.selectOne(new QueryWrapper<SmsEmail>().lambda() |
| | |
| | | return smsEmail.getId(); |
| | | } |
| | | @Override |
| | | public Integer sendEmail(SmsEmail smsEmail) { |
| | | if(StringUtils.isBlank(smsEmail.getEmail())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | boolean result= emailService.sendEmail(smsEmail.getEmail(),smsEmail.getTitle(),smsEmail.getContent(),smsEmail.getFileList()); |
| | | smsEmail.setRemark("é®ä»¶åçæå"); |
| | | if(!result){ |
| | | smsEmail.setRemark("é®ä»¶åç失败"); |
| | | } |
| | | smsEmail.setIsdeleted(Constants.ZERO); |
| | | smsEmail.setCreateDate(new Date()); |
| | | smsEmail.setStatus(Constants.ONE); |
| | | smsEmail.setType(Constants.TWO); |
| | | smsEmailMapper.insert(smsEmail); |
| | | |
| | | return smsEmail.getId(); |
| | | } |
| | | @Override |
| | | public Integer sendSms(SmsEmail smsEmail) { |
| | | if(StringUtils.isBlank(smsEmail.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | String code = Constants.getRandom6Num(); |
| | | boolean result= emayService.sendSingleSms(smsEmail.getPhone(),code); |
| | | if(!result){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼çä¿¡éªè¯ç åé失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | smsEmail.setRemark(code); |
| | | smsEmail.setIsdeleted(Constants.ZERO); |
| | | smsEmail.setCreateDate(new Date()); |
| | |
| | | smsEmailMapper.insert(smsEmail); |
| | | |
| | | return smsEmail.getId(); |
| | | |
| | | } |
| | | |
| | | @Override |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.third; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.AnnotationConfigApplicationContext; |
| | | import org.springframework.core.io.FileSystemResource; |
| | | import org.springframework.mail.javamail.JavaMailSender; |
| | | import org.springframework.mail.javamail.MimeMessageHelper; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.activation.DataSource; |
| | | import javax.mail.MessagingException; |
| | | import javax.mail.internet.MimeMessage; |
| | | import java.io.File; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | public class EmailService { |
| | | @Autowired |
| | | private JavaMailSender javaMailSender;//注å
¥JavaMailSender |
| | | @Value("${spring.mail.username}") |
| | | private String fromEmail; |
| | | public boolean sendEmail(String toEmail, String title, String content, List<Map<String,Object>> fileList) { |
| | | try { |
| | | AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); |
| | | context.refresh(); |
| | | MimeMessage message = javaMailSender.createMimeMessage(); |
| | | MimeMessageHelper helper = new MimeMessageHelper(message, true); |
| | | |
| | | helper.setTo(toEmail); |
| | | helper.setFrom(fromEmail); |
| | | helper.setSubject(title); |
| | | helper.setText(content); |
| | | if(fileList!=null){ |
| | | for (Map<String,Object> f : fileList){ |
| | | // 设置éä»¶ |
| | | helper.addAttachment((String) f.get("name"),new FileSystemResource((File) f.get("file"))); |
| | | } |
| | | } |
| | | javaMailSender.send(message); |
| | | System.out.println("é®ä»¶åéæåï¼"); |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | |
| | | return 0; |
| | | } |
| | | |
| | | public boolean sendSingleSms(String mobile,String content) throws SDKParamsException { |
| | | public boolean sendSingleSms(String mobile,String content) { |
| | | try { |
| | | client = new SmsSDKClient(ip,port,appKey,appSecret); |
| | | } catch (SDKParamsException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | if(client == null){ |
| | | return false; |
| | | } |
| | | String customSmsId = "1"; |
| | | String extendedCode = "01"; |
| | | |
| | | SmsSingleRequest request = new SmsSingleRequest(mobile, content, customSmsId, extendedCode, ""); |
| | | ResultModel<SmsResponse> result = client.sendSingleSms(request); |
| | | saveInterfaceLog(ip+"/"+port,"ãçä¿¡ãåé", JSONObject.toJSONString(result),JSONObject.toJSONString(result)); |
| | | if (result.getCode().equals("SUCCESS")) { |
| | | System.out.println("è¯·æ±æå"); |
| | | SmsResponse response = result.getResult(); |
| | | System.out.println("sendSingleSms:" + response.toString()); |
| | | return true; |
| | | } else { |
| | | System.out.println("请æ±å¤±è´¥"); |
| | | return false; |
| | | if(client == null){ |
| | | return false; |
| | | } |
| | | String customSmsId = "1"; |
| | | String extendedCode = "01"; |
| | | |
| | | SmsSingleRequest request = new SmsSingleRequest(mobile, content, customSmsId, extendedCode, ""); |
| | | ResultModel<SmsResponse> result = client.sendSingleSms(request); |
| | | saveInterfaceLog(ip+"/"+port,"ãçä¿¡ãåé", JSONObject.toJSONString(result),JSONObject.toJSONString(result)); |
| | | if (result.getCode().equals("SUCCESS")) { |
| | | System.out.println("è¯·æ±æå"); |
| | | SmsResponse response = result.getResult(); |
| | | System.out.println("sendSingleSms:" + response.toString()); |
| | | return true; |
| | | } else { |
| | | System.out.println("请æ±å¤±è´¥"); |
| | | return false; |
| | | } |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | |
| | | password: rtjgfEr@&0c0m |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | mail: |
| | | host: smtp.exmail.qq.com |
| | | username: jp@doumee.com |
| | | password: 2Jz9HFW2U7vRnCRu |
| | | default-encoding: UTF-8 |
| | | properties: |
| | | mail: |
| | | smtp: |
| | | auth: true |
| | | starttls: |
| | | enable: true |
| | | required: true |
| | | |
| | | redis: |
| | | # database: 0 |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://57b57595ddc66.sh.cdb.myqcloud.com:4464/yunyibao?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: test |
| | | password: doumee@168 |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/yunyibao?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: doumee |
| | | password: rtjgfEr@&0c0m |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | |
| | | mail: |
| | | host: smtp.exmail.qq.com |
| | | username: jp@doumee.com |
| | | password: 2Jz9HFW2U7vRnCRu |
| | | properties: |
| | | mail: |
| | | smtp: |
| | | auth: true |
| | | starttls: |
| | | enable: true |
| | | required: true |
| | | redis: |
| | | # database: 0 |
| | | host: 127.0.0.1 |
| | |
| | | |
| | | debug_model: false |
| | | |
| | | captcha_check: true |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | |
| | | enabled: true |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | project: |
| | | imgAuthen: false |
| | |
| | | enabled: true |
| | | mime-types: application/json |
| | | |
| | | tomcat: |
| | | max-swallow-size: -1 |
| | | servlet: |
| | | session: |
| | | timeout: PT3H #表示12å°æ¶ |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://57b57595ddc66.sh.cdb.myqcloud.com:4464/yunyibao?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: test |
| | | password: doumee@168 |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/yunyibao?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: doumee |
| | | password: rtjgfEr@&0c0m |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | mail: |
| | | host: smtp.exmail.qq.com |
| | | username: jp@doumee.com |
| | | password: Jiangping0427 |
| | | redis: |
| | | # database: 0 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | timeout: 5000 # è¿æ¥æ± ä¸çæå°ç©ºé²è¿æ¥ |
| | | |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | |
| | | knife4j: |
| | | enable: true |
| | | basic: |
| | | enable: true |
| | | username: admin |
| | | password: test@168.com |
| | | password: 111111 |
| | | |
| | | debug_model: true |
| | | debug_model: false |
| | | |
| | | captcha_check: false |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | |
| | | redirect-uri: / |
| | | |
| | | project: |
| | | imgAuthenti: false |
| | | imgAuthen: false |