|
|
@@ -568,7 +568,7 @@
|
|
|
<el-col span="24">
|
|
|
<div style="text-align: right">
|
|
|
<el-button size="small" type="primary" :disabled="editSave" :loading="saveLoading" @click="retrievalfun">检 索</el-button>
|
|
|
- <el-button size="small" :disabled="queryData.length > 0" @click="ResetFilter">重置条件 </el-button>
|
|
|
+ <el-button size="small" :disabled="tableData.length > 0" @click="ResetFilter">重置条件 </el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -701,10 +701,10 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="开票明细" name="3">
|
|
|
<div style="margin-bottom: 10px;display: flex;">
|
|
|
- <el-button style="margin-left: 10px" :disabled="!form.id" size="small" type="primary" @click="addRow">新增</el-button>
|
|
|
+ <el-button style="margin-left: 10px" :disabled="!form.id||InvoicingList.filter(item=>item.invoiceStatus==1).length" size="small" type="primary" @click="addRow">新增</el-button>
|
|
|
<el-button
|
|
|
style="margin-left: 10px"
|
|
|
- :disabled="!form.id || invoicingCheckboxData.length == 0"
|
|
|
+ :disabled="!form.id"
|
|
|
size="small"
|
|
|
type="success"
|
|
|
@click="invoicingfun"
|
|
|
@@ -712,7 +712,7 @@
|
|
|
>
|
|
|
<el-button
|
|
|
style="margin-left: 10px"
|
|
|
- :disabled="!form.id || invoicingCheckboxData.length == 0"
|
|
|
+ :disabled="!form.id"
|
|
|
size="small"
|
|
|
type="danger"
|
|
|
@click="invoicingRevokefun"
|
|
|
@@ -822,7 +822,7 @@
|
|
|
|
|
|
<!--报表组件-->
|
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
|
- <cashier-item ref="cashier" @update="updateCashier" :disabled="form.status == 3"></cashier-item>
|
|
|
+ <cashier-item ref="cashier" @update="updateCashier"></cashier-item>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -1254,16 +1254,16 @@ export default {
|
|
|
},
|
|
|
// 确认开票信息
|
|
|
invoicingfun() {
|
|
|
- if (this.invoicingCheckboxData.length == 0) {
|
|
|
- this.$message.error("请选择数据");
|
|
|
- return;
|
|
|
- }
|
|
|
- for (let item of this.invoicingCheckboxData) {
|
|
|
+ // if (this.invoicingCheckboxData.length == 0) {
|
|
|
+ // this.$message.error("请选择数据");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ for (let item of this.InvoicingList) {
|
|
|
if (!item.id) {
|
|
|
return this.$message.error("请保存开票明细");
|
|
|
}
|
|
|
if (item.invoiceStatus == 1) {
|
|
|
- return this.$message.error("请选择未开开票明细");
|
|
|
+ return this.$message.error("开票明细已开票,请正确操作");
|
|
|
}
|
|
|
}
|
|
|
this.form.billNoFormat = "HYDZ";
|
|
|
@@ -1296,20 +1296,20 @@ export default {
|
|
|
},
|
|
|
// 撤销开票信息
|
|
|
invoicingRevokefun() {
|
|
|
- if (this.invoicingCheckboxData.length == 0) {
|
|
|
- this.$message.warning("请选择数据");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (this.invoicingCheckboxData.length == 0) {
|
|
|
- this.$message.error("请选择数据");
|
|
|
- return;
|
|
|
- }
|
|
|
- for (let item of this.invoicingCheckboxData) {
|
|
|
+ // if (this.invoicingCheckboxData.length == 0) {
|
|
|
+ // this.$message.warning("请选择数据");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // if (this.invoicingCheckboxData.length == 0) {
|
|
|
+ // this.$message.error("请选择数据");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ for (let item of this.InvoicingList) {
|
|
|
if (!item.id) {
|
|
|
return this.$message.error("请保存开票明细");
|
|
|
}
|
|
|
if (item.invoiceStatus == 0) {
|
|
|
- return this.$message.error("请选择已开开票明细");
|
|
|
+ return this.$message.error("开票明细未开票,请正确操作");
|
|
|
}
|
|
|
}
|
|
|
this.form.billNoFormat = "HYDZ";
|
|
|
@@ -1498,24 +1498,14 @@ export default {
|
|
|
Number(this.form.amountDrUsd) != Number(this.form.actualAmountDrUsd) ||
|
|
|
Number(this.form.amountCrUsd) != Number(this.form.actualAmountCrUsd)
|
|
|
) {
|
|
|
- this.$confirm("对账金额与实际金额不符是否完成?", {
|
|
|
+ this.$confirm("对账金额与实际金额不符是否确认对账?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
- }).then(() => {
|
|
|
- this.$confirm("确定进行确认完成操作?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.editCustomer(type);
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- this.editCustomer(type);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.pageLoading = false;
|
|
|
- this.saveLoading = false;
|
|
|
- });
|
|
|
- });
|
|
|
} else {
|
|
|
this.$confirm("确定进行确认完成操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -1525,10 +1515,6 @@ export default {
|
|
|
.then(() => {
|
|
|
this.editCustomer(type);
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
- this.pageLoading = false;
|
|
|
- this.saveLoading = false;
|
|
|
- });
|
|
|
}
|
|
|
});
|
|
|
},
|