|
@@ -33,7 +33,7 @@
|
|
|
<view class="row">
|
|
|
<view class="label">商品品牌</view>
|
|
|
<view class="select spacing" @click="hanldOperationConfim">
|
|
|
- <view class="placeholder">{{brandname}}</view>
|
|
|
+ <view class="placeholder":style="brandname=='请选择品牌名称'?'':'color:#333333'">{{brandname}}</view>
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
<!-- 品牌弹窗 -->
|
|
@@ -99,13 +99,13 @@
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label">市场价</view>
|
|
|
<view class="spacing">
|
|
|
- <input type="text" v-model="secondParams.normalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入市场价" placeholder-class="placeholder">
|
|
|
+ <input type="text" v-model="secondParams.normalPrice" maxlength="30" placeholder="请输入市场价" placeholder-class="placeholder">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
|
<view class="label second">采购价/原价</view>
|
|
|
<view class="spacing second">
|
|
|
- <input type="text" v-model="secondParams.originalPrice" maxlength="30" oninput="value=value.replace(/[^\d]/g, '')" placeholder="请输入采购价/原价" placeholder-class="placeholder"/>
|
|
|
+ <input type="text" v-model="secondParams.originalPrice" maxlength="30" placeholder="请输入采购价/原价" placeholder-class="placeholder"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row" v-show="secondParams.secondHandType==2">
|
|
@@ -225,6 +225,7 @@
|
|
|
import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord'
|
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
+ import $reg from '@/common/config/common.js'
|
|
|
import { mapState,mapMutations } from 'vuex';
|
|
|
export default{
|
|
|
name:'secondHandrelease',
|
|
@@ -301,6 +302,7 @@
|
|
|
this.BrandList.forEach((item,index)=>{
|
|
|
if(item.id==this.secondParams.brandID){
|
|
|
this.brandname = item.name;
|
|
|
+ this.popupShow = false;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -314,7 +316,6 @@
|
|
|
this.addressData.cityID = e.cityCode;
|
|
|
this.addressData.provinceID = e.provinceCode;
|
|
|
this.secondParams.townId = this.addressData.townID;
|
|
|
- this.secondParams.address = this.addressData.address;
|
|
|
},
|
|
|
hanldOperationConfim(){
|
|
|
this.popupShow = true;
|
|
@@ -374,29 +375,32 @@
|
|
|
return
|
|
|
}
|
|
|
if(this.secondParams.secondHandType ==2) {
|
|
|
- if (this.secondParams.normalPrice == '') {
|
|
|
- this.$util.msg('请输入市场价',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.secondParams.maturityYears == '') {
|
|
|
+ if (this.secondParams.maturityYears=='') {
|
|
|
this.$util.msg('请输入产品到期日',2000);
|
|
|
return
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
- if(this.secondParams.price1 == ''){
|
|
|
- this.$util.msg('请输入交易价',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.secondHandType ==2){
|
|
|
- if(this.secondParams.originalPrice == ''){
|
|
|
- this.$util.msg('请输入采购价/原价',2000);
|
|
|
+ if(!this.$api.isNumber(this.secondParams.price1)){
|
|
|
+ this.$util.msg('请输入交易价',2000);
|
|
|
return
|
|
|
- }
|
|
|
- if(this.secondParams.stock == ''){
|
|
|
- this.$util.msg('请输入数量',2000);
|
|
|
- return
|
|
|
- }
|
|
|
}
|
|
|
+ if(this.secondParams.secondHandType ==2) {
|
|
|
+ if (!this.$api.isNumber(this.secondParams.normalPrice)) {
|
|
|
+ this.$util.msg('请输入市场价',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.$api.isNumber(this.secondParams.originalPrice)){
|
|
|
+ this.$util.msg('请输入采购价/原价',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.$api.isNumber(this.secondParams.stock)){
|
|
|
+ this.$util.msg('请输入数量',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // if(this.secondParams.secondHandType ==2){
|
|
|
+
|
|
|
+ // }
|
|
|
if(this.secondParams.productQuality == ''){
|
|
|
this.$util.msg('请输入商品成色',2000);
|
|
|
return
|
|
@@ -410,7 +414,7 @@
|
|
|
this.$util.msg('请输入联系方式',2000);
|
|
|
return
|
|
|
}
|
|
|
- if(this.secondParams.contactMobile.length !=11){
|
|
|
+ if(!$reg.isMobile(this.secondParams.contactMobile)){
|
|
|
this.$util.msg('联系方式格式不正确',2000);
|
|
|
return
|
|
|
}
|
|
@@ -605,7 +609,7 @@
|
|
|
.textarea-wrapper {
|
|
|
letter-spacing: 2rpx;
|
|
|
line-height: 48rpx;
|
|
|
- color: #b2b2b2;
|
|
|
+ color: #333333;
|
|
|
position: relative;
|
|
|
font-size: 28rpx;
|
|
|
border: 2rpx solid #b2b2b2;
|