修改验证价格问题

master
lemon橪 2021-09-06 17:19:17 +08:00
parent 49b1252a1f
commit 575e7b3297
1 changed files with 22 additions and 22 deletions

View File

@ -150,7 +150,7 @@
<template slot="goodsSlot" slot-scope="{row}">
<div style="margin-top: 5px; height: 80px; display: flex">
<div style="">
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px"/>
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px" />
</div>
<div style="margin-left: 13px">
@ -215,11 +215,11 @@
<span>修改金额</span>
</p>
<div>
<Form ref="modifyPriceForm" :model="modifyPriceForm" label-position="left" :label-width="100"
<Form ref="modifyPriceForm" :model="modifyPriceForm" label-position="left" :label-width="70"
:rules="modifyPriceValidate">
<FormItem label="订单金额" prop="price">
<Input v-model="modifyPriceForm.price" size="large" number maxlength="9"><span
slot="append"></span></Input>
<InputNumber style="width:100px;" v-model="modifyPriceForm.price" :min="0" :max="999999"></InputNumber>
<span class="ml_10"></span>
</FormItem>
</Form>
</div>
@ -263,11 +263,11 @@
<Input v-model="addressForm.consigneeMobile" size="large" maxlength="11"></Input>
</FormItem>
<FormItem label="地址信息" prop="consigneeAddressPath">
<Input v-model="addr" disabled style="width: 305px" v-if="showRegion == false"/>
<Input v-model="addr" disabled style="width: 305px" v-if="showRegion == false" />
<Button v-if="showRegion == false" @click="regionClick" :loading="submitLoading" type="primary"
icon="ios-create-outline" style="margin-left: 8px">修改
</Button>
<region style="width: 400px" @selected="selectedRegion" v-if="showRegion == true"/>
<region style="width: 400px" @selected="selectedRegion" v-if="showRegion == true" />
</FormItem>
<FormItem label="详细地址" prop="consigneeDetail">
<Input v-model="addressForm.consigneeDetail" size="large" maxlength="50"></Input>
@ -300,16 +300,16 @@
import * as API_Order from "@/api/order";
import * as RegExp from "@/libs/RegExp.js";
import region from "@/views/lili-components/region";
import vueQr from 'vue-qr'
import vueQr from "vue-qr";
export default {
name: "orderList",
components: {
region,
"vue-qr":vueQr
"vue-qr": vueQr,
},
data() {
return {
loading:false, //
loading: false, //
submitLoading: false, //
addr: "", //
regionId: [], //id
@ -348,7 +348,7 @@ export default {
//
modifyPriceValidate: {
reason: [
{required: true, message: "请输入大于0小于99999的合法金额"},
{ required: true, message: "请输入大于0小于99999的合法金额" },
{
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
message: "请输入大于0小于9999的合法金额",
@ -360,7 +360,7 @@ export default {
//
orderCancelValidate: {
reason: [
{required: true, message: "取消原因不能为空", trigger: "blur"},
{ required: true, message: "取消原因不能为空", trigger: "blur" },
],
},
addressModal: false, //
@ -374,18 +374,18 @@ export default {
},
orderDeliverFormValidate: {
logisticsNo: [
{required: true, message: "发货单号不能为空", trigger: "change"},
{ required: true, message: "发货单号不能为空", trigger: "change" },
],
logisticsId: [
{required: true, message: "请选择物流公司", trigger: "blur"},
{ required: true, message: "请选择物流公司", trigger: "blur" },
],
},
addressRule: {
consigneeName: [
{required: true, message: "收货人姓名不能为空", trigger: "blur"},
{ required: true, message: "收货人姓名不能为空", trigger: "blur" },
],
consigneeMobile: [
{required: true, message: "联系方式不能为空", trigger: "blur"},
{ required: true, message: "联系方式不能为空", trigger: "blur" },
{
pattern: RegExp.mobile,
trigger: "blur",
@ -393,7 +393,7 @@ export default {
},
],
consigneeDetail: [
{required: true, message: "详细地址不能为空", trigger: "blur"},
{ required: true, message: "详细地址不能为空", trigger: "blur" },
],
},