| | |
| | | data: query |
| | | }) |
| | | } |
| | | // 根据ifsId查询下单数量 |
| | | export function getOrderCountByIfsId(ifsId) { |
| | | return request({ |
| | | url: '/rawMaterialOrder/getOrderCountByIfsId/'+ifsId, |
| | | method: 'get', |
| | | }) |
| | | } |
| | |
| | | deviceId: this.deviceId, |
| | | inspectionItem: row.inspectionItem.trim(), |
| | | isDevice: true, |
| | | inspectionItemSubclass: row.inspectionItemSubclass.trim(), |
| | | inspectionItemClass: row.inspectionItemClass.trim(), |
| | | inspectionItemSubclass: row.inspectionItemSubclass?row.inspectionItemSubclass.trim():"", |
| | | inspectionItemClass: row.inspectionItemClass?row.inspectionItemClass.trim():"", |
| | | structureItemParameterId: row.structureItemParameterId |
| | | }).then(res => { |
| | | const data = res.data; |
| | |
| | | <el-button v-if="insOrder.ifsOrderType && insOrder.ifsOrderType==='02wg'" size="small" type="primary" @click="showMaterialPropsDialog">IFS物料属性更新</el-button> |
| | | <el-button size="small" type="primary" @click="refreshView">刷新</el-button> |
| | | <el-button v-if="typeSource == 1" size="small" type="primary" @click="openPurchase">进货验证</el-button> |
| | | <el-button v-if="state == 1 && [0,1].includes(typeSource)" size="small" type="primary" |
| | | <el-button v-if="state == 1 && [0,1].includes(Number(typeSource))" size="small" type="primary" |
| | | @click="openUnPassDialog('add')">不合格处理</el-button> |
| | | <el-button size="small" type="primary" @click="sampleVisible = true; uploadSample();">样品切换</el-button> |
| | | <!-- <el-button v-if="state == 1" size="small" type="primary" @click="taskVisible = true">任务切换</el-button>--> |
| | |
| | | laboratory: this.sonLaboratory, |
| | | }).then(async (res) => { |
| | | this.insOrder = res.data.insOrder; |
| | | if(res.data.insOrder.ifsOrderType){ |
| | | if(res.data.insOrder.ifsOrderType==='02wg'){ |
| | | //查询零件属性 |
| | | this.getPartProps(res.data.insOrder.ifsInventoryId) |
| | | } |
| | |
| | | repealEnterRawOrder, |
| | | repealQuarterRawOrder, |
| | | revokeInspectionReport, |
| | | updateEntrustCode |
| | | updateEntrustCode, |
| | | getOrderCountByIfsId |
| | | } from "@/api/business/rawMaterialOrder"; |
| | | import { getWarehouseSubmit } from "@/api/business/materialInspection"; |
| | | import {mapGetters} from "vuex"; |
| | |
| | | }, |
| | | // 下单 |
| | | playOrder(row) { |
| | | this.$router.push({ path: "/materialOrder/customsInspectionOrder", query: {isOutsourcing:'f', orderType: 0, customsInspection: row, active: 1 } }); |
| | | //查询当前批次是否已经下单 |
| | | getOrderCountByIfsId(row.id).then(res=>{ |
| | | if(res.code===200 && res.data>0){ |
| | | this.$message.warning('该批次已下单,请勿重复下单') |
| | | this.refreshTable('page') |
| | | return |
| | | } |
| | | this.$router.push({ path: "/materialOrder/customsInspectionOrder", query: {isOutsourcing:'f', orderType: 0, customsInspection: row, active: 1 } }); |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | }) |
| | | }, |
| | | // 季度检验下单 |
| | | playOrderSec(row) { |
| | |
| | | return { |
| | | codeUrl: "", |
| | | loginForm: { |
| | | username: "admin", |
| | | password: "zttZTT123!", |
| | | username: "ZT-", |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | uuid: "" |