|
@@ -4,88 +4,53 @@
|
|
<view class="detail-desc">
|
|
<view class="detail-desc">
|
|
<view class="c-list">
|
|
<view class="c-list">
|
|
<view class="c-row">
|
|
<view class="c-row">
|
|
- <text class="tit">水分(%){{'<='}} </text>
|
|
|
|
|
|
+ <text class="tit">卖方</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.waterContent}}</text>
|
|
|
|
|
|
+ <view v-if='goods.customerTypeFlag==1' class="title">{{goods.customerName}}</view>
|
|
|
|
+ <view v-if='goods.customerTypeFlag==2' class="title">{{goods.compName}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view v-if="companyId!=2" class="cu-form-group">
|
|
|
|
- <view class="title">卖方</view>
|
|
|
|
- <view class="title">{{seller}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="companyId!=2" class="cu-form-group">
|
|
|
|
- <view class="title">卖方电话</view>
|
|
|
|
- <view class="title">{{sellerPhone}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="cu-form-group">
|
|
|
|
- <text class="tit">我的信息</text>
|
|
|
|
- <view v-if='bankNameList.length>0'>
|
|
|
|
- <picker @change="bankNameChange" :value="bankNameIndex" :range="bankNameList">
|
|
|
|
- <view class="picker">
|
|
|
|
- {{bankNameIndex>-1?bankNameList[bankNameIndex]:'点击选择名头'}}
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">买方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view class="title">{{seller}}</view>
|
|
</view>
|
|
</view>
|
|
- </picker>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <button class='cu-btn bg-green shadow' @click="changeZhihang">添加名头</button>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="companyId!=2" class="cu-form-group margin-top">
|
|
|
|
- <view class="title">价格类型</view>
|
|
|
|
- <picker @change="PriceTypeChange" :value="priceTypeIndex" :range="priceType">
|
|
|
|
- <view class="picker">
|
|
|
|
- {{priceTypeIndex>-1?priceType[priceTypeIndex]:'请选择'}}
|
|
|
|
</view>
|
|
</view>
|
|
- </picker>
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='companyId!=2' class="cu-form-group">
|
|
|
|
- <view class="title">交接区域</view>
|
|
|
|
- <picker mode="region" @change="RegionChange" :value="region">
|
|
|
|
- <view class="picker" v-if="region.length>0">
|
|
|
|
- {{region[0]}}{{region[1]}}{{region[2]}}
|
|
|
|
|
|
+ <view class="detail-desc">
|
|
|
|
+ <view class="c-list">
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">卖方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view v-if='goods.customerTypeFlag==1' class="title">{{goods.customerName}}</view>
|
|
|
|
+ <view v-if='goods.customerTypeFlag==2' class="title">{{goods.compName}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="picker" v-else>
|
|
|
|
- 请选择
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">买方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view class="title">{{seller}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </picker>
|
|
|
|
- </view>
|
|
|
|
- <view v-if='companyId!=2' class="cu-form-group">
|
|
|
|
- <view class="title">详细交收地址</view>
|
|
|
|
- <input placeholder="请填写" name="input" @input="addressInput"></input>
|
|
|
|
- </view>
|
|
|
|
- <view v-if='companyId==2' class="cu-form-group">
|
|
|
|
- <view class="title">库点地址</view>
|
|
|
|
- <view class="title">{{province+city+area+storeName}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="cu-form-group">
|
|
|
|
- <view class="title">最小成交量(吨)</view>
|
|
|
|
- <view class="title">{{minSale}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-if='companyId!=2' class="cu-form-group">
|
|
|
|
- <view v-if='isFutures==1' class="title">库容</view>
|
|
|
|
- <view v-if='isFutures==0' class="title">库存量</view>
|
|
|
|
- <view class="title">{{exsitCount}}</view>
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="companyId==2" class="cu-form-group">
|
|
|
|
- <view class="title">发票类型</view>
|
|
|
|
- <picker @change="InvoiceTypeChange1" :value="invoiceTypeIndex1" :range="invoiceType1">
|
|
|
|
- <view class="picker">
|
|
|
|
- {{invoiceTypeIndex1>-1?invoiceType1[invoiceTypeIndex1]:'请选择'}}
|
|
|
|
|
|
+ <view class="detail-desc">
|
|
|
|
+ <view class="c-list">
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">卖方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view v-if='goods.customerTypeFlag==1' class="title">{{goods.customerName}}</view>
|
|
|
|
+ <view v-if='goods.customerTypeFlag==2' class="title">{{goods.compName}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </picker>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="cu-form-group">
|
|
|
|
- <view class="title">发票类型</view>
|
|
|
|
- <picker @change="InvoiceTypeChange" :value="invoiceTypeIndex" :range="invoiceType">
|
|
|
|
- <view class="picker">
|
|
|
|
- {{invoiceTypeIndex>-1?invoiceType[invoiceTypeIndex]:'请选择'}}
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">买方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view class="title">{{seller}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </picker>
|
|
|
|
- </view>
|
|
|
|
- <view class="cu-form-group">
|
|
|
|
- <view class="title">购买数量(吨)</view>
|
|
|
|
- <input placeholder="请填写" name="input" @input="countInput"></input>
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<!-- <view v-if='isFutures==0' class="cu-form-group margin-top margin-bottom">
|
|
<!-- <view v-if='isFutures==0' class="cu-form-group margin-top margin-bottom">
|
|
<view class="title">质量验收方式</view>
|
|
<view class="title">质量验收方式</view>
|
|
@@ -95,56 +60,6 @@
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view> -->
|
|
</view> -->
|
|
- <view v-if="companyId!=2" class="cu-form-group">
|
|
|
|
- <view class="title">包装方式</view>
|
|
|
|
- <input placeholder="请填写 例:袋装XX斤/散装" name="input" @input='packingInput'></input>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="cu-form-group margin-top">
|
|
|
|
- <view class="title">包装方式</view>
|
|
|
|
- <picker @change="packingChange" :value="packingIndex" :range="packingType">
|
|
|
|
- <view class="picker">
|
|
|
|
- {{packingIndex>-1?packingType[packingIndex]:'请选择'}}
|
|
|
|
- </view>
|
|
|
|
- </picker>
|
|
|
|
- </view>
|
|
|
|
- <view class="cu-form-group">
|
|
|
|
- <view v-if='companyId != 2' class="title">协议单价(元/吨)</view>
|
|
|
|
- <view v-else class="title" style='color:red'>点价(元/吨)</view>
|
|
|
|
- <input placeholder="请填写" name="input" @input="unitPriceInput"></input>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="companyId==2" class="cu-form-group">
|
|
|
|
- <view class="title">基差(元/吨)</view>
|
|
|
|
- <view class="title">{{basis}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="companyId==2" class="cu-form-group">
|
|
|
|
- <view class="title">发票费用(元/吨)</view>
|
|
|
|
- <view class="title">{{invoiceMoney}}</view>
|
|
|
|
- </view>
|
|
|
|
-<!-- <view v-if="companyId==2&&unloadingFee" class="cu-form-group">
|
|
|
|
- <view class="title">卸车费(元/吨)</view>
|
|
|
|
- <view class="title">{{unloadingFee}}</view>
|
|
|
|
- </view> -->
|
|
|
|
- <view v-if="companyId==2" class="cu-form-group">
|
|
|
|
- <view class="title">包装费</view>
|
|
|
|
- <view class="title">25KG(含25)以内40元/吨,50KG(含50)以内20元/吨</view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view v-if="companyId==2" class="cu-form-group">
|
|
|
|
- <view class="title">结算价格(自动计算)</view>
|
|
|
|
- <view class="title">{{(Number(unitPrice) + Number(basis) + Number(invoiceMoney) + Number(packingMoney))*count}}元</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="cu-form-group">
|
|
|
|
- <view class="title">总金额(自动计算)</view>
|
|
|
|
- <view class="title">{{unitPrice*count}}元</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="companyId==2" class="cu-form-group align-start">
|
|
|
|
- <!-- <view class="title">结算价格=点价+基差+发票+包装费</view> -->
|
|
|
|
- <view class="title">最终以纸质合同为准</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="cu-form-group align-start">
|
|
|
|
- <view class="title">备注</view>
|
|
|
|
- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaInput" placeholder="请填写包装规格、质量、包装物要求。例:50kg袋装、大粒、彩包"></textarea>
|
|
|
|
- </view>
|
|
|
|
<view class="padding flex flex-direction">
|
|
<view class="padding flex flex-direction">
|
|
<button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
|
|
<button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
|
|
</view>
|
|
</view>
|
|
@@ -174,6 +89,7 @@
|
|
packingMoney:0,
|
|
packingMoney:0,
|
|
type:0,
|
|
type:0,
|
|
},
|
|
},
|
|
|
|
+ goods:{},
|
|
invoiceTypeIndex:0,
|
|
invoiceTypeIndex:0,
|
|
invoiceTypeIndex1:0,
|
|
invoiceTypeIndex1:0,
|
|
acceptTypeIndex:0,
|
|
acceptTypeIndex:0,
|
|
@@ -239,31 +155,37 @@
|
|
this.unloadingFee = options.unloadingFee
|
|
this.unloadingFee = options.unloadingFee
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- var that=this
|
|
|
|
- this.$api.request('company', 'getCompany', failres => {
|
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }).then(res => {
|
|
|
|
- if(res.data.code=='SUCCESS'){
|
|
|
|
- var data=[]
|
|
|
|
- this.Company=res.data.data
|
|
|
|
- if(res.data.data){
|
|
|
|
- for(let i=0;i<res.data.data.length;i++){
|
|
|
|
- data.push(res.data.data[i].companyName+' '+res.data.data[i].companyPhone)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(this.Company){
|
|
|
|
- this.buyer =this.Company[0].companyName
|
|
|
|
- this.buyerPhone=this.Company[0].companyPhone
|
|
|
|
- this.tradeCompanyId=this.Company[0].id
|
|
|
|
- }
|
|
|
|
- that.bankNameList=data
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }else{
|
|
|
|
- that.$api.msg(res.data.code)
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
|
+ this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:111111}).then(res => {
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ this.goods=res.data.data
|
|
}
|
|
}
|
|
|
|
+ uni.hideLoading()
|
|
})
|
|
})
|
|
|
|
+ // var that=this
|
|
|
|
+ // this.$api.request('company', 'getCompany', failres => {
|
|
|
|
+ // that.$api.msg(failres.errmsg)
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // if(res.data.code=='SUCCESS'){
|
|
|
|
+ // var data=[]
|
|
|
|
+ // this.Company=res.data.data
|
|
|
|
+ // if(res.data.data){
|
|
|
|
+ // for(let i=0;i<res.data.data.length;i++){
|
|
|
|
+ // data.push(res.data.data[i].companyName+' '+res.data.data[i].companyPhone)
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // if(this.Company){
|
|
|
|
+ // this.buyer =this.Company[0].companyName
|
|
|
|
+ // this.buyerPhone=this.Company[0].companyPhone
|
|
|
|
+ // this.tradeCompanyId=this.Company[0].id
|
|
|
|
+ // }
|
|
|
|
+ // that.bankNameList=data
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // }else{
|
|
|
|
+ // that.$api.msg(res.data.code)
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
// uni.getLocation({
|
|
// uni.getLocation({
|
|
// type: 'wgs84',
|
|
// type: 'wgs84',
|
|
// geocode:true,
|
|
// geocode:true,
|