|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879 |
- import request from '@/utils/request'
-
- // 查询固定资产列表
- export function permanentList(query) {
- return request({
- url: '/asset/permanent/list',
- method: 'get',
- params: query
- })
- }
- // 查询一张图
- export function pictureList(query) {
- return request({
- url: '/villageAffairs/public/picturePublicList',
- method: 'get',
- params: query
- })
- }
- // 新增一张图
- export function pictureAdd(data) {
- return request({
- url: '/subcontract/picture/add',
- method: 'post',
- data: data
- })
- }
- // 修改一张图
- export function pictureEdit(data) {
- return request({
- url: '/subcontract/picture/edit',
- method: 'post',
- data: data
- })
- }
-
- // 删除一张图
- export function pictureRemove(id) {
- return request({
- url: '/subcontract/picture/remove/' + id,
- method: 'get'
- })
- }
-
- // 一张图详情
- export function pictureGet(query) {
- return request({
- url: '/villageAffairs/public/picturePublicDetail',
- method: 'get',
- params: query
- })
- }
-
- // 查询合同
- export function otherPublicList(query) {
- return request({
- url: '/villageAffairs/public/otherPublicList',
- method: 'get',
- params: query
- })
- }
-
- // 合同详情
- export function otherPublicDetail(query) {
- return request({
- url: '/villageAffairs/public/otherPublicDetail',
- method: 'get',
- params: query
- })
- }
-
- // 删除合同
- export function otherRemove(id) {
- return request({
- url: '/subcontract/other/remove/' + id,
- method: 'get'
- })
- }
-
- // 新增一张图
- export function otherAdd(data) {
- return request({
- url: '/subcontract/other/add',
- method: 'post',
- data: data
- })
- }
-
- // 修改一张图
- export function otherEdit(data) {
- return request({
- url: '/subcontract/other/edit',
- method: 'post',
- data: data
- })
- }
-
- // 查询合同信息列表
- export function contractionList(query) {
- return request({
- url: '/contraction/info/list',
- method: 'get',
- params: query
- })
- }
- // 新增固定资产
- export function addPermanent(data) {
- return request({
- url: '/asset/permanent/add',
- method: 'post',
- data: data
- })
- }
- // 查询固定资产详细
- export function getPermanent(id) {
- return request({
- url: '/asset/permanent/get/' + id,
- method: 'get'
- })
- }
- // 修改固定资产
- export function updatePermanent(data) {
- return request({
- url: '/asset/permanent/edit',
- method: 'post',
- data: data
- })
- }
- // 删除固定资产
- export function delPermanent(id) {
- return request({
- url: '/asset/permanent/remove/' + id,
- method: 'get'
- })
- }
- //上传全局方法附件
- export function commonAttach(data) {
- return request({
- url: '/common/attach',
- method: 'post',
- header: { "Content-Type": 'application/x-www-form-urlencoded' },
- data: data
- })
- }
- //上传全局方法附件
- export function commonUpload(data) {
- return request({
- url: '/common/upload',
- method: 'post',
- header: { "Content-Type": 'application/x-www-form-urlencoded' },
- data: data
- })
- }
- //查询已上传附件
- export const attachmentList = (data) => {
- return request({
- url: '/system/attachment/query',
- method: 'get',
- params: data
- })
- }
- //删除已上传附件
- export function systemAttachment(ids) {
- if (ids != undefined) {
- return request({
- url: '/system/attachment/remove/' + ids,
- method: 'get'
- })
- }
- }
- // 新增合同信息
- export function addInfo(data) {
- return request({
- url: '/contraction/info/add',
- method: 'post',
- data: data
- })
- }
- // 查询合同信息详细
- export function getInfo(id) {
- return request({
- url: '/contraction/info/get/' + id,
- method: 'get'
- })
- }
- // 删除合同信息
- export function delInfo(id) {
- return request({
- url: '/contraction/info/remove/' + id,
- method: 'get'
- })
- }
- // 修改合同信息
- export function updateInfo(data) {
- return request({
- url: '/contraction/info/edit',
- method: 'post',
- data: data
- })
- }
- // 财务公开列表
- export function financePublicList(query) {
- return request({
- url: '/villageAffairs/public/financePublicList',
- method: 'get',
- params: query
- })
- }
- // 零工公开列表
- export function tempWorkerPublicList(query) {
- return request({
- url: '/villageAffairs/public/tempWorkerPublicList',
- method: 'get',
- params: query
- })
- }
- // 重大事项公开列表
- export function majorEventPublicList(query) {
- return request({
- url: '/villageAffairs/public/majorEventPublicList',
- method: 'get',
- params: query
- })
- }
- // 财务公开详情
- export function financePublicDetail(query) {
- return request({
- url: '/villageAffairs/public/financePublicDetail',
- method: 'get',
- params: query
- })
- }
- // 零工公开详情
- export function tempWorkerPublicDetail(query) {
- return request({
- url: '/villageAffairs/public/tempWorkerPublicDetail',
- method: 'get',
- params: query
- })
- }
- // 重大事项公开详情
- export function majorEventPublicDetail(query) {
- return request({
- url: '/villageAffairs/public/majorEventPublicDetail',
- method: 'get',
- params: query
- })
- }
-
- //获取区、镇、村地区
- export function treeselectByUser(query) {
- return request({
- url: '/system/dept/treeselectByUser',
- method: 'get',
- params: query
- })
- }
-
- // 查询部门下拉树结构
- export function treeselect() {
- return request({
- url: '/depositm/dept/treeselect',
- method: 'get'
- })
- }
-
- //获取账套列表
- export function listByDeptId(query) {
- return request({
- url: '/finance/book/listByDeptId',
- method: 'get',
- params: query
- })
- }
-
- // 切换部门
- export function changeDept(query) {
- return request({
- url: '/system/user/changeDept',
- method: 'get',
- params: query
- })
- }
- // 切换账套
- export function changeBook(query) {
- return request({
- url: '/system/user/changeBook',
- method: 'get',
- params: query
- })
- }
- // 财务公开新增
- export function openAdd(data) {
- return request({
- url: '/open/open/add',
- method: 'post',
- data: data
- })
- }
- // 财务公开修改
- export function openEdit(data) {
- return request({
- url: '/open/open/edit',
- method: 'post',
- data: data
- })
- }
- // 零工公开新增
- export function tempWorkerOpenAdd(data) {
- return request({
- url: '/subcontract/tempWorkerOpen/add',
- method: 'post',
- data: data
- })
- }
- // 零工公开修改
- export function tempWorkerOpenEdit(data) {
- return request({
- url: '/subcontract/tempWorkerOpen/edit',
- method: 'post',
- data: data
- })
- }
- // 重大事项新增
- export function majorEventOpenAdd(data) {
- return request({
- url: '/subcontract/majorEventOpen/add',
- method: 'post',
- data: data
- })
- }
- // 重大事项修改
- export function majorEventOpenEdit(data) {
- return request({
- url: '/subcontract/majorEventOpen/edit',
- method: 'post',
- data: data
- })
- }
- // 财务公开删除
- export function openRemove(id) {
- return request({
- url: '/open/open/remove/' + id,
- method: 'get'
- })
- }
- // 零工公开删除
- export function tempWorkerOpenRemove(id) {
- return request({
- url: '/subcontract/tempWorkerOpen/remove/' + id,
- method: 'get'
- })
- }
- // 零工公开删除
- export function majorEventOpenRemove(id) {
- return request({
- url: '/subcontract/majorEventOpen/remove/' + id,
- method: 'get'
- })
- }
-
- // 查询零工登记列表
- export function listOddjob(query) {
- return request({
- url: '/villageAffairs/public/oddjobList',
- method: 'get',
- params: query
- })
- }
-
- // 新增零工登记
- export function addOddjob(data) {
- return request({
- url: '/subcontract/oddjob/add',
- method: 'post',
- data: data
- })
- }
-
- // 修改零工登记
- export function updateOddjob(data) {
- return request({
- url: '/subcontract/oddjob/edit',
- method: 'post',
- data: data
- })
- }
-
- // 查询零工登记详细
- export function getOddjob(id) {
- return request({
- url: '/subcontract/oddjob/get/' + id,
- method: 'get'
- })
- }
-
- // 删除零工登记
- export function delOddjob(id) {
- return request({
- url: '/subcontract/oddjob/remove/' + id,
- method: 'get'
- })
- }
-
- // 财务公开榜
- export function financialAmountPublicMonthList(query) {
- return request({
- url: '/villageAffairs/public/financialAmountPublicMonthList',
- method: 'get',
- params: query // ?bookId=<账套ID 必填>&yearMonth=<查询年月 必填 yyyy-MM>
- })
- }
-
- // 查询用户个人信息
- export function getUserProfile() {
- return request({
- url: '/system/user/profile/get',
- method: 'get'
- })
- }
-
- // 修改用户个人信息
- export function updateUserProfile(data) {
- return request({
- url: '/system/user/profile/edit',
- method: 'post',
- data: data
- })
- }
-
- // 用户密码重置
- export function updateUserPwd(oldPassword, newPassword) {
- const data = {
- oldPassword,
- newPassword
- }
- return request({
- url: '/system/user/profile/updatePwd',
- method: 'post',
- params: data
- })
- }
-
- // 查询账套基本信息
- export function bookInfo(bookId) {
- return request({
- url: `/villageAffairs/public/bookInfo/${bookId}`,
- method: 'get',
- })
- }
-
- // 查询科目余额表 可分页 需授权
- export function trailBalanceList(query) {
- return request({
- url: '/finance/balance/list',
- method: 'get',
- params: query // ?startDate=<开始年月 yyyy-MM>&startSubjectId=<起始科目ID>&endSubjectId=<结束科目ID 如果需要查询单个科目 则设置为和startSubjectId一样即可>&filterZero=<bool 是否过滤掉余额为0结果>&showSubSubject=<bool 是否显示下级科目>&分页参数...
- })
- }
-
- export function getLoginBook() {
- return request({
- url: '/finance/book/getLoginBook',
- method: 'get'
- })
- }
-
- // 查询投票主题列表
- export function listPoll(deptId , query) {
- return request({
- url: `/villageAffairs/public/poll/list/${deptId}`,
- method: 'get',
- params: query
- })
- }
-
- // 姓名, 账套ID, 身份证, 返回里会有个id字段
- export function checkFarmer(data) {
- return request({
- url: '/register/checkFarmer',
- method: 'post',
- data: data,
- })
- }
-
- // 查询投票主题详细
- export function getPoll(id) {
- return request({
- url: `/villageAffairs/public/poll/detail/${id}`,
- method: 'get'
- })
- }
-
- // 投票 id为主题ID, option为投票选项ID, 多个用,分隔, userId为认证后的农户ID
- export function votePoll(id, data) {
- return request({
- url: `/villageAffairs/public/poll/vote/${id}`,
- method: 'post',
- params: data,
- })
- }
-
- // 新增投票主题
- export function addPoll(data) {
- return request({
- url: '/poll/poll/add',
- method: 'post',
- data: data
- })
- }
-
- // 修改投票主题
- export function updatePoll(data) {
- return request({
- url: '/poll/poll/edit',
- method: 'post',
- data: data
- })
- }
-
- // 删除投票主题
- export function delPoll(id) {
- return request({
- url: '/poll/poll/remove/' + id,
- method: 'get'
- })
- }
-
- // 发布投票主题
- export function publicPoll(id) {
- return request({
- url: '/poll/poll/publicPoll/'+ id,
- method: 'get'
- })
- }
-
- // 获取会计科目列表
- export const subjectData = (query) => {
- return request({
- url: '/finance/subject/listAll',
- method: 'get',
- params: query
- })
- }
-
- //普通明细账接口
- export function listNormalDetails(query) {
- return request({
- url: '/finance/balance/listNormalDetails',
- method: 'get',
- params: query
- })
- }
- //查询凭证信息明细
- export const voucherDetail = (data) => {
- return request({
- url: '/finance/voucher/detail',
- method: 'get',
- params: data
- })
- }
-
- //统计填报列表数据
- export const statisticsList = (data) => {
- return request({
- url: '/entity/statistics/list',
- method: 'get',
- params: data
- })
- }
-
- // 删除统计填报列表数据
- export function delStatisticsRemove(id) {
- return request({
- url: '/entity/statistics/remove/' + id,
- method: 'get'
- })
- }
-
- //统计填报 - 模板
- export const entityStatisticsTemplate = (data) => {
- return request({
- url: '/entity/statistics/entityStatisticsTemplate',
- method: 'get',
- params: data
- })
- }
-
- //统计填报 -保存模板
- export const entityStatisticsSave = (data) => {
- return request({
- url: '/entity/statistics/save',
- method: 'post',
- data: data
- })
- }
-
- //统计填报 - 编辑
- export const entityStatisticsDetail = (id) => {
- return request({
- url: '/entity/statistics/detail/'+id,
- method: 'get'
- })
- }
-
- //阳光村务请求菜单
- export function menus(query) {
- return request({
- url: '/system/mobile/menus',
- method: 'get',
- params: query
- })
- }
-
- //阳光村务请求菜单
- export function nologinMenus(query) {
- return request({
- url: '/system/mobile/nologinMenus',
- method: 'get',
- params: query
- })
- }
-
- //公章
- export function current(query) {
- return request({
- url: '/system/dept/get/current',
- method: 'get',
- params: query
- })
- }
-
- //公章
- export function updateSeal(data) {
- return request({
- url: '/system/dept/updateSeal/seal',
- method: 'post',
- data: data
- })
- }
-
- //公章
- export function updateSeal2(data) {
- return request({
- url: '/system/dept/updateSeal/seal2',
- method: 'post',
- data: data
- })
- }
-
- //甲方合同网签
- export function contractFirstList(query) {
- return request({
- url: '/transaction/contract/firstList',
- method: 'get',
- params: query
- })
- }
-
- //乙方合同网签
- export function contractSecondList(query) {
- return request({
- url: '/transaction/contract/secondList',
- method: 'get',
- params: query
- })
- }
-
- //签名
- export function signFirst(data,id) {
- return request({
- url: '/transaction/contract/sign/first/'+id,
- method: 'post',
- data: data
- })
- }
-
- //签名
- export function signSecond(data,id) {
- return request({
- url: '/transaction/contract/sign/second/'+id,
- method: 'post',
- data: data
- })
- }
-
- //甲方合同网签详情
- export function contractGet(query,id) {
- return request({
- url: '/transaction/contract/get/'+id,
- method: 'get',
- params:query
- })
- }
-
- //线下合同附件列表
- export function contractFileList(id) {
- return request({
- url: '/transaction/website/contractFileList/id/'+id,
- method: 'get',
- })
- }
-
- //线上合同预览
- export function previewContractFile(id) {
- return request({
- url: '/transaction/website/previewContractFile/id/'+id,
- method: 'get',
- })
- }
-
- // 查询多标段合同列表
- export function listMultiplelots(query) {
- return request({
- url: '/transaction/multiplelots/list',
- method: 'get',
- params: query
- })
- }
-
- // 查询多标段合同详情
- export function getMultiplelots(query, id) {
- return request({
- url: '/transaction/multiplelots/get/' + id,
- method: 'get',
- params: query
- })
- }
-
- // 标段合同甲方签字
- export function multipleLotsFirstSign(data, id) {
- return request({
- url: '/transaction/multiplelots/firstSign/' + id,
- method: 'post',
- data: data
- })
- }
-
- // 查询标段农户信息
- export function listMultipleLotsNh(query) {
- return request({
- url: '/home/mobile/multipleLotsNh/list',
- method: 'get',
- params: query
- })
- }
-
- // 查询标段农户详情
- export function getMultiplelotsNh(query, id) {
- return request({
- url: '/home/mobile/multipleLotsNh/get/' + id,
- method: 'get',
- params: query
- })
- }
-
- // 标段合同乙方签字
- export function multipleLotsSecondSign(data, id) {
- return request({
- url: '/home/mobile/multiplelotsnh/secondSign/' + id,
- method: 'post',
- data: data
- })
- }
-
- // 查询承包合同列表
- export function listCbht(query) {
- return request({
- url: '/service/cbht/list',
- method: 'get',
- params: query
- })
- }
-
- // 承包合同甲方签名
- export function cbhtFirstSign(data,id) {
- return request({
- url: '/home/mobile/cbht/sign/first/' + id,
- method: 'post',
- data: data
- })
- }
-
- // 查询承包合同详细
- export function getCbht(query, id) {
- return request({
- url: '/home/mobile/cbht/get/' + id,
- method: 'get',
- params: query
- })
- }
-
- // 查询承包方信息
- export function getCbf(idcard) {
- return request({
- url: '/home/mobile/cbf/get/' + idcard,
- method: 'get'
- })
- }
-
- // 查询承包合同信息
- export function getCbhtList(query) {
- return request({
- url: '/home/mobile/cbht/list',
- method: 'get',
- params: query
- })
- }
-
- // 承包合同乙方签名
- export function cbhtSecondSign(data,id) {
- return request({
- url: '/home/mobile/cbht/sign/second/' + id,
- method: 'post',
- data: data
- })
- }
-
- // 附件查询
- export function attachmentQuery(query) {
- return request({
- url: '/home/mobile/attach/query',
- method: 'get',
- params: query
- })
- }
-
- // 附件删除
- export function attachmentRemove(ids) {
- return request({
- url: '/home/mobile/attach/remove/' + ids,
- method: 'get'
- })
- }
-
- // 附件上传
- export function attachmentUpload(data) {
- return request({
- url: '/home/mobile/common/attach',
- method: 'post',
- header: { "Content-Type": 'application/x-www-form-urlencoded' },
- data: data
- })
- }
-
- // 附件上传
- export function publicUpload(data) {
- return request({
- url: '/villageAffairs/public/upload',
- method: 'post',
- header: { "Content-Type": 'application/x-www-form-urlencoded' },
- data: data
- })
- }
-
- // 投诉建议列表
- export function adviceList(query) {
- return request({
- url: '/villageAffairs/public/adviceList',
- method: 'get',
- params: query
- })
- }
-
- // 新增投诉建议
- export function addAdvice(data) {
- return request({
- url: '/villageAffairs/public/addAdvice',
- method: 'post',
- data: data
- })
- }
-
- // 投诉建议详情
- export function getAdvice(id) {
- return request({
- url: '/villageAffairs/public/getAdvice/'+id,
- method: 'get',
- })
- }
|