Commit dae0dedb authored by 谢子梦's avatar 谢子梦

stage:代开票信息-申请开票模块

parent 30df3986
......@@ -17,7 +17,8 @@
</el-form-item>
<el-form-item label="开票状态" prop="payStatus">
<el-select v-model="queryParams.invoiceStatus" placeholder="请选择开票状态" @change="handleQuery" clearable>
<el-option v-for="dict in dict.type.batch_pay_order_invoice_status" :key="dict.value" :label="dict.label" :value="dict.value" />
<el-option v-for="dict in dict.type.batch_pay_order_invoice_status" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
<el-form-item>
......@@ -28,12 +29,12 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="batchApplyInvoice"
:disabled="multiple" v-hasPermi="['business:invoiceApply:apply']" >批量申请开票</el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="batchApplyInvoice" :disabled="multiple"
v-hasPermi="['business:invoiceApply:apply']">批量申请开票</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport"
:disabled="multiple" v-hasPermi="['business:payOrder:export']">批量导出</el-button>
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :disabled="multiple"
v-hasPermi="['business:payOrder:export']">批量导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
......@@ -62,66 +63,169 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-s-order" v-show="showInvoiceButton(scope.row)"
v-hasPermi="['business:invoiceApply:apply']" @click="applyInvoice(scope.row)">申请开票</el-button>
v-hasPermi="['business:invoiceApply:apply']" @click="applyInvoice(scope.row)">申请开票</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
<el-dialog title="申请开票" :visible.sync="openApply" width="70%">
<el-dialog title="申请开票" key="openDialog" :visible.sync="openApply" width="87%">
<el-form ref="formApply" :model="formApply" :rules="rulesApply" label-width="130px">
<el-row>
<el-col :span="10">
<el-descriptions title="购买方信息" :column="1" size="medium">
<el-descriptions-item label="名称" :contentStyle="{'font-size': '14px'}">
{{formApply.applyCompanyInvoice.invoiceTitle}}
<el-descriptions-item label="名称" :contentStyle="{ 'font-size': '14px' }">
{{ formApply.applyCompanyInvoice.invoiceTitle }}
</el-descriptions-item>
<el-descriptions-item label="纳税人识别号" :contentStyle="{'font-size': '14px'}">
{{formApply.applyCompanyInvoice.taxRegistrationNumber}}
<el-descriptions-item label="纳税人识别号" :contentStyle="{ 'font-size': '14px' }">
{{ formApply.applyCompanyInvoice.taxRegistrationNumber }}
</el-descriptions-item>
</el-descriptions>
</el-col>
<el-col :span="10">
<el-descriptions title="销售方信息" :column="1" size="medium">
<el-descriptions-item label="名称" :contentStyle="{'font-size': '14px'}">
{{formApply.taxCompanyInvoice.invoiceTitle}}
<el-descriptions-item label="名称" :contentStyle="{ 'font-size': '14px' }">
{{ formApply.taxCompanyInvoice.invoiceTitle }}
</el-descriptions-item>
<el-descriptions-item label="纳税人识别号" :contentStyle="{'font-size': '14px'}">
{{formApply.taxCompanyInvoice.taxRegistrationNumber}}
<el-descriptions-item label="纳税人识别号" :contentStyle="{ 'font-size': '14px' }">
{{ formApply.taxCompanyInvoice.taxRegistrationNumber }}
</el-descriptions-item>
</el-descriptions>
</el-col>
</el-row>
<el-divider content-position="left">开票类目</el-divider>
<el-row style="text-align: right; margin-bottom: 5px">
<el-button type="primary" size="mini" @click="addItemClick" >新增类目</el-button>
<el-button type="primary" size="mini" @click="addItemClick">新增类目</el-button>
</el-row>
<el-row style="margin-bottom: 10px">
<el-form-item prop="items" label-width="0px">
<el-table
:data="formApply.items"
style="width: 100%">
<el-table-column prop="goodsName" label="项目名称" width="180" />
<el-table-column prop="goodsSize" label="规格型号" />
<el-table-column prop="goodsUnit" label="单位"/>
<el-table-column prop="taxClassifyRate" label="税率" width="80" />
<el-table-column label="免税类型" prop="freeType">
<template slot-scope="scope">
<dict-tag :options="dict.type.tax_free_type" :value="scope.row.freeType" />
</template>
</el-table-column>
<el-table-column prop="goodsCount" label="数量" />
<el-table-column prop="goodsPrice" label="单价" width="180"/>
<el-table-column prop="amount" label="金额(不含税)" />
<el-table-column prop="taxAmount" label="税额" />
<el-table-column prop="id" label="操作" width="80">
<template slot-scope="scope">
<el-button size="mini" style="float: right; margin-bottom: 5px" @click="removeItem(scope.$index)">移除</el-button>
</template>
</el-table-column>
</el-table>
</el-form-item>
<el-table ref="multipleTable" :data="formApply.items" style="width: 100%"
:cell-style="{ 'text-align': 'center' }" :header-cell-style="{ 'text-align': 'center' }">
<el-table-column prop="goodsName" label="项目名称">
<template slot-scope="scope">
<el-form-item label-width="0px">
<span> {{ scope.row.goodsName }}</span>
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="goodsSize" label="规格型号">
<template slot="header">
<div style="display: flex;align-items: center;"><span style="color: red;font-size: 16px;">*</span>规格型号
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :key="scope.$index" :prop="'items.' + scope.$index + '.goodsSize'"
:rules="rulesApply.goodsSize">
<el-input @input="changeItemForceupdate" v-model="formApply.items[scope.$index].goodsSize"
size="small" placeholder="请输入规格型号" />
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="goodsUnit" label="单位">
<template slot="header">
<div style="display: flex;align-items: center;"><span style="color: red;font-size: 16px;">*</span>单位
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :prop="'items.' + scope.$index + '.goodsUnit'"
:rules="rulesApply.goodsUnit">
<el-input @input="changeItemForceupdate" v-model="formApply.items[scope.$index].goodsUnit"
size="small" placeholder="请输入单位" />
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="taxClassifyRate" label="税率">
<template slot="header">
<div style="display: flex;align-items: center;"><span style="color: red;font-size: 16px;">*</span>税率
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :prop="'items.' + scope.$index + '.taxClassifyRate'"
:rules="rulesApply.taxClassifyRate">
<el-select @change="countPriceFn" placeholder="请选择税率"
v-model="formApply.items[scope.$index].taxClassifyRate">
<el-option v-for="(item, index) in scope.row.taxRateData" :key="index" :label="item"
:value="item"></el-option>
</el-select>
</el-form-item>
</template>
</el-table-column>
<el-table-column label="免税类型" prop="freeType" width="180">
<template slot="header">
<div style="display: flex;align-items: center;">免税类型
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :prop="'items.' + scope.$index + '.freeType'"
:rules="rulesApply.freeType">
<el-select :disabled="Number(scope.row.taxClassifyRate) != 0" @change="changeItemForceupdate"
v-model="formApply.items[scope.$index].freeType" size="small" placeholder="请选择免税类型">
<el-option v-for="dict in dict.type.tax_free_type" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="goodsCount" label="数量" width="180">
<template slot="header">
<div style="display: flex;align-items: center;"><span style="color: red;font-size: 16px;">*</span>数量
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :prop="'items.' + scope.$index + '.goodsCount'"
:rules="rulesApply.goodsCount">
<el-input placeholder="请输入数量" type="number" @input="countPriceFn" v-model="scope.row.goodsCount"
size="small"></el-input>
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="goodsPrice" label="单价">
<template slot-scope="scope">
<el-form-item label-width="0px">
{{ scope.row.goodsPrice }}
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="amountTax" label="价税合计" width="180">
<template slot="header">
<div style="display: flex;align-items: center;"><span style="color: red;font-size: 16px;">*</span>价税合计
</div>
</template>
<template slot-scope="scope">
<el-form-item label-width="0px" :prop="'items.' + scope.$index + '.amountTax'"
:rules="rulesApply.amountTax">
<el-input placeholder="价税合计" type="number" @input="countPriceFn" v-model="scope.row.amountTax"
size="small"></el-input>
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="amount" label="金额(不含税)">
<template slot-scope="scope">
<el-form-item label-width="0px">
{{ scope.row.amount }}
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="taxAmount" label="税额">
<template slot-scope="scope">
<el-form-item label-width="0px">
{{ scope.row.taxAmount }}
</el-form-item>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<!-- <el-form-item label-width="0px"> -->
<el-button type="danger" size="mini" @click="removeItem(scope.$index)" icon="el-icon-delete"
circle>移除</el-button>
<!-- <el-button size="mini" style="float: right; margin-bottom: 5px"
@click="removeItem(scope.$index)">移除</el-button> -->
<!-- </el-form-item> -->
</template>
</el-table-column>
</el-table>
<!-- </el-form-item> -->
</el-row>
<el-card shadow="hover" class="invoice-info-card">
<div>
......@@ -130,11 +234,13 @@
<el-row>
<el-col :span="24">
<el-form-item label="价税合计金额/元" prop="totalAmountTax">
<el-input v-model="formApply.totalAmountTax" placeholder="请输入价税合计金额/元" disabled/>
<el-input v-model="formApply.totalAmountTax" placeholder="请输入价税合计金额/元" disabled />
</el-form-item>
<el-form-item label="发票类型" prop="invoieType">
<el-radio-group v-model="formApply.invoieType">
<el-radio v-for="dict in dict.type.tax_invoice_type" :key="dict.value" :label="dict.value" >{{dict.label}}</el-radio>
<el-radio v-for="dict in dict.type.tax_invoice_type" :key="dict.value" :label="dict.value">{{
dict.label
}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
......@@ -143,7 +249,8 @@
</el-card>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitApply">确认申请开票</el-button>
<el-button type="primary" @click="submitApply"
:disabled="Number(taxIncludedTotalAmount) > Number(formApply.totalAmountTax)">确认申请开票</el-button>
<el-button @click="openApply = false">取消</el-button>
</div>
</el-dialog>
......@@ -153,7 +260,7 @@
<el-table-column prop="goodsName" label="类目名称" width="180" />
<el-table-column prop="code" label="类目编码" width="180" />
<el-table-column prop="vatRate" label="税率" />
<el-table-column prop="vatRate" label="操作" >
<el-table-column prop="vatRate" label="操作">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="addItem(scope.row)">选择</el-button>
</template>
......@@ -164,8 +271,8 @@
</div>
</el-dialog>
<el-dialog title="添加商品" :visible.sync="classifyRateFormPanel" width="600px" append-to-body>
<el-form :model="classifyRateForm" label-width="130px">
<!-- <el-dialog title="添加商品" :visible.sync="classifyRateFormPanel" width="600px" append-to-body>
<el-form :model="classifyRateForm" label-width="110px">
<el-form-item label="类目名称">
<el-input v-model="classifyRateForm.goodsName" disabled></el-input>
</el-form-item>
......@@ -176,38 +283,43 @@
<el-input v-model="classifyRateForm.goodsUnit" placeholder="单位"></el-input>
</el-form-item>
<el-form-item label="费率">
<el-select v-model="classifyRateForm.taxClassifyRate" placeholder="请选择费率">
<el-option v-for="(item, index) in classifyRates" :label="item" :value="item" />
<el-select @change="countPriceFn" v-model="classifyRateForm.taxClassifyRate" placeholder="请选择费率">
<el-option v-for="(item, index) in classifyRates" :key="index" :label="item" :value="item" />
</el-select>
</el-form-item>
<el-form-item label="免税类型">
<el-select :disabled="!classifyRateForm.taxClassifyRate || classifyRateForm.taxClassifyRate > 0"
v-model.trim="classifyRateForm.freeType"
size="small" placeholder="请选择免税类型">
<el-option v-for="dict in dict.type.tax_free_type" :key="dict.value" :label="dict.label" :value="dict.value" />
v-model.trim="classifyRateForm.freeType" size="small" placeholder="请选择免税类型">
<el-option v-for="dict in dict.type.tax_free_type" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
<el-form-item label="数量">
<el-input-number v-model="classifyRateForm.goodsCount" :precision="0" :step="1" :min="1" style="width: 100%"></el-input-number>
<el-input-number v-model="classifyRateForm.goodsCount" :precision="0" :step="1" :min="1"
style="width: 100%"></el-input-number>
</el-form-item>
<el-form-item label="单价(含税)">
<el-input-number v-model="classifyRateForm.goodsPrice" :precision="2" :step="0.1" :min="0.1" style="width: 150px"></el-input-number>
<el-input-number v-model="classifyRateForm.goodsMoney" :precision="2" :step="0.1" :min="0.1"
style="width: 150px"></el-input-number>
</el-form-item>
<el-form-item label="单价(不含税)">
<el-input-number v-model="classifyRateForm.goodsPrice" :precision="2" :step="0.1" :min="0.1" style="width: 150px"></el-input-number>
<el-input-number v-model="classifyRateForm.goodsPrice" :precision="2" :step="0.1" :min="0.1"
style="width: 150px"></el-input-number>
</el-form-item>
<el-form-item label="金额(不含税)">
<el-input-number disabled v-model="classifyRateForm.amount" :precision="2" :step="1" :min="1" style="width: 100%"></el-input-number>
<el-input-number disabled v-model="classifyRateForm.amount" :precision="2" :step="1" :min="1"
style="width: 100%"></el-input-number>
</el-form-item>
<el-form-item label="税额">
<el-input-number disabled v-model="classifyRateForm.taxAmount" :precision="2" :step="1" :min="1" style="width: 100%"></el-input-number>
<el-input-number disabled v-model="classifyRateForm.taxAmount" :precision="2" :step="1" :min="1"
style="width: 100%"></el-input-number>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitItem">确认</el-button>
<el-button @click="classifyRateFormPanel = false">取消</el-button>
</div>
</el-dialog>
</el-dialog> -->
</div>
</template>
......@@ -226,7 +338,7 @@ import { getUnitTaxCategories, laborSign, querySignList } from '@/api/business/u
export default {
name: "PayOrder",
components: { RePay },
dicts: ['pay_status', 'batch_pay_order_invoice_status', 'pay_type_title','tax_invoice_type', 'tax_free_type'],
dicts: ['pay_status', 'batch_pay_order_invoice_status', 'pay_type_title', 'tax_invoice_type', 'tax_free_type'],
data() {
return {
//人力公司list
......@@ -296,8 +408,12 @@ export default {
invoiceTitle: '',
taxRegistrationNumber: ''
},
totalAmountTax: 0,
totalAmount: 0,
totalTax: 0,
items: []
},
taxIncludedTotalAmount: 0, //列表中的含税金额总计
// 表单校验
rulesApply: {
applyCompanyId: [
......@@ -311,6 +427,84 @@ export default {
],
invoieType: [
{ required: true, message: "请选择发票类型", trigger: "change" }
],
goodsSize: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].goodsSize) {
callback(new Error('请输入规格'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
],
goodsUnit: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].goodsUnit) {
callback(new Error('请输入单位'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
],
taxClassifyRate: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].taxClassifyRate) {
callback(new Error('请选择税率'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
],
freeType: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].freeType && Number(this.formApply.items[arr[1]].taxClassifyRate) == 0) {
callback(new Error('请选择免税类型'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
],
goodsCount: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].goodsCount) {
callback(new Error('请输入数量'));
} else if (Number(this.formApply.items[arr[1]].goodsCount) <= 0) {
callback(new Error('数量不能小于等于0'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
],
amountTax: [
{
validator: (rule, value, callback) => {
let arr = rule.field.split('.');
if (!this.formApply.items[arr[1]].amountTax) {
callback(new Error('请输入价税合计'));
} else if (Number(this.formApply.items[arr[1]].amountTax) <= 0) {
callback(new Error('价税合计不能小于等于0'));
} else if (Number(this.formApply.items[arr[1]].amountTax > Number(this.formApply.totalAmountTax))) {
callback(new Error('不能大于开票金额的价税合计'));
} else {
callback();
}
}, trigger: ['blur', 'change']
}
]
},
taxCategoryPanel: {
......@@ -325,6 +519,7 @@ export default {
taxClassifyCode: '',
goodsName: '',
taxClassifyRate: '',
goodsMoney: '',
goodsPrice: '',
goodsSize: '',
goodsUnit: '',
......@@ -339,7 +534,47 @@ export default {
this.getListgetCompanyList(1);
// this.getListgetCompanyList(2);
},
computed: {
// 计算属性,计算选中的数量
countPriceFnComputed() {
}
},
methods: {
countPriceFn() {
// console.log('执行计算', this.formApply.items);
if (this.formApply.items.length > 0) {
this.formApply.totalAmount = 0;
this.formApply.totalTax = 0;
this.taxIncludedTotalAmount = 0
this.formApply.items.forEach(item => {
if (item.amountTax) {
this.taxIncludedTotalAmount += Number(item.amountTax);
if (this.formApply.totalAmountTax < this.taxIncludedTotalAmount) {
this.$modal.msgError(`价税合计金额(${this.taxIncludedTotalAmount})不能大于开票金额价税金额的(${this.formApply.totalAmountTax})总和`)
}
}
if (item.taxClassifyRate && item.goodsCount && item.amountTax) {
item.taxAmount = Math.round((Number(item.amountTax) - Number(item.amountTax) / (1 + Number(item.taxClassifyRate))) * 100) / 100;
item.amount = Math.round((Number(item.amountTax) - Number(item.taxAmount)) * 100) / 100;
item.goodsPrice = Math.round((Number(item.amount) / Number(item.goodsCount)) * 10000) / 10000;
if (item.amount) {
this.formApply.totalAmount += item.amount;
}
if (item.taxAmount) {
this.formApply.totalTax += item.taxAmount;
}
}
});
}
this.$forceUpdate()
// this.countPriceFnComputed()
},
//更新视图方法
changeItemForceupdate() {
console.log('执行立刻', this.formApply.items);
this.$forceUpdate()
},
//获取企业信息数据
getListgetCompanyList(bindType) {
this.loading = true;
......@@ -351,14 +586,14 @@ export default {
listCompanyInfo(queryParams).then(response => {
if (bindType == 1) {
this.applyCompanyList = response.rows;
}else if (bindType == 2) {
} else if (bindType == 2) {
this.taxCompanyList = response.rows;
}
this.loading = false;
});
},
//查询合作机构list
queryTaxCompanyList(applyCompanyId){
queryTaxCompanyList(applyCompanyId) {
const queryParams = {
inviterId: applyCompanyId,
signStatus: 2,
......@@ -367,7 +602,7 @@ export default {
}
laborSign(queryParams).then(response => {
if (response.code == 200) {
if(response.total == 0){
if (response.total == 0) {
this.$modal.msgError("该企业未签约,无法申请开票");
return;
}
......@@ -399,7 +634,7 @@ export default {
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.batchNos = selection.map(item => item.batchNo)
this.single = selection.length!==1
this.single = selection.length !== 1
this.multiple = !selection.length
console.log(this.ids);
console.log(this.batchNos);
......@@ -419,17 +654,16 @@ export default {
let payFlag = false;
//未开票 或 开票失败
if (row.invoiceStatus === 1 || row.invoiceStatus === 3) {
invoicueFlag = true;
invoicueFlag = true;
}
// 支付成功 或 部分成功
if (row.payStatus === 3 || row.payStatus === 5) {
payFlag = true;
payFlag = true;
}
return (invoicueFlag && payFlag);
},
// 申请开票
applyInvoice(row) {
this.openApply = true
this.formApply.totalAmountTax = row.successAmount
this.formApply.batchPayIds = [row.id]
this.formApply.batchPayOrderIds = row.id
......@@ -445,6 +679,7 @@ export default {
this.formApply.applyCompanyInvoice.companyName = resp.data.inviterName
this.formApply.applyCompanyInvoice.invoiceTitle = resp.data.inviterName
this.formApply.applyCompanyInvoice.taxRegistrationNumber = resp.data.inviterCode
this.openApply = true
// 不需要额外的开票信息
// getInvoiceInfoByCompanyId(resp.data.inviterId).then(response => {
// this.formApply.applyCompanyInvoice = response.data;
......@@ -509,11 +744,11 @@ export default {
this.$message.error(response.msg);
}
})
})
}).finally(() => {
this.loading = false;
});
}
}).finally(() => {
this.loading = false;
});
})
},
// 批量申请开票
batchApplyInvoice(row) {
......@@ -526,7 +761,7 @@ export default {
}).then(() => {
this.openApply = true;
//ids转字符串,逗号隔开
this.formApply.batchPayIds = ids;
this.formApply.batchPayIds = ids;
this.formApply.batchPayOrderIds = ids.join(',');
const selectItemList = this.payOrderList.filter(item => ids.includes(item.id));
let sumSuccessAmount = 0;
......@@ -547,23 +782,38 @@ export default {
})
},
addItem(classify) {
// console.log('表格数据', this.formApply.items);
classify.taxRateData = classify.vatRate.split(',')
classify.taxClassifyRate = null
classify.goodsSize = ''
classify.goodsUnit = null
classify.goodsCount = null
classify.goodsPrice = ''
classify.amountTax = null
classify.amount = ''
classify.taxAmount = ''
classify.freeType = ''
this.formApply.items.push(classify)
console.log('表格数据', this.formApply);
this.taxCategoryPanel.open = false
let rate = classify.vatRate.split(",")
if (rate.length > 1) {
this.classifyRateFormPanel = true
this.classifyRateForm = {
goodsName: classify.goodsName,
taxClassifyCode: classify.code,
taxClassifyRate: ''
}
this.classifyRates = rate
} else {
this.formApply.items.push({
taxClassifyCode: classify.code,
goodsName: classify.goodsName,
taxClassifyRate: rate[0]
})
}
// this.$forceUpdate()
// let rate = classify.vatRate.split(",")
// if (rate.length > 1) {
// this.classifyRateFormPanel = true
// this.classifyRateForm = {
// goodsName: classify.goodsName,
// taxClassifyCode: classify.code,
// taxClassifyRate: ''
// }
// this.classifyRates = rate
// } else {
// this.formApply.items.push({
// taxClassifyCode: classify.code,
// goodsName: classify.goodsName,
// taxClassifyRate: rate[0]
// })
// }
},
removeItem(index) {
this.formApply.items.splice(index, 1)
......@@ -591,9 +841,11 @@ export default {
padding: 0 !important;
}
}
.invoice-info-card {
margin-bottom: 10px;
}
.title-bold {
text-align: left;
font-weight: bold;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment