diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js index ada3b6ff3b..6615db3fdd 100644 --- a/yxt-as-ui/src/api/Common/dictcommons.js +++ b/yxt-as-ui/src/api/Common/dictcommons.js @@ -69,6 +69,16 @@ export function selectOrgList(data) { }) } +// 根据当前登录用户的全路径查询财务部门下的所有人 +export function selFianceByOrgSidPath(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/portal/v1/sysstafforg/selFianceByOrgSidPath', + method: 'post', + params: data + }) +} + // 当前用户创建申请时判断该用户是否有该菜单的操作权限 export function selectHaveMessage(data) { return request({ diff --git a/yxt-as-ui/src/api/storage/stocktaking.js b/yxt-as-ui/src/api/storage/stocktaking.js index c78fcbe11d..57f75391ba 100644 --- a/yxt-as-ui/src/api/storage/stocktaking.js +++ b/yxt-as-ui/src/api/storage/stocktaking.js @@ -2,50 +2,154 @@ import request from '@/utils/request' export default { + // 生成盘点点 + createBill: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/createBill', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + // 查询分页列表 listPage: function(params) { return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", url: '/wms/v1/wmsinventorycheckbill/listPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, -// 新增、保存 - save: function(data) { + + // 生成盘点报告 + billCreateReport: function(data) { return request({ - url: '/wms/v1/wmsinventorycheckbill/save', + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/billCreateReport', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }); }, - // 初始化 + // 盘点单详情 + billDetail: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/billDetail', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 盘库列表 + billStocktak: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/billStocktak', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 库位盘点明细列表 + billRackCodeDetail: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/billRackCodeDetail', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 初始化盘库报告 init: function(data) { return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", url: '/wms/v1/wmsinventorycheckbill/fetchDetailsBySid/' + data, method: 'get' }); }, -// 查询所有商品 + // 保存盘点报告 + saveReport: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/saveReport', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 查询所有商品 getWarehousesGoods: function(params) { return request({ url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, // 盘点 - inven: function(params) { + submitReport: function(params) { return request({ - url: '/wms/v1/wmsinventorycheckbill/inven', + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/submitReport', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, + + downloadExcel: function() { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/downloadExcel', + method: 'post', + responseType: 'blob', // 表明返回服务器返回的数据类型 + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + downloadPDF: function() { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/wms/v1/wmsinventorycheckbill/downloadPdf', + method: 'post', + responseType: 'blob', // 表明返回服务器返回的数据类型 + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/utils/axios.js b/yxt-as-ui/src/utils/axios.js index 56ca72360e..af7191950b 100644 --- a/yxt-as-ui/src/utils/axios.js +++ b/yxt-as-ui/src/utils/axios.js @@ -1,7 +1,12 @@ import axios from 'axios' import router from '@/router' -import { Message } from 'element-ui' -import { removeToken, getToken } from '@/utils/auth' +import { + Message +} from 'element-ui' +import { + removeToken, + getToken +} from '@/utils/auth' // 统一请求路径前缀 const base = process.env.VUE_APP_BASE_API // 超时设定 diff --git a/yxt-as-ui/src/utils/request.js b/yxt-as-ui/src/utils/request.js index c9d3f4eec7..23d14aca6f 100644 --- a/yxt-as-ui/src/utils/request.js +++ b/yxt-as-ui/src/utils/request.js @@ -1,14 +1,22 @@ import axios from 'axios' -import { MessageBox, Message } from 'element-ui' +import { + MessageBox, + Message +} from 'element-ui' import store from '@/store' -import { getToken, getStorage } from '@/utils/auth' +import { + getToken, + getStorage +} from '@/utils/auth' // create an axios instance console.log(process.env.VUE_APP_URL) const service = axios.create({ baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url // timeout: 5000 // request timeout - headers:{'Content-Type':'application/x-www-form-urlencoded;'} + headers: { + 'Content-Type': 'application/x-www-form-urlencoded;' + } }) // request interceptor @@ -36,9 +44,9 @@ service.interceptors.response.use( response => { const res = response.data - if(res.type !=undefined){ - return res - } + if (res.type != undefined) { + return res + } // if the custom code is not 20000, it is judged as an error. if (res.code != 200) { if (res.msg == "请重新登录") { diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue index 9f7970ca3e..c7d0989a71 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue @@ -26,14 +26,14 @@ * 操作人 - {{formobj.createByName}} + {{ formobj.createByName }} * 操作部门 - {{formobj.deptName}} + {{ formobj.deptName }} @@ -51,8 +51,13 @@ * 领料人 - + @@ -77,14 +82,14 @@ 维修工单编号 - {{formobj.sourceBillNo}} + {{ formobj.sourceBillNo }} 单据日期 - {{formobj.billDate}} + {{ formobj.billDate }} @@ -101,21 +106,21 @@ 工单类型 - {{formobj.billType}} + {{ formobj.billType }} 科目 - {{formobj.subject}} + {{ formobj.subject }} 是否外出 - + 是 否 @@ -128,14 +133,14 @@ 客户名称 - {{formobj.customerName}} + {{ formobj.customerName }} 车牌号/车架号 - {{formobj.vehMark}}/{{formobj.vinNo}} + {{ formobj.vehMark }}/{{ formobj.vinNo }} @@ -178,8 +183,12 @@ 前台登记时对商品要求备注 - + @@ -197,7 +206,10 @@ - @@ -211,15 +223,23 @@ - - + @@ -233,8 +253,12 @@ - + @@ -257,399 +281,385 @@ diff --git a/yxt-as-ui/src/views/storage/stocktaking/stocktakingInfo.vue b/yxt-as-ui/src/views/storage/stocktaking/stocktakingInfo.vue new file mode 100644 index 0000000000..b74708dfa8 --- /dev/null +++ b/yxt-as-ui/src/views/storage/stocktaking/stocktakingInfo.vue @@ -0,0 +1,278 @@ + + + + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 商品盘点记录 + + + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeDetail.vue b/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeDetail.vue new file mode 100644 index 0000000000..85b3650108 --- /dev/null +++ b/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeDetail.vue @@ -0,0 +1,263 @@ + + + + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 商品盘点记录 + + + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeList.vue b/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeList.vue new file mode 100644 index 0000000000..37ea05c85f --- /dev/null +++ b/yxt-as-ui/src/views/storage/stocktaking/stocktakingRackCodeList.vue @@ -0,0 +1,272 @@ + + + + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 库位盘点列表 + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yxt-as-ui/src/views/storage/stocktaking/stocktakingReportDetail.vue b/yxt-as-ui/src/views/storage/stocktaking/stocktakingReportDetail.vue new file mode 100644 index 0000000000..d12d9ed218 --- /dev/null +++ b/yxt-as-ui/src/views/storage/stocktaking/stocktakingReportDetail.vue @@ -0,0 +1,221 @@ + + + + + 盘库报告 + + 下载pdf + 关闭 + + + + + + + + 发起人 + {{ formobj.createByName }} + + + 发起部门 + {{ formobj.deptName }} + + + 发起日期 + {{ formobj.createTime }} + + + + + + 盘点人 + {{ formobj.createName }} + + + 监盘人 + {{ formobj.finances }} + + + 备注 + {{ formobj.remarks }} + + + + + 总体盘点情况 + 明细下载 + + + + + + 应盘数量: + {{formobj.ypNum}} + + + + 应盘金额: + {{formobj.ypMoney}} + + + + 实盘数量: + {{formobj.spNum}} + + + + 实盘金额: + {{formobj.spMoney}} + + + + 盘盈数量: + {{formobj.pyNum}} + + + + 盘盈金额: + {{formobj.pyMoney}} + + + + 盘亏数量: + {{formobj.pkNum}} + + + + 盘亏金额: + {{formobj.pkMoney}} + + + + 盘损数量: + {{formobj.psNum}} + + + + 盘损金额: + {{formobj.psMoney}} + + + + + + 仓库盘点情况 + + + + + + + + + + + + + + + + + + 库区盘点情况 + + + + + + + + + + + + + + + + + + + + + + + + +