|
- import request from '@/utils/request'
-
- // 查询固定资产列表
- export function permanentList(query) {
- return request({
- url: '/asset/permanent/list',
- method: 'get',
- params: query
- })
- }
- // 查询合同信息列表
- 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 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) {
- console.log(query)
- return request({
- url: '/villageAffairs/public/financePublicList',
- method: 'get',
- params: query
- })
- }
-
- //获取区、镇、村地区
- export function treeselectByUser(query) {
- return request({
- url: '/system/dept/treeselectByUser',
- method: 'get',
- params: query
- })
- }
- //获取账套列表
- 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
- })
- }
|