|
@@ -33,7 +33,7 @@
|
|
|
<view class="row">
|
|
|
<view class="label">商品品牌</view>
|
|
|
<view class="select spacing" @click="hanldOperationConfim">
|
|
|
- <view class="placeholder":style="brandname=='请选择品牌名称'?'':'color:#333333'">{{brandname}}</view>
|
|
|
+ <view class="placeholder" :style="brandname=='请选择品牌名称'?'':'color:#333333'">{{brandname}}</view>
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
<!-- 品牌弹窗 -->
|
|
@@ -92,9 +92,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="margin-top: 15rpx;">
|
|
|
- <label @click="Detailed($event)" v-model="secondParams.detailTalkFlags" class="iconfont xiangliao"
|
|
|
- :class="vShow_detailTalkFlag?'icon-jiagexiangliao':'icon-juxingweigouxuan'" >
|
|
|
- <label class='pricecolor' >价格详聊</label>
|
|
|
+ <label v-model="secondParams.detailTalkFlags" class="iconfont xiangliao"
|
|
|
+ :class="vShow_detailTalkFlag ? 'icon-jiagexiangliao':'icon-juxingweigouxuan'" @click="Detailed($event)">
|
|
|
+ <label class='pricecolor' >价格详聊</label>
|
|
|
</label>
|
|
|
<label class="showflag" v-show="vShow_detailTalkFlag">(勾选代表同意不显示交易价)</label>
|
|
|
</view>
|
|
@@ -370,79 +370,79 @@
|
|
|
submitBtn () {
|
|
|
if(this.secondParams.secondHandType == ''){
|
|
|
this.$util.msg('请选择分类',2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(this.secondParams.secondHandType == 1 ){
|
|
|
+ if(this.secondParams.instrumentType ==''){
|
|
|
+ this.$util.msg('请完善仪器分类',2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(this.secondParams.secondHandType == 1 ){
|
|
|
- if(this.secondParams.instrumentType ==''){
|
|
|
- this.$util.msg('请完善仪器分类',2000);
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- if(this.secondParams.brandID == ''){
|
|
|
- this.$util.msg('请选择商品品牌',2000);
|
|
|
- return;
|
|
|
- }
|
|
|
- if(this.secondParams.name == ''){
|
|
|
- this.$util.msg('请输入商品名称',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.secondHandType ==2) {
|
|
|
- if (this.secondParams.maturityYears=='') {
|
|
|
- this.$util.msg('请输入产品到期日',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if(!this.$api.isNumber(this.secondParams.price1)){
|
|
|
- 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.productQuality == ''){
|
|
|
- this.$util.msg('请输入商品成色',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.contactName == ''){
|
|
|
- this.$util.msg('请输入联系人姓名',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.contactMobile == ''){
|
|
|
- console.log(this.secondParams.contactMobile)
|
|
|
- this.$util.msg('请输入联系方式',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(!$reg.isMobile(this.secondParams.contactMobile)){
|
|
|
- this.$util.msg('联系方式格式不正确',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
|
|
|
- this.$util.msg('请完善联系地址',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.secondParams.address == ''){
|
|
|
- this.$util.msg('请填写详细地址',2000);
|
|
|
- return
|
|
|
- }
|
|
|
- if(this.GoodsImagesList ==''){
|
|
|
- this.$util.msg('请上传图片',2000);
|
|
|
- return;
|
|
|
- }
|
|
|
- if(this.checkbox==false){
|
|
|
- this.$util.msg('请勾选已阅读',2000);
|
|
|
- return
|
|
|
- }
|
|
|
+ }
|
|
|
+ if(this.secondParams.brandID == ''){
|
|
|
+ this.$util.msg('请选择商品品牌',2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(this.secondParams.name == ''){
|
|
|
+ this.$util.msg('请输入商品名称',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // if(this.secondParams.secondHandType ==2) {
|
|
|
+ // if (this.secondParams.maturityYears=='') {
|
|
|
+ // this.$util.msg('请输入产品到期日',2000);
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ if(!this.$api.isNumber(this.secondParams.price1)){
|
|
|
+ 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.productQuality == ''){
|
|
|
+ this.$util.msg('请输入商品成色',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.secondParams.contactName == ''){
|
|
|
+ this.$util.msg('请输入联系人姓名',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.secondParams.contactMobile == ''){
|
|
|
+ console.log(this.secondParams.contactMobile)
|
|
|
+ this.$util.msg('请输入联系方式',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!$reg.isMobile(this.secondParams.contactMobile)){
|
|
|
+ this.$util.msg('联系方式格式不正确',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.secondParams.townId == ''|| this.secondParams.townId == undefined){
|
|
|
+ this.$util.msg('请完善联系地址',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.secondParams.address == ''){
|
|
|
+ this.$util.msg('请填写详细地址',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.GoodsImagesList ==''){
|
|
|
+ this.$util.msg('请上传图片',2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(this.checkbox==false){
|
|
|
+ this.$util.msg('请勾选已阅读',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
console.log(this.secondParams)
|
|
|
this.SecondService.SecondHandProduct(this.secondParams).then(res=>{ //提交发布
|
|
|
this.vShow_secondBj = true;
|