|
|
@ -29,7 +29,7 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>开票单位</div> |
|
|
|
<el-form-item prop="purchaseSystemName"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.purchaseSystemName" placeholder="请选择" @change="changePurchase" filterable clearable> |
|
|
|
<el-select class="addinputInfo addinputw" v-model="formobj.purchaseSystemName" placeholder="请选择" @change="changePurchase" filterable clearable> |
|
|
|
<el-option v-for="item in purchase_list" :key="item.deptSid" :label="item.purchaseSystemName" :value="item.purchaseSystemName"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -49,8 +49,8 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>开票金额</div> |
|
|
|
<el-form-item prop="invoiceMoney"><el-input class="addinputInfo" style="width: 70%" @keyup.native="formobj.invoiceMoney = getNumber(formobj.invoiceMoney, 2)" v-model="formobj.invoiceMoney" clearable placeholder="" /></el-form-item> |
|
|
|
<div class="span-sty">开票金额</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ invoiceMoneyTotal }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -69,7 +69,7 @@ |
|
|
|
</el-row> |
|
|
|
<div class="title titleOne"> |
|
|
|
<div>维修单列表</div> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="chooseGd()">选择工单</el-button> |
|
|
|
<el-button type="primary" size="mini" class="btntopblueline" @click="chooseGd()">选择维修单</el-button> |
|
|
|
</div> |
|
|
|
<el-table :key="tableKey" :data="formobj.asBwinvoiceapplyDetailList" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
@ -83,7 +83,6 @@ |
|
|
|
<el-table-column prop="customerName" label="客户名称" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="vehMark" label="车牌号" align="center" width="150" /> |
|
|
|
<el-table-column prop="vinNo" label="车架号" align="center" width="150" /> |
|
|
|
<el-table-column prop="settleTime" label="结算日期" align="center" width="120" /> |
|
|
|
<el-table-column prop="taxItems" label="加税点项目" align="center" min-width="140" /> |
|
|
|
<el-table-column prop="hourAmount" label="工时费" align="center" width="120" /> |
|
|
|
<el-table-column prop="goodsAmount" label="材料费" align="center" width="120" /> |
|
|
@ -92,7 +91,8 @@ |
|
|
|
<el-table-column prop="outAmount" label="外出费" align="center" width="120" /> |
|
|
|
<el-table-column prop="otherAmount" label="其它费用" align="center" width="120" /> |
|
|
|
<el-table-column prop="discountAmount" label="优惠" align="center" width="150" /> |
|
|
|
<el-table-column prop="totalAmount" label="费用合计" align="center" width="120" /> |
|
|
|
<el-table-column prop="settleTime" label="结算日期" align="center" width="120" /> |
|
|
|
<el-table-column prop="totalAmount" label="结算费用合计" align="center" width="120" /> |
|
|
|
</el-table> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
@ -151,9 +151,19 @@ export default { |
|
|
|
rules: { |
|
|
|
purchaseSystemName: [{ required: true, message: '开票单位不能为空', trigger: 'change' }], |
|
|
|
invoiceTitle: [{ required: true, message: '开票名称不能为空', trigger: 'blur' }], |
|
|
|
invoiceTypeValue: [{ required: true, message: '开票类型不能为空', trigger: 'change' }], |
|
|
|
invoiceMoney: [{ required: true, message: '开票金额不能为空', trigger: 'blur' }] |
|
|
|
invoiceTypeValue: [{ required: true, message: '开票类型不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
invoiceMoneyTotal() { |
|
|
|
let money = 0 |
|
|
|
if (this.formobj.asBwinvoiceapplyDetailList.length > 0) { |
|
|
|
this.formobj.asBwinvoiceapplyDetailList.forEach((e) => { |
|
|
|
money = Math.round((parseFloat(money) + parseFloat(e.totalAmount !== '' ? e.totalAmount : 0)) * 100) / 100 |
|
|
|
}) |
|
|
|
} |
|
|
|
return money |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -276,6 +286,7 @@ export default { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
this.formobj.invoiceMoney = this.invoiceMoneyTotal |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
@ -293,6 +304,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit() { |
|
|
|
this.formobj.invoiceMoney = this.invoiceMoneyTotal |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (this.formobj.asBwinvoiceapplyDetailList.length === 0) { |
|
|
@ -357,6 +369,10 @@ export default { |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
margin-left: 120px !important; |
|
|
|
} |
|
|
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|
|
|
margin-left: 120px !important; |
|
|
|
width: calc(100% - 115px); |
|
|
|
} |
|
|
|
.titleOne { |
|
|
|
padding: 7px; |
|
|
|
display: flex; |
|
|
|