diff --git a/src/api/onlineHome/bankAgriculture/paymentApproval.js b/src/api/onlineHome/bankAgriculture/paymentApproval.js new file mode 100644 index 00000000..1e65ec5b --- /dev/null +++ b/src/api/onlineHome/bankAgriculture/paymentApproval.js @@ -0,0 +1,102 @@ +import request from '@/utils/request' + +// 查询银行转账列表 +export function listTransfer(query) { + return request({ + url: '/yinnong/transfer/list', + method: 'get', + params: query + }) +} + +// 查询银行转账详细 +export function getTransfer(id) { + return request({ + url: '/yinnong/transfer/get/' + id, + method: 'get' + }) +} + +export function queryTransferDetail(transferId){ + return request({ + url: '/yinnong/transferDetail/getDetails/' + transferId, + method: 'get' + }) +} + +export function listPayee(query) { + return request({ + url: '/yinnong/payee/selectlist', + method: 'get', + params: query + }) +} + +// 修改银行转账 +export function updateTransfer(data) { + return request({ + url: '/yinnong/transfer/edit', + method: 'post', + data: data + }) +} + +// 查询工程项目关联关系详细 +export function getProjectto(query) { + return request({ + url: '/yinnong/project/getProjectto/', + method: 'get', + params: query + }) +} + +// 查询工程项目列表 +export function listProject(query) { + return request({ + url: '/yinnong/project/list', + method: 'get', + params: query + }) +} + +// 新增工程项目关联关系 +export function addProjectto(data) { + return request({ + url: '/yinnong/project/addProjectto', + method: 'post', + data: data + }) +} + +// 提交审批 +export function customSubmit(id) { + return request({ + url: '/yinnong/transfer/customSubmit/' + id, + method: 'post' + }) +} + +// 新增银行转账 +export function addTransfer(data) { + return request({ + url: '/yinnong/transfer/add', + method: 'post', + data: data + }) +} + +// 查询转账账户详情详细 +export function getTransferProcess(id) { + return request({ + url: '/yinnong/transfer/getProcessSchedule/' + id, + method: 'get' + }) +} + +// 查询转账账户详情详细 +export function getCashProcess(id) { + return request({ + url: '/yinnong/cash/getProcessSchedule/' + id, + method: 'get' + }) +} diff --git a/src/main.js b/src/main.js index 57316488..e7ed2bf7 100644 --- a/src/main.js +++ b/src/main.js @@ -18,7 +18,7 @@ import global from '@/utils/global'; import { getDicts } from "@/utils/data"; import { houseGetDicts } from '@/utils/data'; -import { selectDictLabel , onClickLeft , getNowFormatDate } from "@/utils/utils"; +import { selectDictLabel , onClickLeft , getNowFormatDate , format } from "@/utils/utils"; //全局方法挂载 Vue.prototype.getDicts = getDicts @@ -26,6 +26,7 @@ Vue.prototype.houseGetDicts = houseGetDicts Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.onClickLeft = onClickLeft Vue.prototype.getNowFormatDate = getNowFormatDate +Vue.prototype.format = format Vue.prototype.global = global // Vant 引用 diff --git a/src/router/index.js b/src/router/index.js index e5e62274..d858447a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -969,6 +969,15 @@ export const constantRoutes = [ }, component: (resolve) => require(['@/views/onlineHome/bankAgriculture/paymentApproval/approvalList'], resolve) }, + { + path: '/approvalDetail', + name: 'approvalDetail', + meta: { + title: '银农支付付款申请', + hidden: true, + }, + component: (resolve) => require(['@/views/onlineHome/bankAgriculture/paymentApproval/approvalDetail'], resolve) + }, { path: '/approvalAdd', name: 'approvalAdd', diff --git a/src/utils/utils.js b/src/utils/utils.js index 4ed42b18..cff5d851 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -48,3 +48,30 @@ export function getNowFormatDate(time) { return currentdate; } + +export function format(time, format) { + var t = new Date(time); + var tf = function (i) { return (i < 10 ? '0' : '') + i }; + return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) { + switch (a) { + case 'yyyy': + return tf(t.getFullYear()); + break; + case 'MM': + return tf(t.getMonth() + 1); + break; + case 'mm': + return tf(t.getMinutes()); + break; + case 'dd': + return tf(t.getDate()); + break; + case 'HH': + return tf(t.getHours()); + break; + case 'ss': + return tf(t.getSeconds()); + break; + } + }) +} diff --git a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue index 59137a95..d9e91b9c 100644 --- a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue +++ b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalAdd.vue @@ -12,13 +12,13 @@

基础信息

- - - + + + - + @@ -255,4 +516,11 @@ right: 0; border-radius: 50%; } + .deleteFamily{ + position: absolute; + top: 0rem; + right: 6%; + z-index: 9; + border-radius: 50%; + } diff --git a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalDetail.vue b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalDetail.vue index 59137a95..12b3c619 100644 --- a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalDetail.vue +++ b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalDetail.vue @@ -7,220 +7,346 @@ @click-left="$router.back(-1)" > +

基础信息

- - - - - - - - - - - - - - + + + + + +
- +
- +
-

列表信息

-
- - - - - - - - - - - +
+ + + + +
-
- - - - - - 保存并提交 - - -
+ +

列表信息

+
+
+ + + + + +
@@ -255,4 +381,11 @@ right: 0; border-radius: 50%; } + .deleteFamily{ + position: absolute; + top: 0rem; + right: 6%; + z-index: 9; + border-radius: 50%; + } diff --git a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalList.vue b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalList.vue index 7b78bac5..b3d10056 100644 --- a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalList.vue +++ b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalList.vue @@ -22,21 +22,21 @@ @load="getList" > - + @@ -46,27 +46,25 @@ @@ -255,4 +504,11 @@ right: 0; border-radius: 50%; } + .deleteFamily{ + position: absolute; + top: 0rem; + right: 6%; + z-index: 9; + border-radius: 50%; + } diff --git a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalProcess.vue b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalProcess.vue index 35ca342d..a61a5ece 100644 --- a/src/views/onlineHome/bankAgriculture/paymentApproval/approvalProcess.vue +++ b/src/views/onlineHome/bankAgriculture/paymentApproval/approvalProcess.vue @@ -5,62 +5,333 @@ fixed placeholder @click-left="$router.back(-1)" - @click-right="goAdd()" > -
- - + +

草稿
- +

- 待审批 + 已申请 - 已通过 - 2021-09-01 + {{processList.申请人}} + {{processList.申请时间}}
-

- 乡镇审批 + +

+

+

+
+ +

乡镇审批

+

乡镇审批

+

乡镇审批

+ + +

审批人:{{processList.乡镇审批人}}

+

审批人:{{processList.乡镇审批人}}

+

审批人:{{processList.乡镇审批人}}

+
+ +

审批时间:{{processList.乡镇审批时间}}

+

审批时间:{{processList.乡镇审批时间}}

+

审批时间:{{processList.乡镇审批时间}}

+
+
+
- -

- 区县审批 + + +

+

+

+
+ +

区县审批

+

区县审批

+

区县审批

+ + +

审批人:{{processList.区县审批人}}

+

审批人:{{processList.区县审批人}}

+

审批人:{{processList.区县审批人}}

+
+ +

审批时间:{{processList.区县审批时间}}

+

审批时间:{{processList.区县审批时间}}

+

审批时间:{{processList.区县审批时间}}

+
+
+
- -

- 待支付 + + +

+

+

+
+ +

待支付

+

支付成功

+

支付异常

+ + +

支付时间:{{processList.支付时间}}

+
+
+
- -

- 未入账 + + +

+

+

+
+ +

未入账

+

入账成功

+

入账异常

+ + +

入账时间:{{processList.入账时间}}

+
+
+
@@ -91,9 +362,15 @@ export default { .blue{ background-color: #1D6FE9; } + .red{ + background-color: rgb(245, 108, 108); + } .textBlue{ color: #1D6FE9!important; } + .textRed{ + color: rgb(245, 108, 108)!important; + } .van-col{ padding: 20Px 10Px; }