|
|
@@ -112,7 +112,7 @@
|
|
|
<script>
|
|
|
import { MktSlotQuotation, quotationImportBatch } from "@/api/iosBasicData/bills";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
-import { getListAllDetail, submit, remove, applyCashier, revokeCashier,submitList } from "@/api/iosBasicData/cashier.js";
|
|
|
+import { getListAllDetail, submit, remove, applyCashier, revokeCashier, submitList } from "@/api/iosBasicData/cashier.js";
|
|
|
import { bcurrencyGetExrate } from "@/api/iosBasicData/rateManagement";
|
|
|
export default {
|
|
|
props: {
|
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
taxRate: 0,
|
|
|
amountTax: Number(Number(amountDr ? amountDr : 0)).toFixed(2),
|
|
|
amountNet: 0,
|
|
|
- applyCashierAmount:0
|
|
|
+ applyCashierAmount: 0
|
|
|
});
|
|
|
}
|
|
|
if (amountDrUsd > 0 && item.code == "USD") {
|
|
|
@@ -328,7 +328,7 @@ export default {
|
|
|
taxRate: 0,
|
|
|
amountTax: Number(Number(amountDrUsd ? amountDrUsd : 0) * Number(item.exrate ? item.exrate : 0)).toFixed(2),
|
|
|
amountNet: 0,
|
|
|
- applyCashierAmount:0
|
|
|
+ applyCashierAmount: 0
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -352,7 +352,7 @@ export default {
|
|
|
taxRate: 0,
|
|
|
amountTax: Number(Number(amountCr ? amountCr : 0)).toFixed(2),
|
|
|
amountNet: 0,
|
|
|
- applyCashierAmount:0
|
|
|
+ applyCashierAmount: 0
|
|
|
});
|
|
|
}
|
|
|
if (amountCrUsd > 0 && item.code == "USD") {
|
|
|
@@ -366,14 +366,14 @@ export default {
|
|
|
taxRate: 0,
|
|
|
amountTax: Number(Number(amountCrUsd ? amountCrUsd : 0) * Number(item.exrate ? item.exrate : 0)).toFixed(2),
|
|
|
amountNet: 0,
|
|
|
- applyCashierAmount:0
|
|
|
+ applyCashierAmount: 0
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
if (this.data.length) {
|
|
|
- const res = await submitList(this.data);
|
|
|
- this.data=res.data.data
|
|
|
+ const res = await submitList(this.data);
|
|
|
+ this.data = res.data.data;
|
|
|
}
|
|
|
},
|
|
|
rowEdit(row) {
|
|
|
@@ -429,25 +429,19 @@ export default {
|
|
|
return this.$message.error("请保存数据");
|
|
|
}
|
|
|
}
|
|
|
- this.$confirm("是否申请" + (this.form.dc == "D" ? "收费?" : "付费?"), "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: "加载中",
|
|
|
- spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
- });
|
|
|
- applyCashier({ id: this.form.id })
|
|
|
- .then(res => {
|
|
|
- this.$emit("update");
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
+ applyCashier({ id: this.form.id })
|
|
|
+ .then(res => {
|
|
|
+ this.$emit("update");
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
}
|
|
|
if (name == "撤销申请出纳") {
|
|
|
for (let item of this.data) {
|
|
|
@@ -556,7 +550,7 @@ export default {
|
|
|
addRow() {
|
|
|
this.data.push({ $cellEdit: true, srcId: this.form.id, dc: this.form.dc, taxRate: 0 });
|
|
|
},
|
|
|
- openDialog(row, dataList,type) {
|
|
|
+ openDialog(row, dataList, type) {
|
|
|
this.dialogVisible = true;
|
|
|
this.form = row;
|
|
|
let obj = {
|
|
|
@@ -565,7 +559,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
getListAllDetail(obj)
|
|
|
.then(res => {
|
|
|
- if (row.cashierStatus == 0&&type=='auto') {
|
|
|
+ if (row.cashierStatus == 0 && type == "auto") {
|
|
|
this.oneClickGeneration(row, res.data.data, dataList);
|
|
|
}
|
|
|
this.data = res.data.data;
|