| | |
| | | import {ElDatePicker, ElMessage} from "element-plus"; |
| | | import request from "@/utils/request"; |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | |
| | | //语言获取 |
| | | const {t} = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let router = useRouter() |
| | | //定义数据返回结果 |
| | | let produceList = ref([]) |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit');" link type="primary" size="small">{{$t('basicData.edit')}}</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'edit');" link type="primary" size="small">{{$t('basicData.edit')}}</el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('MaintenanceAndRepair.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-button link size="small" type="primary" @click="getTableRow(row,'delete')">删除</el-button> |
| | | </template> |
| | | |
| | |
| | | basic_name: '', |
| | | d_basic_name: '', |
| | | }) |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | | case 'edit' :{ |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | router.push({path: '/main/reportingWorks/ReportingWorkDetail', query: { id: row.id }}) |
| | | break |
| | | } |
| | | case 'delete':{ |
| | | alert('我接收到子组件传送的删除信息') |
| | | break |
| | | } |
| | | case 'setType':{ |
| | | alert('我接收到子组件传送的反审状态') |
| | | break |
| | | } |
| | | } |
| | | } |
| | | |
| | | //表尾求和 |
| | | const sumNum = (list, field) => { |
| | |
| | | import {ElDatePicker, ElMessage} from "element-plus"; |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let router=useRouter() |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('basicData.edit')}}</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('basicData.edit')}}</el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('SelectAddProcess.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | import BasicTable from '@/components/sd/product/BasicTable.vue' |
| | | import {VXETable} from "vxe-table"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let productGlassTypeStore = useProductGlassTypeStore() |
| | | let router = useRouter() |
| | | let props = defineProps({ |
| | |
| | | <!--左边固定显示的插槽--> |
| | | |
| | | <template #button_slot="{ row }" > |
| | | <el-button @click="getTableRow(row,'select')" link type="primary" size="small">{{$t('basicData.edit')}} |
| | | <!-- <el-button @click="getTableRow(row,'select')" link type="primary" size="small">{{$t('basicData.edit')}}--> |
| | | <!-- </el-button>--> |
| | | <el-button @click="getTableRow(row,'select')" |
| | | v-if="userStore.user.permissions.indexOf('SelectProcessCard.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-button v-if="row.layoutStatus=='可排版'" @click="getTableRow(row,'setType')" link type="primary" size="small">{{$t('processCard.composing')}}</el-button> |
| | | <el-button v-else-if="row.layoutStatus=='不可排版'" @click="getTableRow(row,'setType')" link type="primary" size="small">{{$t('processCard.composingOk')}}</el-button> |
| | |
| | | import {useRouter} from 'vue-router' |
| | | import {useI18n} from 'vue-i18n' |
| | | import {changeFilterEvent, filterChanged} from "@/hook" |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | //语言获取 |
| | | const {t} = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let router = useRouter() |
| | | const getTableRow = (row, type) => { |
| | | switch (type) { |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button link size="small" type="primary" @click="getTableRow(row,'edit')">{{ $t('basicData.edit') }} |
| | | <!-- <el-button link size="small" type="primary" @click="getTableRow(row,'edit')">{{ $t('basicData.edit') }}--> |
| | | <!-- </el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('SplittingDetails.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import {changeFilterEvent, filterChanged} from "@/hook" |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let router=useRouter() |
| | | //定义数据返回结果 |
| | | let produceList = ref([]) |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit');" link type="primary" size="small">{{$t('basicData.edit')}}</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">删除</el-button>--> |
| | | <!-- <el-button @click="getTableRow(row,'edit');" link type="primary" size="small">{{$t('basicData.edit')}}</el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('SelectProductionBasicData.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-popconfirm @confirm="getTableRow(row,'delete')" :title="$t('searchOrder.deleteConfirm')"> |
| | | <template #reference> |
| | | <el-button link type="primary" size="small">{{ $t('basicData.delete') }}</el-button> |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | //获取七天前到当前时间 |
| | | function getNowTime() { |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7) |
| | | const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 3) |
| | | .toISOString() |
| | | .replace('T', ' ') |
| | | .slice(0, 10) //默认开始时间7天前 |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('QualityInspectionReview.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-button v-if="row.damageDetails.qualityInsStatus===1" @click="getTableRow(row,'setType')" link type="primary" size="small">审核</el-button> |
| | | <el-button v-else disabled @click="getTableRow(row,'setType')" link type="primary" size="small">审核</el-button> |
| | | </template> |
| | |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import SelectProduct from "@/views/sd/product/SelectProduct.vue"; |
| | | import useUserInfoStore from "@/stores/userInfo"; |
| | | |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let router=useRouter() |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | |
| | | break |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | function padLeftZero(str) { |
| | | return ('00' + str).substr(str.length) |
| | | } |
| | | |
| | | //提交的表单 |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">删除</el-button>--> |
| | | <!-- <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button>--> |
| | | <el-button @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('SelectReportingWorks.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-popconfirm @confirm="getTableRow(row,'delete')" :title="$t('searchOrder.deleteConfirm')"> |
| | | <template #reference> |
| | | <el-button link type="primary" size="small">{{ $t('basicData.delete') }}</el-button> |
| | |
| | | import BasicTable from '@/components/sd/product/BasicTable.vue' |
| | | import {VXETable} from "vxe-table"; |
| | | import { useI18n } from 'vue-i18n' |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | |
| | | let productGlassTypeStore = useProductGlassTypeStore() |
| | | let router = useRouter() |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button :class="{disable: optionVal== 0}" :disabled="optionVal == 0" @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('workOrder.transferOrder')}}</el-button> |
| | | <!-- <el-button :class="{disable: optionVal== 0}" :disabled="optionVal == 0" @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('workOrder.transferOrder')}}</el-button>--> |
| | | <el-button :class="{disable: optionVal== 0}" :disabled="optionVal == 0" |
| | | @click="getTableRow(row,'edit')" |
| | | v-if="userStore.user.permissions.indexOf('SelectWorkOrder.edit') > -1" |
| | | link |
| | | type="primary" |
| | | size="small"> |
| | | {{$t('workOrder.transferOrder')}} |
| | | </el-button> |
| | | |
| | | <!-- <el-button :class="{disable: optionVal== 1}" :disabled="optionVal == 1" @click="getTableRow(row,'delete')" link type="primary" size="small">{{$t('basicData.delete')}}</el-button>--> |
| | | <el-popconfirm @confirm="getTableRow(row,'delete')" :title="$t('searchOrder.deleteConfirm')"> |
| | | <template #reference> |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.BasicDataProduce; |
| | |
| | | } |
| | | |
| | | @ApiOperation("查询所有基础数据接口") |
| | | @SaCheckPermission("SelectProductionBasicData.search") |
| | | @PostMapping ("/selectBasic") |
| | | public Result selectBasic() { |
| | | return Result.seccess(basicDateProduceService.selectBasicSv()); |
| | |
| | | } |
| | | |
| | | @ApiOperation("删除基础数据接口") |
| | | @SaCheckPermission("SelectProductionBasicData.delete") |
| | | @PostMapping("/deleteBasic/{id}") |
| | | public Result deleteBasic(@PathVariable String id){ |
| | | if(basicDateProduceService.deleteBasicSv(id)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("班组基础数据添加接口") |
| | | @SaCheckPermission("AddTeamGroup.add") |
| | | @PostMapping("/saveTeamGroup") |
| | | public Result saveTeamGroup( @RequestBody Map<String,Object> object){ |
| | | if(basicDateProduceService.saveTeamGroupSv(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("次破类型基础数据添加接口") |
| | | @SaCheckPermission("AddBreakageType.add") |
| | | @PostMapping("/saveBreakageType") |
| | | public Result saveBreakageType( @RequestBody Map<String,Object> object){ |
| | | if(basicDateProduceService.saveBreakageTypeSv(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("次破原因基础数据添加接口") |
| | | @SaCheckPermission("AddBreakageReason.add") |
| | | @PostMapping("/saveBreakageReason") |
| | | public Result saveBreakageReason( @RequestBody Map<String,Object> object){ |
| | | if(basicDateProduceService.saveBreakageReasonSv(object)){ |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.exception.ServiceException; |
| | |
| | | DeviceMaintenanceService deviceMaintenanceService; |
| | | |
| | | @ApiOperation("设备新增接口") |
| | | @SaCheckPermission("AddMachine.add") |
| | | @PostMapping("/saveMachine") |
| | | public Result saveTeamGroup( @RequestBody Map<String,Object> object){ |
| | | if(deviceMaintenanceService.saveMachineSv(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("保养维修新增接口") |
| | | @SaCheckPermission("AddMaintenanceAndRepair.add") |
| | | @PostMapping("/saveMaintenanceAndRepair") |
| | | public Result saveMaintenanceAndRepair( @RequestBody Map<String,Object> object){ |
| | | if(deviceMaintenanceService.saveMaintenanceAndRepairSv(object)){ |
| | |
| | | |
| | | |
| | | @ApiOperation("删除维修保养记录接口") |
| | | @SaCheckPermission("MaintenanceAndRepair.delete") |
| | | @PostMapping("/deleteMaintenance/{id}") |
| | | public Result deleteMaintenance(@PathVariable String id){ |
| | | if(deviceMaintenanceService.deleteMaintenanceSv(id)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("查询设备管理接口") |
| | | @SaCheckPermission("SelectMachine.search") |
| | | @PostMapping ("/selectMachine") |
| | | public Result selectMachine() { |
| | | return Result.seccess(deviceMaintenanceService.selectMachineSv()); |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.entity.pp.FlowCard; |
| | | import com.example.erp.entity.sd.DeliveryDetail; |
| | |
| | | |
| | | //流程卡管理查询 |
| | | @ApiOperation("流程卡管理查询接口") |
| | | @SaCheckPermission("SelectProcessCard.search") |
| | | @PostMapping ("/flowCard/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}") |
| | | public Result dateProcess( |
| | | @PathVariable Integer pageNum, |
| | |
| | | |
| | | //分架查询 |
| | | @ApiOperation("分架查询接口") |
| | | @SaCheckPermission("SelectAddProcess.search") |
| | | @PostMapping ("/selectAddProcess/{selectTime1}/{selectTime2}") |
| | | public Result selectAddProcess( |
| | | @PathVariable Date selectTime1, |
| | |
| | | |
| | | //分架明细查询 |
| | | @ApiOperation("分架明细查询接口") |
| | | @SaCheckPermission("SplittingDetails.search") |
| | | @PostMapping ("/detailsSelect/{orderId}") |
| | | |
| | | public Result detailsSelect( |
| | | @PathVariable String orderId, |
| | | @RequestBody FlowCard flowCard){ |
| | |
| | | |
| | | //删除流程卡 |
| | | @ApiOperation("删除流程卡接口") |
| | | @SaCheckPermission("SelectProcessCard.delete") |
| | | @PostMapping("/deleteFlowCard/{orderId}/{processId}") |
| | | public Result deleteOrderWork( |
| | | @PathVariable String orderId, |
| | |
| | | |
| | | //修改排版状态 |
| | | @ApiOperation("修改排版状态接口") |
| | | @SaCheckPermission("SelectProcessCard.review") |
| | | @PostMapping("/updateLayoutStatus/{processId}/{state}") |
| | | public Result updateLayoutStatus( |
| | | @PathVariable String processId, |
| | |
| | | |
| | | //添加流程卡 |
| | | @ApiOperation("流程卡创建接口") |
| | | @SaCheckPermission("AddProcessCard.add") |
| | | @PostMapping("/addFlowCard") |
| | | public Result AddOrderWork( @RequestBody Map<String,Object> object){ |
| | | if(flowCardService.addFlowCardSv(object)){ |
| | |
| | | } |
| | | //流程卡明细查询 |
| | | @ApiOperation("流程卡明细查询接口") |
| | | @SaCheckPermission("SelectDetailProcessCard.search") |
| | | @PostMapping ("/flowCardDetail/{processId}") |
| | | public Result flowCardDetail( |
| | | @PathVariable String processId, |
| | |
| | | } |
| | | |
| | | @ApiOperation("流程卡打印查询接口") |
| | | @SaCheckPermission("SelectPrintFlowCard.search") |
| | | @PostMapping ("/selectPrintFlowCard/{selectTime1}/{selectTime2}/{orderId}/{project}") |
| | | public Result selectPrintFlowCard( |
| | | @PathVariable Date selectTime1, |
| | |
| | | } |
| | | |
| | | @ApiOperation("流程卡明细查询接口") |
| | | @SaCheckPermission("PrintFlowCard.search") |
| | | @PostMapping ("/selectPrint/{orderId}") |
| | | public Result selectPrint( |
| | | @PathVariable String orderId, |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.ProductionScheduling; |
| | |
| | | |
| | | //查询第一次排版数据 |
| | | @ApiOperation("加载时查询排版数据接口") |
| | | @SaCheckPermission("ProductionScheduling.search") |
| | | @PostMapping ("/selectLastScheduling/{selectTime1}/{selectTime2}/{processes}/{orderId}") |
| | | public Result selectLastScheduling( |
| | | @PathVariable String selectTime1, |
| | |
| | | } |
| | | //点击查询排版数据 |
| | | @ApiOperation("点击查询排版数据接口") |
| | | @SaCheckPermission("ProductionScheduling.search") |
| | | @PostMapping ("/selectScheduling/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}") |
| | | public Result selectScheduling( |
| | | @PathVariable String selectTime1, |
| | |
| | | |
| | | //点击查询排版数据(带订单号查询) |
| | | @ApiOperation("根据条件查询排版数据接口") |
| | | @SaCheckPermission("ProductionScheduling.search") |
| | | @PostMapping ("/selectSchedulingNot/{selectTime1}/{selectTime2}/{orderId}/{processes}/{state}") |
| | | public Result selectSchedulingNot( |
| | | @PathVariable String selectTime1, |
| | |
| | | |
| | | //添加排产数据 |
| | | @ApiOperation("添加排产数据接口") |
| | | @SaCheckPermission("ProductionScheduling.add") |
| | | @PostMapping("/addScheduling") |
| | | public Result addScheduling( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | |
| | | //删除排产数据 |
| | | @ApiOperation("删除排产数据接口") |
| | | @SaCheckPermission("ProductionScheduling.delete") |
| | | @PostMapping("/deleteScheduling") |
| | | public Result deleteScheduling( @RequestBody Map<String,Object> object) throws Exception{ |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation("排版审核接口") |
| | | @SaCheckPermission("ProductionScheduling.review") |
| | | @PostMapping("/examineScheduling") |
| | | public Result examineScheduling( @RequestBody Map<String,Object> object){ |
| | | |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.DamageDetails; |
| | |
| | | |
| | | //流程卡进度 |
| | | @ApiOperation("流程卡进度") |
| | | @SaCheckPermission("ProcessCardProgress.search") |
| | | @PostMapping ("/processCardProgress/{orderId}") |
| | | public Result processCardProgress(@PathVariable String orderId, @RequestBody List<Integer> columns){ |
| | | return Result.seccess(reportService.processCardProgressSv(orderId,columns)); |
| | | } |
| | | |
| | | @ApiOperation("跨工序次破") |
| | | @SaCheckPermission("CrossProcessBreaking.search") |
| | | @PostMapping("/crossProcessBreaking/{pageNum}/{pageSize}/{selectDate}") |
| | | public Result getOrderReport(@PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | |
| | | } |
| | | |
| | | @ApiOperation("在制品报表") |
| | | @SaCheckPermission("WorkInProgress.search") |
| | | @PostMapping("/workInProgress/{selectTime1}/{selectTime2}/{orderId}/{inputProject}/{selectProcesses}") |
| | | public Result workInProgress( |
| | | @PathVariable Date selectTime1, |
| | |
| | | } |
| | | |
| | | @ApiOperation("工序待完成报表") |
| | | @SaCheckPermission("ProcessToBeCompleted.search") |
| | | @PostMapping("/selectProcessToBeCompleted/{selectTime1}/{selectTime2}/{orderId}/{inputProject}/{selectProcesses}") |
| | | public Result selectProcessToBeCompleted( |
| | | @PathVariable Date selectTime1, |
| | |
| | | } |
| | | |
| | | @ApiOperation("次破明细报表") |
| | | @SaCheckPermission("DamageReport.search") |
| | | @PostMapping("/damageReport/{selectTime1}/{selectTime2}") |
| | | public Result damageReport( |
| | | @PathVariable Date selectTime1, |
| | |
| | | |
| | | } |
| | | @ApiOperation("分架明细报表") |
| | | @SaCheckPermission("SplittingDetailsOutside.search") |
| | | @PostMapping("/splittingDetailsOutside/{orderId}") |
| | | public Result splittingDetailsOutside( |
| | | @PathVariable String orderId, |
| | |
| | | } |
| | | |
| | | @ApiOperation("品质报表") |
| | | @SaCheckPermission("QualityReport.search") |
| | | @PostMapping("/qualityReport/{selectTime1}/{selectTime2}") |
| | | public Result qualityReport( |
| | | @PathVariable Date selectTime1, |
| | |
| | | } |
| | | |
| | | @ApiOperation("成品率报表") |
| | | @SaCheckPermission("Yield.search") |
| | | @PostMapping("/yield/{selectTime1}/{selectTime2}/{selectProcesses}") |
| | | public Result yield( |
| | | @PathVariable Date selectTime1, |
| | |
| | | } |
| | | |
| | | @ApiOperation("生产发货进度") |
| | | @SaCheckPermission("ProductionSchedule.search") |
| | | @PostMapping ("/productionSchedule/{orderId}") |
| | | public Result productionSchedule(@PathVariable String orderId, @RequestBody List<Integer> columns){ |
| | | return Result.seccess(reportService.productionScheduleSv(orderId,columns)); |
| | | } |
| | | |
| | | @ApiOperation("任务完成情况汇总进度") |
| | | @SaCheckPermission("TaskCompletionStatus.search") |
| | | @PostMapping ("/taskCompletionStatus/{selectTime1}/{selectTime2}") |
| | | public Result taskCompletionStatus(@PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | |
| | | } |
| | | |
| | | @ApiOperation("订单计划分解") |
| | | @SaCheckPermission("OrderPlanDecomposition.search") |
| | | @PostMapping ("/orderPlanDecomposition/{selectTime1}/{selectTime2}") |
| | | public Result orderPlanDecomposition(@PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | |
| | | } |
| | | |
| | | @ApiOperation("原片领料") |
| | | @SaCheckPermission("RawMaterialRequisition.search") |
| | | @PostMapping ("/rawMaterialRequisition/{selectTime1}/{selectTime2}") |
| | | public Result rawMaterialRequisition(@PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.pp.FlowCard; |
| | |
| | | } |
| | | |
| | | @ApiOperation("报工新增") |
| | | @SaCheckPermission("AddReportingWork.add") |
| | | @PostMapping ("/saveReportingWork") |
| | | public Result SaveReportingWork(@RequestBody Map<String,Object> reportingWork) { |
| | | return Result.seccess(reportingWorkService.SaveReportingWorkSv(reportingWork)); |
| | | } |
| | | |
| | | @ApiOperation("报工审核") |
| | | @SaCheckPermission("AddReportingWork.review") |
| | | @PostMapping ("/reviewReportingWork") |
| | | public Result ReviewReportingWork(@RequestBody Map<String,String> reportingWork) { |
| | | return Result.seccess(reportingWorkService.ReviewReportingWorkSv(reportingWork)); |
| | |
| | | return Result.seccess(reportingWorkService.selectUpdateReportingWorkSv(reportingWorkId)); |
| | | } |
| | | @ApiOperation("报工修改") |
| | | @SaCheckPermission("AddReportingWork.update") |
| | | @PostMapping ("/updateReportingWork/{reviewState}") |
| | | public Result updateReportingWork(@PathVariable String reviewState,@RequestBody Map<String,Object> reportingWork) { |
| | | return Result.seccess(reportingWorkService.updateReportingWork(reportingWork,reviewState)); |
| | | } |
| | | |
| | | @ApiOperation("报工查询接口") |
| | | @SaCheckPermission("SelectReportingWorks.search") |
| | | @PostMapping ("/selectReportingWork/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}/{orderId}") |
| | | public Result selectReportingWork( |
| | | @PathVariable Integer pageNum, |
| | |
| | | } |
| | | |
| | | @ApiOperation("删除报工接口") |
| | | @SaCheckPermission("SelectReportingWorks.delete") |
| | | @PostMapping("/deleteWork/{reportingWorkId}/{processId}/{thisProcess}") |
| | | public Result deleteWork(@PathVariable String reportingWorkId,@PathVariable String processId,@PathVariable String thisProcess){ |
| | | if(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("质检审核查询接口") |
| | | @SaCheckPermission("QualityInspectionReview.search") |
| | | @PostMapping ("/selectQualityTesting/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}/{state}/{processId}") |
| | | public Result selectQualityTesting( |
| | | @PathVariable Integer pageNum, |
| | |
| | | } |
| | | |
| | | @ApiOperation("质检审核审核") |
| | | @SaCheckPermission("QualityInspectionReview.review") |
| | | @PostMapping ("/updateQualityStatus/{reportingWorkId}/{username}") |
| | | public Result updateQualityStatus(@PathVariable String reportingWorkId,@PathVariable String username) { |
| | | if(reportingWorkService.updateQualityStatusSv(reportingWorkId,username)){ |