|
@@ -94,49 +94,49 @@
|
|
style="font-size: 14px; ">完善更多信息<text
|
|
style="font-size: 14px; ">完善更多信息<text
|
|
style="font-size: 10px; color: #AFB3BF;">(选填,可由客服人员代为完善)</text></text>
|
|
style="font-size: 10px; color: #AFB3BF;">(选填,可由客服人员代为完善)</text></text>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">水分(%)<= </text>
|
|
<text class="tit">水分(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
|
|
<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">容重(g/L)<= </text>
|
|
<text class="tit">容重(g/L)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
|
|
<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">热损伤(%)<= </text>
|
|
<text class="tit">热损伤(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
|
|
<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">杂质(%)<= </text>
|
|
<text class="tit">杂质(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
|
|
<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">霉变粒(%)<= </text>
|
|
<text class="tit">霉变粒(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
|
|
<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">不完整粒(%)<= </text>
|
|
<text class="tit">不完整粒(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
|
|
<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">蛋白(%)<= </text>
|
|
<text class="tit">蛋白(%)<= </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
|
|
<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">粒型 </text>
|
|
<text class="tit">粒型 </text>
|
|
<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
|
|
<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -144,7 +144,7 @@
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">品级 </text>
|
|
<text class="tit">品级 </text>
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -152,14 +152,14 @@
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">产地</text>
|
|
<text class="tit">产地</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<view @click='regionchange1'>{{region1}}</view>
|
|
<view @click='regionchange1'>{{region1}}</view>
|
|
<u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1"></u-picker>
|
|
<u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1"></u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">产出年份</text>
|
|
<text class="tit">产出年份</text>
|
|
<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
|
|
<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -167,7 +167,7 @@
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">包装方式</text>
|
|
<text class="tit">包装方式</text>
|
|
<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
|
|
<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -175,13 +175,13 @@
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked&&baoIndex==2||checked&&baoIndex==3' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked&&baoIndex==2||checked&&baoIndex==3' class="c-row b-b">
|
|
<text class="tit">袋装备注</text>
|
|
<text class="tit">袋装备注</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
|
|
<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='checked' class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
<text class="tit">运费承担方</text>
|
|
<text class="tit">运费承担方</text>
|
|
<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
|
|
<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -229,11 +229,11 @@
|
|
},
|
|
},
|
|
checked: true,
|
|
checked: true,
|
|
insertProcurementPlanInfo: {},
|
|
insertProcurementPlanInfo: {},
|
|
- liIndex: 0,
|
|
|
|
|
|
+ liIndex: -1,
|
|
liType: ['塔粮', '筛粮', '中粒', '大粒'],
|
|
liType: ['塔粮', '筛粮', '中粒', '大粒'],
|
|
- pinIndex: 0,
|
|
|
|
- pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
|
|
|
|
- nianIndex: 3,
|
|
|
|
|
|
+ pinIndex: -1,
|
|
|
|
+ pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
|
|
+ nianIndex: -1,
|
|
nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
|
|
nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
|
|
'2011'
|
|
'2011'
|
|
],
|
|
],
|
|
@@ -241,8 +241,9 @@
|
|
show1: false,
|
|
show1: false,
|
|
region: '请选择收货地区',
|
|
region: '请选择收货地区',
|
|
region1: '请选择产地',
|
|
region1: '请选择产地',
|
|
- baoIndex: 0,
|
|
|
|
- baoType: ['不限(默认)', '散装', '大袋', '小袋'],
|
|
|
|
|
|
+ region2:"",
|
|
|
|
+ baoIndex: -1,
|
|
|
|
+ baoType: ['散装', '大袋', '小袋'],
|
|
chengIndex: -1,
|
|
chengIndex: -1,
|
|
chengType: ['可议', '买方承担', '卖方承担'],
|
|
chengType: ['可议', '买方承担', '卖方承担'],
|
|
codestatus: false,
|
|
codestatus: false,
|
|
@@ -353,6 +354,7 @@
|
|
this.deptList.receiveCity = e.city.label
|
|
this.deptList.receiveCity = e.city.label
|
|
this.deptList.receiveArea = e.area.label
|
|
this.deptList.receiveArea = e.area.label
|
|
this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
|
|
this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
|
|
|
|
+ this.region2 = e.province.label + '-' + e.city.label + '-' + e.area.label
|
|
},
|
|
},
|
|
regionchange() {
|
|
regionchange() {
|
|
this.show = true
|
|
this.show = true
|
|
@@ -469,6 +471,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (!this.region2) {
|
|
|
|
+ this.$api.msg('收货地区不能为空')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!this.deptList.buyerPhone) {
|
|
if (!this.deptList.buyerPhone) {
|
|
this.$api.msg('买方手机号不能为空')
|
|
this.$api.msg('买方手机号不能为空')
|
|
return
|
|
return
|
|
@@ -554,10 +561,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // if(this.amendprice() == false){
|
|
|
|
- // this.$api.msg('验证码输入有误!')
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
this.insertProcurementPlanInfo = this.deptList
|
|
this.insertProcurementPlanInfo = this.deptList
|
|
this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
|
|
this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
|
|
this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
@@ -635,9 +638,9 @@
|
|
this.deptList.grade = this.pinType[this.pinIndex]
|
|
this.deptList.grade = this.pinType[this.pinIndex]
|
|
},
|
|
},
|
|
nianChange(e) {
|
|
nianChange(e) {
|
|
- this.nianIndex = e.detail.value
|
|
|
|
|
|
+ this.nianType = e.detail.value
|
|
this.niantypes = this.nianType[this.nianIndex];
|
|
this.niantypes = this.nianType[this.nianIndex];
|
|
- this.deptList.outputYear = this.baoType[this.baoIndex]
|
|
|
|
|
|
+ this.deptList.outputYear = this.nianType[this.nianType]
|
|
},
|
|
},
|
|
|
|
|
|
baoChange(e) {
|
|
baoChange(e) {
|