|
@@ -1,11 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<view class="center">
|
|
<view class="center">
|
|
- <view class="area">
|
|
|
|
-
|
|
|
|
|
|
+ <view class="area">
|
|
<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">
|
|
- <text @click="navToDetailPage">{{deptList.buyer}}</text>
|
|
|
|
|
|
+ <text @click="navToDetailPage">{{deptList.buyer}}<text class='tip_text cuIcon-right'></text></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
@@ -41,7 +40,6 @@
|
|
<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.priceType"></input> -->
|
|
|
|
{{deptList.priceType}}
|
|
{{deptList.priceType}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -57,13 +55,7 @@
|
|
<input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
|
|
<input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">产地</text>
|
|
|
|
- <view class="con-list">
|
|
|
|
- <view @click='regionchange1'>{{region1}}</view>
|
|
|
|
- <u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1" ></u-picker>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
<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">
|
|
@@ -77,60 +69,63 @@
|
|
<input placeholder="请输入买方手机号" name="input" v-model="deptList.buyerPhone"></input>
|
|
<input placeholder="请输入买方手机号" name="input" v-model="deptList.buyerPhone"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row ">
|
|
|
|
- <button @click='getcode' type="default">{{sendText}}</button>
|
|
|
|
- <view class="con-list">
|
|
|
|
- <input placeholder="请填写6位短信验证码" name="input" v-model="deptList.title1"></input>
|
|
|
|
|
|
+ <view style='width:100%;position:relative;padding:10px;' class="flex">
|
|
|
|
+ <button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
|
|
+ class='getcode'>{{sendText}}</button>
|
|
|
|
+ <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <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">
|
|
@@ -138,7 +133,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">
|
|
@@ -146,7 +141,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>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view @click='regionchange1'>{{region1}}</view>
|
|
|
|
+ <u-picker :params='params1' @confirm='regionpicker1' mode="region" v-model="show1" ></u-picker>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <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">
|
|
@@ -154,7 +156,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">
|
|
@@ -162,13 +164,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">
|
|
<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">
|
|
@@ -193,6 +195,7 @@
|
|
typesType: ["现货", "期货"],
|
|
typesType: ["现货", "期货"],
|
|
typesIndex: 0,
|
|
typesIndex: 0,
|
|
deptList: {
|
|
deptList: {
|
|
|
|
+ buyer:"",
|
|
salePlanTypeKey:0,
|
|
salePlanTypeKey:0,
|
|
grainKey:0,
|
|
grainKey:0,
|
|
gradeKey:0,
|
|
gradeKey:0,
|
|
@@ -217,10 +220,10 @@
|
|
},
|
|
},
|
|
checked:true,
|
|
checked:true,
|
|
insertProcurementPlanInfo: {},
|
|
insertProcurementPlanInfo: {},
|
|
- liIndex: 0,
|
|
|
|
- liType: ['不限','塔粮', '筛粮', '中粒', '大粒'],
|
|
|
|
|
|
+ liIndex: -1,
|
|
|
|
+ liType: ['塔粮', '筛粮', '中粒', '大粒'],
|
|
pinIndex: -1,
|
|
pinIndex: -1,
|
|
- pinType: ['不限', '一等品', '二等品', '三等品', '等外'],
|
|
|
|
|
|
+ pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
nianIndex: 3,
|
|
nianIndex: 3,
|
|
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'
|
|
@@ -231,10 +234,14 @@
|
|
show1:false,
|
|
show1:false,
|
|
region:'请选择收货地区',
|
|
region:'请选择收货地区',
|
|
region1:'请选择产地',
|
|
region1:'请选择产地',
|
|
- baoIndex: 0,
|
|
|
|
- baoType: ['不限', '散装', '大袋', '小袋'],
|
|
|
|
|
|
+ baoIndex: -1,
|
|
|
|
+ baoType: ['散装', '大袋', '小袋'],
|
|
chengIndex: -1,
|
|
chengIndex: -1,
|
|
- chengType: ['可议', '买方承担', '卖方承担']
|
|
|
|
|
|
+ chengType: ['可议', '买方承担', '卖方承担'],
|
|
|
|
+ codestatus: false,
|
|
|
|
+ sendDisabled: false,
|
|
|
|
+ sendText: '获取验证码',
|
|
|
|
+ verifyCode:"",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -242,22 +249,20 @@
|
|
},
|
|
},
|
|
onLoad(options){
|
|
onLoad(options){
|
|
this.id=options.id
|
|
this.id=options.id
|
|
- if(options.customerName){
|
|
|
|
- this.deptList.buyer = options.customerName
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- onShow(){
|
|
|
|
this.getList()
|
|
this.getList()
|
|
- var that=this
|
|
|
|
- this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:this.userInfo.id}).then(res => {
|
|
|
|
- if(res.data.code==200){
|
|
|
|
- if(res.data.data.customerTypeFlag==1){
|
|
|
|
- that.$set(this.deptList,'buyer',res.data.data.customerName)
|
|
|
|
- }else{
|
|
|
|
- that.$set(this.deptList,'buyer',res.data.data.compName)
|
|
|
|
|
|
+ },
|
|
|
|
+ onShow() {
|
|
|
|
+ var that = this
|
|
|
|
+ this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
|
|
|
|
+ commonId: that.userInfo.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ if (res.data.data.customerTypeFlag == 1) {
|
|
|
|
+ that.$set(that.deptList, 'buyer', res.data.data.customerName)
|
|
|
|
+ } else {
|
|
|
|
+ that.$set(that.deptList, 'buyer', res.data.data.compName)
|
|
}
|
|
}
|
|
- this.goods=res.data.data
|
|
|
|
|
|
+ that.goods = res.data.data
|
|
}
|
|
}
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
})
|
|
})
|
|
@@ -267,6 +272,13 @@
|
|
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){
|
|
this.deptList = res.data.data
|
|
this.deptList = res.data.data
|
|
|
|
+ if (this.deptList.waterContent != null || this.deptList.bulkDensity != null || this
|
|
|
|
+ .deptList.jiaorenli != null || this.deptList.impurity != null || this.deptList
|
|
|
|
+ .mildewGrain != null || this.deptList.imperfectGrain != null || this.deptList
|
|
|
|
+ .protein != null || this.deptList.grade != null || this.deptList.outputYear != null ||
|
|
|
|
+ this.deptList.packingType != null || this.deptList.freightPayer != null) {
|
|
|
|
+ this.checked = false
|
|
|
|
+ }
|
|
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
|
|
this.region1=this.deptList.outputPrivate+'-'+this.deptList.outputCity
|
|
@@ -276,17 +288,7 @@
|
|
}else if(this.deptList.procurementPlanTypeKey==1){
|
|
}else if(this.deptList.procurementPlanTypeKey==1){
|
|
this.typesIndex=0
|
|
this.typesIndex=0
|
|
}
|
|
}
|
|
- if(this.deptList.grainKey==1){
|
|
|
|
- this.liIndex=0
|
|
|
|
- }else if(this.deptList.grainKey==2){
|
|
|
|
- this.liIndex=1
|
|
|
|
- }else if(this.deptList.grainKey==3){
|
|
|
|
- this.liIndex=2
|
|
|
|
- }else if(this.deptList.grainKey==4){
|
|
|
|
- this.liIndex=3
|
|
|
|
- }else if(this.deptList.grainKey==5){
|
|
|
|
- this.liIndex=4
|
|
|
|
- }
|
|
|
|
|
|
+ this.liIndex = this.deptList.grainKey
|
|
this.baoIndex=this.deptList.packingTypeKey
|
|
this.baoIndex=this.deptList.packingTypeKey
|
|
this.pinIndex=this.deptList.gradeKey
|
|
this.pinIndex=this.deptList.gradeKey
|
|
if(this.deptList.freightPayerKey==1){
|
|
if(this.deptList.freightPayerKey==1){
|
|
@@ -296,9 +298,6 @@
|
|
}else if(this.deptList.freightPayerKey==3){
|
|
}else if(this.deptList.freightPayerKey==3){
|
|
this.chengIndex=2
|
|
this.chengIndex=2
|
|
}
|
|
}
|
|
- // let number = this.deptList.basisPrice
|
|
|
|
-
|
|
|
|
- // deptList.basisPrice
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
@@ -476,11 +475,14 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
if (!this.deptList.buyerPhone) {
|
|
if (!this.deptList.buyerPhone) {
|
|
this.$api.msg('买方手机号不能为空')
|
|
this.$api.msg('买方手机号不能为空')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if(!this.verifyCode){
|
|
|
|
+ this.$api.msg('验证码不能为空')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if(this.checked == false){
|
|
if(this.checked == false){
|
|
if (this.deptList.waterContent&&this.deptList.waterContent<1||
|
|
if (this.deptList.waterContent&&this.deptList.waterContent<1||
|
|
this.deptList.waterContent&&this.deptList.waterContent>40) {
|
|
this.deptList.waterContent&&this.deptList.waterContent>40) {
|
|
@@ -564,33 +566,67 @@
|
|
content: '重新发布后交易信息将进入待审核状态,是否确定重新发布?',
|
|
content: '重新发布后交易信息将进入待审核状态,是否确定重新发布?',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if(res.confirm) {
|
|
if(res.confirm) {
|
|
- this.$api.doRequest('post', '/procurementPlanInfo/api/editProcurementPlan', this
|
|
|
|
- .insertProcurementPlanInfo).then(res => {
|
|
|
|
- if(res.data.code==200){
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "发布成功",
|
|
|
|
-
|
|
|
|
- icon: 'none',
|
|
|
|
- })
|
|
|
|
- this.deptList={}
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/release/release`
|
|
|
|
- })
|
|
|
|
- }else{
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.data.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
|
|
+ var that = this
|
|
|
|
+ this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
|
+ phone: this.deptList.buyerPhone,
|
|
|
|
+ verifyCode: this.verifyCode
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.$api.doRequest('post', '/procurementPlanInfo/api/editProcurementPlan', this
|
|
|
|
+ .insertProcurementPlanInfo).then(res => {
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "发布成功",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:2
|
|
|
|
+ })
|
|
|
|
+ },2000)
|
|
|
|
+
|
|
|
|
+ this.deptList={}
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/release/release`
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ 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.errmsg,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -610,7 +646,7 @@
|
|
nianChange(e) {
|
|
nianChange(e) {
|
|
this.nianIndex = e.detail.value
|
|
this.nianIndex = 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.niantypes]
|
|
},
|
|
},
|
|
|
|
|
|
baoChange(e) {
|
|
baoChange(e) {
|
|
@@ -674,4 +710,18 @@
|
|
background-color: #22C572;
|
|
background-color: #22C572;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
|
|
+ .getcode {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ color: #AFB3BF;
|
|
|
|
+ background: #F5F6F9;
|
|
|
|
+ height: 30px;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ }
|
|
|
|
+ .getcode.active {
|
|
|
|
+ background: #22C572;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|