| | |
| | | @GetMapping("/getProductionNotice") |
| | | public AjaxResult getProductionNotice(OmProductionOrdeInfo omProductionOrdeInfo) |
| | | { |
| | | ReceivingServices.insertWebserviceData(omProductionOrdeInfo.getProductionNotice()); |
| | | return AjaxResult.success(); |
| | | String productionNotice = omProductionOrdeInfo.getProductionNotice(); |
| | | List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo); |
| | | if(omProductionOrdeInfos.size() == 0){ |
| | | try { |
| | | ReceivingServices.insertWebserviceData(productionNotice); |
| | | } catch (Exception e) { |
| | | return error("接收失败!请检查通知单号"); |
| | | } |
| | | } |
| | | return warn("该订单已接收完毕,不能重复接收!"); |
| | | } |
| | | } |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/main/orderScheduling-data', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['bs:workReport:list'], |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | component: () => import('@/views/main/bs/orderScheduling/index'), |
| | | name: 'Data', |
| | | meta: { title: '报工记录表', activeMenu: '/main/bs/orderScheduling' } |
| | | } |
| | | ] |
| | | }, |
| | | ] |
| | | |
| | | // 防止连续点击多次路由报错 |
| | |
| | | |
| | | <el-table border v-loading="loading" :data="orderSchedulingList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="订单编号" align="center" prop="orderNo" width="130"> |
| | | <el-table-column label="生产订单" align="center" prop="orderNo" width="130"> |
| | | |
| | | </el-table-column> |
| | | <el-table-column label="发动机号" align="center" prop="engineNo" width="150"> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | let workOrderNo = this.$route.query.workOrderNo; |
| | | this.queryParams.orderNo = workOrderNo |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | |
| | | </el-table-column> |
| | | <el-table-column label="生产订单" width="160" align="center"> |
| | | <template slot-scope="scope"> |
| | | <router-link :to="{path: '/main/workReport-data/index/', query: {workOrderNo: scope.row.workOrderNo} }" class="link-type"> |
| | | <router-link :to="{path: '/main/orderScheduling-data/index/', query: {workOrderNo: scope.row.workOrderNo} }" class="link-type"> |
| | | <span>{{ scope.row.workOrderNo }}</span> |
| | | </router-link> |
| | | </template> |
| | |
| | | |
| | | getProductionNotice(){ |
| | | getProductionNotice(this.queryParams).then(response => { |
| | | this.$modal.msgSuccess("接收成功"); |
| | | console.log(response) |
| | | console.log(response.data) |
| | | |
| | | console.log(response.data.msg) |
| | | this.$modal.msgSuccess(response.data.msg); |
| | | this.queryParams = {} |
| | | this.getList(); |
| | | }); |
| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="生产通知单号" width="160" align="center" prop="productionNotice"> |
| | | </el-table-column> |
| | | <el-table-column label="生产订单" width="160" align="center"> |
| | | <template slot-scope="scope"> |
| | | <router-link :to="{path: '/main/workReport-data/index/', query: {workOrderNo: scope.row.workOrderNo} }" class="link-type"> |
| | | <span>{{ scope.row.workOrderNo }}</span> |
| | | </router-link> |
| | | </template> |
| | | <el-table-column label="生产订单" width="160" align="center" prop="workOrderNo"> |
| | | </el-table-column> |
| | | <el-table-column label="机型" width="160" align="center" prop="typeZ"> |
| | | </el-table-column> |