diff --git a/.env.development b/.env.development
index a247152..501c589 100644
--- a/.env.development
+++ b/.env.development
@@ -2,7 +2,7 @@
ENV = 'development'
# base api
-VUE_APP_BASE_API = ''
+VUE_APP_BASE_API = 'http://hdcontract.ali251.langye.net'
#VUE_APP_OUT_URL = http://suzhouhedaooa.langye.net
VUE_APP_OUT_URL = http://192.168.60.18:2021
diff --git a/src/views/budget/budgetList.vue b/src/views/budget/budgetList.vue
index ff7cea7..362cac4 100644
--- a/src/views/budget/budgetList.vue
+++ b/src/views/budget/budgetList.vue
@@ -39,7 +39,9 @@
-
+
+
+
@@ -255,6 +257,7 @@ export default {
]
},
list:[],
+ totalMoney:0,
total:0,
pageIndex:1,
table:[
@@ -329,6 +332,30 @@ export default {
}
},
methods: {
+ //合计
+ summary(param){
+ const { columns, data } = param
+ const sums = []
+ columns.map((column,index) => {
+ if(index === 0){
+ sums[index] = '总计'
+ return
+ }
+ if(column.property === 'money'){
+ sums[index] = this.totalMoney
+ return
+ }
+ // const values = data.map(item => Number(item[column.property]));
+ // if (!values.every(value => isNaN(value)) && (column.property === 'money' || column.property === 'plan_price'|| column.property === 'fund_log_total')) {
+ //
+ // sums[index] = sums[index].toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
+ // } else {
+ // sums[index] = '';
+ // }
+ })
+ return sums
+ },
+
//翻页
pageChange(e){
this.pageIndex = e
@@ -349,8 +376,9 @@ export default {
type:this.select.type,
plan_department_id:this.select.department
}).then(res=>{
- this.list = res.data
- this.total = res.total
+ this.list = res.list.data
+ this.total = res.list.total
+ this.totalMoney = res.total_money
})
},
//新增提交
diff --git a/src/views/contract/components/detailContract.vue b/src/views/contract/components/detailContract.vue
index 4df2a1c..66c9eb2 100644
--- a/src/views/contract/components/detailContract.vue
+++ b/src/views/contract/components/detailContract.vue
@@ -316,7 +316,7 @@ export default {
return "服务"
break;
case 2:
- return "货品"
+ return "货物"
break;
case 3:
return "工程"
diff --git a/src/views/contract/components/editorContract.vue b/src/views/contract/components/editorContract.vue
index 0c71a67..3dbcd71 100644
--- a/src/views/contract/components/editorContract.vue
+++ b/src/views/contract/components/editorContract.vue
@@ -19,7 +19,7 @@