|
|
@@ -379,6 +379,18 @@
|
|
|
</el-form-item>-->
|
|
|
<el-form-item label="订单手机号" prop="userPhone" >
|
|
|
<el-input v-model="editForm.userPhone" placeholder="请输入手机号" style="width:200px"/>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- 线下支付金额 -->
|
|
|
+ <el-form-item label="线下支付金额" prop="offlinePayAmount" >
|
|
|
+ <el-input
|
|
|
+ v-model.number="editForm.offlinePayAmount"
|
|
|
+ type="number"
|
|
|
+ step="0.01"
|
|
|
+ placeholder="请输入"
|
|
|
+ :min="0"
|
|
|
+ @blur="formatAmount"
|
|
|
+ style="width:200px"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="详情地址" prop="userAddress" >
|
|
|
<el-input v-model="editForm.userAddress" placeholder="请输入" />
|
|
|
@@ -539,6 +551,7 @@ export default {
|
|
|
scheduleId:null,
|
|
|
mark:"",
|
|
|
userPhone:null,
|
|
|
+ offlinePayAmount: 0.00,
|
|
|
},
|
|
|
|
|
|
editDyRules:{
|
|
|
@@ -600,6 +613,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ formatAmount() {
|
|
|
+ if (typeof this.editForm.offlinePayAmount === 'number') {
|
|
|
+ this.editForm.offlinePayAmount = parseFloat(this.editForm.offlinePayAmount.toFixed(2));
|
|
|
+ }
|
|
|
+ },
|
|
|
handleAddress(){
|
|
|
const id = this.order.id;
|
|
|
getStoreOrderAddress(id).then(response =>{
|
|
|
@@ -796,6 +814,7 @@ export default {
|
|
|
editOrder(){
|
|
|
this.edit.open=true;
|
|
|
this.editForm.userPhone=null;
|
|
|
+ this.editForm.offlinePayAmount=this.order.offlinePayAmount;
|
|
|
this.editForm.id=this.order.id;
|
|
|
this.editForm.mark=this.order.mark
|
|
|
this.editForm.orderType=this.order.orderType.toString();
|