|
@@ -3,31 +3,31 @@
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">名头</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写名头" name="input" v-model="deptList.procurementPlanNo"></input>
|
|
|
+ <text @click="navToDetailPage">{{deptList.procurementPlanNo}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">标题</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写标题,2-16个字" name="input" v-model="deptList.title"></input>
|
|
|
+ <input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input" v-model="deptList.title"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">货名</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写货名" name="input" v-model="deptList.goodsName"></input>
|
|
|
+ <input placeholder="请输入货名,如玉米" name="input" v-model="deptList.goodsName"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">采购量(吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写采购重量" name="input" v-model="deptList.plannedPurchaseVolume"></input>
|
|
|
+ <input placeholder="请输入采购重量,如1000" name="input" v-model="deptList.plannedPurchaseVolume"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">最小成交量(吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写最小成交量" name="input" v-model="deptList.minimumVolume"></input>
|
|
|
+ <input placeholder="请输入最小成交量" name="input" v-model="deptList.minimumVolume"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -49,25 +49,26 @@
|
|
|
<view class="c-row b-b" v-if="this.typesIndex != 1">
|
|
|
<text class="tit">单价(元/吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写单价(元/吨)" name="input" v-model="deptList.unitPrice"></input>
|
|
|
+ <input placeholder="请填写单价" name="input" v-model="deptList.unitPrice"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b" v-if="this.typesIndex == 1">
|
|
|
<text class="tit">基差(元/吨)</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写单价(元/吨)" name="input" v-model="deptList.basisPrice"></input>
|
|
|
+ <input placeholder="请输入基差" name="input" v-model="deptList.basisPrice"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">收货地区</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写收货地区" name="input" v-model="deptList.receiveArea"></input>
|
|
|
+ <view @click='regionchange'>{{region}}</view>
|
|
|
+ <u-picker :params='params' @confirm='regionpicker' mode="region" v-model="show" ></u-picker>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">买方手机号</text>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder="请填写卖方手机号" name="input" v-model="deptList.buyerPhone"></input>
|
|
|
+ <input placeholder="请输入买方手机号" name="input" v-model="deptList.buyerPhone"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -77,48 +78,51 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
+ <checkbox style='transform: scale(0.8);' :checked="checked" @click='checkedbox'></checkbox>完善更多信息(选填,可由客服人员代为完善)
|
|
|
+ </view>
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">水分(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写水分占比" name="input" v-model="deptList.waterContent"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">容重(g/L)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写容重" name="input" v-model="deptList.bulkDensity"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">热损伤(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写热损伤占比" name="input" v-model="deptList.jiaorenli"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">杂质(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写杂质占比" name="input" v-model="deptList.impurity"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">霉变粒(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写霉变粒占比" name="input" v-model="deptList.mildewGrain"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">不完整粒(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写不完整粒占比" name="input" v-model="deptList.imperfectGrain"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">蛋白(%)<= </text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写蛋白占比" name="input" v-model="deptList.protein"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">粒型 </text>
|
|
|
<picker @change="liChange" :value="liIndex" :range="liType" class="con-list" v-model="deptList.grain">
|
|
|
<view class="con-list">
|
|
@@ -126,7 +130,7 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">品级 </text>
|
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -134,7 +138,14 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view 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>
|
|
|
<picker @change="nianChange" :value="nianIndex" :range="nianType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -142,7 +153,7 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">包装方式</text>
|
|
|
<picker @change="baoChange" :value="baoIndex" :range="baoType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -150,13 +161,13 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked&&baoIndex==2||!checked&&baoIndex==3' class="c-row b-b">
|
|
|
<text class="tit">袋装备注</text>
|
|
|
<view class="con-list">
|
|
|
<input placeholder="请填写袋装备注" name="input" v-model="deptList.baggingNotes"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
+ <view v-if='!checked' class="c-row b-b">
|
|
|
<text class="tit">运费承担方</text>
|
|
|
<picker @change="chengChange" :value="chengIndex" :range="chengType" class="con-list">
|
|
|
<view class="con-list">
|
|
@@ -177,6 +188,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
types: '',
|
|
|
+ goods:{},
|
|
|
typesType: ["现货", "期货"],
|
|
|
typesIndex: 0,
|
|
|
deptList: {
|
|
@@ -188,6 +200,16 @@
|
|
|
packingType:"不限(默认)",
|
|
|
freightPayer:"",
|
|
|
},
|
|
|
+ params:{
|
|
|
+ province: true,
|
|
|
+ city: true,
|
|
|
+ area: true,
|
|
|
+ },
|
|
|
+ params1:{
|
|
|
+ province: true,
|
|
|
+ city: true,
|
|
|
+ },
|
|
|
+ checked:true,
|
|
|
insertProcurementPlanInfo: {},
|
|
|
liIndex: 0,
|
|
|
liType: ['塔粮', '筛粮', '中粒', '大粒'],
|
|
@@ -197,6 +219,10 @@
|
|
|
nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
|
|
|
'2011'
|
|
|
],
|
|
|
+ show:false,
|
|
|
+ show1:false,
|
|
|
+ region:'请选择收货地区',
|
|
|
+ region1:'请选择产地',
|
|
|
baoIndex: 0,
|
|
|
baoType: ['不限(默认)', '散装', '大袋', '小袋'],
|
|
|
chengIndex: -1,
|
|
@@ -206,7 +232,46 @@
|
|
|
computed: {
|
|
|
...mapState(['hasLogin','userInfo'])
|
|
|
},
|
|
|
+ onLoad(options){
|
|
|
+ if(options.customerName){
|
|
|
+ this.deptList.procurementPlanNo=options.customerName
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ 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,'procurementPlanNo',res.data.data.customerName)
|
|
|
+ }else{
|
|
|
+ that.$set(this.deptList,'procurementPlanNo',res.data.data.compName)
|
|
|
+ }
|
|
|
+ this.goods=res.data.data
|
|
|
+ }
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ regionpicker(e){
|
|
|
+ this.deptList.receivePrivate=e.province.label
|
|
|
+ this.deptList.receiveCity=e.city.label
|
|
|
+ this.deptList.receiveArea=e.area.label
|
|
|
+ this.region=e.province.label+'-'+e.city.label+'-'+e.area.label
|
|
|
+ },
|
|
|
+ regionchange(){
|
|
|
+ this.show=true
|
|
|
+ },
|
|
|
+ regionpicker1(e){
|
|
|
+ this.deptList.outputPrivate=e.province.label
|
|
|
+ this.deptList.outputCity=e.city.label
|
|
|
+ this.region1=e.province.label+'-'+e.city.label
|
|
|
+ },
|
|
|
+ regionchange1(){
|
|
|
+ this.show1=true
|
|
|
+ },
|
|
|
+ checkedbox(e){
|
|
|
+ this.checked=!this.checked
|
|
|
+ },
|
|
|
typeChange(e) {
|
|
|
this.typesIndex = e.detail.value
|
|
|
this.types = this.typesType[this.typesIndex];
|
|
@@ -218,28 +283,62 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ navToDetailPage() {
|
|
|
+ // if (index == 1) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pageD/myRelease/Identity_switching`
|
|
|
+ })
|
|
|
+ },
|
|
|
commit() {
|
|
|
this.insertProcurementPlanInfo = this.deptList
|
|
|
// if (!this.deptList.goodsName) {
|
|
|
// this.$api.msg('货名1不能为空')
|
|
|
// return
|
|
|
// }
|
|
|
- // if (!this.deptList.title) {
|
|
|
- // this.$api.msg('标题不能为空')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.deptList.title) {
|
|
|
+ this.$api.msg('标题不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.deptList.title.length>16||this.deptList.title.length<2) {
|
|
|
+ this.$api.msg('标题输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.deptList.goodsName) {
|
|
|
this.$api.msg('货名不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.deptList.goodsName.length>6||this.deptList.goodsName.length<1) {
|
|
|
+ this.$api.msg('货名输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.insertProcurementPlanInfo.plannedPurchaseVolume) {
|
|
|
this.$api.msg('采购量不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.deptList.plannedPurchaseVolume>100000||this.deptList.plannedPurchaseVolume<1) {
|
|
|
+ this.$api.msg('采购量输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.deptList.plannedPurchaseVolume.indexOf('.')!=-1) {
|
|
|
+ if(this.deptList.plannedPurchaseVolume.split('.')[1].length>2){
|
|
|
+ this.$api.msg('采购量输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!this.insertProcurementPlanInfo.minimumVolume) {
|
|
|
this.$api.msg('最小成交量不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.insertProcurementPlanInfo.minimumVolume>100000||this.insertProcurementPlanInfo.minimumVolume<1) {
|
|
|
+ this.$api.msg('最小成交量输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.insertProcurementPlanInfo.minimumVolume.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.minimumVolume.split('.')[1].length>2){
|
|
|
+ this.$api.msg('最小成交量输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!this.insertProcurementPlanInfo.procurementPlanType) {
|
|
|
this.$api.msg('类型不能为空')
|
|
|
return
|
|
@@ -253,69 +352,109 @@
|
|
|
this.$api.msg('单价不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.insertProcurementPlanInfo.unitPrice>100000||this.insertProcurementPlanInfo.unitPrice<1) {
|
|
|
+ this.$api.msg('单价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.insertProcurementPlanInfo.unitPrice.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.unitPrice.split('.')[1].length>2){
|
|
|
+ this.$api.msg('单价输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
}else if(this.insertProcurementPlanInfo.procurementPlanType == '期货'){
|
|
|
if (!this.insertProcurementPlanInfo.basisPrice) {
|
|
|
this.$api.msg('基差(元/吨)不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.insertProcurementPlanInfo.basisPrice>10000||this.insertProcurementPlanInfo.basisPrice<1) {
|
|
|
+ this.$api.msg('基差输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.insertProcurementPlanInfo.basisPrice.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.basisPrice.split('.')[1].length>2){
|
|
|
+ this.$api.msg('基差输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (!this.insertProcurementPlanInfo.buyerPhone) {
|
|
|
this.$api.msg('买方手机号不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.waterContent) {
|
|
|
- this.$api.msg('水分不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent<1||
|
|
|
+ this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent>40) {
|
|
|
+ this.$api.msg('水分输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.bulkDensity) {
|
|
|
- this.$api.msg('容重不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.waterContent&&this.insertProcurementPlanInfo.waterContent.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.waterContent.split('.')[1].length>2){
|
|
|
+ this.$api.msg('水分输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.jiaorenli) {
|
|
|
- this.$api.msg('热损伤不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity<500||
|
|
|
+ this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity>1000) {
|
|
|
+ this.$api.msg('容重输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.impurity) {
|
|
|
- this.$api.msg('杂质不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli<1||
|
|
|
+ this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli>40) {
|
|
|
+ this.$api.msg('热损伤输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.mildewGrain) {
|
|
|
- this.$api.msg('霉变粒不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.jiaorenli&&this.insertProcurementPlanInfo.jiaorenli.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.jiaorenli.split('.')[1].length>2){
|
|
|
+ this.$api.msg('热损伤输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.imperfectGrain) {
|
|
|
- this.$api.msg('不完整粒不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity<1||
|
|
|
+ this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity>40) {
|
|
|
+ this.$api.msg('杂质输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.bulkDensity) {
|
|
|
- this.$api.msg('蛋白不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.impurity&&this.insertProcurementPlanInfo.impurity.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.impurity.split('.')[1].length>2){
|
|
|
+ this.$api.msg('杂质输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.grain) {
|
|
|
- this.$api.msg('粒型不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain<1||
|
|
|
+ this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain>40) {
|
|
|
+ this.$api.msg('霉变粒输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.grade) {
|
|
|
- this.$api.msg('品级不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.mildewGrain&&this.insertProcurementPlanInfo.mildewGrain.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.mildewGrain.split('.')[1].length>2){
|
|
|
+ this.$api.msg('霉变粒输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.outputYear) {
|
|
|
- this.$api.msg('产出年份不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain<1||
|
|
|
+ this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain>40) {
|
|
|
+ this.$api.msg('不完整粒输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.packingType) {
|
|
|
- this.$api.msg('包装方式不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.imperfectGrain&&this.insertProcurementPlanInfo.imperfectGrain.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.imperfectGrain.split('.')[1].length>2){
|
|
|
+ this.$api.msg('不完整粒输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.baggingNotes) {
|
|
|
- this.$api.msg('装袋备注不能为空')
|
|
|
+ if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity<1||
|
|
|
+ this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity>80) {
|
|
|
+ this.$api.msg('蛋白输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.insertProcurementPlanInfo.freightPayer) {
|
|
|
- this.$api.msg('运费承担方不能为空')
|
|
|
- return
|
|
|
+ if (this.insertProcurementPlanInfo.bulkDensity&&this.insertProcurementPlanInfo.bulkDensity.indexOf('.')!=-1) {
|
|
|
+ if(this.insertProcurementPlanInfo.bulkDensity.split('.')[1].length>2){
|
|
|
+ this.$api.msg('蛋白输入错误')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
+ this.insertProcurementPlanInfo.basisPrice=-this.insertProcurementPlanInfo.basisPrice
|
|
|
this.insertProcurementPlanInfo.commonId = this.userInfo.id
|
|
|
this.insertProcurementPlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
this.$api.doRequest('post', '/procurementPlanInfo/api/insertProcurementPlanInfo', this
|