|
@@ -346,11 +346,11 @@
|
|
|
// 有金额才进行删除后的运算
|
|
|
if(tempArr[index].amount!=''){
|
|
|
tempArr.splice(index,1)
|
|
|
+ let money=0
|
|
|
tempArr.map(item =>{
|
|
|
money+=parseFloat(item.amount) || 0
|
|
|
// console.log(money);
|
|
|
})
|
|
|
- let money=0
|
|
|
// 保留两位小数、防止计算时精度丢失
|
|
|
money=Math.round(money*100)/100
|
|
|
if(type=='invoice'){
|
|
@@ -574,11 +574,11 @@
|
|
|
services:res.data.service_list
|
|
|
}
|
|
|
contractInfo.contractValidityDate=[res.data.start_date,res.data.end_date]
|
|
|
- contractInfo.checkedService=res.data.service_list.map(item => item.service_template_id)
|
|
|
- contractInfo.checkedService.map(serviceId=>{
|
|
|
+ contractInfo.checkedService=res.data.service_list.map(item => {
|
|
|
+ let serviceId=item.service_template_id
|
|
|
// 大套餐或者小套餐
|
|
|
- if(serviceId==1 || serviceId==2)
|
|
|
- serciveChange(true,serviceId,false)
|
|
|
+ if(serviceId==1 || serviceId==2) serciveChange(true,serviceId,false)
|
|
|
+ return serviceId
|
|
|
})
|
|
|
// 开票
|
|
|
contractInfo.moneyData.allInvoiceMoney = contractInfo.moneyData.allPlacementMoney=res.data.contract_amount
|
|
@@ -622,15 +622,13 @@
|
|
|
}
|
|
|
return rowArr;
|
|
|
});
|
|
|
- let paramsTemp={
|
|
|
- tableHeadData:temarr[0],
|
|
|
- tableData:temarr.slice(1),
|
|
|
- service_template_id:samllService.service_template_id,
|
|
|
- Value:samllService.value,
|
|
|
- chart_permission_ids:samllService.chart_permission_ids
|
|
|
- }
|
|
|
- paramsTemp.tableHeadData = temarr[0];
|
|
|
- paramsTemp.tableData = temarr.slice(1);
|
|
|
+ let paramsTemp={
|
|
|
+ tableHeadData:temarr[0],
|
|
|
+ tableData:temarr.slice(1),
|
|
|
+ service_template_id:samllService.service_template_id,
|
|
|
+ Value:samllService.value,
|
|
|
+ chart_permission_ids:samllService.chart_permission_ids
|
|
|
+ }
|
|
|
if(contractInfo.serviceArray.length==0){
|
|
|
let timer=setInterval(()=>{
|
|
|
if(contractInfo.serviceArray.length>0){
|
|
@@ -858,7 +856,7 @@
|
|
|
<template #default="{row,$index}">
|
|
|
<el-form-item :prop="`placementData.${$index}.invoice_date`" :show-message="false"
|
|
|
:rules="{required:true,message:()=>{ ElMessage.error('请选择到款日期')},trigger:'change'}">
|
|
|
- <el-date-picker v-model="row.invoice_date" style="width: 124px;" :clearable="false"
|
|
|
+ <el-date-picker v-model="row.invoice_date" type="month" style="width: 124px;" :clearable="false"
|
|
|
placeholder="请选择月份" value-format="YYYY-MM" format="YYYY-MM"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
@@ -880,25 +878,29 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="contract-progress-aside">
|
|
|
- <p class="progress-aside-title">登记流程</p>
|
|
|
+ <div class="contract-progress-aside"></div>
|
|
|
+ </div>
|
|
|
+ <!-- 登记流程 -->
|
|
|
+ <div class="contract-progress-detail">
|
|
|
+ <p class="progress-aside-title">登记流程</p>
|
|
|
+ <el-scrollbar style="height: calc(100% - 110px);">
|
|
|
<div class="progress-box">
|
|
|
- <el-timeline>
|
|
|
- <el-timeline-item color="var(--themeColor)" v-for="item in contractInfo.progressList"
|
|
|
- :key="item.name" size="large" placement="top" hide-timestamp>
|
|
|
- <template #dot>
|
|
|
- <div class="customize-circle-outside">
|
|
|
- <div class="customize-circle-inside"></div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <div class="progress-item-title">{{operationType[item.op_type-1]?.label}}</div>
|
|
|
- <div class="progress-item-info">{{item.admin_name}}</div>
|
|
|
- <div class="progress-item-info">{{item.create_time}}</div>
|
|
|
- <div class="progress-item-info" v-show="item.remark">备注:{{item.remark}}</div>
|
|
|
- </el-timeline-item>
|
|
|
- </el-timeline>
|
|
|
+ <el-timeline>
|
|
|
+ <el-timeline-item color="var(--themeColor)" v-for="item in contractInfo.progressList"
|
|
|
+ :key="item.name" size="large" placement="top" hide-timestamp>
|
|
|
+ <template #dot>
|
|
|
+ <div class="customize-circle-outside">
|
|
|
+ <div class="customize-circle-inside"></div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="progress-item-title">{{operationType[item.op_type-1]?.label}}</div>
|
|
|
+ <div class="progress-item-info">{{item.admin_name}}</div>
|
|
|
+ <div class="progress-item-info">{{item.create_time}}</div>
|
|
|
+ <div class="progress-item-info" v-show="item.remark">备注:{{item.remark}}</div>
|
|
|
+ </el-timeline-item>
|
|
|
+ </el-timeline>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </el-scrollbar>
|
|
|
</div>
|
|
|
<!-- 小套餐选择品种弹窗 -->
|
|
|
<service-variety-dia v-model:visible="contractInfo.varietyDiaShow" @selectFinish="getVarieties"
|
|
@@ -1009,51 +1011,71 @@
|
|
|
}
|
|
|
}
|
|
|
.contract-progress-aside{
|
|
|
- background-color: white;
|
|
|
- flex: 1;
|
|
|
+ // background-color: white;
|
|
|
+ width: 26vw;
|
|
|
min-width: 300px;
|
|
|
- .progress-aside-title{
|
|
|
- font-size: 18px;
|
|
|
- font-weight: bold;
|
|
|
- margin: 30px;
|
|
|
- }
|
|
|
- .progress-box{
|
|
|
- padding:0 20px 20px 70px;
|
|
|
- .customize-circle-outside{
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- background-color: rgba($color: $themeColor, $alpha: 0.4);
|
|
|
- width: 14px;
|
|
|
- left: -2px;
|
|
|
- top: -4px;
|
|
|
- height: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .contract-progress-detail{
|
|
|
+ background-color: white;
|
|
|
+ width: 26vw;
|
|
|
+ position: fixed;
|
|
|
+ right: 30px;
|
|
|
+ top: 90px;
|
|
|
+ min-width: 300px;
|
|
|
+ border: 1px solid #E8E8E8;
|
|
|
+ height: calc(100vh - 120px);
|
|
|
+ z-index: 2;
|
|
|
+ .progress-aside-title{
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 30px 30px 20px;
|
|
|
+ }
|
|
|
+ .progress-box{
|
|
|
+ margin-top: 10px;
|
|
|
+ padding:0 20px 20px 70px;
|
|
|
+ .customize-circle-outside{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ background-color: rgba($color: $themeColor, $alpha: 0.4);
|
|
|
+ width: 14px;
|
|
|
+ left: -2px;
|
|
|
+ top: -4px;
|
|
|
+ height: 14px;
|
|
|
+ border-radius: 50%;
|
|
|
+ position: absolute;
|
|
|
+ .customize-circle-inside{
|
|
|
+ background-color:$themeColor;
|
|
|
+ width: 6px;
|
|
|
+ height: 6px;
|
|
|
border-radius: 50%;
|
|
|
- position: absolute;
|
|
|
- .customize-circle-inside{
|
|
|
- background-color:$themeColor;
|
|
|
- width: 6px;
|
|
|
- height: 6px;
|
|
|
- border-radius: 50%;
|
|
|
- }
|
|
|
- }
|
|
|
- .progress-item-title{
|
|
|
- font-weight: bold;
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- margin-bottom: 8px;
|
|
|
}
|
|
|
- .progress-item-info{
|
|
|
- font-size: 14px;
|
|
|
- color:#666;
|
|
|
- margin-bottom: 8px;
|
|
|
- &:last-child{
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
+ }
|
|
|
+ .progress-item-title{
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
+ .progress-item-info{
|
|
|
+ font-size: 14px;
|
|
|
+ color:#666;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ &:last-child{
|
|
|
+ margin-bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ @media screen and (max-width:1023px) {
|
|
|
+ .contract-progress-aside{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .contract-progress-detail{
|
|
|
+ position: sticky;
|
|
|
+ }
|
|
|
+ }
|
|
|
.contract-operation{
|
|
|
text-align: center;
|
|
|
padding: 100px 30px 30px;
|