|
@@ -329,6 +329,18 @@
|
|
|
<el-form-item label="订单手机号" prop="userPhone" >
|
|
<el-form-item label="订单手机号" prop="userPhone" >
|
|
|
<el-input v-model="editForm.userPhone" placeholder="请输入手机号" style="width:200px"/>
|
|
<el-input v-model="editForm.userPhone" placeholder="请输入手机号" style="width:200px"/>
|
|
|
</el-form-item>
|
|
</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="mark" >
|
|
<el-form-item label="备注" prop="mark" >
|
|
|
<el-input v-model="editForm.mark" placeholder="请输入备注" />
|
|
<el-input v-model="editForm.mark" placeholder="请输入备注" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -591,6 +603,7 @@ export default {
|
|
|
orderVisit:null,
|
|
orderVisit:null,
|
|
|
mark:"",
|
|
mark:"",
|
|
|
userPhone:null,
|
|
userPhone:null,
|
|
|
|
|
+ offlinePayAmount: 0.00,
|
|
|
},
|
|
},
|
|
|
editRules: {
|
|
editRules: {
|
|
|
userPhone: [
|
|
userPhone: [
|
|
@@ -638,7 +651,11 @@ export default {
|
|
|
return this.$store.state.user.user;
|
|
return this.$store.state.user.user;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- methods: {
|
|
|
|
|
|
|
+ methods: {formatAmount() {
|
|
|
|
|
+ if (typeof this.editForm.offlinePayAmount === 'number') {
|
|
|
|
|
+ this.editForm.offlinePayAmount = parseFloat(this.editForm.offlinePayAmount.toFixed(2));
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
closeSms(){
|
|
closeSms(){
|
|
|
this.addSms.open=false;
|
|
this.addSms.open=false;
|
|
|
},
|
|
},
|
|
@@ -851,6 +868,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
editOrder(){
|
|
editOrder(){
|
|
|
this.edit.open=true;
|
|
this.edit.open=true;
|
|
|
|
|
+ this.editForm.offlinePayAmount=this.order.offlinePayAmount;
|
|
|
this.editForm.mark=this.order.mark
|
|
this.editForm.mark=this.order.mark
|
|
|
this.editForm.id=this.order.id;
|
|
this.editForm.id=this.order.id;
|
|
|
this.editForm.userPhone=null;
|
|
this.editForm.userPhone=null;
|