|
@@ -68,7 +68,7 @@
|
|
<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 class="c-row ">
|
|
<!-- <view class="c-row ">
|
|
@@ -78,62 +78,60 @@
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
|
|
|
|
- <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
|
|
|
|
|
|
+ <view class="c-row b-b">
|
|
<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="buylow">
|
|
<view class="buylow">
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
- <checkbox style='transform: scale(0.8);' :checked="checked" @click='checkedbox'></checkbox><text
|
|
|
|
|
|
+ <checkbox style='transform: scale(0.8);' :disabled="morestatus" :checked="checked" @click='checkedbox'></checkbox><text
|
|
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 @input='moreinput' 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 @input='moreinput' 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 @input='moreinput' 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 @input='moreinput' 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 @input='moreinput' 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 @input='moreinput' 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 @input='moreinput' 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">
|
|
@@ -166,6 +164,9 @@
|
|
{{nianIndex>-1?nianType[nianIndex]:'请选择产出年份'}}
|
|
{{nianIndex>-1?nianType[nianIndex]:'请选择产出年份'}}
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
|
|
+ <!-- <view @click='yearchange'>{{year[index] == null?"请选择出厂年份":year[index]}}</view>
|
|
|
|
+ <u-picker :params='params' @confirm='yearpicker($event,index)' v-model="show1" mode="time" :start-year="startData" :end-year="endData">
|
|
|
|
+ </u-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>
|
|
@@ -178,7 +179,7 @@
|
|
<view v-if='checked&&baoIndex!=0' 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 @input='moreinput' 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">
|
|
@@ -251,6 +252,7 @@
|
|
sendText: '获取验证码',
|
|
sendText: '获取验证码',
|
|
verifyCode:"",
|
|
verifyCode:"",
|
|
verification:true,
|
|
verification:true,
|
|
|
|
+ morestatus:false
|
|
// DriverViewInfo:{},
|
|
// DriverViewInfo:{},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -279,6 +281,19 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ phoneinput(e){
|
|
|
|
+ if(e.detail.value.length==11){
|
|
|
|
+ this.codestatus=true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ moreinput(e){
|
|
|
|
+ if(e.detail.value.length>0){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
// async amendprice() {
|
|
// async amendprice() {
|
|
// var that = this
|
|
// var that = this
|
|
// this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
// this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
@@ -370,6 +385,9 @@
|
|
checkedbox(e) {
|
|
checkedbox(e) {
|
|
this.checked = !this.checked
|
|
this.checked = !this.checked
|
|
},
|
|
},
|
|
|
|
+ yearchange() {
|
|
|
|
+ this.show1 = true
|
|
|
|
+ },
|
|
typeChange(e) {
|
|
typeChange(e) {
|
|
this.typesIndex = e.detail.value
|
|
this.typesIndex = e.detail.value
|
|
this.types = this.typesType[this.typesIndex];
|
|
this.types = this.typesType[this.typesIndex];
|
|
@@ -384,7 +402,7 @@
|
|
},
|
|
},
|
|
navToDetailPage() {
|
|
navToDetailPage() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pageD/myRelease/Identity_switching`
|
|
|
|
|
|
+ url: `/pageD/myRelease/Identity_switching?status=1`
|
|
})
|
|
})
|
|
},
|
|
},
|
|
commit() {
|
|
commit() {
|
|
@@ -567,83 +585,110 @@
|
|
this.insertProcurementPlanInfo.procurementPlanNo='CGJH'+this.getdate()+this.verifyinit()
|
|
this.insertProcurementPlanInfo.procurementPlanNo='CGJH'+this.getdate()+this.verifyinit()
|
|
this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
var that = this
|
|
var that = this
|
|
- this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
|
- phone: this.deptList.buyerPhone,
|
|
|
|
- verifyCode: this.verifyCode
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- that.$api.doRequest('post', '/procurementPlanInfo/api/insertProcurementPlanInfo', that
|
|
|
|
- .insertProcurementPlanInfo).then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "发布成功",
|
|
|
|
- icon: 'none',
|
|
|
|
- })
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // uni.navigateBack({})
|
|
|
|
- // }, 1000)
|
|
|
|
- that.deptList = {}
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/release/release`
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确定发布交易信息?',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
|
+ phone: this.deptList.buyerPhone,
|
|
|
|
+ verifyCode: this.verifyCode
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.$api.doRequest('post', '/procurementPlanInfo/api/insertProcurementPlanInfo', that.insertProcurementPlanInfo).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "发布成功",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ })
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // uni.navigateBack({})
|
|
|
|
+ // }, 1000)
|
|
|
|
+ that.deptList = {}
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/release/release`
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: res.data.message,
|
|
|
|
|
|
+ title: res.errmsg,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- }
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else if(res.data.code=='11003'){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '验证码不正确',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: res.errmsg,
|
|
|
|
|
|
+ title: res.data.message,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- });
|
|
|
|
- }
|
|
|
|
- else if(res.data.code=='11003'){
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '验证码不正确',
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.data.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+
|
|
}
|
|
}
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.data.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
|
|
+ }});
|
|
},
|
|
},
|
|
liChange(e) {
|
|
liChange(e) {
|
|
|
|
+ if(e.detail.value!=-1){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
this.liIndex = e.detail.value
|
|
this.liIndex = e.detail.value
|
|
this.litypes = this.liType[this.liIndex];
|
|
this.litypes = this.liType[this.liIndex];
|
|
this.deptList.grainKey = e.detail.value + 1
|
|
this.deptList.grainKey = e.detail.value + 1
|
|
this.deptList.grain = this.liType[this.liIndex]
|
|
this.deptList.grain = this.liType[this.liIndex]
|
|
},
|
|
},
|
|
pinChange(e) {
|
|
pinChange(e) {
|
|
|
|
+ if(e.detail.value!=-1){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
this.pinIndex = e.detail.value
|
|
this.pinIndex = e.detail.value
|
|
this.pintypes = this.pinType[this.pinIndex];
|
|
this.pintypes = this.pinType[this.pinIndex];
|
|
this.deptList.gradeKey = e.detail.value
|
|
this.deptList.gradeKey = e.detail.value
|
|
this.deptList.grade = this.pinType[this.pinIndex]
|
|
this.deptList.grade = this.pinType[this.pinIndex]
|
|
},
|
|
},
|
|
nianChange(e) {
|
|
nianChange(e) {
|
|
|
|
+ if(e.detail.value!=-1){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
this.nianType = e.detail.value
|
|
this.nianType = e.detail.value
|
|
this.niantypes = this.nianType[this.nianIndex];
|
|
this.niantypes = this.nianType[this.nianIndex];
|
|
this.deptList.outputYear = this.nianType[this.nianType]
|
|
this.deptList.outputYear = this.nianType[this.nianType]
|
|
},
|
|
},
|
|
|
|
|
|
baoChange(e) {
|
|
baoChange(e) {
|
|
|
|
+ if(e.detail.value!=-1){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
this.baoIndex = e.detail.value
|
|
this.baoIndex = e.detail.value
|
|
this.baotypes = this.baoType[this.baoIndex];
|
|
this.baotypes = this.baoType[this.baoIndex];
|
|
this.deptList.packingTypeKey = e.detail.value
|
|
this.deptList.packingTypeKey = e.detail.value
|
|
@@ -677,6 +722,11 @@
|
|
return arr.join('')
|
|
return arr.join('')
|
|
},
|
|
},
|
|
chengChange(e) {
|
|
chengChange(e) {
|
|
|
|
+ if(e.detail.value!=-1){
|
|
|
|
+ this.morestatus=true
|
|
|
|
+ }else{
|
|
|
|
+ this.morestatus=false
|
|
|
|
+ }
|
|
this.chengIndex = e.detail.value
|
|
this.chengIndex = e.detail.value
|
|
this.chengtypes = this.chengType[this.chengIndex];
|
|
this.chengtypes = this.chengType[this.chengIndex];
|
|
this.deptList.freightPayerKey = e.detail.value + 1
|
|
this.deptList.freightPayerKey = e.detail.value + 1
|
|
@@ -714,13 +764,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;
|
|
|
|
+ }
|
|
.buyup {
|
|
.buyup {
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
@@ -752,9 +803,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;
|