|
@@ -8,7 +8,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户:" prop="customerName">
|
|
|
- <span>{{ form.customerName ? form.customerName : '京东' }}</span>
|
|
|
+ <span>{{ form.customerName ? form.customerName : "京东" }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
@@ -37,7 +37,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
|
<el-form-item label="订单总金额:" prop="amountMoney">
|
|
|
- {{ form.amountMoney }}
|
|
|
+ {{ getMoney(form.amountMoney) }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -95,6 +95,13 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ methods: {
|
|
|
+ getMoney(money) {
|
|
|
+ if (money && money !== -1) {
|
|
|
+ return money;
|
|
|
+ } else return "0.00";
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|