diff --git a/src/api/agriculturalTrusteeship/index.js b/src/api/agriculturalTrusteeship/index.js index 75a7865d..f2a29509 100644 --- a/src/api/agriculturalTrusteeship/index.js +++ b/src/api/agriculturalTrusteeship/index.js @@ -326,6 +326,17 @@ export function supplyorderGet(id) { }) } +//服务组织详情 +export function entityGet(id) { + return request({ + url: '/depositm/entity/get/'+id, + headers: { + "ACCESS-SESSION-ID": Cookies.get('ACCESS-SESSION-ID') + }, + method: 'get', + }) +} + //服务合同 export function fwhtList(query) { return request({ @@ -349,3 +360,15 @@ export function placeOrder(data) { data: data }) } + +//下单 +export function entityEdit(data) { + return request({ + url: '/depositm/entity/edit', + headers: { + "ACCESS-SESSION-ID": Cookies.get('ACCESS-SESSION-ID') + }, + method: 'post', + data: data + }) +} diff --git a/src/utils/request.js b/src/utils/request.js index 593730ee..af3daf43 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -95,11 +95,12 @@ service.interceptors.response.use(res => { window.location.href = '/sunVillage/login'; } else if (window.location.href.indexOf('/homestead/') != -1) { window.location.href = '/homestead/login'; - } else { + } else if (window.location.href.indexOf('yinnong') != -1){ window.location.href = '/yinnongLogin'; //window.location.href = '/zjdLogin'; - /*window.location.href = '/index';*/ + } else { + window.location.href = '/agriculturalTrusteeship/login'; } }) }) diff --git a/src/views/agriculturalTrusteeship/buyer/allBill.vue b/src/views/agriculturalTrusteeship/buyer/allBill.vue index 8f26e2c9..536f01e6 100644 --- a/src/views/agriculturalTrusteeship/buyer/allBill.vue +++ b/src/views/agriculturalTrusteeship/buyer/allBill.vue @@ -4,8 +4,8 @@
@@ -35,8 +35,8 @@ /> @@ -59,9 +59,10 @@
- + +
-

{{item.contractionName}}

+

{{item.demandName}}

{{item.realityServiceMoney}}.00

@@ -71,9 +72,9 @@

- - - + + + @@ -172,13 +173,14 @@ startOrderAt:this.format(new Date(),'yyyy-MM'), endOrderAt:this.format(new Date(),'yyyy-MM'), }, - content:'' + content:'', + searchInput:'' }; }, created() { let query = { - parentId : 0, - tree:true + parentId : null, + tree:false } productTypes(query).then(response => { this.productList = response.data; @@ -194,6 +196,11 @@ getList(){ supplyorderList(this.query).then(response => { response.rows.map(res=>{ + // console.log(res.supplyDemand.supplyMasterMap) + if (res.supplyDemand!=null){ + let supplyMasterMap = res.supplyDemand.supplyMasterMap.split( "," ) + res.supplyDemand.supplyMasterMap = '/api'+supplyMasterMap[0] + } res.cropType = this.selectDictLabel(this.cropTypeOptions, res.cropType); res.orderStatus = this.selectDictLabel(this.orderStatusOptions, res.orderStatus); res.productType = this.productList.filter(function (e) { return e.id == res.productType; })[0].dictName; @@ -209,6 +216,7 @@ }); }, onConfirmStar(data){ + this.supplyDemandList=[]; this.params.startOrderAt = this.format(data,'yyyy-mm'); this.query.startOrderAt = this.format(data,'yyyy-mm'); this.startOrderAt = this.format(data,'yyyy年MM月'); @@ -219,6 +227,7 @@ this.getList(); }, onConfirmEnd(data){ + this.supplyDemandList=[]; this.params.endOrderAt = this.format(data,'yyyy-mm'); this.query.endOrderAt = this.format(data,'yyyy-mm'); this.endOrderAt = this.format(data,'yyyy年MM月'); @@ -238,6 +247,19 @@ if (type == '已拒单'){ this.$router.push({name:'agriculturalTrusteeshipBillDetail4',query:{id:id}}) } + if (type == '已下单'){ + this.$router.push({name:'agriculturalTrusteeshipBillDetail',query:{id:id}}) + } + }, + tabChange(val){ + this.query.orderStatus = val; + this.supplyDemandList=[]; + this.getList(); + }, + goSearch(){ + this.supplyDemandList = []; + this.query.demandName = this.searchInput; + this.getList(); }, openDialog(val){ this.showDialog = val diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail.vue b/src/views/agriculturalTrusteeship/buyer/billDetail.vue index 51e414f3..c8aa3304 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail.vue @@ -16,22 +16,27 @@

商品信息

-

灌溉

+

{{supplyDemand.productType}}

服务

- + +
-

如果只有一行就空着啊啊啊啊啊啊啊啊啊啊啊啊

+

{{supplyDemand.demandName}}

-

165,836,365.00/亩

+

{{supplyDemand.unitPrice}}.00/{{supplyDemand.unit}}

- - - + + + +
@@ -39,9 +44,9 @@

买家信息

- - - + + +
@@ -49,13 +54,14 @@

订单信息

- - - - - - - + + + + + + + + @@ -65,6 +71,7 @@ diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail2.vue b/src/views/agriculturalTrusteeship/buyer/billDetail2.vue index 10730703..f62ed216 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail2.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail2.vue @@ -21,7 +21,11 @@
- + +

{{supplyDemand.contractionName}}

@@ -90,7 +94,7 @@ }, created() { let query = { - parentId : 0, + parentId : null, tree:true } productTypes(query).then(response => { @@ -110,13 +114,11 @@ response.data.cropType = this.selectDictLabel(this.cropTypeOptions, response.data.cropType); response.data.orderStatus = this.selectDictLabel(this.orderStatusOptions, response.data.orderStatus); response.data.productType = this.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; - if (response.data.supplyMasterMap){ - response.data.supplyMasterMapList = []; - var attachement = response.data.supplyMasterMap.split( "," ); - this.supplyMasterMapArr = response.data.supplyMasterMap.split( "," ); - attachement.forEach(responseAttach=>{ - response.data.supplyMasterMapList.push('/api' + responseAttach); - }) + if (response.data.supplyDemand!=null){ + if (response.data.supplyDemand.supplyMasterMap){ + var attachement = response.data.supplyDemand.supplyMasterMap.split( "," ); + response.data.supplyDemand.supplyMasterMap = '/api' + attachement[0]; + } } this.supplyDemand = response.data; }); diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail3.vue b/src/views/agriculturalTrusteeship/buyer/billDetail3.vue index 61ff8ffd..b72e0d5e 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail3.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail3.vue @@ -13,7 +13,7 @@
-

已评分评分时间:{{supplyDemand.updateTime.substr(0,10)}}

+

已评分评分时间:{{supplyDemand.updateTime}}

商品信息

@@ -22,17 +22,21 @@
- + +
-

{{supplyDemand.contractionName}}

+

{{supplyDemand.demandName}}

{{supplyDemand.unitPrice}}.00/{{supplyDemand.unit}}

- - - + + +
@@ -98,7 +102,7 @@ }, created() { let query = { - parentId : 0, + parentId : null, tree:true } productTypes(query).then(response => { @@ -118,13 +122,12 @@ response.data.cropType = this.selectDictLabel(this.cropTypeOptions, response.data.cropType); response.data.orderStatus = this.selectDictLabel(this.orderStatusOptions, response.data.orderStatus); response.data.productType = this.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; - if (response.data.supplyMasterMap){ - response.data.supplyMasterMapList = []; - var attachement = response.data.supplyMasterMap.split( "," ); - this.supplyMasterMapArr = response.data.supplyMasterMap.split( "," ); - attachement.forEach(responseAttach=>{ - response.data.supplyMasterMapList.push('/api' + responseAttach); - }) + response.data.updateTime = response.data.updateTime.substr(0,10); + if (response.data.supplyDemand!=null){ + if (response.data.supplyDemand.supplyMasterMap){ + var attachement = response.data.supplyDemand.supplyMasterMap.split( "," ); + response.data.supplyDemand.supplyMasterMap = '/api' + attachement[0]; + } } this.supplyDemand = response.data; }); diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail4.vue b/src/views/agriculturalTrusteeship/buyer/billDetail4.vue index 101be4f3..e9b40920 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail4.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail4.vue @@ -17,22 +17,26 @@

商品信息

-

灌溉

+

{supplyDemand.productType}}

服务

- + +
-

如果只有一行就空着啊啊啊啊啊啊啊啊啊啊啊啊

+

{{supplyDemand.demandName}}

-

165,836,365.00/亩

+

{{supplyDemand.unitPrice}}.00/{{supplyDemand.unit}}

- - - + + +
@@ -40,9 +44,9 @@

买家信息

- - - + + +
@@ -50,13 +54,13 @@

订单信息

- - - - - - - + + + + + + +
@@ -66,6 +70,7 @@ diff --git a/src/views/agriculturalTrusteeship/buyer/index.vue b/src/views/agriculturalTrusteeship/buyer/index.vue index e98d34da..94f15205 100644 --- a/src/views/agriculturalTrusteeship/buyer/index.vue +++ b/src/views/agriculturalTrusteeship/buyer/index.vue @@ -1,59 +1,72 @@ diff --git a/src/views/agriculturalTrusteeship/insurance/insuranceProjectList.vue b/src/views/agriculturalTrusteeship/insurance/insuranceProjectList.vue index ec73a52b..970f2c70 100644 --- a/src/views/agriculturalTrusteeship/insurance/insuranceProjectList.vue +++ b/src/views/agriculturalTrusteeship/insurance/insuranceProjectList.vue @@ -24,7 +24,7 @@ @load="getList" > -
+
@@ -66,6 +66,7 @@ }, created() { this.query.financialServiceId = this.$route.query.id; + this.tt = this.$route.query.financialName }, methods: { @@ -75,10 +76,7 @@ if(res.sysYesNo == 'Y'){ if (res.mainImg){ let supplyMasterMap = res.mainImg.split( "," ) - res.mainImg2 = [] - supplyMasterMap.map(rr=>{ - res.mainImg2.push('/api'+rr) - }) + res.mainImg = '/api'+supplyMasterMap[0] } this.productListYes.push(res); } diff --git a/src/views/agriculturalTrusteeship/login.vue b/src/views/agriculturalTrusteeship/login.vue index e17e9220..9680e2fd 100644 --- a/src/views/agriculturalTrusteeship/login.vue +++ b/src/views/agriculturalTrusteeship/login.vue @@ -3,15 +3,15 @@
-
+
-
+

大托管服务中心

-

登录注册

+

{{loginType=='mj'?'买家':loginType=='fwzz'?'社会化服务组织':loginType=='bxjg'?'保险机构':loginType=='dkjg'?'贷款机构':loginType=='ndjg'?'农担机构':''}}登录注册

@@ -95,253 +95,255 @@
-

登录1

+

登录

登录

- + - - +

提交审核

+
@@ -455,7 +457,7 @@ this.formData.username = encrypt(this.username); this.formData.password = encrypt(this.password); - this.formData.financialType = '2'; + this.formData.financialType = this.financialType; serviceLogin(this.formData).then(response => { Cookies.set("ACCESS-SESSION-ID", response.data.id); Cookies.set("ServiceInformation", response.data); @@ -476,7 +478,16 @@ } }, tabsChange(name){ - console.log(name) + this.serviceForm = {}; + this.entityForm = {}; + this.statisticsTypeId = ''; + this.industryClassificationType = ''; + this.modelSocietyType = ''; + this.deptName = ''; + this.mainImgArr = []; + this.mainImgArrEntity = []; + this.mainImgUploader = []; + this.mainImgUploader2 = []; if ( name == 'register' ){ this.position = 'relative'; this.top = '40px'; @@ -727,6 +738,7 @@ this.mainImgUploader2.splice(detail.index,1); }, goRegister(){ + console.log(this.loginType) if (this.loginType == 'bxjg' || this.loginType == 'dkjg' || this.loginType == 'ndjg'){ this.serviceForm.mainImg = this.mainImgArr.join(','); this.serviceForm.username = encrypt(this.serviceForm.username); @@ -736,7 +748,7 @@ this.$notify({ type: 'success', message: '注册成功' }); this.active = 0; }) - }else if(this.loginType = 'fwzz'){ + }else if(this.loginType == 'fwzz'){ this.entityForm.mainImg = this.mainImgArrEntity.join(','); this.entityForm.userName = encrypt(this.entityForm.userName); this.entityForm.password = encrypt(this.entityForm.password); @@ -745,6 +757,9 @@ this.active = 0; }) } + // else if(this.loginType == 'mj'){ + // this.registerSubmit(); + // } }, onConfirmStatisticsTypeId(data){ this.entityForm.statisticsTypeId = data.value; @@ -799,14 +814,16 @@ height: 30PX; justify-content: center; border-radius: 100%; + z-index: 999; } .tit{ font-size: .7rem; color: #334281; text-align: center; position: absolute; - left: 50%; - transform: translateX(-50%); + //left: 50%; + //transform: translateX(-50%); + width: 92%; line-height: 1; p{ &:nth-child(1){ @@ -897,4 +914,11 @@ border-radius: 50PX; } } + /deep/ .van-cell--required::before{ + left: 20PX; + color: rgb(30, 103, 255); + } + /deep/ .van-cell__value{ + padding-left: 10PX; + } diff --git a/src/views/agriculturalTrusteeship/shop/serviceEdit.vue b/src/views/agriculturalTrusteeship/shop/serviceEdit.vue index ec6ecb06..3b732c99 100644 --- a/src/views/agriculturalTrusteeship/shop/serviceEdit.vue +++ b/src/views/agriculturalTrusteeship/shop/serviceEdit.vue @@ -2,7 +2,7 @@
- -
- - - - - + + +
+ - - -
- + + + + +
+ +
-
-
-

发布

-
+
+

发布

+
+
diff --git a/src/views/agriculturalTrusteeship/shop/shopDetail.vue b/src/views/agriculturalTrusteeship/shop/shopDetail.vue index e6c0246e..8fe4e38a 100644 --- a/src/views/agriculturalTrusteeship/shop/shopDetail.vue +++ b/src/views/agriculturalTrusteeship/shop/shopDetail.vue @@ -2,7 +2,7 @@
-
- - - - - - - -
- + +
+ + + + + + + +
+ +
-
-
-

发布

-
+
+

发布

+
+
diff --git a/src/views/agriculturalTrusteeship/shop/shopList.vue b/src/views/agriculturalTrusteeship/shop/shopList.vue index 828e3d67..b6b69daf 100644 --- a/src/views/agriculturalTrusteeship/shop/shopList.vue +++ b/src/views/agriculturalTrusteeship/shop/shopList.vue @@ -6,7 +6,18 @@

退出登录

-

河东河西村

+ + + + + + + + + + + +
@@ -17,26 +28,27 @@

公司信息

- diff --git a/src/views/agriculturalTrusteeship/socialization/user.vue b/src/views/agriculturalTrusteeship/socialization/user.vue index d3eae0ec..522f39c1 100644 --- a/src/views/agriculturalTrusteeship/socialization/user.vue +++ b/src/views/agriculturalTrusteeship/socialization/user.vue @@ -2,7 +2,7 @@
-
+

退出登录

@@ -14,22 +14,22 @@ - +

已成交

- +

待处理

- +

已拒单

- +

总收入

@@ -49,13 +49,13 @@
- - - - - - - + + + + + + +
@@ -78,6 +78,7 @@ import Cookies from "js-cookie"; import agr from "@/components/common/agr_footer"; import dialogClose from "@/components/agriculturalTrusteeship/dialog"; + import {entityGet, orderStatistics} from "@/api/agriculturalTrusteeship"; export default { name: "agriculturalTrusteeshipInsuranceList", components: { @@ -92,13 +93,38 @@ finished: false, center: { lng: 122.089726, lat: 37.540728 }, //经纬度 zoom: 15, //地图展示级别 - showDialog:false + showDialog:false, + entityForm:{}, + content:{}, + statisticsTypeIdOptions:[], + industryClassificationTypeOptions:[], + modelSocietyTypeOptions:[], }; }, created() { - + orderStatistics().then(response => { + this.content = response.data; + }); + this.getDicts("newBusinessEntity_statistics_project").then(response => { + this.statisticsTypeIdOptions = response.data; + }); + this.getDicts("Industrial_classification_type").then(response => { + this.industryClassificationTypeOptions = response.data; + }); + this.getDicts("model_society_type").then(response => { + this.modelSocietyTypeOptions = response.data; + }); + this.getUser(); }, methods: { + getUser(){ + entityGet(Cookies.get('ACCESS-SESSION-ID')).then(res=>{ + res.data.statisticsTypeId = this.selectDictLabel(this.statisticsTypeIdOptions, res.data.statisticsTypeId); + res.data.industryClassificationType = this.selectDictLabel(this.industryClassificationTypeOptions, res.data.industryClassificationType); + res.data.modelSocietyType = this.selectDictLabel(this.modelSocietyTypeOptions, res.data.modelSocietyType); + this.entityForm = res.data; + }) + }, openDialog(val){ this.showDialog = val }, diff --git a/src/views/agriculturalTrusteeship/socialization/userEdit.vue b/src/views/agriculturalTrusteeship/socialization/userEdit.vue index 257c2ff3..98629fac 100644 --- a/src/views/agriculturalTrusteeship/socialization/userEdit.vue +++ b/src/views/agriculturalTrusteeship/socialization/userEdit.vue @@ -12,28 +12,141 @@
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- +
@@ -45,14 +158,14 @@
-

发布

-

存稿

+

保存

diff --git a/src/views/agriculturalTrusteeship/society/societyList.vue b/src/views/agriculturalTrusteeship/society/societyList.vue index abd7d744..ddcc1d18 100644 --- a/src/views/agriculturalTrusteeship/society/societyList.vue +++ b/src/views/agriculturalTrusteeship/society/societyList.vue @@ -6,7 +6,18 @@

社会化服务组织

-

河东河西村

+

{{deptName}}

+ + +
@@ -92,8 +103,8 @@ finished-text="没有更多了" @load="getList" > - -
+ +
@@ -119,7 +130,7 @@ diff --git a/src/views/agriculturalTrusteeship/society/societyProjectDetail.vue b/src/views/agriculturalTrusteeship/society/societyProjectDetail.vue index 465504f3..401327cb 100644 --- a/src/views/agriculturalTrusteeship/society/societyProjectDetail.vue +++ b/src/views/agriculturalTrusteeship/society/societyProjectDetail.vue @@ -23,7 +23,7 @@

销 {{supplyDemand.orderNum}}分 {{supplyDemand.orderScore}}

{{supplyDemand.supplyDemandName}}

-

{{supplyDemand.entityName}}

+

{{supplyDemand.entityName}}{{supplyDemand.createTime}}

@@ -31,7 +31,7 @@ - +
@@ -41,9 +41,15 @@
- + -
@@ -53,7 +59,7 @@
@@ -68,8 +74,11 @@ active: 0, loading: false, finished: false, - center: { lng: 122.089726, lat: 37.540728 }, //经纬度 - zoom: 15, //地图展示级别 + center: { + lng :'', + lat :'', + }, //经纬度 + zoom: 1, //地图展示级别 showDialog:false, supplyDemand:{}, productType:'', @@ -90,17 +99,12 @@ }, created() { let query = { - parentId : '' - } - let query1 = { - tree : true + parentId : '', + tree : false } productTypes(query).then(response => { this.productList = response.data; }); - productTypes(query1).then(response => { - this.productList1 = response.data; - }); this.getDicts("newBusinessEntity_statistics_project").then(response => { for (var i = 0; i < response.data.length; i++) { this.projectTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue}); @@ -113,14 +117,23 @@ getDetail(){ supplyDemandGet(this.$route.query.id).then(response => { response.data.bodyType = this.selectDictLabel(this.bodyTypeOptions, response.data.bodyType); - response.data.productType = this.productList1.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + response.data.productType = this.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + response.data.createTime = response.data.createTime.substr(0,10); + response.data.supplyMasterMapList = []; + if (response.data.theGeom){ + console.log(JSON.parse(response.data.theGeom).coordinates[0]) + console.log(JSON.parse(response.data.theGeom).coordinates[1]) + this.center.lng = JSON.parse(response.data.theGeom).coordinates[0]; + this.center.lat = JSON.parse(response.data.theGeom).coordinates[1]; + } if (response.data.supplyMasterMap){ - response.data.supplyMasterMapList = []; var attachement = response.data.supplyMasterMap.split( "," ); this.supplyMasterMapArr = response.data.supplyMasterMap.split( "," ); attachement.forEach(responseAttach=>{ response.data.supplyMasterMapList.push('/api' + responseAttach); }) + }else{ + response.data.supplyMasterMapList.push('../../../../static/images/agriculturalTrusteeship/zwtp.png') } this.supplyDemand = response.data; }); @@ -131,6 +144,7 @@