| | |
| | | export function getById (id) { |
| | | return request.get(`/business/dispatchUnit/${id}`) |
| | | } |
| | | |
| | | export function check (data) { |
| | | return request.post('/business/dispatchUnit/check', data) |
| | | } |
| | | export function checkWorktype (data) { |
| | | return request.post('/business/dispatchUnit/checkWorktype', data) |
| | | } |
| | | // æ·»å å·¥ç§ |
| | | export function createSolution (data) { |
| | | return request.post('/business/dispatchUnit/createSolution', data) |
| | |
| | | methods: { |
| | | open(title,target,flag){ |
| | | this.visible=true |
| | | this.model={} |
| | | this.form= { |
| | | id: null, |
| | | backCheckInfo:'', |
| | | dealBackInfo:'', |
| | | editCheckInfo:'', |
| | | editDate: '', |
| | | editCode: '', |
| | | startTime:null, |
| | | code:null, |
| | | toubaodanFile:null, |
| | | baoxianFile:null, |
| | | editBaoxianFile:null, |
| | | fileList: [], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | | }, |
| | | this.model=target |
| | | this.form.startTime=this.model.startTime |
| | | this.title=title |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | > |
| | | <div class="box"> |
| | | <div class="box_label">ä¿é©æ¹æ¡ï¼å¹³å®ä¿é©é主责任é©Bç</div> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="date" |
| | | label="æ¥æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="å§å"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="å°å"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <!-- 驳åéåç³è¯· --> |
| | | <el-dialog |
| | | title="å®¡æ ¸ç¡®è®¤" |
| | | :visible.sync="visible5" |
| | | :show-close="false" |
| | | :close-on-click-modal="false" |
| | | width="30%" |
| | | center> |
| | | <div class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å®¡æ ¸è¯´æï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input type="textarea" :rows="2" placeholder="请è¾å
¥"></el-input> |
| | | <el-input type="textarea" v-model="form.checkInfo" :rows="2" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible5 = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="visible5 = false">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <div class="box" v-for="(item, index) in duSolutionList" :key="index"> |
| | | <div class="box_label">ä¿é©æ¹æ¡ï¼{{item.solutionName}}</div> |
| | | <el-table |
| | | v-if="item.duWorktypeList && item.duWorktypeList.length>0" |
| | | :data="item.duWorktypeList" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workTypeName" |
| | | label="æå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="æä½è§é¢"> |
| | | <template slot-scope="{row}"> |
| | | <video loop controls width="150px" height="150px" :src="row.videoUrlFull"></video> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="ç¶æ"> |
| | | <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> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="visible5 = true">å®¡æ ¸éè¿</el-button> |
| | | <el-button @click="visible5 = true">å®¡æ ¸éå</el-button> |
| | | <el-button type="primary" @click="doSubmit(1)">å®¡æ ¸éè¿</el-button> |
| | | <el-button type="danger" @click="doSubmit(2)">å®¡æ ¸éå</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {checkWorktype} from "@/api/business/dispatchUnit"; |
| | | export default { |
| | | name: 'dispatchReview', |
| | | extends: BaseOpera, |
| | |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | editDate: '' |
| | | checkInfo:'', |
| | | duSolutionList:[] |
| | | }, |
| | | duSolutionList:[], |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title, target){ |
| | | this.title=title |
| | | this.visible=true |
| | | this.form ={} |
| | | this.form = target; |
| | | this.duSolutionList=[] |
| | | var duSolutionList = this.form.duSolutionList; |
| | | duSolutionList.forEach(item => { |
| | | var worktyps = item.duWorktypeList; |
| | | var flag = 0; |
| | | var tempworktyps = new Array(); |
| | | worktyps.forEach(item1 => { |
| | | if(item1.status == null || item1.status == 0){ |
| | | //妿æ¯å¾
å®¡æ ¸å·¥ç§ |
| | | flag = 1; |
| | | tempworktyps.push(item1); |
| | | } |
| | | if(flag ==1){ |
| | | this.duSolutionList.push({duWorktypeList:tempworktyps,solutionName:item.solutionName}) |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | console.log(this.form) |
| | | }, |
| | | doSubmit(type){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | checkWorktype({id:this.form.id,checkInfo:this.form.checkInfo,worktypeStatus:type}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | margin-bottom: 50px; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | margin-bottom: 50px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | //width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="50%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | > |
| | | <div class="form"> |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>å®¡æ ¸è¯´æï¼</div> |
| | | <div class="form_item_val"> |
| | | <el-input type="textarea" v-model="form.checkInfo" :rows="2" placeholder="请è¾å
¥"></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <template v-slot:footer> |
| | | <el-button type="primary" @click="doSubmit(1)">å®¡æ ¸éè¿</el-button> |
| | | <el-button type="danger" @click="doSubmit(2)">å®¡æ ¸éå</el-button> |
| | | <el-button @click="visible=false">åæ¶</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {check} from "@/api/business/dispatchUnit"; |
| | | export default { |
| | | name: 'dispatchReviewCheck', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | checkInfo: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | }, |
| | | tableData: [], |
| | | visible5: false |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/insuranceApply', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.form.id = null |
| | | this.title=title |
| | | this.visible=true |
| | | this.form.id=target.id |
| | | }, |
| | | doSubmit(type){ |
| | | this.$dialog.messageConfirm('确认è¿è¡è¯¥æä½åï¼') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | check({id:this.form.id,checkInfo:this.form.checkInfo,unitStatus:type}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100%; |
| | | .box_label { |
| | | width: 100%; |
| | | color: black; |
| | | font-size: 14px; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | .form { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | .form_span { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: start; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-size: 14px; |
| | | &:nth-child(1) { |
| | | color: black; |
| | | margin-bottom: 5px; |
| | | } |
| | | &:nth-child(2) { |
| | | color: #8c939d; |
| | | } |
| | | } |
| | | } |
| | | .form_item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .form_item_label { |
| | | flex-shrink: 0; |
| | | width: 170px; |
| | | color: black; |
| | | font-size: 14px; |
| | | span { |
| | | color: red; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .form_item_val { |
| | | flex: 1; |
| | | /*height: 40px;*/ |
| | | margin-left: 20px; |
| | | textarea { |
| | | width: 100%; |
| | | height: 70px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 10px; |
| | | outline: none; |
| | | box-sizing: border-box; |
| | | } |
| | | input { |
| | | width: 100%; |
| | | height: 40px; |
| | | outline: none; |
| | | border-radius: 5px; |
| | | border: 1px solid #cbcbcb; |
| | | padding: 0 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <div class="info"> |
| | | <div class="info_head"> |
| | | <span>æå±ä¼ä¸ï¼{{ form.companyName }} </span> |
| | | <el-button type="primary" v-if=" form.unitStatus == 0" @click="$refs.dispatchReviewCheck.open('å®¡æ ¸æ´¾é£åä½',form)" >å®¡æ ¸</el-button> |
| | | <el-button type="primary" v-else-if="form.unitStatus == 1 &&( form.worktypeStatus == null || form.worktypeStatus == 0)" @click="$refs.dispatchReview.open('å®¡æ ¸å·¥ç§',form)">å®¡æ ¸å·¥ç§</el-button> |
| | | </div> |
| | | <div class="info_list"> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½ï¼</div> |
| | | <div class="info_list_item_val">{{form.name}}</div> |
| | | </div> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½ä¿¡ç¨ä»£ç ï¼</div> |
| | | <div class="info_list_item_val">{{form.code}}</div> |
| | | </div> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½ç¶æï¼</div> |
| | | <div class="info_list_item_val" style="color:#2E68EC;" v-if="form.unitStatus === 0">å¾
å®¡æ ¸</div> |
| | | <div class="info_list_item_val" v-if="form.unitStatus === 1"> |
| | | <span style="color:#2E68EC;" v-if="form.worktypeStatus ==null||form.worktypeStatus === 0">å·¥ç§å¾
审</span> |
| | | <span style="color: green" v-if="form.worktypeStatus === 1">å®¡æ ¸éè¿</span> |
| | | <span style="color: red;" v-if="form.worktypeStatus === 2">å·¥ç§å®¡æ ¸ä¸éè¿</span> |
| | | </div> |
| | | <div class="info_list_item_val" style="color: red;" v-if="form.unitStatus === 2">å®¡æ ¸ä¸éè¿</div> |
| | | </div> |
| | | <div class="info_list_item"> |
| | | <div class="info_list_item_label">æ´¾é£åä½è¯¦è¿°ï¼</div> |
| | | <div class="info_list_item_val">{{form.content}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="info_table"> |
| | | <div class="info_table_item" v-for="(item, index) in form.duSolutionList" :key="index"> |
| | | <div class="info_table_item_label">ä¿é©æ¹æ¡ï¼{{item.solutionName}}</div> |
| | | <div class="info_table_item_content"> |
| | | <el-table |
| | | :data="item.duWorktypeList" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workTypeName" |
| | | label="æå±å·¥ç§"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="æä½è§é¢"> |
| | | <template slot-scope="{row}"> |
| | | <video loop controls width="150px" height="150px" :src="row.videoUrlFull"></video> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="checkDate" |
| | | label="å®¡æ ¸éè¿æ¥æ"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="ç¶æ"> |
| | | <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> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | | label="æä½"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" style="color: red;" v-if="scope.row.status === 2" @click="dele(scope.row.id, index, scope.$index)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column>--> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="info_status"> |
| | | <div class="info_status_label">å®¡æ ¸æµç¨</div> |
| | | <div class="info_status_list"> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in form.duLogList" |
| | | :key="index"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <span style="font-size: 16px; font-weight: 400; color: black;"> |
| | | {{activity.title}} |
| | | <span style="font-size: 16px; font-weight: 400; color: black; margin-left: 10px;" v-if="activity.objType === 5 || activity.objType === 6 || activity.objType === 1 || activity.objType === 2"> |
| | | æäº¤æè§ï¼{{activity.content}} |
| | | </span> |
| | | </span> |
| | | <span style="margin-top: 5px; font-size: 12px; font-weight: 400; color: #999999;"> |
| | | æä½å-{{activity.creatorName}}ï¼{{activity.creatorType==1? activity.companyName: "å¹³å°ç«¯"}}ï¼{{activity.createDate}} |
| | | </span> |
| | | </div> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- æ·»å æ¹æ¡ --> |
| | | <addJobType ref="addJobType" @success="callback" /> |
| | | <!-- ç¼è¾ --> |
| | | <OperaDispatchUnitWindow ref="OperaDispatchUnitWindow" @success="callback" /> |
| | | <dispatchReview ref="dispatchReview" @success="callback" /> |
| | | <dispatchReviewCheck ref="dispatchReviewCheck" @success="callback" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import addJobType from '@/components/enterprise/addJobType' |
| | | import dispatchReview from '@/components/business/dispatchReview' |
| | | import dispatchReviewCheck from '@/components/business/dispatchReviewCheck' |
| | | import OperaDispatchUnitWindow from '@/components/enterprise/OperaDispatchUnitWindow' |
| | | import { getById } from '@/api/business/dispatchUnit' |
| | | import { deleteById } from '@/api/business/duWorktype' |
| | | export default { |
| | | name: 'dispatchUnitDetailsPlat', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, addJobType, OperaDispatchUnitWindow,dispatchReview ,dispatchReviewCheck}, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | code: '', |
| | | content: '', |
| | | companyName:'', |
| | | unitStatus: '', |
| | | worktypeStatus: '', |
| | | duLogList: [], |
| | | duSolutionList: [], |
| | | saveDuSolutionDTOList: [ |
| | | { |
| | | id: '', |
| | | saveDuWorkTypeDTOList: [ |
| | | { |
| | | videoUrl: '', |
| | | workTypeId: '', |
| | | file: { |
| | | videourl: '', |
| | | videourlfull: '' |
| | | } |
| | | } |
| | | ], |
| | | typeWork: [], |
| | | solutionId: '' |
| | | } |
| | | ] |
| | | }, |
| | | tableData: [], |
| | | insuranceScheme: [], |
| | | reverse: true, |
| | | visible5:false, |
| | | activities: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/dispatchUnit', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form={ |
| | | id: null, |
| | | name: '', |
| | | code: '', |
| | | content: '', |
| | | unitStatus: '', |
| | | companyName:'', |
| | | worktypeStatus: '', |
| | | duLogList: [], |
| | | duSolutionList: [], |
| | | saveDuSolutionDTOList:[ ] |
| | | } |
| | | |
| | | this.form.id = target.id |
| | | this.getDetails() |
| | | }, |
| | | async getDetails() { |
| | | let res = await getById(this.form.id) |
| | | for (const key in this.form) { |
| | | this.form[key] = res[key] |
| | | } |
| | | }, |
| | | callback() { |
| | | // this.visible = true |
| | | this.open (this.title, this.form) |
| | | this.$emit('success') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .info { |
| | | width: 100%; |
| | | .info_list { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | .info_list_item { |
| | | width: 33.3%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 15px; |
| | | .info_list_item_label { |
| | | flex-shrink: 0; |
| | | //width: 150px; |
| | | font-size: 14px; |
| | | color: black; |
| | | } |
| | | .info_list_item_val { |
| | | flex: 1; |
| | | font-size: 14px; |
| | | color: black; |
| | | } |
| | | } |
| | | } |
| | | .info_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | span { |
| | | color: black; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .info_btns { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 15px; |
| | | } |
| | | .info_table { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 15px; |
| | | .info_table_item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 15px; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | .info_table_item_label { |
| | | font-size: 14px; |
| | | color: black; |
| | | margin-bottom: 10px; |
| | | } |
| | | .info_table_item_content { |
| | | width: 100%; |
| | | } |
| | | } |
| | | } |
| | | .info_status { |
| | | width: 100%; |
| | | .info_status_label { |
| | | width: 100%; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | margin-bottom: 15px; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | color: black; |
| | | font-size: 14px; |
| | | } |
| | | span { |
| | | color: black; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .info_list { |
| | | width: 100%; |
| | |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaCompanyDescWindow.open('ä¼ä¸è¯¦æ
', row)" v-permissions="['business:company:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="edit(row)" v-permissions="['business:company:update']">ä¿®æ¹</el-button> |
| | | <!-- |
| | | <el-button type="text" @click="$refs.operaCompanyWindow.open('ç¼è¾ä¼ä¸ä¿¡æ¯è¡¨', row)" v-permissions="['business:company:update']">çµåç¾è®¤è¯</el-button> |
| | | --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <TableLayout :permissions="['business:dispatchunit:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="æå±ä¼ä¸" prop="companyId"> |
| | | <el-form-item label="æå±ä¸" prop="companyId"> |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | v-for="item in companyList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ´¾é£åä½" prop="name"> |
| | | <el-select v-model="searchForm.name" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="searchForm.name" placeholder="请è¾å
¥æ´¾é£åä½" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | <el-button @click="$refs.dispatchUnitReviewDetails.open('æ´¾é£åä½è¯¦æ
')">详æ
</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </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="name" label="æ´¾é£åä½" min-width="100px"></el-table-column> |
| | | <el-table-column label="æ´¾é£åä½ç¶æ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.unitStatus === 0">å¾
å®¡æ ¸</span> |
| | | <span v-if="row.unitStatus === 1">å®¡æ ¸éè¿</span> |
| | | <span v-if="row.unitStatus === 2">å®¡æ ¸ä¸éè¿</span> |
| | | <span style="color: #2E68EC" v-if="row.unitStatus === 0">å¾
å®¡æ ¸</span> |
| | | <span v-if="row.unitStatus === 1"> |
| | | <span style="color:#2E68EC" v-if="row.worktypeStatus ==null || row.worktypeStatus === 0">å·¥ç§å¾
审</span> |
| | | <span style="color: green" v-else-if="row.worktypeStatus === 1">å®¡æ ¸éè¿</span> |
| | | <span style="color: red" v-else-if="row.worktypeStatus === 2">å·¥ç§å®¡æ ¸ä¸éè¿</span> |
| | | </span> |
| | | <span style="color: red" v-if="row.unitStatus === 2">å®¡æ ¸ä¸éè¿</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¥æ" min-width="100px"></el-table-column> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaDispatchUnitWindow.open('ç¼è¾æ´¾é£åä½ä¿¡æ¯è¡¨', row)" icon="el-icon-edit" v-permissions="['business:dispatchunit:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.dispatchUnitDetailsPlat.open('æ´¾é£åä½è¯¦æ
', row)" icon="el-icon-edit" v-permissions="['business:dispatchunit:update']">æ¥ç详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <dispatchUnitReviewDetails ref="dispatchUnitReviewDetails" @success="handlePageChange"/> |
| | | <dispatchUnitDetailsPlat ref="dispatchUnitDetailsPlat" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import dispatchUnitReviewDetails from '@/components/business/dispatchUnitReviewDetails' |
| | | import dispatchUnitDetailsPlat from '@/components/business/dispatchUnitDetailsPlat' |
| | | import {pageAll as companyAll} from '@/api/business/company' |
| | | export default { |
| | | name: 'dispatchUnitReview', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, dispatchUnitReviewDetails }, |
| | | components: { TableLayout, Pagination, dispatchUnitDetailsPlat }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | name: '', |
| | | companyId: '' |
| | | } |
| | | }, |
| | | companyList:[] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods:{ |
| | | // handlePageChange() { |
| | | // this.search() |
| | | // }, |
| | | loadSelectList() { |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="ç³è¯·å¼ç¥¨ä¼ä¸" prop="companyId"> |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @keypress.enter.native="search"> |
| | | <el-select v-model="searchForm.companyId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | v-for="item in companyList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaTaxesWindow from '@/components/business/OperaTaxesWindow' |
| | | import {all as solutionAll} from "@/api/business/solutions"; |
| | | import {pageAll as companyAll} from "@/api/business/company"; |
| | | export default { |
| | | name: 'Taxes', |
| | | extends: BaseTable, |
| | |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | companyList:[], |
| | | searchForm: { |
| | | status: '', |
| | | companyId: '' |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | this.loadSelectList() |
| | | }, |
| | | methods: { |
| | | handleRemove(file, fileList) { |
| | | console.log(file, fileList); |
| | | }, |
| | | loadSelectList() { |
| | | solutionAll({dataType:0}).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }).catch(err => { |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:dispatchunit:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(dispatchUnitService.findById(id)); |
| | | return ApiResponse.success(dispatchUnitService.detailById(id)); |
| | | } |
| | | } |
| | |
| | | * @return java.util.Date |
| | | */ |
| | | public java.util.Date getStart (java.util.Date date) { |
| | | if(date == null){ |
| | | return null; |
| | | } |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(date); |
| | | calendar.set(Calendar.HOUR_OF_DAY, 0); |
| | |
| | | @ExcelColumn(name="è系人") |
| | | private String linkname; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å®¡æ ¸æ¶é´") |
| | | @ExcelColumn(name="å®¡æ ¸æ¶é´") |
| | | |
| | |
| | | @TableField(exist = false) |
| | | private Integer duSolutionId; |
| | | |
| | | @ApiModelProperty(value = "ä¼ä¸åç§°") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "å建人åç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String creatorName; |
| | | @ApiModelProperty(value = "å建人类å 0å¹³å° 1ä¼ä¸", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer creatorType; |
| | | |
| | | @ApiModelProperty(value = "å
¬å¸åç§°", example = "1") |
| | | @TableField(exist = false) |
| | |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | DispatchUnit model = dispatchUnitMapper.selectById(param.getId()); |
| | | if(Objects.isNull(model) || Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO) ||!Constants.equalsInteger(model.getDataType(),Constants.ZERO)){ |
| | | if(Objects.isNull(model) || !Constants.equalsInteger(model.getIsdeleted(),Constants.ZERO) ||!Constants.equalsInteger(model.getDataType(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°æ´¾é£åä½ä¿¡æ¯"); |
| | | } |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.ONE)){ |
| | | if(!Constants.equalsInteger(model.getUnitStatus(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥æ´¾é£åä½å°æªå®¡æ ¸éè¿ï¼ä¸æ¯æè¯¥æä½ï¼"); |
| | | } |
| | | if(Constants.equalsInteger(model.getWorktypeStatus(),Constants.ZERO)){ |
| | | if(!Constants.equalsInteger(model.getWorktypeStatus(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥æ´¾é£åä½å·¥ç§å·²å®¡æ ¸ï¼è¯·å¿éå¤æäº¤~"); |
| | | } |
| | | DispatchUnit update = new DispatchUnit(); |
| | |
| | | |
| | | duSolutionMapper.update(null,new UpdateWrapper<DuSolution>().lambda() |
| | | .set(DuSolution::getStatus,Constants.ONE) |
| | | .set(DuSolution::getCheckDate,update.getEditDate() ) |
| | | .set(DuSolution::getCheckUserId,update.getCheckUserId()) |
| | | .set(DuSolution::getCheckInfo,update.getCheckInfo()) |
| | | .eq(DuSolution::getIsdeleted,Constants.ZERO) |
| | | .eq(DuSolution::getStatus,Constants.ZERO) |
| | | .eq(DuSolution::getDispatchUnitId,model.getId()) |
| | |
| | | |
| | | duWorktypeMapper.update(null,new UpdateWrapper<DuWorktype>().lambda() |
| | | .set(DuWorktype::getStatus,Constants.ONE) |
| | | .set(DuWorktype::getCheckDate,update.getEditDate()) |
| | | .set(DuWorktype::getCheckUserId,update.getCheckUserId()) |
| | | .set(DuWorktype::getCheckInfo,update.getCheckInfo()) |
| | | .eq(DuWorktype::getIsdeleted,Constants.ZERO) |
| | | .eq(DuWorktype::getStatus,Constants.ZERO) |
| | | .eq(DuWorktype::getDuSolutionId,s.getId())); |
| | |
| | | update.setEditDate(new Date()); |
| | | update.setId(model.getId()); |
| | | update.setUnitStatus(param.getUnitStatus()); |
| | | update.setWorktypeStatus(param.getWorktypeStatus()); |
| | | update.setWorktypeStatus(param.getUnitStatus()); |
| | | update.setCheckDate(update.getEditDate()); |
| | | update.setCheckUserId(user.getId()); |
| | | update.setCheckInfo(param.getCheckInfo()); |
| | |
| | | }else{ |
| | | //æ´æ°æç»æ°æ®ä¸ºå®¡æ ¸å¤±è´¥ |
| | | duSolutionMapper.update(null,new UpdateWrapper<DuSolution>().lambda() |
| | | .set(DuSolution::getCheckDate,new Date() ) |
| | | .set(DuSolution::getStatus,Constants.TWO) |
| | | .set(DuSolution::getCheckDate,new Date() ) |
| | | .set(DuSolution::getCheckUserId,update.getCheckUserId()) |
| | | .set(DuSolution::getCheckInfo,update.getCheckInfo()) |
| | | .eq(DuSolution::getDispatchUnitId,update.getId())); |
| | |
| | | @Override |
| | | public PageData<DispatchUnit> findPage(PageWrap<DispatchUnit> pageWrap) { |
| | | IPage<DispatchUnit> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<DispatchUnit> queryWrapper = new QueryWrapper<>(); |
| | | if(pageWrap.getModel().getDataType() ==null){ |
| | | pageWrap.getModel().setDataType(Constants.ZERO); |
| | | } |
| | | |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda().eq(DispatchUnit::getIsdeleted,Constants.ZERO); |
| | | MPJLambdaWrapper<DispatchUnit> queryWrapper = new MPJLambdaWrapper<DispatchUnit>(); |
| | | queryWrapper.selectAll(DispatchUnit.class) |
| | | .selectAs(Company::getName,DispatchUnit::getCompanyName) |
| | | .leftJoin(Company.class,Company::getId,DispatchUnit::getCompanyId); |
| | | queryWrapper.eq(DispatchUnit::getIsdeleted,Constants.ZERO); |
| | | if(Constants.equalsInteger(user.getType(),Constants.ZERO)){ |
| | | //åªè½çæéèå´å
|
| | | if(user.getCompanyIdList() == null || user.getCompanyIdList().size() == 0){ |
| | | queryWrapper. eq(Company::getId,-1);//è®¾ç½®æ æè®¿é® |
| | | }else { |
| | | queryWrapper. in(Company::getId, user.getCompanyIdList()); |
| | | } |
| | | } else { |
| | | //ä¼ä¸ç¨æ·åªçèªå·±çæ°æ® |
| | | pageWrap.getModel().setCompanyId(user.getCompanyId()); |
| | | } |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getId, pageWrap.getModel().getId()); |
| | | queryWrapper.eq(DispatchUnit::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getCreator, pageWrap.getModel().getCreator()); |
| | | queryWrapper.eq(DispatchUnit::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(DispatchUnit::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(DispatchUnit::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.ge(DispatchUnit::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.le(DispatchUnit::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getEditor, pageWrap.getModel().getEditor()); |
| | | queryWrapper.eq(DispatchUnit::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(DispatchUnit::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(DispatchUnit::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.ge(DispatchUnit::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.le(DispatchUnit::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | queryWrapper.eq(DispatchUnit::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getName() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getName, pageWrap.getModel().getName()); |
| | | queryWrapper.like(DispatchUnit::getName, pageWrap.getModel().getName()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getRemark, pageWrap.getModel().getRemark()); |
| | | queryWrapper.eq(DispatchUnit::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getStatus, pageWrap.getModel().getStatus()); |
| | | queryWrapper.eq(DispatchUnit::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getUnitStatus() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getUnitStatus, pageWrap.getModel().getUnitStatus()); |
| | | queryWrapper.eq(DispatchUnit::getUnitStatus, pageWrap.getModel().getUnitStatus()); |
| | | } |
| | | if (pageWrap.getModel().getWorktypeStatus() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getWorktypeStatus, pageWrap.getModel().getWorktypeStatus()); |
| | | queryWrapper.eq(DispatchUnit::getWorktypeStatus, pageWrap.getModel().getWorktypeStatus()); |
| | | } |
| | | if (pageWrap.getModel().getSortnum() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getSortnum, pageWrap.getModel().getSortnum()); |
| | | queryWrapper.eq(DispatchUnit::getSortnum, pageWrap.getModel().getSortnum()); |
| | | } |
| | | if (pageWrap.getModel().getCompanyId() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getCompanyId, pageWrap.getModel().getCompanyId()); |
| | | queryWrapper.eq(DispatchUnit::getCompanyId, pageWrap.getModel().getCompanyId()); |
| | | } |
| | | if (pageWrap.getModel().getPhone() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getPhone, pageWrap.getModel().getPhone()); |
| | | queryWrapper.eq(DispatchUnit::getPhone, pageWrap.getModel().getPhone()); |
| | | } |
| | | if (pageWrap.getModel().getLinkname() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getLinkname, pageWrap.getModel().getLinkname()); |
| | | queryWrapper.eq(DispatchUnit::getLinkname, pageWrap.getModel().getLinkname()); |
| | | } |
| | | if (pageWrap.getModel().getCheckDate() != null) { |
| | | queryWrapper.lambda().ge(DispatchUnit::getCheckDate, Utils.Date.getStart(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.lambda().le(DispatchUnit::getCheckDate, Utils.Date.getEnd(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.ge(DispatchUnit::getCheckDate, Utils.Date.getStart(pageWrap.getModel().getCheckDate())); |
| | | queryWrapper.le(DispatchUnit::getCheckDate, Utils.Date.getEnd(pageWrap.getModel().getCheckDate())); |
| | | } |
| | | if (pageWrap.getModel().getCheckInfo() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getCheckInfo, pageWrap.getModel().getCheckInfo()); |
| | | queryWrapper.eq(DispatchUnit::getCheckInfo, pageWrap.getModel().getCheckInfo()); |
| | | } |
| | | if (pageWrap.getModel().getCheckUserId() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getCheckUserId, pageWrap.getModel().getCheckUserId()); |
| | | queryWrapper.eq(DispatchUnit::getCheckUserId, pageWrap.getModel().getCheckUserId()); |
| | | } |
| | | if (pageWrap.getModel().getVersion() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getVersion, pageWrap.getModel().getVersion()); |
| | | queryWrapper.eq(DispatchUnit::getVersion, pageWrap.getModel().getVersion()); |
| | | } |
| | | if (pageWrap.getModel().getDataType() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getDataType, pageWrap.getModel().getDataType()); |
| | | queryWrapper.eq(DispatchUnit::getDataType, pageWrap.getModel().getDataType()); |
| | | } |
| | | if (pageWrap.getModel().getBaseId() != null) { |
| | | queryWrapper.lambda().eq(DispatchUnit::getBaseId, pageWrap.getModel().getBaseId()); |
| | | queryWrapper.eq(DispatchUnit::getBaseId, pageWrap.getModel().getBaseId()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | PageData<DispatchUnit> dispatchUnitPageData = PageData.from(dispatchUnitMapper.selectPage(page, queryWrapper)); |
| | | return dispatchUnitPageData; |
| | | PageData<DispatchUnit> pageData = PageData.from(dispatchUnitJoinMapper.selectJoinPage(page,DispatchUnit.class, queryWrapper)); |
| | | return pageData; |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public DispatchUnit detailById(Integer id) { |
| | | DispatchUnit dispatchUnit = dispatchUnitMapper.selectById(id); |
| | | DispatchUnit dispatchUnit = dispatchUnitJoinMapper.selectJoinOne(DispatchUnit.class, |
| | | new MPJLambdaWrapper<DispatchUnit>() |
| | | .selectAll(DispatchUnit.class) |
| | | .selectAs(Company::getName,DispatchUnit::getCompanyName) |
| | | .leftJoin(Company.class,Company::getId,DispatchUnit::getCompanyId) |
| | | .eq(DispatchUnit::getId,id) ); |
| | | //æ¹æ¡é
置表 |
| | | List<DuSolution> duSolutionList = duSolutionJoinMapper.selectJoinList(DuSolution.class, |
| | | new MPJLambdaWrapper<DuSolution>() |
| | |
| | | List<DuLog> duLogList = duLogJoinMapper.selectJoinList(DuLog.class, |
| | | new MPJLambdaWrapper<DuLog>() |
| | | .selectAll(DuLog.class) |
| | | .selectAs(SystemUser::getType,DuLog::getCreatorType) |
| | | .selectAs(SystemUser::getRealname,DuLog::getCreatorName) |
| | | .selectAs(Company::getName,DuLog::getCompanyName) |
| | | .leftJoin(SystemUser.class,SystemUser::getId,DuLog::getCreator) |
| | |
| | | queryWrapper.eq(Taxes::getCompanyId,-1);//è®¾ç½®æ æè®¿é® |
| | | }else{ |
| | | queryWrapper.in(Taxes::getCompanyId,user.getCompanyIdList()); |
| | | queryWrapper.ge(pageWrap.getModel().getStartDate() != null,Taxes::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getStartDate())); |
| | | queryWrapper.le(SignRecord::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getEndDate())); |
| | | queryWrapper.ge(pageWrap.getModel().getStartDate() != null,Taxes::getCreateDate, pageWrap.getModel().getStartDate()); |
| | | queryWrapper.le(pageWrap.getModel().getEndDate() != null,Taxes::getCreateDate, pageWrap.getModel().getEndDate()); |
| | | queryWrapper.eq(pageWrap.getModel().getTaxBank() != null,Taxes::getTaxBank, pageWrap.getModel().getTaxBank()); |
| | | queryWrapper.eq(pageWrap.getModel().getTaxBank() != null,Taxes::getTaxBank, pageWrap.getModel().getTaxBank()); |
| | | queryWrapper.eq(pageWrap.getModel().getRemark() != null,Taxes::getRemark, pageWrap.getModel().getRemark()); |
| | |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éä¼ä¸ç¨æ·æ æ³è¿è¡è¯¥ä¸å¡æ¥è¯¢"); |
| | | } |
| | | if(!Objects.isNull(queryModel)){ |
| | | queryWrapper.ge(pageWrap.getModel().getStartDate() != null,Taxes::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getStartDate())); |
| | | queryWrapper.le(SignRecord::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getEndDate())); |
| | | queryWrapper.ge(pageWrap.getModel().getStartDate() != null,Taxes::getCreateDate, (pageWrap.getModel().getStartDate())); |
| | | queryWrapper.le(pageWrap.getModel().getEndDate() != null,Taxes::getCreateDate, (pageWrap.getModel().getEndDate())); |
| | | queryWrapper.eq(!Objects.isNull(queryModel.getInsuranceApplyId()),Taxes::getInsuranceApplyId,queryModel.getInsuranceApplyId()); |
| | | queryWrapper.eq(!Objects.isNull(queryModel.getStatus()),Taxes::getStatus,queryModel.getStatus()); |
| | | } |