订单修复

dev_2022-03-03
yujialong 3 years ago
parent c163740f43
commit 085754efac
  1. 8
      src/views/order/AddOrder.vue

@ -179,7 +179,7 @@
<el-table-column label="成交价" align="center" min-width="80">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.finalPrice&&whetherSubmit?'red':''"
<el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''"
:disabled="viewDisabled"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
@change="[allAmount($event,scope.row),calculateDiscount($event,scope.row)]"
@ -317,7 +317,7 @@
<el-table-column label="成交价" align="center" min-width="120">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.finalPrice&&whetherSubmit?'red':''"
<el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''"
:disabled="viewDisabled"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
@change="[dealComputers($event,scope.row),calculateDiscount($event,scope.row),userAmount($event,scope.row)]"
@ -353,7 +353,7 @@
<el-table-column label="总金额(元)" align="center" min-width="100">
<template slot-scope="scope">
<div class="small">
<el-input :class="!scope.row.totalAmount&&whetherSubmit?'red':''"
<el-input :class="scope.row.totalAmount === '' && whetherSubmit?'red':''"
:disabled="viewDisabled||editDisabled"
@blur="[allAmount($event,scope.row),allAmountChange($event,scope.row),calculateDiscount($event,scope.row)]"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
@ -917,7 +917,7 @@ export default {
if (this.dataPlatformPermissions.length) {
let dataVerify =
this.dataPlatformPermissions.some(e => {
if (!e.periodOfUse || !e.finalPrice || !e.accountNum || !e.totalAmount) {
if (!e.periodOfUse || e.finalPrice === '' || !e.accountNum || e.totalAmount === '') {
return false;
} else {
return true;

Loading…
Cancel
Save