修改验证价格问题

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