| | |
| | | <template> |
| | | <el-dialog :title="type === 'audit' ? '审批安置户申请信息' : '安置户申请信息'" :visible.sync="dialogVisible" width="80%" |
| | | :close-on-click-modal="false" :append-to-body="true"> |
| | | <el-dialog |
| | | :title="type === 'audit' ? '审批安置户申请信息' : '安置户申请信息'" |
| | | :visible.sync="dialogVisible" |
| | | width="80%" |
| | | :close-on-click-modal="false" |
| | | :append-to-body="true" |
| | | > |
| | | <div class="approval-content"> |
| | | <!-- 左侧表格区域 --> |
| | | <div class="table-container"> |
| | |
| | | :row-class-name="tableRowClassName" |
| | | height="400" |
| | | > |
| | | <el-table-column type="index" label="序号" width="50" align="center" /> |
| | | <el-table-column prop="street" label="镇(街道)" align="center" width="80"> |
| | | <el-table-column |
| | | type="index" |
| | | label="序号" |
| | | width="50" |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | prop="street" |
| | | label="镇(街道)" |
| | | align="center" |
| | | width="80" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.street }} |
| | | <el-tooltip v-if="scope.row.streetWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.streetWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="projectName" label="拆迁项目名称" align="center" width="150"> |
| | | <el-table-column |
| | | prop="projectName" |
| | | label="拆迁项目名称" |
| | | align="center" |
| | | width="150" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.projectName }} |
| | | <el-tooltip v-if="scope.row.projectNameWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.projectNameWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="community" label="所在村(社区)" align="center" width="100"> |
| | | <el-table-column |
| | | prop="community" |
| | | label="所在村(社区)" |
| | | align="center" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.community }} |
| | | <el-tooltip v-if="scope.row.communityWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.communityWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="demolitionTime" label="拆迁时间" align="center" width="100"> |
| | | <el-table-column |
| | | prop="demolitionTime" |
| | | label="拆迁时间" |
| | | align="center" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.demolitionTime }} |
| | | <el-tooltip v-if="scope.row.demolitionTimeWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.demolitionTimeWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="householdHead" label="户主名称" align="center" width="80"> |
| | | <el-table-column |
| | | prop="householdHead" |
| | | label="户主名称" |
| | | align="center" |
| | | width="80" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.householdHead }} |
| | | <el-tooltip v-if="scope.row.householdHeadWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.householdHeadWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="idCard" label="身份证号" align="center" width="180"> |
| | | <el-table-column |
| | | prop="idCard" |
| | | label="身份证号" |
| | | align="center" |
| | | width="180" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.idCard }} |
| | | <el-tooltip v-if="scope.row.idCardExistsWarn == 1" placement="top"> |
| | | <el-tooltip |
| | | v-if="scope.row.idCardExistsWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "身份证不在安置库" }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | <el-tooltip v-if="scope.row.idCardNoWarn == 1" placement="top"> |
| | | <div slot="content">{{ "身份证重复" }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mobile" label="联系电话" align="center" width="120"> |
| | | <el-table-column |
| | | prop="mobile" |
| | | label="联系电话" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.mobile }} |
| | | <el-tooltip v-if="scope.row.mobileWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.mobileWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="本次安置人数(人)" align="center"> |
| | | <el-table-column prop="currentCollectiveNum" label="集体经济组织成员" align="center" width="120"> |
| | | <el-table-column |
| | | prop="currentCollectiveNum" |
| | | label="集体经济组织成员" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.currentCollectiveNum }} |
| | | <el-tooltip v-if="scope.row.currentCollectiveNumWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.currentCollectiveNumWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="currentNoCollectiveNum" label="非集体经济组织成员" align="center" width="120"> |
| | | <el-table-column |
| | | prop="currentNoCollectiveNum" |
| | | label="非集体经济组织成员" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.currentNoCollectiveNum }} |
| | | <el-tooltip v-if="scope.row.currentNoCollectiveNumWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.currentNoCollectiveNumWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="currentCount" label="合计" align="center" width="60"> |
| | | <el-table-column |
| | | prop="currentCount" |
| | | label="合计" |
| | | align="center" |
| | | width="60" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.currentCount }} |
| | | <el-tooltip v-if="scope.row.currentCountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.currentCountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> |
| | | <el-table-column prop="waitFamilyNames" label="待安置家庭成员姓名" align="center" width="120"> |
| | | <el-table-column |
| | | prop="waitFamilyNames" |
| | | label="待安置家庭成员姓名" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.waitFamilyNames }} |
| | | <el-tooltip v-if="scope.row.waitFamilyNamesWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.waitFamilyNamesWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.waitFamilyNamesWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "身份信息存在重复数据" }}</div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="waitFamilyArea" label="待安置人员应安置面积合计(㎡)" align="center" width="120"> |
| | | <el-table-column |
| | | prop="waitFamilyArea" |
| | | label="待安置人员应安置面积合计(㎡)" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.waitFamilyArea }} |
| | | <el-tooltip v-if="scope.row.waitFamilyAreaWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.waitFamilyAreaWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.waitFamilyAreaWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "应补偿面积数据异常" }}</div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="补偿金额(万元)" align="center"> |
| | | <el-table-column prop="compensationNewAmount" label="新建商品住房、商业用房、停车位" align="center" width="100"> |
| | | <el-table-column |
| | | prop="compensationNewAmount" |
| | | label="新建商品住房、商业用房、停车位" |
| | | align="center" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.compensationNewAmount }} |
| | | <el-tooltip v-if="scope.row.compensationNewAmountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.compensationNewAmountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.compensationAmountWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content"> |
| | | {{ "检测到多个购房情况,请人工核对" }} |
| | | </div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="compensationOldAmount" label="二手住房" align="center" width="80"> |
| | | <el-table-column |
| | | prop="compensationOldAmount" |
| | | label="二手住房" |
| | | align="center" |
| | | width="80" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.compensationOldAmount }} |
| | | <el-tooltip v-if="scope.row.compensationOldAmountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.compensationOldAmountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="compensationSum" label="合计" align="center" width="60"> |
| | | <el-table-column |
| | | prop="compensationSum" |
| | | label="合计" |
| | | align="center" |
| | | width="60" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.compensationSum }} |
| | | <el-tooltip v-if="scope.row.compensationSumWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.compensationSumWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.compensationSumWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "金额超出补偿标准" }}</div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> |
| | | <el-table-column prop="downPaymentAmount" label="25%首付款(万元)" align="center" width="130"> |
| | | <el-table-column |
| | | prop="downPaymentAmount" |
| | | label="25%首付款(万元)" |
| | | align="center" |
| | | width="130" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.downPaymentAmount }} |
| | | <el-tooltip v-if="scope.row.downPaymentAmountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.downPaymentAmountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="quarterPayAmount" label="每季度需支付款项(万元)" align="center" width="120"> |
| | | <el-table-column |
| | | prop="quarterPayAmount" |
| | | label="每季度需支付款项(万元)" |
| | | align="center" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.quarterPayAmount }} |
| | | <el-tooltip v-if="scope.row.quarterPayAmountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.quarterPayAmountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.quarterPayAmountWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "季度款金额异常" }}</div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="subsidyAmount" label="过渡补贴(万元)" align="center" width="60"> |
| | | <el-table-column |
| | | prop="subsidyAmount" |
| | | label="过渡补贴(万元)" |
| | | align="center" |
| | | width="60" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.subsidyAmount }} |
| | | <el-tooltip v-if="scope.row.subsidyAmountWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.subsidyAmountWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | <el-tooltip |
| | | v-if="scope.row.subsidyAmountWarn == 1" |
| | | placement="top" |
| | | > |
| | | <div slot="content">{{ "过度补贴数据异常" }}</div> |
| | | <i |
| | | class="el-icon-warning-outline" |
| | | style="color: #e6a23c; margin-left: 5px" |
| | | ></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" align="center" width="60"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.remark }} |
| | | <el-tooltip v-if="scope.row.remarkWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.remarkWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="situation" label="购房差异情况" align="center" width="60"> |
| | | <el-table-column |
| | | prop="situation" |
| | | label="购房差异情况" |
| | | align="center" |
| | | width="60" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.situation }} |
| | | <el-tooltip v-if="scope.row.situationWarn" placement="top"> |
| | | <div slot="content">{{ scope.row.situationWarn }}</div> |
| | | <i class="el-icon-warning" style="color: #e6a23c; margin-left: 5px"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <template v-if="type === 'audit'"> |
| | | <div class="timeline-item"> |
| | | <div class="timeline-icon"> |
| | | <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar> |
| | | <el-avatar |
| | | size="small" |
| | | icon="el-icon-user" |
| | | :style="{ background: '#6d78ff' }" |
| | | ></el-avatar> |
| | | </div> |
| | | <div class="timeline-content info-box"> |
| | | <div class="info-line"> |
| | | <div class="approver-info"> |
| | | <div class="approver-title">提交人:</div> |
| | | <div class="approver-name">{{ approvalInfo.createUser }}</div> |
| | | <div class="approver-name"> |
| | | {{ approvalInfo.createUser }} |
| | | </div> |
| | | </div> |
| | | <div class="approval-time-info"> |
| | | <div class="approval-time-title">提交时间:</div> |
| | | <div class="approval-time">{{ approvalInfo.createTime }}</div> |
| | | <div class="approval-time"> |
| | | {{ approvalInfo.createTime }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="timeline-divider"></div> |
| | | <div class="timeline-item"> |
| | | <div class="timeline-icon"> |
| | | <el-avatar size="small" icon="el-icon-time" :style="{ background: '#909399' }"></el-avatar> |
| | | <el-avatar |
| | | size="small" |
| | | icon="el-icon-time" |
| | | :style="{ background: '#909399' }" |
| | | ></el-avatar> |
| | | </div> |
| | | <div class="timeline-content"> |
| | | <el-button size="small" disabled class="waiting-btn">等待审核</el-button> |
| | | <el-button size="small" disabled class="waiting-btn" |
| | | >等待审核</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | <template v-else> |
| | | <div class="timeline-item"> |
| | | <div class="timeline-icon"> |
| | | <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar> |
| | | <el-avatar |
| | | size="small" |
| | | icon="el-icon-user" |
| | | :style="{ background: '#6d78ff' }" |
| | | ></el-avatar> |
| | | </div> |
| | | <div class="timeline-content info-box"> |
| | | <div class="info-line"> |
| | | <div class="approver-info"> |
| | | <div class="approver-title">提交人:</div> |
| | | <div class="approver-name">{{ approvalInfo.createUser }}</div> |
| | | <div class="approver-name"> |
| | | {{ approvalInfo.createUser }} |
| | | </div> |
| | | </div> |
| | | <div class="approval-time-info"> |
| | | <div class="approval-time-title">提交时间:</div> |
| | | <div class="approval-time">{{ approvalInfo.createTime }}</div> |
| | | <div class="approval-time"> |
| | | {{ approvalInfo.createTime }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="timeline-divider"></div> |
| | | <div class="timeline-item"> |
| | | <div class="timeline-icon"> |
| | | <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar> |
| | | <el-avatar |
| | | size="small" |
| | | icon="el-icon-user" |
| | | :style="{ background: '#6d78ff' }" |
| | | ></el-avatar> |
| | | </div> |
| | | <div class="timeline-content info-box"> |
| | | <div class="info-line"> |
| | | <div class="approver-info"> |
| | | <div class="approver-title">审核人:</div> |
| | | <div class="approver-name">{{ approvalInfo.approveName }}</div> |
| | | <div class="approver-name"> |
| | | {{ approvalInfo.approveName }} |
| | | </div> |
| | | </div> |
| | | <div class="approval-time-info"> |
| | | <div class="approval-time-title">审核时间:</div> |
| | | <div class="approval-time">{{ approvalInfo.approveTime }}</div> |
| | | <div class="approval-time"> |
| | | {{ approvalInfo.approveTime }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | :disabled="type === 'detail'" |
| | | :type="form.auditResult === '通过' ? 'primary' : ''" |
| | | @click="form.auditResult = '通过'" |
| | | >通过</el-button> |
| | | >通过</el-button |
| | | > |
| | | <el-button |
| | | :disabled="type === 'detail'" |
| | | :type="form.auditResult === '驳回' ? 'primary' : ''" |
| | | @click="form.auditResult = '驳回'" |
| | | >驳回</el-button> |
| | | >驳回</el-button |
| | | > |
| | | </el-button-group> |
| | | </div> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { geDetailTabletList,approve } from "@/api/application-batch" |
| | | import { geDetailTabletList, approve } from "@/api/application-batch"; |
| | | export default { |
| | | name: "ApprovalDialog", |
| | | props: { |
| | |
| | | id: { |
| | | type: [Number], |
| | | required: true, |
| | | default: 0 |
| | | } |
| | | default: 0, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | operatorName: "", |
| | | submitTime: "", |
| | | auditorName: "", |
| | | auditTime: "" |
| | | } |
| | | auditTime: "", |
| | | }, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | dialogVisible(val) { |
| | | this.$emit("update:visible", val); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | async getTableData() { |
| | |
| | | const res = await geDetailTabletList({ |
| | | applyId: this.id, |
| | | pageNum: 1, |
| | | pageSize: 999 |
| | | pageSize: 99999, |
| | | }); |
| | | if (res.code === 200) { |
| | | this.tableData = res.data.records.map(item => ({ |
| | | this.tableData = res.data.records.map((item) => ({ |
| | | ...item, |
| | | hasError: Object.keys(item).some(key => key.endsWith('Warn') && item[key]) |
| | | hasError: Object.keys(item).some( |
| | | (key) => key.endsWith("Warn") && item[key] |
| | | ), |
| | | })); |
| | | this.hasWarning = this.tableData.some(item => item.hasError); |
| | | this.hasWarning = this.tableData.some((item) => item.hasError); |
| | | this.approvalInfo = {...res.data.placementApply}; |
| | | this.form.auditResult = this.approvalInfo.status === 1 ? '通过' : '驳回'; |
| | | this.form.auditResult = |
| | | this.approvalInfo.status === 1 ? "通过" : "驳回"; |
| | | this.form.auditComment = this.approvalInfo.reason; |
| | | } |
| | | } catch (error) { |
| | | console.error('获取表格数据失败:', error); |
| | | this.$message.error('获取数据失败,请稍后重试'); |
| | | console.error("获取表格数据失败:", error); |
| | | this.$message.error("获取数据失败,请稍后重试"); |
| | | } finally { |
| | | this.loading = false; |
| | | } |
| | | }, |
| | | tableRowClassName({ row }) { |
| | | if (row.hasError) { |
| | | if ( |
| | | row.compensationAmountWarn == 1 || |
| | | row.waitFamilyNamesWarn == 1 || |
| | | row.waitFamilyAreaWarn == 1 || |
| | | row.subsidyAmountWarn == 1 || |
| | | row.quarterPayAmountWarn == 1 || |
| | | row.idCardNoWarn == 1 || |
| | | row.idCardExistsWarn == 1 || |
| | | row.compensationSumWarn == 1 |
| | | ) { |
| | | return "warning-row"; |
| | | } |
| | | return ""; |
| | |
| | | const params = { |
| | | applyId: Number(this.id), // 确保是数字类型 |
| | | reason: this.form.auditComment.trim(), |
| | | status: Number(this.form.auditResult === '通过' ? 1 : 2) // 确保是数字类型 |
| | | status: Number(this.form.auditResult === "通过" ? 1 : 2), // 确保是数字类型 |
| | | }; |
| | | |
| | | try { |
| | |
| | | this.$message.error(res.msg || "审批失败"); |
| | | } |
| | | } catch (error) { |
| | | console.error('审批失败:', error); |
| | | console.error("审批失败:", error); |
| | | this.$message.error(error?.response?.data?.message || "审批失败"); |
| | | } |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | ::v-deep .warning-row { |
| | | background: #de868f !important; |
| | | } |
| | | .approval-content { |
| | | display: flex; |
| | | margin-bottom: 20px; |
| | |
| | | } |
| | | |
| | | .el-button-group .el-button:first-child { |
| | | border-right: 1px solid #DCDFE6; |
| | | border-right: 1px solid #dcdfe6; |
| | | } |
| | | |
| | | .dialog-footer { |
| | |
| | | /* loading样式优化 */ |
| | | ::v-deep .el-loading-spinner .el-icon-loading { |
| | | font-size: 30px; |
| | | color: #409EFF; |
| | | color: #409eff; |
| | | } |
| | | |
| | | ::v-deep .el-loading-spinner .el-loading-text { |
| | | font-size: 14px; |
| | | margin-top: 8px; |
| | | color: #409EFF; |
| | | } |
| | | </style> |
| | | |
| | | <style> |
| | | /* 全局样式 */ |
| | | .warning-row { |
| | | background-color: #faa2a2 !important; |
| | | color: #409eff; |
| | | } |
| | | </style> |