|
@@ -66,66 +66,64 @@
|
|
<view class="c-row b-b">
|
|
<view 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.buyerPhone"></input>
|
|
|
|
|
|
+ <input placeholder="请输入买方手机号" @input='phoneinput' name="input" v-model="deptList.buyerPhone"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view style='width:100%;position:relative;padding:10px;' class="flex">
|
|
|
|
|
|
+ <view class="c-row">
|
|
<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
class='getcode'>{{sendText}}</button>
|
|
class='getcode'>{{sendText}}</button>
|
|
- <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
<input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="area">
|
|
<view class="area">
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
<checkbox style='transform: scale(0.8);' :checked="checked" @click='checkedbox'></checkbox><text style="font-size: 14px; ">完善更多信息<text style="font-size: 10px; color: #AFB3BF;">(选填,可由客服人员代为完善)</text></text>
|
|
<checkbox style='transform: scale(0.8);' :checked="checked" @click='checkedbox'></checkbox><text style="font-size: 14px; ">完善更多信息<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">
|
|
@@ -133,7 +131,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" v-model="deptList.grade">
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list" v-model="deptList.grade">
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
@@ -141,22 +139,22 @@
|
|
</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">
|
|
|
|
- <view class="con-list">
|
|
|
|
- {{nianIndex>-1?nianType[nianIndex]:'请选择产出年份'}}
|
|
|
|
- </view>
|
|
|
|
- </picker>
|
|
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view @click='yearchange'>{{deptList.outputYear == null?"请选择出厂年份":deptList.outputYear}}</view>
|
|
|
|
+ <u-picker :params='params2' @confirm='yearpicker($event)' v-model="show2" mode="time" :start-year="startData" :end-year="endData">
|
|
|
|
+ </u-picker>
|
|
|
|
+ </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="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">
|
|
@@ -164,13 +162,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!=0' 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">
|
|
|
|
|
|
+ <view v-if='checked' class="c-row">
|
|
<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">
|
|
@@ -232,20 +230,32 @@
|
|
sendText:'获取验证码',
|
|
sendText:'获取验证码',
|
|
show:false,
|
|
show:false,
|
|
show1:false,
|
|
show1:false,
|
|
|
|
+ show2:false,
|
|
region:'请选择收货地区',
|
|
region:'请选择收货地区',
|
|
region1:'请选择产地',
|
|
region1:'请选择产地',
|
|
baoIndex: -1,
|
|
baoIndex: -1,
|
|
baoType: ['散装', '大袋', '小袋'],
|
|
baoType: ['散装', '大袋', '小袋'],
|
|
chengIndex: -1,
|
|
chengIndex: -1,
|
|
chengType: ['可议', '买方承担', '卖方承担'],
|
|
chengType: ['可议', '买方承担', '卖方承担'],
|
|
- codestatus: false,
|
|
|
|
|
|
+ codestatus: true,
|
|
sendDisabled: false,
|
|
sendDisabled: false,
|
|
sendText: '获取验证码',
|
|
sendText: '获取验证码',
|
|
verifyCode:"",
|
|
verifyCode:"",
|
|
|
|
+ params2: {
|
|
|
|
+ year: true,
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['hasLogin','userInfo'])
|
|
|
|
|
|
+ ...mapState(['hasLogin','userInfo']),
|
|
|
|
+ startData(){
|
|
|
|
+ var data = new Date()
|
|
|
|
+ return data.getFullYear() - 30
|
|
|
|
+ },
|
|
|
|
+ endData(){
|
|
|
|
+ var data = new Date()
|
|
|
|
+ return data.getFullYear()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onLoad(options){
|
|
onLoad(options){
|
|
this.id=options.id
|
|
this.id=options.id
|
|
@@ -268,6 +278,11 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ phoneinput(e){
|
|
|
|
+ if(e.detail.value.length==11){
|
|
|
|
+ this.codestatus=true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getList(){
|
|
getList(){
|
|
this.$api.doRequest('get','/procurementPlanInfo/getProcurementPlan',{id:this.id}).then(res => {
|
|
this.$api.doRequest('get','/procurementPlanInfo/getProcurementPlan',{id:this.id}).then(res => {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
@@ -281,7 +296,9 @@
|
|
}
|
|
}
|
|
let number = this.deptList.basisPrice
|
|
let number = this.deptList.basisPrice
|
|
this.deptList.basisPrice = Math.abs(number)
|
|
this.deptList.basisPrice = Math.abs(number)
|
|
- this.region1=this.deptList.outputPrivate+'-'+this.deptList.outputCity
|
|
|
|
|
|
+ if(this.deptList.outputPrivate&&this.deptList.outputCity){
|
|
|
|
+ this.region1=this.deptList.outputPrivate+'-'+this.deptList.outputCity
|
|
|
|
+ }
|
|
this.region=this.deptList.receivePrivate+'-'+this.deptList.receiveCity+'-'+this.deptList.receiveArea
|
|
this.region=this.deptList.receivePrivate+'-'+this.deptList.receiveCity+'-'+this.deptList.receiveArea
|
|
if(this.deptList.procurementPlanTypeKey==2){
|
|
if(this.deptList.procurementPlanTypeKey==2){
|
|
this.typesIndex=1
|
|
this.typesIndex=1
|
|
@@ -308,6 +325,17 @@
|
|
})
|
|
})
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ yearpicker(e) {
|
|
|
|
+ if(e!=null){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
|
|
+ this.deptList.outputYear = e.year
|
|
|
|
+ },
|
|
|
|
+ yearchange() {
|
|
|
|
+ this.show2 = true
|
|
|
|
+ },
|
|
getcode(){
|
|
getcode(){
|
|
var that = this
|
|
var that = this
|
|
if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.deptList.buyerPhone)){
|
|
if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.deptList.buyerPhone)){
|
|
@@ -693,12 +721,14 @@
|
|
-webkit-box-direction: normal;
|
|
-webkit-box-direction: normal;
|
|
-webkit-flex-direction: column;
|
|
-webkit-flex-direction: column;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
- color: #AFB3BF;
|
|
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
text-align: right;
|
|
text-align: right;
|
|
padding-right: 20rpx;
|
|
padding-right: 20rpx;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
+ .con-list input{
|
|
|
|
+ font-size:14px !important;
|
|
|
|
+ }
|
|
.area{
|
|
.area{
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
@@ -712,9 +742,6 @@
|
|
}
|
|
}
|
|
.getcode {
|
|
.getcode {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- transform: translateY(-50%);
|
|
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
background: #F5F6F9;
|
|
background: #F5F6F9;
|
|
height: 30px;
|
|
height: 30px;
|