|
|
@@ -52,7 +52,7 @@
|
|
|
:datalist="corpData"
|
|
|
:selectValue="form.corpCnName"
|
|
|
:clearable="true"
|
|
|
- :disabled="editSave||tableData.length||InvoicingList.length"
|
|
|
+ :disabled="editSave || tableData.length || InvoicingList.length"
|
|
|
:filterable="true"
|
|
|
:remote="true"
|
|
|
:buttonIf="false"
|
|
|
@@ -1136,18 +1136,22 @@ export default {
|
|
|
},
|
|
|
// 开票明细单个删除
|
|
|
invoiceDeletionfun(id, index) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- if (id) {
|
|
|
- fininvoiceitemdetailRemove(id).then(res => {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.InvoicingList.splice(index, 1);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (id) {
|
|
|
+ this.$confirm("确定将选择数据删除?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ if (id) {
|
|
|
+ fininvoiceitemdetailRemove(id).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.InvoicingList.splice(index, 1);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.InvoicingList.splice(index, 1);
|
|
|
+ }
|
|
|
},
|
|
|
// 开票明细编辑完成保存
|
|
|
invoiceSavefun(row) {
|
|
|
@@ -1418,7 +1422,7 @@ export default {
|
|
|
},
|
|
|
allClick(name) {
|
|
|
if (name == "指示") {
|
|
|
- this.$refs.cashier.openDialog(this.form,this.tableData,'auto');
|
|
|
+ this.$refs.cashier.openDialog(this.form, this.tableData, "auto");
|
|
|
}
|
|
|
},
|
|
|
updateCashier() {
|