|
|
@@ -3,7 +3,7 @@
|
|
|
<div class="customer-head">
|
|
|
<div class="customer-back">
|
|
|
<el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left" @click="goBack()">返回列表 </el-button>
|
|
|
- <el-button v-if="form.id && pageIds.length" type="text" @click="lastPage">上一票</el-button>
|
|
|
+ <el-button v-if="form.id && pageIds.length" type="text" @click="lastPage">上一票</el-button>
|
|
|
<el-button v-if="form.id && pageIds.length" type="text" @click="nextPage">下一票</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
@@ -454,7 +454,7 @@
|
|
|
:controls="false"
|
|
|
placeholder="请输入 汇率"
|
|
|
size="small"
|
|
|
- :disabled="row.curCode==getLocalCurrency()"
|
|
|
+ :disabled="row.curCode == getLocalCurrency()"
|
|
|
style="width: 100%;"
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
@@ -684,7 +684,7 @@
|
|
|
:controls="false"
|
|
|
placeholder="请输入 汇率"
|
|
|
size="small"
|
|
|
- :disabled="row.curCode==getLocalCurrency()"
|
|
|
+ :disabled="row.curCode == getLocalCurrency()"
|
|
|
style="width: 100%;"
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.exrate }}</span>
|
|
|
@@ -1779,6 +1779,16 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ label: "财务日期",
|
|
|
+ prop: "billDate",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ cell: true,
|
|
|
+ type: "date",
|
|
|
+ format: "yyyy-MM-dd",
|
|
|
+ valueFormat: "yyyy-MM-dd"
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "类别",
|
|
|
prop: "billType",
|
|
|
width: 100,
|
|
|
@@ -2083,6 +2093,16 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ label: "财务日期",
|
|
|
+ prop: "billDate",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ cell: true,
|
|
|
+ type: "date",
|
|
|
+ format: "yyyy-MM-dd",
|
|
|
+ valueFormat: "yyyy-MM-dd"
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "类别",
|
|
|
prop: "billType",
|
|
|
width: 100,
|
|
|
@@ -3316,7 +3336,7 @@ export default {
|
|
|
}
|
|
|
if (name == "一键编辑") {
|
|
|
for (let row of this.form.tradingBoxItemsList) {
|
|
|
- if (row.whetherEnable != '是') {
|
|
|
+ if (row.whetherEnable != "是") {
|
|
|
this.$set(row, "$cellEdit", true);
|
|
|
}
|
|
|
}
|
|
|
@@ -3603,6 +3623,9 @@ export default {
|
|
|
if (row.stlPid && row.auditStatus != 0) {
|
|
|
return this.$message.error("已申请费用,不允许重复申请");
|
|
|
}
|
|
|
+ if (!row.billDate) {
|
|
|
+ return this.$message.error("请选择财务日期");
|
|
|
+ }
|
|
|
}
|
|
|
this.$confirm("确定申请费用?", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -3736,6 +3759,9 @@ export default {
|
|
|
if (row.stlPid && row.auditStatus != 0) {
|
|
|
return this.$message.error("已申请费用,不允许重复申请");
|
|
|
}
|
|
|
+ if (!row.billDate) {
|
|
|
+ return this.$message.error("请选择财务日期");
|
|
|
+ }
|
|
|
}
|
|
|
this.$confirm("确定申请费用?", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -4045,13 +4071,13 @@ export default {
|
|
|
},
|
|
|
rowStyle({ row, column, rowIndex }) {
|
|
|
//已结算金额
|
|
|
- if (Number(row.stlTtlAmount?row.stlTtlAmount:0) != 0) {
|
|
|
+ if (Number(row.stlTtlAmount ? row.stlTtlAmount : 0) != 0) {
|
|
|
return {
|
|
|
color: "#0000FF"
|
|
|
};
|
|
|
}
|
|
|
//发票金额和付费申请金额
|
|
|
- if (Number(row.appliedAmount?row.appliedAmount:0) != 0 || Number(row.appliedInvoiceAmount?row.appliedInvoiceAmount:0) != 0) {
|
|
|
+ if (Number(row.appliedAmount ? row.appliedAmount : 0) != 0 || Number(row.appliedInvoiceAmount ? row.appliedInvoiceAmount : 0) != 0) {
|
|
|
return {
|
|
|
color: "#FFC300"
|
|
|
};
|