whx 9 bulan lalu
induk
melakukan
208fbe8950
100 mengubah file dengan 605 tambahan dan 93 penghapusan
  1. TEMPAT SAMPAH
      virgo.wzfrontend/src/main/resources/static/.DS_Store
  2. 1 1
      virgo.wzfrontend/src/main/resources/static/console/index.html
  3. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/css/1836.48fa06e5.css
  4. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/css/3862.48fa06e5.css
  5. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/css/5945.3f9acf7e.css
  6. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/css/7965.266c7971.css
  7. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/css/app.241fc66f.css
  8. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/css/app.9548d587.css
  9. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/1386-legacy.99b1272d.js
  10. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/1386.81485edc.js
  11. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/1620.939b2bff.js
  12. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/6796.d3d35e73.js
  13. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/1843-legacy.fa27a8d4.js
  14. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/2191.d6da146e.js
  15. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/2375.e3d6902d.js
  16. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/2431-legacy.b3b73aaa.js
  17. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/2431-legacy.d623b5b6.js
  18. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/2527-legacy.d9bd9c55.js
  19. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/2527.b9af54e3.js
  20. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/285.54a4a639.js
  21. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/3231-legacy.30c58eda.js
  22. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/3231-legacy.b44b8b25.js
  23. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/3630-legacy.c90467d6.js
  24. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/3782.62298d5f.js
  25. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/6458-legacy.0d5ef3f7.js
  26. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/3875.e3a18e0b.js
  27. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/5064-legacy.ff41d48c.js
  28. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/5412.b0a1ea6c.js
  29. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/5581-legacy.5d829a74.js
  30. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/5581-legacy.dc23e345.js
  31. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/5629-legacy.9521f8bb.js
  32. 6 6
      virgo.wzfrontend/src/main/resources/static/console/static/js/7049-legacy.d484a9ce.js
  33. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/6336-legacy.ae275ff4.js
  34. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/6336.5adf931a.js
  35. 2 2
      virgo.wzfrontend/src/main/resources/static/console/static/js/4692-legacy.422119bf.js
  36. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/7059-legacy.79cab041.js
  37. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/9293-legacy.436b3347.js
  38. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/9293.41304dc2.js
  39. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/7719-legacy.1ba4bbc1.js
  40. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/786.f65d9624.js
  41. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/7965-legacy.30777e9c.js
  42. 1 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/8391-legacy.4867be97.js
  43. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/8869-legacy.742f0ae8.js
  44. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/924-legacy.4f3703c9.js
  45. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/9334-legacy.668a2eaa.js
  46. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/9334-legacy.c5ef9275.js
  47. 0 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/9536-legacy.6fb03c8f.js
  48. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/app-legacy.b4da526a.js
  49. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/app-legacy.dcd4f5b6.js
  50. 1 0
      virgo.wzfrontend/src/main/resources/static/console/static/js/app.abd2c224.js
  51. 0 1
      virgo.wzfrontend/src/main/resources/static/console/static/js/app.deb33bc7.js
  52. 24 0
      virgo.wzfrontend/yui_wx/pages.json
  53. 8 2
      virgo.wzfrontend/yui_wx/pages/bill/bill.vue
  54. 37 10
      virgo.wzfrontend/yui_wx/pages/billDetail/billDetail.vue
  55. 22 0
      virgo.wzfrontend/yui_wx/pages/billInvoice/billInvoice.vue
  56. 84 0
      virgo.wzfrontend/yui_wx/pages/billRecord/billRecord.vue
  57. 2 2
      virgo.wzfrontend/yui_wx/pages/index/index.vue
  58. 170 0
      virgo.wzfrontend/yui_wx/pages/invoice/invoice.vue
  59. 86 0
      virgo.wzfrontend/yui_wx/pages/invoiceDetail/invoiceDetail.vue
  60. 4 5
      virgo.wzfrontend/yui_wx/pages/projectList/projectList.vue
  61. 12 0
      virgo.wzfrontend/yui_wx/request/api/bill.js
  62. 35 0
      virgo.wzfrontend/yui_wx/request/api/contract.js
  63. 26 0
      virgo.wzfrontend/yui_wx/request/api/invouce.js
  64. 6 1
      virgo.wzfrontend/yui_wx/static/scss/common.scss
  65. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  66. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/bill/bill.js.map
  67. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billDetail/billDetail.js.map
  68. 1 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billInvoice/billInvoice.js.map
  69. 1 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billRecord/billRecord.js.map
  70. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  71. 1 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/invoice/invoice.js.map
  72. 1 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/invoiceDetail/invoiceDetail.js.map
  73. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/message/message.js.map
  74. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/myHouse/myHouse.js.map
  75. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/projectList/projectList.js.map
  76. 5 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/app.json
  77. 3 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/common/main.wxss
  78. 5 5
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/common/vendor.js
  79. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/Winglau14-lotusCalendar/Winglau14-lotusCalendar.js
  80. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/city-select/city-select.js
  81. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/bill.js
  82. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/navbar.js
  83. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/process.js
  84. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/upload.js
  85. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/contract/clauseDetail.js
  86. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/contract/clauseDetail.json
  87. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/house/houseItem.js
  88. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/house/houseItems.js
  89. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/login/imageCode.js
  90. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/sin-signature/sin-signature.js
  91. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/uni-mall-head/uni-mall-head.js
  92. 2 2
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/uni-mall-list/uni-mall-list.js
  93. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/attention/attention.js
  94. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/bill/bill.js
  95. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/bill/bill.wxml
  96. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billDetail/billDetail.js
  97. 1 1
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billDetail/billDetail.wxml
  98. 2 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.js
  99. 4 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.json
  100. 0 0
      virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.wxml

TEMPAT SAMPAH
virgo.wzfrontend/src/main/resources/static/.DS_Store


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/index.html


virgo.wzfrontend/src/main/resources/static/console/static/css/6458.48fa06e5.css → virgo.wzfrontend/src/main/resources/static/console/static/css/1836.48fa06e5.css


virgo.wzfrontend/src/main/resources/static/console/static/css/6796.48fa06e5.css → virgo.wzfrontend/src/main/resources/static/console/static/css/3862.48fa06e5.css


virgo.wzfrontend/src/main/resources/static/console/static/css/7049.3f9acf7e.css → virgo.wzfrontend/src/main/resources/static/console/static/css/5945.3f9acf7e.css


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/css/7965.266c7971.css


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/css/app.241fc66f.css


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/css/app.9548d587.css


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/1386-legacy.99b1272d.js


virgo.wzfrontend/src/main/resources/static/console/static/js/1386.eae3e26e.js → virgo.wzfrontend/src/main/resources/static/console/static/js/1386.81485edc.js


virgo.wzfrontend/src/main/resources/static/console/static/js/1620.95ef3c33.js → virgo.wzfrontend/src/main/resources/static/console/static/js/1620.939b2bff.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/6796.d3d35e73.js


virgo.wzfrontend/src/main/resources/static/console/static/js/1843-legacy.609ce71e.js → virgo.wzfrontend/src/main/resources/static/console/static/js/1843-legacy.fa27a8d4.js


virgo.wzfrontend/src/main/resources/static/console/static/js/2191.ea766e73.js → virgo.wzfrontend/src/main/resources/static/console/static/js/2191.d6da146e.js


virgo.wzfrontend/src/main/resources/static/console/static/js/2375.3f8ca077.js → virgo.wzfrontend/src/main/resources/static/console/static/js/2375.e3d6902d.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/2431-legacy.b3b73aaa.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/2431-legacy.d623b5b6.js


virgo.wzfrontend/src/main/resources/static/console/static/js/2527-legacy.7c6386fc.js → virgo.wzfrontend/src/main/resources/static/console/static/js/2527-legacy.d9bd9c55.js


virgo.wzfrontend/src/main/resources/static/console/static/js/2527.fb43ae94.js → virgo.wzfrontend/src/main/resources/static/console/static/js/2527.b9af54e3.js


virgo.wzfrontend/src/main/resources/static/console/static/js/285.83b77c24.js → virgo.wzfrontend/src/main/resources/static/console/static/js/285.54a4a639.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/3231-legacy.30c58eda.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/3231-legacy.b44b8b25.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/3630-legacy.c90467d6.js


virgo.wzfrontend/src/main/resources/static/console/static/js/3782.9f671127.js → virgo.wzfrontend/src/main/resources/static/console/static/js/3782.62298d5f.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/6458-legacy.0d5ef3f7.js


virgo.wzfrontend/src/main/resources/static/console/static/js/3875.2efab4cc.js → virgo.wzfrontend/src/main/resources/static/console/static/js/3875.e3a18e0b.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/5064-legacy.ff41d48c.js


virgo.wzfrontend/src/main/resources/static/console/static/js/5412.8818fcbc.js → virgo.wzfrontend/src/main/resources/static/console/static/js/5412.b0a1ea6c.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/5581-legacy.5d829a74.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/5581-legacy.dc23e345.js


virgo.wzfrontend/src/main/resources/static/console/static/js/5629-legacy.9a2ccab5.js → virgo.wzfrontend/src/main/resources/static/console/static/js/5629-legacy.9521f8bb.js


File diff ditekan karena terlalu besar
+ 6 - 6
virgo.wzfrontend/src/main/resources/static/console/static/js/7049-legacy.d484a9ce.js


virgo.wzfrontend/src/main/resources/static/console/static/js/6336-legacy.3405e614.js → virgo.wzfrontend/src/main/resources/static/console/static/js/6336-legacy.ae275ff4.js


virgo.wzfrontend/src/main/resources/static/console/static/js/6336.858b594f.js → virgo.wzfrontend/src/main/resources/static/console/static/js/6336.5adf931a.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/src/main/resources/static/console/static/js/4692-legacy.422119bf.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/7059-legacy.79cab041.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/9293-legacy.436b3347.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/9293.41304dc2.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/7719-legacy.1ba4bbc1.js


virgo.wzfrontend/src/main/resources/static/console/static/js/786.fea00c9b.js → virgo.wzfrontend/src/main/resources/static/console/static/js/786.f65d9624.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/7965-legacy.30777e9c.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/8391-legacy.4867be97.js


virgo.wzfrontend/src/main/resources/static/console/static/js/8869-legacy.19b77afd.js → virgo.wzfrontend/src/main/resources/static/console/static/js/8869-legacy.742f0ae8.js


virgo.wzfrontend/src/main/resources/static/console/static/js/924-legacy.2f61cf23.js → virgo.wzfrontend/src/main/resources/static/console/static/js/924-legacy.4f3703c9.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/9334-legacy.668a2eaa.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/9334-legacy.c5ef9275.js


virgo.wzfrontend/src/main/resources/static/console/static/js/9536-legacy.9e91f576.js → virgo.wzfrontend/src/main/resources/static/console/static/js/9536-legacy.6fb03c8f.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/app-legacy.b4da526a.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/app-legacy.dcd4f5b6.js


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/console/static/js/app.abd2c224.js


File diff ditekan karena terlalu besar
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/console/static/js/app.deb33bc7.js


+ 24 - 0
virgo.wzfrontend/yui_wx/pages.json

@@ -180,6 +180,30 @@
 		"style": {
 			"navigationBarTitleText": "账单详情"
 		}
+	}, {
+		"path": "pages/invoice/invoice",
+		"style": {
+			"navigationBarTitleText": "发票列表"
+		}
+	}, {
+		"path": "pages/invoiceDetail/invoiceDetail",
+		"style": {
+			"navigationBarTitleText": "发票详情"
+		}
+	},
+	{
+		"path" : "pages/billRecord/billRecord",
+		"style" : 
+		{
+			"navigationBarTitleText" : "账单付款"
+		}
+	},
+	{
+		"path" : "pages/billInvoice/billInvoice",
+		"style" : 
+		{
+			"navigationBarTitleText" : "账单发票"
+		}
 	}],
 	"tabBar": {
 		"color": "#8c8c8c",

+ 8 - 2
virgo.wzfrontend/yui_wx/pages/bill/bill.vue

@@ -20,11 +20,16 @@
 					</view>
 					<view class="state">
 						<view></view>
-						<view class="tag">
+						<view class="tag" v-if="type === 1">
 							<div class="status-tag info" v-if="!item.status">待付款</div>
 							<div class="status-tag warning" v-else-if="item.status === 1">付款中</div>
 							<div class="status-tag success" v-else-if="item.status === 2">已付款</div>
 						</view>
+						<view class="tag" v-else>
+							<div class="status-tag warning" v-if="item.status === 1">付款中</div>
+							<div class="status-tag success" v-else-if="item.status === 2">已付款</div>
+							<div class="status-tag info" v-else-if="item.status === 3">待付款</div>
+						</view>
 					</view>
 					<view class="icon">
 						<uni-icons custom-prefix="iconfont" :type="menu.iconClass" color="#08979c" size="30">
@@ -63,7 +68,7 @@
 			uni.setNavigationBarTitle({
 				title: this.menu.title
 			});
-			uni.$on('reloadContract', () => {
+			uni.$on('reloadBill', () => {
 				this.mescroll.resetUpScroll(false);
 			})
 		},
@@ -98,6 +103,7 @@
 					pageSize: 10,
 					projectId: this.$store.getters.project.id
 				}
+				console.log(this.$store.getters.identity);
 				if (this.$store.getters.identity.id === 3 || this.$store.getters.identity.id === 6) {
 					postData['organizationId'] = this.$store.getters.organization.id;
 					this.getBillList(postData);

+ 37 - 10
virgo.wzfrontend/yui_wx/pages/billDetail/billDetail.vue

@@ -3,8 +3,10 @@
 		<view class="detail">
 			<view class="detail-box">
 				<view class="title-box">
-					<view class="title">{{'第' + detail.phase + '期'}}</view>
-					<view class="date">{{detail.startDate}}至{{detail.endDate}}</view>
+					<view class="title" v-if="type == 1">{{'第' + detail.phase + '期'}}</view>
+					<view class="title" v-else>{{ detail.name}}</view>
+					<view class="date" v-if="type == 1">{{detail.startDate}}至{{detail.endDate}}</view>
+					<view class="date" v-else>{{detail.reminderDate}}</view>
 					<view class="title-icon">
 						<uni-icons type="icon-hetongwendang" custom-prefix="iconfont" color="#fff" size="18">
 						</uni-icons>
@@ -27,9 +29,9 @@
 				<view class="state">
 					<view></view>
 					<view class="tag">
-						<view class="status-tag info" v-if="!item.status">待付款</view>
-						<view class="status-tag warning" v-else-if="item.status === 1">付款中</view>
-						<view class="status-tag success" v-else-if="item.status === 2">已付款</view>
+						<view class="status-tag info" v-if="!detail.status">待付款</view>
+						<view class="status-tag warning" v-else-if="detail.status === 1">付款中</view>
+						<view class="status-tag success" v-else-if="detail.status === 2">已付款</view>
 					</view>
 				</view>
 			</view>
@@ -82,6 +84,12 @@
 				</view>
 			</view>
 		</view>
+		<view class="hui-button-box" v-if="operationBtn.length>0">
+			<view class="hui-button" v-for="(item,index) in operationBtn" :key="index"
+				@click="$navigateTo(item.type+'?billId='+billId+'&type='+type)">
+				{{item.name}}
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -94,15 +102,19 @@
 	export default {
 		data() {
 			return {
-				billId: '1',
-				type: '1',
-				detail: {}
+				billId: '',
+				type: '',
+				detail: {},
+				operationBtn: []
 			}
 		},
 		onLoad(body) {
-			// this.billId = body.billId;
-			// this.type = body.type;
+			this.billId = body.billId;
+			this.type = body.type;
 			this.init();
+			uni.$on('reloadBill', () => {
+				this.init();
+			})
 		},
 		methods: {
 			init() {
@@ -116,6 +128,21 @@
 			billSuccess(res) {
 				if (res.code === 200) {
 					this.detail = res.data;
+					if (!this.detail.status && (this.$store.getters.identity.id === 1 || this.$store.getters.identity
+							.id === 4)) {
+						this.operationBtn.push({
+							id: 1,
+							name: '账单付款',
+							type: '/pages/billRecord/billRecord'
+						})
+					}
+					if (this.detail.status === 1 && this.detail.organizationId === this.$store.getters.organization.id) {
+						this.operationBtn.push({
+							id: 2,
+							name: '账单发票',
+							type: '/pages/billInvoice/billInvoice'
+						})
+					}
 				}
 			}
 		},

+ 22 - 0
virgo.wzfrontend/yui_wx/pages/billInvoice/billInvoice.vue

@@ -0,0 +1,22 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 84 - 0
virgo.wzfrontend/yui_wx/pages/billRecord/billRecord.vue

@@ -0,0 +1,84 @@
+<template>
+	<view class="form-box file-form-box bill-record">
+		<uni-forms label-position="top" :modelValue="formData">
+			<uni-forms-item label="付款名称" name="name">
+				<uni-easyinput type="text" v-model="formData.name" placeholder="请输入付款名称" />
+			</uni-forms-item>
+			<uni-forms-item label="回执单">
+				<upload ref="upload" accept="all" type="insert"></upload>
+			</uni-forms-item>
+		</uni-forms>
+		<view class="hui-button-box">
+			<view class="hui-button" @click="submit">保存</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import upload from '@/components/common/upload.vue'
+	import {
+		insertPaymentRecord,
+		putPaymentStatus
+	} from '@/request/api/contract.js'
+	import {
+		updatePayment
+	} from '@/request/api/bill.js'
+	export default {
+		data() {
+			return {
+				formData: {
+					name: '',
+					paymentId: '',
+					paymentOrdinaryId: ''
+				},
+				type: '',
+				billId: ''
+			}
+		},
+		onLoad(body) {
+			this.type = body.type;
+			this.billId = body.billId;
+			let type = this.type == '1' ? 'paymentId' : 'paymentOrdinaryId';
+			this.formData[type] = body.billId;
+		},
+		methods: {
+			submit() {
+				if (!this.formData.name) return this.$toast('请输入付款名称');
+				let attachment = this.$refs.upload.getFile();
+				if (attachment.length === 0) return this.$toast('请上传回执单');
+				let postData = JSON.parse(JSON.stringify(this.formData));
+				postData['attachment'] = JSON.stringify(attachment);
+				insertPaymentRecord(postData).then(res => {
+					if (res.code === 200) {
+						if (this.type === '1') {
+							putPaymentStatus(this.billId, 1);
+						} else {
+							updatePayment({
+								id: this.billId,
+								status: 1
+							})
+						}
+						this.$toast('操作成功');
+						uni.$emit('reloadBill');
+						setTimeout(() => {
+							this.$navigateBack();
+						}, 400)
+					}
+				})
+			}
+		},
+		components: {
+			upload
+		},
+	}
+</script>
+
+<style lang="scss">
+	.bill-record {
+		padding: 30rpx;
+
+		.file-form-box {
+			padding-bottom: 0rpx;
+		}
+	}
+</style>

+ 2 - 2
virgo.wzfrontend/yui_wx/pages/index/index.vue

@@ -81,7 +81,7 @@
 				<view class="group-box">
 					<view class="small-box small-boxs">
 						<view class="small">
-							<view class="group-veiw bg9">
+							<view class="group-veiw bg9" @click="$navigateTo('/pages/invoice/invoice?type=2')">
 								<text class="label">合同发票</text>
 								<view class="group-icon">
 									<uni-icons custom-prefix="iconfont" type="icon-app-hetongguanli-hetongfapiao"
@@ -93,7 +93,7 @@
 					</view>
 					<view class="small-box small-boxs">
 						<view class="small">
-							<view class="group-veiw bg10">
+							<view class="group-veiw bg10" @click="$navigateTo('/pages/invoice/invoice?type=2')">
 								<text class="label">付款发票</text>
 								<view class="group-icon">
 									<uni-icons custom-prefix="iconfont" type="icon-integralrecord" color="#fff"

+ 170 - 0
virgo.wzfrontend/yui_wx/pages/invoice/invoice.vue

@@ -0,0 +1,170 @@
+<template>
+	<view>
+		<mescroll-body top="30" bottom="40" @init="mescrollInit" @down="downCallback" @up="upCallback" :option="{}">
+			<view class="common-list">
+				<view class="common-item" v-for="(item,index) in list" :key="item.id"
+					@click="$navigateTo('/pages/invoiceDetail/invoiceDetail?invoiceId='+item.id+'&type='+type)">
+					<view class="title">{{item.name}}</view>
+					<view class="date">{{$field.findTypeName('invoiceType',item.invoiceType)}}</view>
+					<view class="other">
+						<view class="item">
+							<view class="label">收款方</view>
+							<view class="value">{{item.organizationName}}</view>
+						</view>
+						<view class="item">
+							<view class="label">付款方</view>
+							<view class="value">{{item.payMerchantName || item.payClientName}}</view>
+						</view>
+					</view>
+					<view class="state">
+						<view></view>
+						<view class="tag">
+							<div class="status-tag success" v-if="!item.status">正常</div>
+							<div class="status-tag error" v-else-if="item.status === 1">作废</div>
+						</view>
+					</view>
+					<view class="icon">
+						<uni-icons custom-prefix="iconfont" :type="menu.iconClass" color="#08979c" size="30">
+						</uni-icons>
+					</view>
+				</view>
+			</view>
+		</mescroll-body>
+	</view>
+</template>
+
+<script>
+	import {
+		getInvoiceListByPage
+	} from '@/request/api/invouce.js'
+	import {
+		bindProjectDetail
+	} from '@/request/api/organization.js'
+
+	import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
+	export default {
+		mixins: [MescrollMixin], // 使用mixin
+		data() {
+			return {
+				list: [],
+				type: '',
+				menu: {},
+				payClientId: '',
+				payMerchantId: ''
+			}
+		},
+		onLoad(body) {
+			this.type = parseInt(body.type) || 1;
+			this.menu = this.title();
+			uni.setNavigationBarTitle({
+				title: this.menu.title
+			});
+			uni.$on('reloadContract', () => {
+				this.mescroll.resetUpScroll(false);
+			})
+		},
+		methods: {
+			title() {
+				let str = {
+					title: '',
+					iconClass: 'icon-app-hetongguanli-hetongfapiao'
+				};
+				switch (this.type) {
+					case 1:
+						str = {
+							title: '合同发票',
+							iconClass: 'icon-app-hetongguanli-hetongfapiao'
+						};
+						break;
+					case 2:
+						str = {
+							title: '常规发票',
+							iconClass: 'icon-integralrecord'
+						};
+						break;
+					default:
+						break;
+				}
+				return str;
+			},
+			/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
+			upCallback(page) {
+				let postData = {
+					currPage: page.num,
+					pageSize: 10,
+					projectId: this.$store.getters.project.id,
+					type: this.type
+				}
+				if (this.$store.getters.identity.id === 3 || this.$store.getters.identity.id === 6) {
+					postData['organizationId'] = this.$store.getters.organization.id;
+					this.getBillList(postData);
+				} else if (this.$store.getters.identity.id === 4) {
+					if (this.payMerchantId) {
+						postData['payMerchantId'] = this.payMerchantId;
+						this.getBillList(postData);
+						return;
+					}
+					bindProjectDetail({
+						bindOrganizationId: this.$store.getters.organization.id,
+						projectId: this.$store.getters.project.id,
+						identityId: 4
+					}).then(res => {
+						if (res.code === 200) {
+							if (res.data.length == 0) return this.mescroll.endBySize(0, 0);
+							this.payMerchantId = res.data[0].merchantId;
+							postData['payMerchantId'] = this.payMerchantId;
+							this.getBillList(postData);
+						} else {
+							this.mescroll.endErr();
+						}
+					}).catch(() => {
+						//联网失败, 结束加载
+						this.mescroll.endErr();
+					})
+				} else if (this.$store.getters.identity.id === 1) {
+					if (this.payClientId) {
+						postData['payClientId'] = this.payClientId;
+						this.getBillList(postData);
+						return;
+					}
+					bindProjectDetail({
+						userId: this.$store.getters.user.userId,
+						projectId: this.$store.getters.project.id,
+						identityId: 1
+					}).then(res => {
+						if (res.code === 200) {
+							if (res.data.length == 0) return this.mescroll.endBySize(0, 0);
+							this.payClientId = res.data[0].clientId;
+							postData['payClientId'] = this.payClientId;
+							this.getBillList(postData);
+						} else {
+							this.mescroll.endErr();
+						}
+					}).catch(() => {
+						//联网失败, 结束加载
+						this.mescroll.endErr();
+					})
+				}
+			},
+			getBillList(postData) {
+				getInvoiceListByPage(postData).then(res => {
+					if (res.code === 200) {
+						this.mescroll.endBySize(res.data.dataList.length, res.data.totalCount);
+						if (postData.currPage == 1) this.list = []; //如果是第一页需手动制空列表
+						let data = res.data.dataList;
+						this.list = this.list.concat(data); //追加新数据
+					} else {
+						this.mescroll.endErr();
+					}
+				}).catch(() => {
+					//联网失败, 结束加载
+					this.mescroll.endErr();
+				})
+			}
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 86 - 0
virgo.wzfrontend/yui_wx/pages/invoiceDetail/invoiceDetail.vue

@@ -0,0 +1,86 @@
+<template>
+	<view class="invoice-detail" v-if="detail.id">
+		<view class="detail">
+			<view class="detail-box">
+				<view class="title-box">
+					<view class="title">{{detail.name}}</view>
+					<view class="date">{{$field.findTypeName('invoiceType',detail.type)}}</view>
+					<view class="title-icon">
+						<uni-icons type="icon-hetongwendang" custom-prefix="iconfont" color="#fff" size="18">
+						</uni-icons>
+					</view>
+				</view>
+				<view class="other">
+					<view class="item">
+						<view class="label">发票代码</view>
+						<view class="value">{{detail.code || '-'}}</view>
+					</view>
+					<view class="item">
+						<view class="label">发票号码</view>
+						<view class="value">{{detail.number || '-'}}</view>
+					</view>
+					<view class="item">
+						<view class="label">货物名称</view>
+						<view class="value">{{detail.cargoName || '-'}}</view>
+					</view>
+				</view>
+				<view class="state">
+					<view></view>
+					<view class="tag">
+						<div class="status-tag success" v-if="!detail.status">正常</div>
+						<div class="status-tag error" v-else-if="detail.status === 1">作废</div>
+					</view>
+				</view>
+			</view>
+			<view class="detail-box file-box" v-if="detail.attachment && detail.attachment !='[]'">
+				<view class="sub-title">
+					<uni-icons type="images-filled" class="inherit-icons" size="26" color="#08979c"></uni-icons>
+					<text class="sub-label">发票附件</text>
+				</view>
+				<view class="other">
+					<upload ref="upload" accept="all" :list="detail.attachment ? JSON.parse(detail.attachment) : []" type="preview">
+					</upload>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		getInvoiceDetailById
+	} from '@/request/api/invouce.js'
+	import upload from '@/components/common/upload.vue'
+	export default {
+		data() {
+			return {
+				invoiceId: '',
+				type: '',
+				detail: {}
+			}
+		},
+		onLoad(body) {
+			this.invoiceId = body.invoiceId;
+			this.type = body.type;
+			this.init();
+		},
+		methods: {
+			init() {
+				if (!this.invoiceId) return;
+				getInvoiceDetailById(this.invoiceId).then(this.invoiceSuccess);
+			},
+			invoiceSuccess(res) {
+				if (res.code === 200) {
+					this.detail = res.data;
+				}
+			}
+		},
+		components: {
+			upload
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 4 - 5
virgo.wzfrontend/yui_wx/pages/projectList/projectList.vue

@@ -66,21 +66,20 @@
 								if (res.code === 200) {
 									this.$store.dispatch('app/changeOrganization', res.data);
 									selectOrangaized(res.data);
-									this.selectProject(item);
+									this.selectProject(item,identity);
 								}
 							})
 						} else {
-							this.selectProject(item);
+							this.selectProject(item,identity);
 						}
 					}
 				});
 			},
-			selectProject(item) {
+			selectProject(item,identity) {
 				selectProject(item.id).then(res => {
 					if (res.code === 200) {
-						let node = item.projectListIdentity[res.tapIndex];
 						this.$store.dispatch('app/changeProject', item);
-						this.$store.dispatch('app/changeIdentity', node);
+						this.$store.dispatch('app/changeIdentity', identity);
 						uni.setStorageSync('vuex_state', this.$store.state);
 						this.$toast('切换成功');
 						setTimeout(() => {

+ 12 - 0
virgo.wzfrontend/yui_wx/request/api/bill.js

@@ -46,4 +46,16 @@ export function getCommonPaymentDetailById(id) {
 		url: `/api/payment/ordinary/${id}`,
 		method: 'get'
 	})
+}
+/* 
+ * 更新账单
+ * 
+ * 
+ */
+export function updatePayment(data) {
+	return request({
+		url: `/api/payment/ordinary`,
+		method: 'put',
+		data: data
+	})
 }

+ 35 - 0
virgo.wzfrontend/yui_wx/request/api/contract.js

@@ -61,4 +61,39 @@ export function getPaymentListByPage(data) {
 		method: 'post',
 		data: data
 	})
+}
+/* 
+ * 新增付款记录
+ * @param {Object} data = {}
+ * 
+ */
+export function insertPaymentRecord(data) {
+	return request({
+		url: `/api/payment/record`,
+		method: 'post',
+		data: data
+	})
+}
+/* 
+ * 新增发票记录
+ * @param {Object} data = {}
+ * 
+ */
+export function insertPaymentInvoice(data) {
+	return request({
+		url: `/api/payment/invoice`,
+		method: 'post',
+		data: data
+	})
+}
+/* 
+ * 更新合同账单状态
+ * @param {Object} data = {}
+ * 
+ */
+export function putPaymentStatus(id, status) {
+	return request({
+		url: `/api/payment/updateStatus/${id}/${status}`,
+		method: 'put',
+	})
 }

+ 26 - 0
virgo.wzfrontend/yui_wx/request/api/invouce.js

@@ -0,0 +1,26 @@
+import {
+	request
+} from '@/request/request.js';
+/* 
+ * 分页获取发票列表
+ * 
+ * 
+ */
+export function getInvoiceListByPage(data) {
+	return request({
+		url: `/api/payment/invoice/${data.currPage}/${data.pageSize}`,
+		method: 'post',
+		data: data
+	})
+}
+/* 
+ * 通过id获取发票详情
+ * 
+ * 
+ */
+export function getInvoiceDetailById(id) {
+	return request({
+		url: `/api/payment/invoice/${id}/`,
+		method: 'get',
+	})
+}

+ 6 - 1
virgo.wzfrontend/yui_wx/static/scss/common.scss

@@ -9,7 +9,12 @@
 	text-overflow: ellipsis;
 }
 //修改uni-ui样式
-.form-box {
+.form-box {
+	&.file-form-box{
+		.uni-forms{
+			padding-bottom: 10rpx;
+		}
+	}
 	.uni-forms {
 		background: #fff;
 		border-radius: 16rpx;

File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/bill/bill.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billDetail/billDetail.js.map


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billInvoice/billInvoice.js.map


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/billRecord/billRecord.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/invoice/invoice.js.map


File diff ditekan karena terlalu besar
+ 1 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/invoiceDetail/invoiceDetail.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/message/message.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/myHouse/myHouse.js.map


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/projectList/projectList.js.map


+ 5 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/app.json

@@ -35,7 +35,11 @@
     "pages/contractDetail/contractDetail",
     "pages/requestSeal/requestSeal",
     "pages/bill/bill",
-    "pages/billDetail/billDetail"
+    "pages/billDetail/billDetail",
+    "pages/invoice/invoice",
+    "pages/invoiceDetail/invoiceDetail",
+    "pages/billRecord/billRecord",
+    "pages/billInvoice/billInvoice"
   ],
   "subPackages": [],
   "window": {

+ 3 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/common/main.wxss

@@ -150,6 +150,9 @@
   white-space: nowrap;
   text-overflow: ellipsis;
 }
+.form-box.file-form-box .uni-forms {
+  padding-bottom: 10rpx;
+}
 .form-box .uni-forms {
   background: #fff;
   border-radius: 16rpx;

File diff ditekan karena terlalu besar
+ 5 - 5
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/common/vendor.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/Winglau14-lotusCalendar/Winglau14-lotusCalendar.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/city-select/city-select.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/bill.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/navbar.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/process.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/common/upload.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/contract/clauseDetail.js


+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/contract/clauseDetail.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/house/houseItem.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/house/houseItems.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/login/imageCode.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/sin-signature/sin-signature.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/uni-mall-head/uni-mall-head.js


File diff ditekan karena terlalu besar
+ 2 - 2
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/components/uni-mall-list/uni-mall-list.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/attention/attention.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/bill/bill.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/bill/bill.wxml


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billDetail/billDetail.js


File diff ditekan karena terlalu besar
+ 1 - 1
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billDetail/billDetail.wxml


File diff ditekan karena terlalu besar
+ 2 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.js


+ 4 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "账单发票",
+  "usingComponents": {}
+}

+ 0 - 0
virgo.wzfrontend/yui_wx/unpackage/dist/dev/mp-weixin/pages/billInvoice/billInvoice.wxml


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini