|
@@ -83,6 +83,15 @@
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="amount" label="金额">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ :size="'mini'"
|
|
|
+ v-model="scope.row.amount"
|
|
|
+ placeholder="税率"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="tax_rate" width="80" label="税率">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
@@ -291,6 +300,7 @@ export default {
|
|
|
unit_price: "",
|
|
|
tax_rate: "",
|
|
|
tax: "",
|
|
|
+ amount: "",
|
|
|
};
|
|
|
this.examForm.item_list.push(item);
|
|
|
this.examForm.item_list.forEach((v1, i1) => {
|
|
@@ -453,8 +463,8 @@ export default {
|
|
|
let list = JSON.parse(
|
|
|
JSON.stringify(this.oldresList[this.activeImg].goods)
|
|
|
);
|
|
|
- if(list.length===0){
|
|
|
- this.$message.warning("商品明细不能为空!");
|
|
|
+ if (list.length === 0) {
|
|
|
+ this.$message.warning("商品明细不能为空!");
|
|
|
this.loading = false;
|
|
|
return;
|
|
|
}
|
|
@@ -472,12 +482,12 @@ export default {
|
|
|
let res = await asyncRequest.invoicesave(modal);
|
|
|
if (res && res.code === 0) {
|
|
|
if (this.activeImg + 1 == this.length) {
|
|
|
- console.log('aaaaaaa');
|
|
|
+ console.log("aaaaaaa");
|
|
|
await this.invoicecheck();
|
|
|
// let model1 = {
|
|
|
// sid: this.id,
|
|
|
// payNo: this.payNo,
|
|
|
- // status: "6",
|
|
|
+ // status: "6",
|
|
|
// };
|
|
|
// let res = {};
|
|
|
// res = await asyncRequest.again(model1);
|
|
@@ -492,7 +502,7 @@ export default {
|
|
|
// this.$message.warning(res.message);
|
|
|
// }
|
|
|
} else {
|
|
|
- console.log('bbbbbb');
|
|
|
+ console.log("bbbbbb");
|
|
|
await this.carouselChange(++this.activeImg);
|
|
|
}
|
|
|
}
|
|
@@ -506,14 +516,14 @@ export default {
|
|
|
|
|
|
async invoicecheck() {
|
|
|
let res = await asyncRequest.invoicecheck({ sid: this.id, type: 2 });
|
|
|
- console.log('ccccccccc');
|
|
|
+ console.log("ccccccccc");
|
|
|
if (res && res.code === 0) {
|
|
|
const title = "发票结果校验成功!";
|
|
|
this.$notify.success({
|
|
|
title,
|
|
|
message: "",
|
|
|
});
|
|
|
- console.log('ddddddd');
|
|
|
+ console.log("ddddddd");
|
|
|
this.showModelThis = false;
|
|
|
// 刷新
|
|
|
this.$emit("refreshAll");
|