|
@@ -101,6 +101,16 @@
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip effect="dark" content="删除" placement="top">
|
|
|
+ <i
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
+ @click="deleteRow(scope.$index, examForm.item_list)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="padding-top: 18px">
|
|
@@ -268,6 +278,22 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ deleteRow(index, rows) {
|
|
|
+ rows.splice(index, 1);
|
|
|
+ this.$set(rows, index, rows[index]);
|
|
|
+ // if (type === 1) {
|
|
|
+ // this.invTableData.forEach((v1, i) => {
|
|
|
+ // this.claimForm.invid += i === 0 ? v1.id : `,${v1.id}`;
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.refundData.forEach((v4, i4) => {
|
|
|
+ // this.claimForm.invid += i4 === 0 ? v4.refundNo : `,${v4.refundNo}`;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+
|
|
|
+ // this.$refs.claimForm.validateField("invid");
|
|
|
+ },
|
|
|
async getData() {
|
|
|
console.log(this.companyNo);
|
|
|
const res = await asyncRequest.companydetail({
|
|
@@ -442,7 +468,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
async invoicecheck() {
|
|
|
- let res = await asyncRequest.invoicecheck({ sid: this.id ,type:2});
|
|
|
+ let res = await asyncRequest.invoicecheck({ sid: this.id, type: 2 });
|
|
|
if (res && res.code === 0) {
|
|
|
const title = "发票结果校验成功!";
|
|
|
this.$notify.success({
|