|
|
@ -34,16 +34,20 @@ |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.subject }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">环节</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.nodeName }}</span></el-form-item> |
|
|
|
<div class="span-sty">索赔厂家</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.claimManufacturer }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">是否外出</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.isGoOut == '1' ? '是' : '否' }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">进厂时间</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.entryTime }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">预计完工</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.estimatedFinishTime }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
@ -63,10 +67,6 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">快捷备注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.shotRemarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">备注(打印)</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.printRemarks }}</span></el-form-item> |
|
|
@ -75,6 +75,10 @@ |
|
|
|
<div class="span-sty">备注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">特殊标注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.isSpecialSign == '1' ? '有' : '否' }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-collapse v-model="activeNames"> |
|
|
|
<el-collapse-item title="客户信息" name="1"> |
|
|
@ -88,8 +92,8 @@ |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.mobile }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">客户单位</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.customerOrg }}</span></el-form-item> |
|
|
|
<div class="span-sty">客户来源</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.customerSource }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -121,19 +125,15 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-collapse-item> |
|
|
|
<el-collapse-item title="送修人信息" name="2"> |
|
|
|
<el-collapse-item title="对接人信息" name="2"> |
|
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">送修人姓名</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.otherVo.senderName }}</span></el-form-item> |
|
|
|
<div class="span-sty">对接人姓名</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.dockingPeople }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">送修人电话</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.otherVo.senderMobile }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">厂家</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.otherVo.manufacturer }}</span></el-form-item> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">对接人电话</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.dockingPhone }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-collapse-item> |
|
|
@ -143,77 +143,38 @@ |
|
|
|
<div class="span-sty">责任划分</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.responsibility }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">对方险种</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.otherInsuranceType }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">保险公司1</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.insuranceCompany1 }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">保险公司2</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.insuranceCompany2 }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">保险索赔单号</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.claimBillNo }}</span></el-form-item> |
|
|
|
<div class="span-sty">责任比例</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.responsibilityRatio }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">保险人员</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.insurer }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">勘察员</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.investigator }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">定损员</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.lossAdjuster }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">特殊标志</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.isSpecialSign == '1' ? '是' : '否' }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">出险类型</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.accidentType }}</span></el-form-item> |
|
|
|
<div class="span-sty">是否存在人伤</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.insuranceVo.isPersonInjuries == '1' ? '是' : formobj.insuranceVo.isPersonInjuries == '0' ? '否' : '' }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-table :key="insuranceKey" :data="formobj.insuranceVo.insuranceList" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="useInsurer" label="使用保险方" align="center" min-width="150"/> |
|
|
|
<el-table-column prop="insuranceType" label="使用险种" align="center" min-width="150"/> |
|
|
|
<el-table-column prop="insuranceCompany" label="保险公司" align="center" min-width="150"/> |
|
|
|
<el-table-column prop="claimBillNo" label="报案号" align="center" min-width="180"/> |
|
|
|
<el-table-column prop="investigator" label="勘察员及电话" align="center" min-width="220"/> |
|
|
|
<el-table-column prop="lossAdjuster" label="定损员及电话" align="center" min-width="220"/> |
|
|
|
</el-table> |
|
|
|
</el-collapse-item> |
|
|
|
<el-collapse-item title="发票信息" name="4"> |
|
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">是否开发票</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.isInvoicing == '1' ? '是' : '否' }}</span></el-form-item> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.isInvoicing == '1' ? '是' : formobj.invoiceVo.isInvoicing == '0' ? '否' : '' }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">发票类型</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.invoiceType }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">开票名称</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.invoiceTitle }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">税号</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.taxpayerNo }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">发票号码</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.invoiceCode }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">税率(%)</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.taxRate }}</span></el-form-item> |
|
|
|
<div class="span-sty">开票单位</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.invoiceVo.invoiceCompany }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-collapse-item> |
|
|
@ -223,18 +184,23 @@ |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="serviceItem" label="服务项目" align="center" width="200" /> |
|
|
|
<el-table-column prop="serviceType" label="工种" align="center" width="150" /> |
|
|
|
<el-table-column prop="subject" label="科目" align="center" width="150" /> |
|
|
|
<el-table-column prop="repairerName" label="维修人" width="200" align="center" /> |
|
|
|
<el-table-column prop="examineHourPrice" label="考核工时" align="center" width="100" /> |
|
|
|
<el-table-column prop="examineHourPrice" label="工时提成" align="center" width="100" /> |
|
|
|
<el-table-column prop="hourPrice" label="工时单价" align="center" width="150" /> |
|
|
|
<el-table-column prop="hours" label="工时数" align="center" width="100" /> |
|
|
|
<el-table-column prop="price" label="销售价" align="center" width="150" /> |
|
|
|
<el-table-column prop="discount" label="折扣" align="center" width="100" /> |
|
|
|
<el-table-column prop="discountAmount" label="优惠" align="center" width="150" /> |
|
|
|
<el-table-column prop="amount" label="销售金额" align="center" width="150" /> |
|
|
|
<el-table-column prop="amount" label="金额" align="center" width="150" /> |
|
|
|
<el-table-column prop="remarks" label="备注" align="center" min-width="300" /> |
|
|
|
</el-table> |
|
|
|
<div class="title">商品</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty span-sty-one" style="width: 300px;!important;">前台登记时对商品要求备注</div> |
|
|
|
<el-form-item><span class="addinputInfo-one">{{ formobj.registerRemarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-table :key="tableKey" :data="formobj.goodsDetailsVos" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> |
|
|
|
<el-table-column prop="goodsSpuName" label="商品名称" width="100" align="center" /> |
|
|
@ -251,22 +217,55 @@ |
|
|
|
<el-table-column prop="remarks" label="备注" align="center" min-width="300" /> |
|
|
|
</el-table> |
|
|
|
<div class="title">附加项目</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">外出费(元)</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.outAmount }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">备注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.outRemarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">厂家补助(元)</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.subsidyAmount }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">备注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.subsidyRemarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">施救费(元)</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.rescueAmount }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">备注</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.rescueRemarks }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<span></span> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-table :key="subjoinKey" :data="formobj.aitemVos" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="aitemName" label="附加项目" align="center" width="200" /> |
|
|
|
<el-table-column prop="aitemName" label="其它附加项目" align="center" width="200" /> |
|
|
|
<el-table-column prop="price" label="销售价" align="center" width="150" /> |
|
|
|
<el-table-column prop="remarks" label="备注" align="center" min-width="200" /> |
|
|
|
</el-table> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty" style="border-right: 0px">合计金额:</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ jeTotal }} = 工时费:{{ gsfTotal }} + 材料费:{{ clfTotal }} + 附加费:{{ fjfTotal }} + 税额:{{ seTotal }}</span></el-form-item> |
|
|
|
<div class="span-sty" style="border-right: 0px">应收合计:</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ ysTotal }} = 工时费:{{ gsfTotal }} + 材料费:{{ clfTotal }} + 附加费:{{ fjfTotal }} + 税额:0</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty" style="border-right: 0px">应收金额:</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ ysjeTotal }} = 合计金额:{{ jeTotal }} - 优惠:<span>{{ formobj.discountAmount }}</span> - 优惠券:<span>{{ formobj.coupon }}</span> - 积分抵扣:<span>{{ formobj.scoreDeduct }}</span></span></el-form-item> |
|
|
|
<div class="span-sty" style="border-right: 0px">实收合计:</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ ssTotal }} = 应收合计:{{ ysTotal }} - 优惠:{{ yhTotal }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
@ -296,29 +295,36 @@ export default { |
|
|
|
serviceKey: 1, |
|
|
|
// subjoin附加项目 |
|
|
|
subjoinKey: 2, |
|
|
|
// insuranceKey保险信息 |
|
|
|
insuranceKey: 3, |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
|
createByName: '', |
|
|
|
operator: '', |
|
|
|
registerRemarks: '', |
|
|
|
billNo: '', |
|
|
|
billType: '', |
|
|
|
createByName: '', |
|
|
|
deptName: '', |
|
|
|
createDate: '', |
|
|
|
billTypeKey: '', |
|
|
|
entryTime: '', |
|
|
|
estimatedFinishTime: '', |
|
|
|
billType: '', |
|
|
|
subjectSid: '', |
|
|
|
subject: '', |
|
|
|
claimManufacturerSid: '', |
|
|
|
claimManufacturer: '', |
|
|
|
isGoOut: '', |
|
|
|
estimatedFinishTime: '', |
|
|
|
entryTime: '', |
|
|
|
nodeName: '', |
|
|
|
waitorName: '', |
|
|
|
waitorSid: '', |
|
|
|
groupSid: '', |
|
|
|
groupName: '', |
|
|
|
waitorSid: '', |
|
|
|
waitorName: '', |
|
|
|
mainRepairers: '', |
|
|
|
barCode: '', |
|
|
|
shotRemarks: '', |
|
|
|
printRemarks: '', |
|
|
|
remarks: '', |
|
|
|
isSpecialSign: '', |
|
|
|
discountAmount: '', |
|
|
|
coupon: '', |
|
|
|
scoreDeduct: '', |
|
|
|
nodeName: '', |
|
|
|
nodeTime: '', |
|
|
|
outDoorState: '', |
|
|
|
outDoorTime: '', |
|
|
@ -326,6 +332,7 @@ export default { |
|
|
|
customerName: '', |
|
|
|
mobile: '', |
|
|
|
customerOrg: '', |
|
|
|
customerSource: '', |
|
|
|
memberCardSid: '', |
|
|
|
memberCarNumber: '', |
|
|
|
vehMark: '', |
|
|
@ -334,42 +341,28 @@ export default { |
|
|
|
mileage: '', |
|
|
|
oil: '', |
|
|
|
currentMileage: '', |
|
|
|
dockingPeopleSid: '', |
|
|
|
dockingPeople: '', |
|
|
|
dockingPhone: '', |
|
|
|
invoiceVo: { |
|
|
|
isInvoicing: '', |
|
|
|
invoiceType: '', |
|
|
|
invoiceTypeKey: '', |
|
|
|
invoiceTitle: '', |
|
|
|
taxpayerNo: '', |
|
|
|
invoiceCode: '', |
|
|
|
taxRate: '' |
|
|
|
invoiceCompanySid: '', |
|
|
|
invoiceCompany: '' |
|
|
|
}, |
|
|
|
insuranceVo: { |
|
|
|
responsibility: '', |
|
|
|
responsibilityKey: '', |
|
|
|
otherInsuranceType: '', |
|
|
|
otherInsuranceTypeKey: '', |
|
|
|
insuranceCompany1: '', |
|
|
|
insuranceCompany2: '', |
|
|
|
insurer: '', |
|
|
|
claimBillNo: '', |
|
|
|
investigator: '', |
|
|
|
lossAdjuster: '', |
|
|
|
isSpecialSign: '', |
|
|
|
accidentType: '', |
|
|
|
accidentTypeKey: '' |
|
|
|
}, |
|
|
|
otherVo: { |
|
|
|
manufacturer: '', |
|
|
|
senderName: '', |
|
|
|
senderMobile: '' |
|
|
|
isPersonInjuries: '', |
|
|
|
responsibilityRatioKey: '', |
|
|
|
responsibilityRatio: '', |
|
|
|
insuranceList: [] |
|
|
|
}, |
|
|
|
sitemVos: [], |
|
|
|
aitemVos: [], |
|
|
|
goodsDetailsVos: [], |
|
|
|
orgPath: '', |
|
|
|
createBySid: '', |
|
|
|
deptSid: '', |
|
|
|
deptName: '', |
|
|
|
operatorSid: '', |
|
|
|
nodeCode: '', |
|
|
|
settleVo: { |
|
|
@ -383,9 +376,27 @@ export default { |
|
|
|
otherSettleKey: '', |
|
|
|
otherSettleValue: '', |
|
|
|
debts: '', |
|
|
|
settleTime: '' |
|
|
|
settleTime: '', |
|
|
|
otherSettleAmount: '' |
|
|
|
}, |
|
|
|
showReSettleBtn: true |
|
|
|
showReSettleBtn: true, |
|
|
|
hourAmount: '', |
|
|
|
otherAmount: '', |
|
|
|
goodsAmount: '', |
|
|
|
addAmount: '', |
|
|
|
taxAmount: '', |
|
|
|
outAmount: '', |
|
|
|
subsidyAmount: '', |
|
|
|
rescueAmount: '', |
|
|
|
actualAmount: '', |
|
|
|
receivableAmount: '', |
|
|
|
subsidyRemarks: '', |
|
|
|
rescueRemarks: '', |
|
|
|
outRemarks: '', |
|
|
|
fileName: '', |
|
|
|
operator: '', |
|
|
|
useOrgSid: '', |
|
|
|
createOrgSid: '' |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
} |
|
|
@ -403,21 +414,22 @@ export default { |
|
|
|
} |
|
|
|
return gsf |
|
|
|
}, |
|
|
|
// 计算材料费 = 商品列表中所有销售价之和 |
|
|
|
// 计算材料费 = 商品列表中所有销售价 * 数量的和 |
|
|
|
clfTotal() { |
|
|
|
let clf = '0' |
|
|
|
if (this.formobj.goodsDetailsVos.length > 0) { |
|
|
|
this.formobj.goodsDetailsVos.forEach((e) => { |
|
|
|
if (e.goodsSpuName !== '') { |
|
|
|
clf = Math.round((parseFloat(clf) + parseFloat(e.price !== '' ? e.price : '0')) * 100) / 100 |
|
|
|
clf = Math.round((parseFloat(clf) + (parseFloat(e.price !== '' ? e.price : '0') * parseFloat(e.count !== '' ? e.count : '0'))) * 100) / 100 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
return clf |
|
|
|
}, |
|
|
|
// 计算附加费 == 附加项目列表中所有销售价之和 |
|
|
|
// 计算附加费 == 外出费 + 厂家补助 + 施救费 + 附加项目列表中所有销售价之和 |
|
|
|
fjfTotal() { |
|
|
|
let fjf = '0' |
|
|
|
fjf = parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') + parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') + parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') |
|
|
|
if (this.formobj.aitemVos.length > 0) { |
|
|
|
this.formobj.aitemVos.forEach((e) => { |
|
|
|
if (e.aitemName !== '') { |
|
|
@ -427,22 +439,35 @@ export default { |
|
|
|
} |
|
|
|
return fjf |
|
|
|
}, |
|
|
|
// 计算税额 = 材料费 * 税率 |
|
|
|
seTotal() { |
|
|
|
let se = '0' |
|
|
|
se = Math.round((parseFloat(this.clfTotal) * (parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 |
|
|
|
return se |
|
|
|
// 计算应收合计 = 工时费 + 材料费 + 附加费 + 税额 |
|
|
|
ysTotal() { |
|
|
|
let ys = '0' |
|
|
|
ys = Math.round((parseFloat(ys) + parseFloat(this.gsfTotal) + parseFloat(this.clfTotal) + parseFloat(this.fjfTotal)) * 100) / 100 |
|
|
|
return ys |
|
|
|
}, |
|
|
|
// 计算合计金额 = 工时费 + 材料费 + 附加费 + 税额 |
|
|
|
jeTotal() { |
|
|
|
let je = '0' |
|
|
|
je = Math.round((parseFloat(je) + parseFloat(this.gsfTotal) + parseFloat(this.clfTotal) + parseFloat(this.fjfTotal) + parseFloat(this.seTotal)) * 100) / 100 |
|
|
|
return je |
|
|
|
// 优惠 = 服务项目列表中的所有优惠之和 + 商品列表中所有优惠之和 |
|
|
|
yhTotal() { |
|
|
|
let yh = '0' |
|
|
|
if (this.formobj.sitemVos.length > 0) { |
|
|
|
this.formobj.sitemVos.forEach((e) => { |
|
|
|
if (e.serviceItem !== '') { |
|
|
|
yh = Math.round((parseFloat(yh) + parseFloat(e.discountAmount !== '' ? e.discountAmount : '0')) * 100) / 100 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if (this.formobj.goodsDetailsVos.length > 0) { |
|
|
|
this.formobj.goodsDetailsVos.forEach((e) => { |
|
|
|
if (e.goodsSpuName !== '') { |
|
|
|
yh = Math.round((parseFloat(yh) + parseFloat(e.discountAmount !== '' ? e.discountAmount : '0')) * 100) / 100 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
return yh |
|
|
|
}, |
|
|
|
// 计算应收金额 |
|
|
|
ysjeTotal() { |
|
|
|
// 计算实收合计 = 应收合计 - 优惠 |
|
|
|
ssTotal() { |
|
|
|
let ysje = '0' |
|
|
|
ysje = Math.round((parseFloat(ysje) + parseFloat(this.jeTotal) - parseFloat(this.formobj.discountAmount !== '' ? this.formobj.discountAmount : '0') - parseFloat(this.formobj.coupon !== '' ? this.formobj.coupon : '0') - parseFloat(this.formobj.scoreDeduct !== '' ? this.formobj.scoreDeduct : '0')) * 100) / 100 |
|
|
|
ysje = Math.round((parseFloat(ysje) + parseFloat(this.ysTotal) - parseFloat(this.yhTotal)) * 100) / 100 |
|
|
|
return ysje |
|
|
|
} |
|
|
|
}, |
|
|
@ -470,32 +495,37 @@ export default { |
|
|
|
}, |
|
|
|
negativeSettlement() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divFJS'].showAdd(this.formobj.sid ) |
|
|
|
this.$refs['divFJS'].showAdd(this.formobj.sid) |
|
|
|
}, |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
|
sid: '', |
|
|
|
createByName: '', |
|
|
|
operator: '', |
|
|
|
registerRemarks: '', |
|
|
|
billNo: '', |
|
|
|
billType: '', |
|
|
|
createByName: '', |
|
|
|
deptName: '', |
|
|
|
createDate: '', |
|
|
|
billTypeKey: '', |
|
|
|
entryTime: '', |
|
|
|
estimatedFinishTime: '', |
|
|
|
billType: '', |
|
|
|
subjectSid: '', |
|
|
|
subject: '', |
|
|
|
claimManufacturerSid: '', |
|
|
|
claimManufacturer: '', |
|
|
|
isGoOut: '', |
|
|
|
estimatedFinishTime: '', |
|
|
|
entryTime: '', |
|
|
|
nodeName: '', |
|
|
|
waitorName: '', |
|
|
|
waitorSid: '', |
|
|
|
groupSid: '', |
|
|
|
groupName: '', |
|
|
|
waitorSid: '', |
|
|
|
waitorName: '', |
|
|
|
mainRepairers: '', |
|
|
|
barCode: '', |
|
|
|
shotRemarks: '', |
|
|
|
printRemarks: '', |
|
|
|
remarks: '', |
|
|
|
isSpecialSign: '', |
|
|
|
discountAmount: '', |
|
|
|
coupon: '', |
|
|
|
scoreDeduct: '', |
|
|
|
nodeName: '', |
|
|
|
nodeTime: '', |
|
|
|
outDoorState: '', |
|
|
|
outDoorTime: '', |
|
|
@ -503,6 +533,7 @@ export default { |
|
|
|
customerName: '', |
|
|
|
mobile: '', |
|
|
|
customerOrg: '', |
|
|
|
customerSource: '', |
|
|
|
memberCardSid: '', |
|
|
|
memberCarNumber: '', |
|
|
|
vehMark: '', |
|
|
@ -511,42 +542,28 @@ export default { |
|
|
|
mileage: '', |
|
|
|
oil: '', |
|
|
|
currentMileage: '', |
|
|
|
dockingPeopleSid: '', |
|
|
|
dockingPeople: '', |
|
|
|
dockingPhone: '', |
|
|
|
invoiceVo: { |
|
|
|
isInvoicing: '', |
|
|
|
invoiceType: '', |
|
|
|
invoiceTypeKey: '', |
|
|
|
invoiceTitle: '', |
|
|
|
taxpayerNo: '', |
|
|
|
invoiceCode: '', |
|
|
|
taxRate: '' |
|
|
|
invoiceCompanySid: '', |
|
|
|
invoiceCompany: '' |
|
|
|
}, |
|
|
|
insuranceVo: { |
|
|
|
responsibility: '', |
|
|
|
responsibilityKey: '', |
|
|
|
otherInsuranceType: '', |
|
|
|
otherInsuranceTypeKey: '', |
|
|
|
insuranceCompany1: '', |
|
|
|
insuranceCompany2: '', |
|
|
|
insurer: '', |
|
|
|
claimBillNo: '', |
|
|
|
investigator: '', |
|
|
|
lossAdjuster: '', |
|
|
|
isSpecialSign: '', |
|
|
|
accidentType: '', |
|
|
|
accidentTypeKey: '' |
|
|
|
}, |
|
|
|
otherVo: { |
|
|
|
manufacturer: '', |
|
|
|
senderName: '', |
|
|
|
senderMobile: '' |
|
|
|
isPersonInjuries: '', |
|
|
|
responsibilityRatioKey: '', |
|
|
|
responsibilityRatio: '', |
|
|
|
insuranceList: [] |
|
|
|
}, |
|
|
|
sitemVos: [], |
|
|
|
aitemVos: [], |
|
|
|
goodsDetailsVos: [], |
|
|
|
orgPath: '', |
|
|
|
createBySid: '', |
|
|
|
deptSid: '', |
|
|
|
deptName: '', |
|
|
|
operatorSid: '', |
|
|
|
nodeCode: '', |
|
|
|
settleVo: { |
|
|
@ -560,9 +577,27 @@ export default { |
|
|
|
otherSettleKey: '', |
|
|
|
otherSettleValue: '', |
|
|
|
debts: '', |
|
|
|
settleTime: '' |
|
|
|
settleTime: '', |
|
|
|
otherSettleAmount: '' |
|
|
|
}, |
|
|
|
showReSettleBtn: true |
|
|
|
showReSettleBtn: true, |
|
|
|
hourAmount: '', |
|
|
|
otherAmount: '', |
|
|
|
goodsAmount: '', |
|
|
|
addAmount: '', |
|
|
|
taxAmount: '', |
|
|
|
outAmount: '', |
|
|
|
subsidyAmount: '', |
|
|
|
rescueAmount: '', |
|
|
|
actualAmount: '', |
|
|
|
receivableAmount: '', |
|
|
|
subsidyRemarks: '', |
|
|
|
rescueRemarks: '', |
|
|
|
outRemarks: '', |
|
|
|
fileName: '', |
|
|
|
operator: '', |
|
|
|
useOrgSid: '', |
|
|
|
createOrgSid: '' |
|
|
|
} |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
@ -577,4 +612,10 @@ export default { |
|
|
|
.addinputInfo { |
|
|
|
margin-left: 120px !important; |
|
|
|
} |
|
|
|
.span-sty-one { |
|
|
|
width: 180px !important; |
|
|
|
} |
|
|
|
.addinputInfo-one { |
|
|
|
margin-left: 170px !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|