This commit is contained in:
parent
379088ed52
commit
5171224bea
|
|
@ -0,0 +1,40 @@
|
|||
<template>
|
||||
<div class="page-header">
|
||||
<el-button type="text" icon="el-icon-arrow-left" @click="goBack">返回</el-button>
|
||||
<span class="page-title">{{ title }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'GoBack',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$emit('goBack')
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
|
||||
.page-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-left: 10px;
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'退役审核'" @goBack="goBack" />
|
||||
<el-card style="margin-bottom: 20px">
|
||||
|
||||
<!-- 基本信息 -->
|
||||
|
|
@ -181,8 +182,10 @@
|
|||
import { getRetireApplyDetailAPI } from '@/api/EquipmentRetireApply/index.js'
|
||||
import { getApprovalDetail, doApprove, getProcessConfig, getApprovalInstanceByBusiness } from '@/api/approval.js'
|
||||
import { getCurrentUserId } from '@/utils/auth'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
baseInfo: {
|
||||
|
|
@ -205,6 +208,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/EquipmentRetireApply/equipment/retire-apply' })
|
||||
},
|
||||
async getAuditDetail() {
|
||||
const id = this.$route.params.id
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'退役申请'" @goBack="goBack" />
|
||||
<el-card style="margin-bottom: 20px">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>{{ isNew ? '新增退役申请' : '退役申请明细' }}</span>
|
||||
|
|
@ -127,10 +128,12 @@
|
|||
import { getRetireApplyDetailAPI, submitRetireApplyTaskAPI, getDeviceByMaIdsAPI } from '@/api/EquipmentRetireApply/index.js'
|
||||
import AddItemDialog from './components/AddItemDialog'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
AddItemDialog
|
||||
AddItemDialog,
|
||||
GoBack
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -163,6 +166,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/EquipmentRetireApply/equipment/retire-apply' })
|
||||
},
|
||||
async getInfo(){
|
||||
try {
|
||||
const res = await getDeviceByMaIdsAPI(this.$route.query.maId)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<!-- 基础页面 -->
|
||||
<div class="app-container">
|
||||
<GoBack :title="'自用申请'" @goBack="goBack" />
|
||||
<el-card v-show="showSearch" style="margin-bottom: 20px">
|
||||
<el-form :model="queryParams" ref="queryForm" :rules="outFormRules" inline label-width="120px">
|
||||
|
||||
|
|
@ -333,10 +334,11 @@ import { regionData } from 'element-china-area-data'
|
|||
import { getEquipmentTreeAPI } from '@/api/EquipmentConfig/index.js'
|
||||
import { getTreeSelectApi } from '@/api/toolsManage/index.js' // 替换为实际工具接口路径
|
||||
import ConfirmationDialog from '@/views/business/components/ConfirmationDialog'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditApply',
|
||||
components: { ConfirmationDialog },
|
||||
components: { ConfirmationDialog, GoBack },
|
||||
data() {
|
||||
return {
|
||||
useTimeRange: [], // 主表单的全局日期范围
|
||||
|
|
@ -471,6 +473,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/outbound/applyList' })
|
||||
},
|
||||
// 获取使用项目的下拉选
|
||||
async getUseProjectList() {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<!-- 基础页面 -->
|
||||
<div class="app-container">
|
||||
<GoBack :title="'自用审核'" @goBack="goBack" />
|
||||
<el-card v-show="showSearch" style="margin-bottom: 20px">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" inline label-width="110px" >
|
||||
|
||||
|
|
@ -165,11 +166,11 @@ import {
|
|||
import { regionData } from 'element-china-area-data'
|
||||
import { getApprovalInstanceByBusiness, getApprovalDetail, getProcessConfig, doApprove } from '@/api/approval'
|
||||
import { getCurrentUserId } from '@/utils/auth'
|
||||
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditApply',
|
||||
// components: { AddNum, AddCode },
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
routerParams: {},
|
||||
|
|
@ -250,6 +251,9 @@ export default {
|
|||
this.loadApprovalInfo()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/outbound/auditList' })
|
||||
},
|
||||
// 获取使用项目的下拉选
|
||||
async getUseProjectList() {
|
||||
const res = await getUseProjectListAPI()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<!-- 基础页面 -->
|
||||
<div class="app-container">
|
||||
<GoBack :title="'自用出库'" @goBack="goBack" />
|
||||
<el-card v-show="showSearch" style="margin-bottom: 20px">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" inline label-width="100px">
|
||||
|
||||
|
|
@ -213,10 +214,11 @@ import {
|
|||
getVoltageListAPI
|
||||
} from '@/api/EquipmentLedger/equ-out'
|
||||
import { regionData } from 'element-china-area-data'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditApply',
|
||||
// components: { AddNum, AddCode },
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
routerParams: {},
|
||||
|
|
@ -286,6 +288,9 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/outbound/index' })
|
||||
},
|
||||
// 输入出库数量时校验(实时拦截超限)
|
||||
handleOutNumInput(row) {
|
||||
const { outNum, remainNum } = row
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="handleApprove(row)"
|
||||
<el-button v-if="row.taskStatus == '3'" size="mini" type="text" icon="el-icon-zoom-in" @click="handleApprove(row)"
|
||||
>查看
|
||||
</el-button
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<!-- 基础页面 -->
|
||||
<div class="app-container">
|
||||
<GoBack :title="'退库审核'" @goBack="goBack" />
|
||||
<el-card v-show="showSearch" style="margin-bottom: 20px">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" inline label-width="110px">
|
||||
|
||||
|
|
@ -168,10 +169,11 @@ import {
|
|||
import { regionData } from 'element-china-area-data'
|
||||
import { getApprovalInstanceByBusiness, getApprovalDetail, getProcessConfig, doApprove } from '@/api/approval'
|
||||
import { getCurrentUserId } from '@/utils/auth'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditApply',
|
||||
// components: { AddNum, AddCode },
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
routerParams: {},
|
||||
|
|
@ -252,6 +254,9 @@ export default {
|
|||
this.loadApprovalInfo()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/warehouse/auditList' })
|
||||
},
|
||||
// 获取使用项目的下拉选
|
||||
async getUseProjectList() {
|
||||
const res = await getUseProjectListAPI()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<!-- 基础页面 -->
|
||||
<div class="app-container">
|
||||
<GoBack :title="'退库申请'" @goBack="goBack" />
|
||||
<el-card v-show="showSearch" style="margin-bottom: 20px">
|
||||
<el-form :model="queryParams" ref="queryForm" :rules="outFormRules" inline label-width="110px">
|
||||
<el-form-item label="需求单位" prop="useUnit">
|
||||
|
|
@ -196,9 +197,11 @@ import { regionData } from 'element-china-area-data'
|
|||
import { deptTreeSelect } from '@/api/system/user'
|
||||
import { getEquipmentTreeAPI } from '@/api/EquipmentConfig/index.js'
|
||||
import { getTreeSelectApi } from '@/api/toolsManage/index.js'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditApply',
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
propertyUnitList: [],
|
||||
|
|
@ -312,6 +315,9 @@ export default {
|
|||
this.getToolTree()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/warehouse/index' })
|
||||
},
|
||||
getDeptTreeSelect() {
|
||||
deptTreeSelect().then((res) => {
|
||||
if (res.data) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'维修申请'" @goBack="goBack" />
|
||||
<!-- 列表 -->
|
||||
<el-card class="content-box">
|
||||
<el-row class="mb8" :gutter="10" justify="end">
|
||||
|
|
@ -140,10 +141,11 @@ import SelectToolDialog from './SelectToolDialog.vue'
|
|||
import { getToken } from "@/utils/auth";
|
||||
import {addRepairData, getRepairDetailsList, updateRepairData} from "@/api/equipmentRepair";
|
||||
import { getApprovalInstanceByBusiness } from '@/api/approval';
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'AddEditTools',
|
||||
components: { SelectToolDialog },
|
||||
components: { SelectToolDialog, GoBack },
|
||||
data() {
|
||||
return {
|
||||
routerParams: {},
|
||||
|
|
@ -274,6 +276,9 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/equipmentRepair/repairList' })
|
||||
},
|
||||
// 判断退役数量字段是否禁用
|
||||
// 判断退役数量字段是否禁用
|
||||
isRetirementNumDisabled(row) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'维修审核'" @goBack="goBack" />
|
||||
<!-- 列表 -->
|
||||
<el-card>
|
||||
<el-row class="mb8" :gutter="10" justify="end">
|
||||
|
|
@ -82,9 +83,11 @@
|
|||
|
||||
<script>
|
||||
import { getRepairDetailsList } from "@/api/equipmentRepair";
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'ViewRepairListNoPagination',
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
routerParams: {},
|
||||
|
|
@ -137,6 +140,9 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/equipmentRepair/repairAuditList' })
|
||||
},
|
||||
async getList() {
|
||||
this.isLoading = true
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'维修审核'" @goBack="goBack" />
|
||||
<!-- 基本信息 -->
|
||||
<el-card style="margin-bottom: 20px">
|
||||
<el-form ref="baseForm" :model="baseInfo" label-width="70px" inline style="height: 36px">
|
||||
|
|
@ -138,9 +139,11 @@
|
|||
import { getApprovalInstanceByBusiness, getApprovalDetail, getProcessConfig, doApprove } from '@/api/approval'
|
||||
import { getRepairDetailsList } from '@/api/equipmentRepair'
|
||||
import { getCurrentUserId } from '@/utils/auth'
|
||||
import GoBack from '@/components/GoBack'
|
||||
|
||||
export default {
|
||||
name: 'RepairApprovalDetail',
|
||||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
baseInfo: {
|
||||
|
|
@ -165,6 +168,9 @@ export default {
|
|||
this.loadApprovalInfo()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/business/equipmentRepair/repairAuditList' })
|
||||
},
|
||||
async loadApprovalInfo() {
|
||||
try {
|
||||
console.log('开始查询审批实例,业务ID:', this.baseInfo.id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue