From 9399bee519403e183dd07cb9efe48c947b9aa158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Mon, 19 Dec 2022 10:28:05 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E5=A4=A7=E6=89=98=E7=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/agriculturalTrusteeship/index.js | 23 ++ .../agriculturalTrusteeship/buyer/allBill.vue | 46 ++- .../buyer/billDetail.vue | 76 +++-- .../buyer/billDetail2.vue | 20 +- .../buyer/billDetail3.vue | 31 +- .../buyer/billDetail4.vue | 74 +++-- .../agriculturalTrusteeship/buyer/index.vue | 99 +++--- .../buyer/waitBill.vue | 19 +- src/views/agriculturalTrusteeship/index.vue | 6 +- .../insurance/insuranceList.vue | 12 +- .../insurance/insuranceProjectList.vue | 1 + src/views/agriculturalTrusteeship/login.vue | 8 +- .../socialization/bill.vue | 28 +- .../socialization/billDetail.vue | 22 +- .../socialization/index.vue | 8 +- .../socialization/user.vue | 52 +++- .../socialization/userEdit.vue | 281 ++++++++++++++++-- 17 files changed, 607 insertions(+), 199 deletions(-) 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/views/agriculturalTrusteeship/buyer/allBill.vue b/src/views/agriculturalTrusteeship/buyer/allBill.vue index 8f26e2c9..18442fe4 100644 --- a/src/views/agriculturalTrusteeship/buyer/allBill.vue +++ b/src/views/agriculturalTrusteeship/buyer/allBill.vue @@ -4,8 +4,8 @@
@@ -35,8 +35,8 @@ /> @@ -59,11 +59,12 @@
- + +
-

{{item.contractionName}}

+

{{item.demandName}}

-

{{item.realityServiceMoney}}.00

+

{{item.unitPrice}}.00/{{item.unit}}

数量:{{item.serviceNum}} @@ -71,9 +72,9 @@

- - - + + + @@ -172,12 +173,13 @@ startOrderAt:this.format(new Date(),'yyyy-MM'), endOrderAt:this.format(new Date(),'yyyy-MM'), }, - content:'' + content:'', + searchInput:'' }; }, created() { let query = { - parentId : 0, + parentId : null, tree:true } productTypes(query).then(response => { @@ -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..4d3425b7 100644 --- a/src/views/agriculturalTrusteeship/buyer/index.vue +++ b/src/views/agriculturalTrusteeship/buyer/index.vue @@ -1,54 +1,56 @@ - diff --git a/src/views/agriculturalTrusteeship/buyer/placeOrder.vue b/src/views/agriculturalTrusteeship/buyer/placeOrder.vue index a5c6fa17..2725c8eb 100644 --- a/src/views/agriculturalTrusteeship/buyer/placeOrder.vue +++ b/src/views/agriculturalTrusteeship/buyer/placeOrder.vue @@ -188,17 +188,12 @@ }); }); let query = { - parentId : '' - } - let query1 = { - tree : true + parentId : null, + 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}); @@ -214,7 +209,7 @@ getDetail(){ supplyDemandGet(this.$route.query.id).then(response => { response.data.bodyType = this.selectDictLabel(this.bodyTypeOptions, response.data.bodyType); - this.productType = this.productList1.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + this.productType = this.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; if (response.data.supplyMasterMap){ var attachement = response.data.supplyMasterMap.split( "," ); response.data.supplyMasterMap = '/api' + attachement[0]; @@ -250,7 +245,7 @@ this.supplyDemand.serviceAddress = this.user.deptName placeOrder(this.supplyDemand).then(response => { if(response.code=="200"){ - this.$notify({ type: 'success', message: '发布成功' }); + this.$notify({ type: 'success', message: '下单成功' }); setTimeout(function(){ history.back(-1); },2000) diff --git a/src/views/agriculturalTrusteeship/insurance/insuranceList.vue b/src/views/agriculturalTrusteeship/insurance/insuranceList.vue index 9d605ac9..18f0e124 100644 --- a/src/views/agriculturalTrusteeship/insurance/insuranceList.vue +++ b/src/views/agriculturalTrusteeship/insurance/insuranceList.vue @@ -6,7 +6,18 @@

{{tt}}服务

-

河东河西村

+

{{deptName}}

+ + +
@@ -84,7 +95,7 @@ diff --git a/src/views/agriculturalTrusteeship/shop/shopList.vue b/src/views/agriculturalTrusteeship/shop/shopList.vue index 090c16f3..03673199 100644 --- a/src/views/agriculturalTrusteeship/shop/shopList.vue +++ b/src/views/agriculturalTrusteeship/shop/shopList.vue @@ -6,7 +6,18 @@

退出登录

-

河东河西村

+

{{deptName}}

+ + + @@ -126,7 +137,7 @@ diff --git a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue index c516b7c4..3a4c9dcb 100644 --- a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue +++ b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue @@ -14,7 +14,7 @@
- + - + @@ -66,15 +66,15 @@ - - - - - - - - - + + + + + + + + +
@@ -206,7 +206,7 @@ this.supplyDemand.publishStatus = this.publishStatus; supplyDemandEdit(this.supplyDemand).then((res) => { if(res.code=="200"){ - if (publishStatus == '3'){ + if (this.publishStatus == '3'){ this.$notify({ type: 'success', message: '发布成功' }); }else{ this.$notify({ type: 'success', message: '存稿成功' }); diff --git a/src/views/agriculturalTrusteeship/socialization/release.vue b/src/views/agriculturalTrusteeship/socialization/release.vue index d12969c0..a0a934d2 100644 --- a/src/views/agriculturalTrusteeship/socialization/release.vue +++ b/src/views/agriculturalTrusteeship/socialization/release.vue @@ -189,7 +189,7 @@ this.supplyDemand.publishStatus = this.publishStatus; supplyDemandAdd(this.supplyDemand).then((res) => { if(res.code=="200"){ - if (publishStatus == '3'){ + if (this.publishStatus == '3'){ this.$notify({ type: 'success', message: '发布成功' }); }else{ this.$notify({ type: 'success', message: '存稿成功' }); diff --git a/src/views/agriculturalTrusteeship/society/societyList.vue b/src/views/agriculturalTrusteeship/society/societyList.vue index 329480fd..ddcc1d18 100644 --- a/src/views/agriculturalTrusteeship/society/societyList.vue +++ b/src/views/agriculturalTrusteeship/society/societyList.vue @@ -6,7 +6,18 @@

社会化服务组织

-

河东河西村

+

{{deptName}}

+ + +
@@ -119,7 +130,7 @@ From ece47b931b83eb3c679f23e43d845fe707d5c229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 29 Dec 2022 08:59:34 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E5=A4=A7=E6=89=98=E7=AE=A1=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agriculturalTrusteeship/login.vue | 4 +- .../agriculturalTrusteeship/shop/shopList.vue | 32 +++++----- .../socialization/projectEdit.vue | 9 +-- .../socialization/release.vue | 59 ++++++++++++++++--- 4 files changed, 75 insertions(+), 29 deletions(-) diff --git a/src/views/agriculturalTrusteeship/login.vue b/src/views/agriculturalTrusteeship/login.vue index 40171e56..052a5e77 100644 --- a/src/views/agriculturalTrusteeship/login.vue +++ b/src/views/agriculturalTrusteeship/login.vue @@ -150,13 +150,13 @@ - + - + diff --git a/src/views/agriculturalTrusteeship/shop/shopList.vue b/src/views/agriculturalTrusteeship/shop/shopList.vue index 03673199..b6b69daf 100644 --- a/src/views/agriculturalTrusteeship/shop/shopList.vue +++ b/src/views/agriculturalTrusteeship/shop/shopList.vue @@ -6,18 +6,18 @@

退出登录

-

{{deptName}}

- - - + + + + + + + + + + + + @@ -28,7 +28,8 @@

公司信息

@@ -151,9 +152,8 @@ productListNo:[], query:{ financialServiceId:Cookies.get('ACCESS-SESSION-ID'), - serviceDeptId:'187', pageNum:1, - pageSize:'10' + pageSize:'10', }, serviceForm:{}, deptOptions:[], @@ -219,7 +219,7 @@ }, //选择案件属地 onConfirmDept({ selectedOptions }){ - this.query.serviceDeptId = selectedOptions[selectedOptions.length-1].value; + this.query.deptId = selectedOptions[selectedOptions.length-1].value; this.deptName = selectedOptions[selectedOptions.length-1].label; this.showDeptId = false this.productListYes = []; diff --git a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue index 3a4c9dcb..61245012 100644 --- a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue +++ b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue @@ -42,7 +42,7 @@ - + @@ -67,14 +67,15 @@ + - + - + - +
diff --git a/src/views/agriculturalTrusteeship/socialization/release.vue b/src/views/agriculturalTrusteeship/socialization/release.vue index a0a934d2..0459f3bb 100644 --- a/src/views/agriculturalTrusteeship/socialization/release.vue +++ b/src/views/agriculturalTrusteeship/socialization/release.vue @@ -42,7 +42,7 @@ - + @@ -69,14 +69,39 @@ - + - - + + + + + + + - +
@@ -100,7 +125,7 @@ From 2159ccc8faabe22d66ee313963d52aad26ba5b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 29 Dec 2022 16:41:31 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E5=A4=A7=E6=89=98=E7=AE=A1=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agriculturalTrusteeship/login.vue | 12 ++-- .../socialization/projectEdit.vue | 39 +++++++++++-- .../socialization/release.vue | 58 +++++++++++-------- 3 files changed, 73 insertions(+), 36 deletions(-) diff --git a/src/views/agriculturalTrusteeship/login.vue b/src/views/agriculturalTrusteeship/login.vue index 052a5e77..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'?'农担机构':''}}登录注册

@@ -814,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){ diff --git a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue index 61245012..7d829b97 100644 --- a/src/views/agriculturalTrusteeship/socialization/projectEdit.vue +++ b/src/views/agriculturalTrusteeship/socialization/projectEdit.vue @@ -65,8 +65,29 @@ - - + + + + + @@ -104,7 +125,7 @@ productTypes, commonUpload, supplyDemandEdit, - supplyDemandAdd + supplyDemandAdd, detailList } from "@/api/agriculturalTrusteeship"; export default { name: "agriculturalTrusteeshipSocializationRelease", @@ -134,7 +155,8 @@ value: 'id', children: 'children', }, - publishStatus:'' + publishStatus:'', + detailListOptions:[] }; }, created() { @@ -157,6 +179,11 @@ } this.bodyTypeOptions = response.data; }); + detailList().then(res=>{ + if (res.code == 200) { + this.detailListOptions = res.rows; + } + }) this.getDetail(); }, methods: { @@ -184,8 +211,8 @@ this.showProductType = false; }, onConfirmProjectType(data){ - this.supplyDemand.bodyType = data.value; - this.bodyType = data.text; + this.supplyDemand.entityName = data.entityName; + this.supplyDemand.entityId = data.id; this.showBodyType = false; }, afterReadEvidenceForm(file){ diff --git a/src/views/agriculturalTrusteeship/socialization/release.vue b/src/views/agriculturalTrusteeship/socialization/release.vue index 0459f3bb..209b8dc7 100644 --- a/src/views/agriculturalTrusteeship/socialization/release.vue +++ b/src/views/agriculturalTrusteeship/socialization/release.vue @@ -44,29 +44,31 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + - @@ -125,7 +127,7 @@