|
@@ -9,7 +9,8 @@
|
|
|
<u-form class="forList">
|
|
|
<view class="modular">
|
|
|
<u-form-item label="公司名称" label-width="30%" class="title Regular">
|
|
|
- <u-input v-model="deptList.compName" input-align="right" class="write Medium" placeholder="请输入公司名称" />
|
|
|
+ <u-input v-model="deptList.compName" input-align="right" class="write Medium"
|
|
|
+ placeholder="请输入公司名称" />
|
|
|
</u-form-item>
|
|
|
<view>
|
|
|
<view class="title Regular" style="margin-top: 15rpx;">主要类型(可多选,必须为真实经营类型)</view>
|
|
@@ -33,7 +34,7 @@
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
<view class="modular">
|
|
|
- <u-form-item label="上传坐标" label-width="30%" class="title Regular">
|
|
|
+ <u-form-item label="上传坐标" label-width="30%" class="title Regular">
|
|
|
<text @click='naviageToPage("/pages/grain_pulse/localtion/coordinate")'
|
|
|
class="con-list Regular">{{deptList.buyer == null ? "未上传":deptList.buyer}}<text
|
|
|
class='tip_text cuIcon-right'></text></text>
|
|
@@ -48,13 +49,13 @@
|
|
|
</u-form-item>
|
|
|
<view>
|
|
|
<view class="title Regular" style="margin-top: 15rpx;">上传图片</view>
|
|
|
- <view v-if="license1 != ''">
|
|
|
+ <view v-if="license1 != ''">
|
|
|
<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
|
:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError"
|
|
|
@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
|
|
|
:options="uploadOptions" :custom="uploadCustom" @on-progress="onProgress"></upload>
|
|
|
</view>
|
|
|
- <view v-if="license2 != ''">
|
|
|
+ <view v-if="license2 != ''">
|
|
|
<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
|
:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError"
|
|
|
@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
|
|
@@ -71,13 +72,11 @@
|
|
|
<image src="../../static/img/liangmai/tijiaochenggong@3x.png" mode=""
|
|
|
style="width: 180rpx;height: 180rpx;"></image>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="successText">提交成功,等待平台审核。</view>
|
|
|
<u-button type="success" style="width: 400rpx; margin: 20rpx auto; " shape="circle" @click="perfect">
|
|
|
完善更多信息</u-button>
|
|
|
<view style="color: #AFB3BF;text-align: center;" @click="navBack">返回</view>
|
|
|
</u-popup>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -103,18 +102,38 @@
|
|
|
"text": "上传营业执照",
|
|
|
"bgc": ""
|
|
|
},
|
|
|
- mainBusinessType:[],
|
|
|
+ mainBusinessType: [],
|
|
|
uploadCustom: true,
|
|
|
deptList: {},
|
|
|
- management: [
|
|
|
- {name:"粮库",checked:false},
|
|
|
- {name:"加工厂",checked:false},
|
|
|
- {name:"烘干厂",checked:false},
|
|
|
- {name:"饲料厂",checked:false},
|
|
|
- {name:"养殖场",checked:false},
|
|
|
- {name:"粮贸",checked:false},
|
|
|
- {name:"期货",checked:false},
|
|
|
- ],
|
|
|
+ management: [{
|
|
|
+ name: "粮库",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "加工厂",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "烘干厂",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "饲料厂",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "养殖场",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "粮贸",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "期货",
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ ],
|
|
|
types: [],
|
|
|
show: false,
|
|
|
// anNiuCss:"types",
|
|
@@ -125,23 +144,23 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getImgUrl(res){
|
|
|
+ getImgUrl(res) {
|
|
|
console.log(res)
|
|
|
- this.deptList.attachmentAddress=res
|
|
|
+ this.deptList.attachmentAddress = res
|
|
|
},
|
|
|
- naviageToPage(item){
|
|
|
+ naviageToPage(item) {
|
|
|
uni.navigateTo({
|
|
|
- url:item
|
|
|
+ url: item
|
|
|
})
|
|
|
},
|
|
|
- getImgUrl1(res){
|
|
|
+ getImgUrl1(res) {
|
|
|
console.log(res)
|
|
|
- this.deptList.licenseAddress=res
|
|
|
+ this.deptList.licenseAddress = res
|
|
|
},
|
|
|
singleClick(item) {
|
|
|
- if(this.mainBusinessType.indexOf(item)==-1){
|
|
|
+ if (this.mainBusinessType.indexOf(item) == -1) {
|
|
|
this.mainBusinessType.push(item.name)
|
|
|
- item.checked=true
|
|
|
+ item.checked = true
|
|
|
}
|
|
|
},
|
|
|
filterFileType(index, lists) {
|
|
@@ -157,8 +176,8 @@
|
|
|
}
|
|
|
},
|
|
|
navBack() {
|
|
|
- this.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',this.deptList).then(res => {
|
|
|
- if(res.data.code==200){
|
|
|
+ this.$api.doRequest('post', '/settledCompanyInfo/api/addSettledCompanyInfo', this.deptList).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
uni.navigateBack(1)
|
|
|
}
|
|
|
})
|
|
@@ -181,9 +200,9 @@
|
|
|
// }
|
|
|
// this.show = true
|
|
|
// return
|
|
|
- this.deptList.mainBusinessType=this.mainBusinessType.toString()
|
|
|
- this.deptList.longitude='40.22077'
|
|
|
- this.deptList.latitude='116.23128'
|
|
|
+ this.deptList.mainBusinessType = this.mainBusinessType.toString()
|
|
|
+ this.deptList.longitude = '40.22077'
|
|
|
+ this.deptList.latitude = '116.23128'
|
|
|
uni.showModal({
|
|
|
content: "确定提交企业信息??",
|
|
|
showCancel: true,
|
|
@@ -193,7 +212,7 @@
|
|
|
this.show = true
|
|
|
// that.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',that.deptList).then(res => {
|
|
|
// if(res.data.code==200){
|
|
|
-
|
|
|
+
|
|
|
// }
|
|
|
// })
|
|
|
// //成功后
|