领料出库新增出库单
This commit is contained in:
parent
5afda4151a
commit
a308207b26
|
|
@ -7,7 +7,7 @@ export function getUnitList(query) {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 工程名称-下拉
|
// 工程名称-下拉
|
||||||
|
|
@ -17,7 +17,7 @@ export function getProjectList(query) {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 协议管理-列表
|
// 协议管理-列表
|
||||||
export function getAgreementList(query) {
|
export function getAgreementList(query) {
|
||||||
|
|
@ -34,7 +34,7 @@ export function getAgreementInfoId(query) {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//协议管理--新增
|
//协议管理--新增
|
||||||
export function addAgreement(data) {
|
export function addAgreement(data) {
|
||||||
|
|
@ -52,7 +52,7 @@ export function updateAgreement(data) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// //协议管理--删除
|
// //协议管理--删除
|
||||||
export function removeAgreement(data) {
|
export function removeAgreement(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -60,7 +60,7 @@ export function removeAgreement(data) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 机具领料-申请列表
|
// 机具领料-申请列表
|
||||||
export function getLeaseManageListAll(query) {
|
export function getLeaseManageListAll(query) {
|
||||||
|
|
@ -88,7 +88,7 @@ export function getLeaseAuditListAll(query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取 来往单位 列表
|
// 获取 来往单位 列表
|
||||||
export function getUnitData(params = {}){
|
export function getUnitData(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/select/getUnitCbx',
|
url: '/system/select/getUnitCbx',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -97,7 +97,7 @@ export function getUnitData(params = {}){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取 工程 列表
|
// 获取 工程 列表
|
||||||
export function getProData(params = {}){
|
export function getProData(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/select/getSectionEngineeringCbx',
|
url: '/system/select/getSectionEngineeringCbx',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -106,7 +106,7 @@ export function getProData(params = {}){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取 设备树
|
// 获取 设备树
|
||||||
export function getDeviceTypeTree(params = {}){
|
export function getDeviceTypeTree(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/select/getDeviceTypeTree',
|
url: '/system/select/getDeviceTypeTree',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -115,76 +115,76 @@ export function getDeviceTypeTree(params = {}){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据单位id和工程id 获取 协议id
|
// 根据单位id和工程id 获取 协议id
|
||||||
export function getAgreementInfoById(params = {}){
|
export function getAgreementInfoById(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url:'/system/select/getAgreementInfoById',
|
url: '/system/select/getAgreementInfoById',
|
||||||
method:'post',
|
method: 'post',
|
||||||
data:params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//提交 领料申请
|
//提交 领料申请
|
||||||
export function submitLeaseApply(params = {}){
|
export function submitLeaseApply(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url:'/base/tm_task/submitLeaseApply',
|
url: '/base/tm_task/submitLeaseApply',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data:params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//编辑 领料申请
|
//编辑 领料申请
|
||||||
export function editLeaseApply(params = {}){
|
export function editLeaseApply(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url:'/base/tm_task/edit',
|
url: '/base/tm_task/edit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data:params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 参数 领料任务
|
// 参数 领料任务
|
||||||
export function deleteTask( taskId ){
|
export function deleteTask(taskId) {
|
||||||
return request({
|
return request({
|
||||||
url:`/base/tm_task/${taskId}`,
|
url: `/base/tm_task/${taskId}`,
|
||||||
method:'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据 领料任务id 获取详情数据
|
// 根据 领料任务id 获取详情数据
|
||||||
export function getLeaseListAll( params = {} ){
|
export function getLeaseListAll(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/getLeaseListAll',
|
url: '/base/tm_task/getLeaseListAll',
|
||||||
method:'get',
|
method: 'get',
|
||||||
params:params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 根据 领料任务id 获取详情数据
|
// 根据 领料任务id 获取详情数据
|
||||||
export function getLeaseListAllCq( params = {} ){
|
export function getLeaseListAllCq(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/getLeaseListAllCq',
|
url: '/base/tm_task/getLeaseListAllCq',
|
||||||
method:'get',
|
method: 'get',
|
||||||
params:params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料审核 同意
|
// 领料审核 同意
|
||||||
export function auditLeaseByCompany(params = {} ){
|
export function auditLeaseByCompany(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url:'/base/tm_task/auditLeaseByCompany',
|
url: '/base/tm_task/auditLeaseByCompany',
|
||||||
method:'post',
|
method: 'post',
|
||||||
data:params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 领料审核 同意
|
// 领料审核 同意
|
||||||
export function auditLeaseByCompanyCq(params = {} ){
|
export function auditLeaseByCompanyCq(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url:'/base/tm_task/auditLeaseByCompanyCq',
|
url: '/base/tm_task/auditLeaseByCompanyCq',
|
||||||
method:'post',
|
method: 'post',
|
||||||
data:params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料审核 拒绝
|
// 领料审核 拒绝
|
||||||
export function rejectLeaseByCompany(params = {}){
|
export function rejectLeaseByCompany(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/rejectLeaseByCompany',
|
url: '/base/tm_task/rejectLeaseByCompany',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -192,7 +192,7 @@ export function rejectLeaseByCompany(params = {}){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 领料审核 拒绝
|
// 领料审核 拒绝
|
||||||
export function rejectLeaseByCompanyCq(params = {}){
|
export function rejectLeaseByCompanyCq(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/rejectLeaseByCompanyCq',
|
url: '/base/tm_task/rejectLeaseByCompanyCq',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -201,7 +201,7 @@ export function rejectLeaseByCompanyCq(params = {}){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取 物品类型
|
// 获取 物品类型
|
||||||
export function getUseTypeTreee(params = {}){
|
export function getUseTypeTreee(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/backApply/getUseTypeTree',
|
url: '/material/backApply/getUseTypeTree',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -256,7 +256,7 @@ export function getDetailsByTypeId(query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料出库 编码出库 保存
|
// 领料出库 编码出库 保存
|
||||||
export function submitOut(params){
|
export function submitOut(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/leaseOutDetails/submitOutRfid',
|
url: '/base/leaseOutDetails/submitOutRfid',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -265,7 +265,7 @@ export function submitOut(params){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料出库 数量出库 保存
|
// 领料出库 数量出库 保存
|
||||||
export function submitNumOut(params){
|
export function submitNumOut(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/leaseOutDetails/submitOutRfid',
|
url: '/base/leaseOutDetails/submitOutRfid',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -273,17 +273,17 @@ export function submitNumOut(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料确认
|
// 领料确认
|
||||||
export function updateLeaseTaskStatusConfirmByCq(params){
|
export function updateLeaseTaskStatusConfirmByCq(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/updateLeaseTaskStatusConfirmByCq',
|
url: '/base/tm_task/updateLeaseTaskStatusConfirmByCq',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 当前在用量
|
// 当前在用量
|
||||||
export function getUseNumByTypeId(params){
|
export function getUseNumByTypeId(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/backApply/getUseNumByTypeId',
|
url: '/material/backApply/getUseNumByTypeId',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|
@ -292,7 +292,7 @@ export function getUseNumByTypeId(params){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批量审核
|
// 批量审核
|
||||||
export function auditAll(params){
|
export function auditAll(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/backApply/auditAll',
|
url: '/material/backApply/auditAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -301,7 +301,7 @@ export function auditAll(params){
|
||||||
}
|
}
|
||||||
|
|
||||||
// 手动出库结单
|
// 手动出库结单
|
||||||
export function outboundCompleted(params){
|
export function outboundCompleted(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/base/tm_task/outboundCompleted',
|
url: '/base/tm_task/outboundCompleted',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|
@ -309,6 +309,15 @@ export function outboundCompleted(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查看测试单
|
||||||
|
export const outboundOrderApi = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/base/leaseOutDetails/getOutboundOrder',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
:visible.sync="dialogConfig.outerVisible"
|
:visible.sync="dialogConfig.outerVisible"
|
||||||
v-if="dialogConfig.outerVisible"
|
v-if="dialogConfig.outerVisible"
|
||||||
:before-close="handleCloseOuter"
|
:before-close="handleCloseOuter"
|
||||||
|
:center="dialogConfig.center || false"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<!-- 外层弹框内容 -->
|
<!-- 外层弹框内容 -->
|
||||||
|
|
|
||||||
|
|
@ -93,21 +93,21 @@
|
||||||
prop="status"
|
prop="status"
|
||||||
width="200"
|
width="200"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="{ row }">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.status"
|
v-model="scope.row.status"
|
||||||
active-value="0"
|
active-value="0"
|
||||||
inactive-value="1"
|
inactive-value="1"
|
||||||
@change="changeStatus(scope.row)"
|
@change="changeStatus(row)"
|
||||||
></el-switch>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="200">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(row)"
|
||||||
v-hasPermi="['base:unit:edit']"
|
v-hasPermi="['base:unit:edit']"
|
||||||
>修改</el-button
|
>修改</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -115,7 +115,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
style="color: #f56c6c"
|
style="color: #f56c6c"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(row)"
|
||||||
v-hasPermi="['base:unit:del']"
|
v-hasPermi="['base:unit:del']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -174,19 +174,26 @@
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="序号" type="index" width="80" />
|
<el-table-column
|
||||||
|
label="序号"
|
||||||
|
type="index"
|
||||||
|
width="80"
|
||||||
|
align="center"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="类型名称"
|
label="类型名称"
|
||||||
prop="typeCn"
|
prop="typeCn"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
align="center"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="规格型号"
|
label="规格型号"
|
||||||
prop="guigeCn"
|
prop="guigeCn"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
align="center"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="计量单位" prop="unitCn" />
|
<el-table-column label="计量单位" prop="unitCn" align="center" />
|
||||||
<el-table-column label="库存数量" prop="num" />
|
<el-table-column label="库存数量" prop="num" align="center" />
|
||||||
<el-table-column label="预领数量" align="center">
|
<el-table-column label="预领数量" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
@ -213,13 +220,7 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" v-if="isAdd || isEdit">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
fixed="right"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
v-if="isAdd || isEdit"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
|
|
@ -905,8 +906,6 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
})
|
})
|
||||||
console.log(res, '成套设备---')
|
|
||||||
|
|
||||||
this.completeSetList = res.rows
|
this.completeSetList = res.rows
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,62 +162,62 @@
|
||||||
label="领料单号"
|
label="领料单号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="code"
|
prop="code"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
width="150"
|
width="150"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="领料单位"
|
label="领料单位"
|
||||||
align="center"
|
align="center"
|
||||||
prop="unitName"
|
prop="unitName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="领料工程"
|
label="领料工程"
|
||||||
align="center"
|
align="center"
|
||||||
prop="proName"
|
prop="proName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="协议号"
|
label="协议号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="agreementCode"
|
prop="agreementCode"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="现场领料人"
|
label="现场领料人"
|
||||||
align="center"
|
align="center"
|
||||||
prop="leasePerson"
|
prop="leasePerson"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="联系电话"
|
label="联系电话"
|
||||||
align="center"
|
align="center"
|
||||||
prop="leasePhone"
|
prop="leasePhone"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="领料申请人"
|
label="领料申请人"
|
||||||
align="center"
|
align="center"
|
||||||
prop="nickName"
|
prop="nickName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="申请时间"
|
label="申请时间"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createTimes"
|
prop="createTimes"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="任务状态"
|
label="任务状态"
|
||||||
align="center"
|
align="center"
|
||||||
prop="taskName"
|
prop="taskName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
width="120px"
|
width="120px"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="审批意见 "
|
label="审批意见 "
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.taskStatus < 31"></span>
|
<span v-if="scope.row.taskStatus < 31"></span>
|
||||||
|
|
@ -267,15 +267,9 @@
|
||||||
<!-- <span v-else>{{ scope.row.leaseApplyInfoList[0].directAuditRemark }}</span> -->
|
<!-- <span v-else>{{ scope.row.leaseApplyInfoList[0].directAuditRemark }}</span> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="备注" align="center" show-overflow-tooltip>
|
||||||
label="备注"
|
|
||||||
align="center"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{
|
{{ scope.row.leaseApplyInfoList[0].remark || '' }}
|
||||||
scope.row.leaseApplyInfoList[0].remark || ''
|
|
||||||
}}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="180">
|
<el-table-column label="操作" align="center" width="180">
|
||||||
|
|
|
||||||
|
|
@ -115,51 +115,51 @@
|
||||||
label="领料单号"
|
label="领料单号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="code"
|
prop="code"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="领料申请单位"
|
label="领料申请单位"
|
||||||
align="center"
|
align="center"
|
||||||
prop="unitName"
|
prop="unitName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="领料申请工程"
|
label="领料申请工程"
|
||||||
align="center"
|
align="center"
|
||||||
prop="proName"
|
prop="proName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="申请数量"
|
label="申请数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="preCountNum"
|
prop="preCountNum"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="申请时间"
|
label="申请时间"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createTimes"
|
prop="createTimes"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="已出库数量"
|
label="已出库数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="alNum"
|
prop="alNum"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="出库状态"
|
label="出库状态"
|
||||||
align="center"
|
align="center"
|
||||||
prop="taskName"
|
prop="taskName"
|
||||||
:show-overflow-tooltip="true"
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
/>
|
||||||
|
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-zoom-in"
|
icon="el-icon-zoom-in"
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(row)"
|
||||||
v-hasPermi="['picking:outbound:view']"
|
v-hasPermi="['picking:outbound:view']"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -167,13 +167,20 @@
|
||||||
icon="el-icon-shopping-cart-2"
|
icon="el-icon-shopping-cart-2"
|
||||||
style="color: #e6a23c"
|
style="color: #e6a23c"
|
||||||
type="text"
|
type="text"
|
||||||
v-if="scope.row.taskStatus != 35"
|
v-if="row.taskStatus != 35"
|
||||||
@click="handleOut(scope.row)"
|
@click="handleOut(row)"
|
||||||
v-hasPermi="['picking:outbound:out']"
|
v-hasPermi="['picking:outbound:out']"
|
||||||
>
|
>
|
||||||
出库
|
出库
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button type="text"> 出库单 </el-button> -->
|
<el-button
|
||||||
|
type="text"
|
||||||
|
style="color: #67c23a"
|
||||||
|
icon="el-icon-tickets"
|
||||||
|
@click="handleOutboundOrder(row)"
|
||||||
|
>
|
||||||
|
出库单
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -530,6 +537,106 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<!-- 出库单 -->
|
||||||
|
<DialogModel
|
||||||
|
:dialogConfig="dialogConfig"
|
||||||
|
@closeDialogOuter="closeDialogOuter"
|
||||||
|
>
|
||||||
|
<template slot="outerContent">
|
||||||
|
<VueEasyPrint tableShow ref="remarksPrintRef">
|
||||||
|
<!-- <el-row :gutter="20">
|
||||||
|
<el-col span="6">申请人:</el-col>
|
||||||
|
<el-col span="6">领料工程:</el-col>
|
||||||
|
<el-col span="6">领料单位:</el-col>
|
||||||
|
<el-col span="6">领料单号:</el-col>
|
||||||
|
</el-row> -->
|
||||||
|
<h2 class="outbound-title">出库单</h2>
|
||||||
|
<ul class="apply-info">
|
||||||
|
<li>
|
||||||
|
领料申请人:<span>{{ applyFor }}</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
领料单位:<span>{{ unitName }}</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
领料工程:<span>{{ proName }}</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
领料单号:<span>{{ code }}</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<el-table style="margin: 15px 0" :data="outboundOrderList">
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="序号"
|
||||||
|
type="index"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="设备类型"
|
||||||
|
prop="typeName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="规格型号"
|
||||||
|
prop="typeModelName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="设备编码"
|
||||||
|
prop="maCode"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="申请数量"
|
||||||
|
prop="preNum"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="出库数量"
|
||||||
|
prop="outNum"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="领料人"
|
||||||
|
prop="leasePerson"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="出库人"
|
||||||
|
prop="outPerson"
|
||||||
|
/>
|
||||||
|
<el-table-column align="center" label="出库日期">
|
||||||
|
<template slot-scope="{ row }">
|
||||||
|
{{ parseTime(row.createTime) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
label="车牌号"
|
||||||
|
prop="carCode"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
</VueEasyPrint>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
:total="outboundOrderTotal"
|
||||||
|
:page.sync="outboundParams.pageNum"
|
||||||
|
:limit.sync="outboundParams.pageSize"
|
||||||
|
@pagination="queryOutBoundList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<el-row class="print-btn">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
@click="handlePrinting()"
|
||||||
|
>打 印</el-button
|
||||||
|
>
|
||||||
|
</el-row>
|
||||||
|
</template>
|
||||||
|
</DialogModel>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -543,15 +650,18 @@ import {
|
||||||
submitOut,
|
submitOut,
|
||||||
submitNumOut,
|
submitNumOut,
|
||||||
outboundCompleted,
|
outboundCompleted,
|
||||||
|
outboundOrderApi,
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import { equipmentTypeTree } from '@/api/store/tools'
|
import { equipmentTypeTree } from '@/api/store/tools'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import DialogModel from '@/components/DialogModel'
|
||||||
|
import VueEasyPrint from 'vue-easy-print'
|
||||||
export default {
|
export default {
|
||||||
name: 'receiveOut',
|
name: 'receiveOut',
|
||||||
components: { Treeselect },
|
components: { Treeselect, DialogModel, VueEasyPrint },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|
@ -626,7 +736,25 @@ export default {
|
||||||
outCodeList: [], //编码弹窗表格数据
|
outCodeList: [], //编码弹窗表格数据
|
||||||
outNumList: [], //数量弹窗表格数据
|
outNumList: [], //数量弹窗表格数据
|
||||||
userId: sessionStorage.getItem('userId'), // 当前登录用户的 userId
|
userId: sessionStorage.getItem('userId'), // 当前登录用户的 userId
|
||||||
isMonitor: false,
|
isMonitor: false, // 判断当前登录用户是否为机具班长 如是班长 则可以对所有机具设备出库
|
||||||
|
outboundOrderList: [], // 出库单 数据源
|
||||||
|
applyFor: '', // 出库单回显 领料申请人
|
||||||
|
code: '', // 出库单回显 领料单号
|
||||||
|
proName: '', // 出库单回显 领料工程
|
||||||
|
unitName: '', // 出库单回显 领料单位
|
||||||
|
outboundOrderTotal: 0, // 出库单回显 数据条数
|
||||||
|
// 出库单 查询参数
|
||||||
|
outboundParams: {
|
||||||
|
parentId: '',
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
|
// 出库单 弹框配置项
|
||||||
|
dialogConfig: {
|
||||||
|
outerWidth: '80%',
|
||||||
|
outerVisible: false,
|
||||||
|
center: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -773,6 +901,7 @@ export default {
|
||||||
this.$set(obj, 'outNum', row.outNum) //待出库数量
|
this.$set(obj, 'outNum', row.outNum) //待出库数量
|
||||||
this.$set(obj, 'inputNum', 1) //出库数量
|
this.$set(obj, 'inputNum', 1) //出库数量
|
||||||
this.$set(obj, 'num', row.num) //库存
|
this.$set(obj, 'num', row.num) //库存
|
||||||
|
this.$set(obj, 'createBy', sessionStorage.getItem('userId')) // 当前用户Id
|
||||||
this.outNumList = [obj]
|
this.outNumList = [obj]
|
||||||
},
|
},
|
||||||
// 手动操作
|
// 手动操作
|
||||||
|
|
@ -787,6 +916,7 @@ export default {
|
||||||
outboundCompleted({
|
outboundCompleted({
|
||||||
id: this.dialogQuery.id,
|
id: this.dialogQuery.id,
|
||||||
typeId: row.typeId,
|
typeId: row.typeId,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.$modal.msgSuccess('已完成')
|
this.$modal.msgSuccess('已完成')
|
||||||
this.handleDialogQuery()
|
this.handleDialogQuery()
|
||||||
|
|
@ -841,6 +971,7 @@ export default {
|
||||||
parentId: this.outObj.parentId,
|
parentId: this.outObj.parentId,
|
||||||
outNum: 1,
|
outNum: 1,
|
||||||
taskId: this.outObj.taskId,
|
taskId: this.outObj.taskId,
|
||||||
|
createBy: sessionStorage.getItem('userId'),
|
||||||
}
|
}
|
||||||
return obj
|
return obj
|
||||||
})
|
})
|
||||||
|
|
@ -902,6 +1033,33 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 出库单
|
||||||
|
handleOutboundOrder(row) {
|
||||||
|
const { applyFor, code, proName, unitName } = row
|
||||||
|
this.applyFor = applyFor
|
||||||
|
this.code = code
|
||||||
|
this.proName = proName
|
||||||
|
this.unitName = unitName
|
||||||
|
this.outboundParams.parentId = row.id
|
||||||
|
this.queryOutBoundList()
|
||||||
|
this.dialogConfig.outerVisible = true
|
||||||
|
},
|
||||||
|
// 获取出库单详情
|
||||||
|
async queryOutBoundList() {
|
||||||
|
const { data: res } = await outboundOrderApi(this.outboundParams)
|
||||||
|
this.outboundOrderList = res.rows
|
||||||
|
this.outboundOrderTotal = res.total
|
||||||
|
},
|
||||||
|
// 外层弹框关闭
|
||||||
|
closeDialogOuter() {
|
||||||
|
this.outboundParams.pageNum = 1
|
||||||
|
this.outboundParams.pageSize = 10
|
||||||
|
this.dialogConfig.outerVisible = false
|
||||||
|
},
|
||||||
|
// 打印按钮
|
||||||
|
handlePrinting() {
|
||||||
|
this.$refs.remarksPrintRef.print()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -914,4 +1072,34 @@ export default {
|
||||||
color: #02a7f0;
|
color: #02a7f0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 领料单抬头样式
|
||||||
|
.outbound-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 3px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.apply-info {
|
||||||
|
margin-top: 30px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-weight: 400;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.print-btn {
|
||||||
|
margin-top: 30px;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,6 @@ import {
|
||||||
auditingPreScrapApi,
|
auditingPreScrapApi,
|
||||||
} from '@/api/scrap/forecastWaste.js'
|
} from '@/api/scrap/forecastWaste.js'
|
||||||
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
|
||||||
import { registerLayout } from 'echarts'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Inventory',
|
name: 'Inventory',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
@getTableSelectionChange="getTableSelectionChange"
|
@getTableSelectionChange="getTableSelectionChange"
|
||||||
>
|
>
|
||||||
<template slot="export">
|
<template slot="export">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row class="mb8">
|
||||||
<el-button type="warning" plain size="mini"
|
<el-button type="warning" plain size="mini"
|
||||||
>完成退料</el-button
|
>完成退料</el-button
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -151,10 +151,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="temp">
|
<template v-if="temp">
|
||||||
<el-row type="flex" justify="space-between" class="back-text">
|
<PageHeader :pageContent="pageContent" @goBack="goBack" />
|
||||||
<span>驳回退料</span>
|
|
||||||
<el-button type="text" @click="handleBack">返回</el-button>
|
|
||||||
</el-row>
|
|
||||||
<AuditingReturn :sendParams="sendParamsAuditing" />
|
<AuditingReturn :sendParams="sendParamsAuditing" />
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -163,6 +160,7 @@
|
||||||
<script>
|
<script>
|
||||||
import TableModel from '@/components/TableModel'
|
import TableModel from '@/components/TableModel'
|
||||||
import DialogModel from '@/components/DialogModel'
|
import DialogModel from '@/components/DialogModel'
|
||||||
|
import PageHeader from '@/components/pageHeader'
|
||||||
import SelDepart from '../../component/selDepart.vue'
|
import SelDepart from '../../component/selDepart.vue'
|
||||||
import ScrapSource from '../../component/scrapSource.vue'
|
import ScrapSource from '../../component/scrapSource.vue'
|
||||||
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
import AuditingReturn from '../auditingReturn/index.vue' // 退料驳回页面
|
||||||
|
|
@ -179,6 +177,7 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
TableModel,
|
TableModel,
|
||||||
DialogModel,
|
DialogModel,
|
||||||
|
PageHeader,
|
||||||
SelDepart,
|
SelDepart,
|
||||||
ScrapSource,
|
ScrapSource,
|
||||||
AuditingReturn,
|
AuditingReturn,
|
||||||
|
|
@ -205,6 +204,7 @@ export default {
|
||||||
},
|
},
|
||||||
auditingList: [],
|
auditingList: [],
|
||||||
sendParamsAuditing: {},
|
sendParamsAuditing: {},
|
||||||
|
pageContent: '驳回退料',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -282,10 +282,6 @@ export default {
|
||||||
this.submitScrapParams.taskIdList.push(e.taskId)
|
this.submitScrapParams.taskIdList.push(e.taskId)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleBack() {
|
|
||||||
this.temp = !this.temp
|
|
||||||
this.dialogVisible = false
|
|
||||||
},
|
|
||||||
/* 外层弹框关闭 */
|
/* 外层弹框关闭 */
|
||||||
closeDialogOuter() {
|
closeDialogOuter() {
|
||||||
this.dialogConfig.outerVisible = false
|
this.dialogConfig.outerVisible = false
|
||||||
|
|
@ -306,6 +302,11 @@ export default {
|
||||||
)
|
)
|
||||||
console.log('数据导出', data)
|
console.log('数据导出', data)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 返回按钮
|
||||||
|
goBack() {
|
||||||
|
this.temp = !this.temp
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue