{{item.modelSocietyType}}
+ + + +{{item.entityName}}
diff --git a/src/api/agriculturalTrusteeship/index.js b/src/api/agriculturalTrusteeship/index.js index f2a29509..26bf2a62 100644 --- a/src/api/agriculturalTrusteeship/index.js +++ b/src/api/agriculturalTrusteeship/index.js @@ -225,7 +225,7 @@ export function supplyDemandEdit(data) { // 评价 export function supplyComment(data) { return request({ - url: '/deposit/supplyorder/comment', + url: '/entity/supplyorder/comment', headers: { "ACCESS-SESSION-ID": Cookies.get('ACCESS-SESSION-ID') }, diff --git a/src/router/index.js b/src/router/index.js index d20b43f4..9bc39a11 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4606,6 +4606,7 @@ export const constantRoutes = [ meta: { title: '农业大托管', hidden: true, + keepAlive: true }, component: (resolve) => require(['@/views/agriculturalTrusteeship/index'], resolve) }, @@ -4624,6 +4625,7 @@ export const constantRoutes = [ meta: { title: '保险服务', hidden: true, + keepAlive: true }, component: (resolve) => require(['@/views/agriculturalTrusteeship/insurance/insuranceList'], resolve) }, @@ -4651,6 +4653,7 @@ export const constantRoutes = [ meta: { title: '社会化服务', hidden: true, + keepAlive: true }, component: (resolve) => require(['@/views/agriculturalTrusteeship/society/societyList'], resolve) }, @@ -4833,6 +4836,7 @@ export const constantRoutes = [ meta: { title: '买家选购', hidden: true, + keepAlive: true }, component: (resolve) => require(['@/views/agriculturalTrusteeship/buyer/index'], resolve) }, diff --git a/src/views/agriculturalTrusteeship/buyer/allBill.vue b/src/views/agriculturalTrusteeship/buyer/allBill.vue index 536f01e6..9b92e611 100644 --- a/src/views/agriculturalTrusteeship/buyer/allBill.vue +++ b/src/views/agriculturalTrusteeship/buyer/allBill.vue @@ -59,12 +59,15 @@
{{item.demandName}}
¥{{item.realityServiceMoney}}.00
+¥{{item.realityServiceMoney == null ? item.countMoney:item.realityServiceMoney}}.00
数量:{{item.serviceNum}} @@ -203,7 +206,12 @@ } 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; + var that = this ; + setTimeout(function () { + res.productType = that.productList.filter(function (e) { return e.id == res.productType; })[0].dictName; + },1000) + + res.countMoney = res.unitPrice*res.serviceNum; this.supplyDemandList.push(res); }) if(this.supplyDemandList.length >= response.total){ diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail.vue b/src/views/agriculturalTrusteeship/buyer/billDetail.vue index c8aa3304..aab5aea0 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail.vue @@ -92,7 +92,7 @@ created() { let query = { parentId : null, - tree:true + tree:false } productTypes(query).then(response => { this.productList = response.data; @@ -110,8 +110,10 @@ supplyorderGet(this.$route.query.id).then(response => { 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; - response.data.updateTime = response.data.updateTime.substr(0,10); + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) if (response.data.supplyDemand!=null){ if (response.data.supplyDemand.supplyMasterMap){ var attachement = response.data.supplyDemand.supplyMasterMap.split( "," ); diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail2.vue b/src/views/agriculturalTrusteeship/buyer/billDetail2.vue index f62ed216..1fedf4fe 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail2.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail2.vue @@ -95,7 +95,7 @@ created() { let query = { parentId : null, - tree:true + tree:false } productTypes(query).then(response => { this.productList = response.data; @@ -113,7 +113,10 @@ supplyorderGet(this.$route.query.id).then(response => { 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; + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) if (response.data.supplyDemand!=null){ if (response.data.supplyDemand.supplyMasterMap){ var attachement = response.data.supplyDemand.supplyMasterMap.split( "," ); diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail3.vue b/src/views/agriculturalTrusteeship/buyer/billDetail3.vue index b72e0d5e..167956b8 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail3.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail3.vue @@ -103,7 +103,7 @@ created() { let query = { parentId : null, - tree:true + tree:false } productTypes(query).then(response => { this.productList = response.data; @@ -121,7 +121,10 @@ supplyorderGet(this.$route.query.id).then(response => { 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; + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) response.data.updateTime = response.data.updateTime.substr(0,10); if (response.data.supplyDemand!=null){ if (response.data.supplyDemand.supplyMasterMap){ diff --git a/src/views/agriculturalTrusteeship/buyer/billDetail4.vue b/src/views/agriculturalTrusteeship/buyer/billDetail4.vue index e9b40920..6b4d58fe 100644 --- a/src/views/agriculturalTrusteeship/buyer/billDetail4.vue +++ b/src/views/agriculturalTrusteeship/buyer/billDetail4.vue @@ -91,7 +91,7 @@ created() { let query = { parentId : null, - tree:true + tree:false } productTypes(query).then(response => { this.productList = response.data; @@ -109,7 +109,10 @@ supplyorderGet(this.$route.query.id).then(response => { 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; + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) response.data.updateTime = response.data.updateTime.substr(0,10); if (response.data.supplyDemand!=null){ if (response.data.supplyDemand.supplyMasterMap){ diff --git a/src/views/agriculturalTrusteeship/buyer/evaluate.vue b/src/views/agriculturalTrusteeship/buyer/evaluate.vue index 716dbbdd..4c950641 100644 --- a/src/views/agriculturalTrusteeship/buyer/evaluate.vue +++ b/src/views/agriculturalTrusteeship/buyer/evaluate.vue @@ -28,9 +28,9 @@
{{item.dictName}}
+{{item.dictName}}
{{supplyDemand.supplyDemandName}}
{{item.demandName}}
¥{{item.unitPrice}}.00/{{item.unit}}
+¥{{item.countMoney}}.00
数量:{{item.serviceNum}} @@ -113,13 +116,19 @@ supplyorderList(this.query).then(response => { response.rows.map(res=>{ if ( res.orderStatus == '1'){ - if (res.supplyDemand!=null){ - let supplyMasterMap = res.supplyDemand.supplyMasterMap.split( "," ) - res.supplyDemand.supplyMasterMap = '/api'+supplyMasterMap[0] + if(res.supplyDemand){ + if (res.supplyDemand.supplyMasterMap){ + 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; + var that = this ; + setTimeout(function () { + res.productType = that.productList.filter(function (e) { return e.id == res.productType; })[0].dictName; + },1000) + res.countMoney = res.unitPrice*res.serviceNum; this.supplyDemandList.push(res); } this.supplyDemandList1.push(res); diff --git a/src/views/agriculturalTrusteeship/index.vue b/src/views/agriculturalTrusteeship/index.vue index 52411453..0f9f63cd 100644 --- a/src/views/agriculturalTrusteeship/index.vue +++ b/src/views/agriculturalTrusteeship/index.vue @@ -52,7 +52,18 @@
社会化服务产品
-河东河西村
+{{deptName}}
+大托管服务中心
-{{loginType=='mj'?'买家':loginType=='fwzz'?'社会化服务组织':loginType=='bxjg'?'保险机构':loginType=='dkjg'?'贷款机构':loginType=='ndjg'?'农担机构':''}}登录注册
+{{loginType=='mj'?'买家':loginType=='fwzz'?'社会化服务组织':loginType=='bxjg'?'保险机构':loginType=='dkjg'?'贷款机构':loginType=='ndjg'?'农担机构':''}}登录{{loginType!='mj'?'注册':''}}
{{item.contractionName}}
@@ -231,13 +235,18 @@ getList(){ supplyorderList(this.query).then(response => { response.rows.map(res=>{ - if (res.supplyDemand.supplyMasterMap){ - let supplyMasterMap = res.supplyDemand.supplyMasterMap.split( "," ) - res.supplyDemand.supplyMasterMap = '/api'+supplyMasterMap[0] + if(res.supplyDemand){ + if (res.supplyDemand.supplyMasterMap){ + 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; + var that = this ; + setTimeout(function () { + res.productType = that.productList.filter(function (e) { return e.id == res.productType; })[0].dictName; + },1000) this.supplyDemandList.push(res); }) if(this.supplyDemandList.length >= response.total){ diff --git a/src/views/agriculturalTrusteeship/socialization/billDetail.vue b/src/views/agriculturalTrusteeship/socialization/billDetail.vue index 48bbc492..1e7b9e36 100644 --- a/src/views/agriculturalTrusteeship/socialization/billDetail.vue +++ b/src/views/agriculturalTrusteeship/socialization/billDetail.vue @@ -111,7 +111,10 @@ supplyorderGet(this.$route.query.id).then(response => { 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; + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) response.data.countMoney = response.data.unitPrice*response.data.serviceNum; if (response.data.supplyDemand.supplyMasterMap){ var attachement = response.data.supplyDemand.supplyMasterMap.split( "," ); diff --git a/src/views/agriculturalTrusteeship/socialization/billOrder.vue b/src/views/agriculturalTrusteeship/socialization/billOrder.vue index 793d843d..7c51eab6 100644 --- a/src/views/agriculturalTrusteeship/socialization/billOrder.vue +++ b/src/views/agriculturalTrusteeship/socialization/billOrder.vue @@ -112,7 +112,12 @@ supplyorderGet(this.$route.query.id).then(response => { 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; + var that = this ; + setTimeout(function () { + response.data.productType = that.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName; + },1000) + + response.data.countMoney = response.data.unitPrice*response.data.serviceNum; if (response.data.supplyDemand!=null){ diff --git a/src/views/agriculturalTrusteeship/socialization/index.vue b/src/views/agriculturalTrusteeship/socialization/index.vue index 47aebf44..796aa34b 100644 --- a/src/views/agriculturalTrusteeship/socialization/index.vue +++ b/src/views/agriculturalTrusteeship/socialization/index.vue @@ -127,7 +127,10 @@ } 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; + var that = this ; + setTimeout(function () { + res.productType = that.productList.filter(function (e) { return e.id == res.productType; })[0].dictName; + },1000) res.countMoney = res.unitPrice * res.serviceNum; this.supplyDemandList.push(res); } diff --git a/src/views/agriculturalTrusteeship/socialization/project.vue b/src/views/agriculturalTrusteeship/socialization/project.vue index ed4bb51a..28055045 100644 --- a/src/views/agriculturalTrusteeship/socialization/project.vue +++ b/src/views/agriculturalTrusteeship/socialization/project.vue @@ -37,7 +37,7 @@{{item.dictName}}
+{{item.dictName}}
{{item.modelSocietyType}}
+ + + +{{item.entityName}}