Merge remote-tracking branch 'origin/master'
| | |
| | | let y =Math.round(155 * p.y/parseInt(imgSize.imgHeight)) |
| | | return {x,y} |
| | | }) |
| | | // console.log(newPointArr,"newPointArr"); |
| | | return newPointArr |
| | | } |
| | | }, |
| | |
| | | |
| | | var validateParam = (rule, value, callback) => { |
| | | getObj(value).then((response) => { |
| | | console.log('window.boxType', window.boxType) |
| | | if (window.boxType === 'edit') callback() |
| | | const result = response.data.data |
| | | if (result !== null) { |
| | |
| | | that.carousel() |
| | | // that.createCharts() |
| | | setInterval(() => { |
| | | // console.info("刷新:" + new Date()); |
| | | // that.init() |
| | | }, 30000) |
| | | }, |
| | |
| | | this.iconNameEn = null |
| | | getByStaffId(this.userInfo.staffId).then((response) => { |
| | | const resData = response.data.data |
| | | console.log('resData', resData) |
| | | if (resData != null) { |
| | | this.logSrc = resData.fileAddress |
| | | this.iconNameCn = resData.iconNameCn |
| | |
| | | return validatenull(val) |
| | | }, |
| | | open(item) { |
| | | console.log(item[this.labelKey]) |
| | | console.log(item[this.pathKey]) |
| | | if (this.screen <= 1) this.$store.commit('SET_COLLAPSE'); |
| | | this.$router.$avueRouter.group = item.group; |
| | | if(item[this.labelKey]=='工作台'){ |
| | |
| | | }) |
| | | }, |
| | | error: function(XMLHttpRequest, textStatus, errorThrown) { |
| | | console.log('访问马上聊出错') |
| | | console.error('访问马上聊出错') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.initLogin() |
| | | console.log(this.SSO) |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['tagWel']) |
| | |
| | | methods: { |
| | | initLogin() { |
| | | const code = this.SSO.split('&')[0].split('=')[1] |
| | | console.log(code) |
| | | |
| | | if (code) { |
| | | this.$store.dispatch('LoginBySSO', code).then(() => { |
| | |
| | | let t = ele.offsetTop |
| | | let l = ele.offsetLeft |
| | | ele = ele.offsetParent |
| | | console.log(t) |
| | | console.log(l) |
| | | console.log(ele) |
| | | // console.log(t) |
| | | // console.log(l) |
| | | // console.log(ele) |
| | | while (ele != null) { |
| | | t += ele.offsetTop |
| | | l += ele.offsetLeft |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } else { |
| | | addObj(this.dataForm) |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } |
| | | } else { |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } else { |
| | | this.isSubmit = false |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } else { |
| | | addObj(this.dataForm) |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } |
| | | } else { |
| | |
| | | }, |
| | | // 导出 |
| | | documentHandle(event) { |
| | | console.log(event) |
| | | console.error(event) |
| | | ifsLogExport({ type: event }) |
| | | .then((response) => { |
| | | transform(response) |
| | |
| | | // 去除零件编号两边的空格 |
| | | this.dataForm.partNo = this.dataForm.partNo.trim() |
| | | if (this.dataForm.id) { |
| | | console.log(this.dataForm) |
| | | putObj(this.dataForm) |
| | | .then((data) => { |
| | | this.$message.success('修改成功') |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } else { |
| | | addObj(this.dataForm) |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } |
| | | } else { |
| | |
| | | startMeterMark: this.printLabelInfo.startMeterMark, |
| | | endMeterMark: this.printLabelInfo.endMeterMark |
| | | } |
| | | console.log('this.dataForm', this.dataForm) |
| | | }) |
| | | } |
| | | } |
| | |
| | | methods: { |
| | | beginPrint() { |
| | | this.LODOP = getLodop() |
| | | console.log(this.dataForm) |
| | | const qr = { |
| | | part_no: this.dataForm.partNo, |
| | | lot_batch_no: this.dataForm.ifsBatchNo, |
| | |
| | | this.currTreeNodeData = {} |
| | | }, |
| | | handleNodeClick(data) { |
| | | console.log('data', data) |
| | | this.currTreeNodeData = data |
| | | }, |
| | | addOperateParam() { |
| | |
| | | } |
| | | }, |
| | | deleteClick(row, index) { |
| | | console.log() |
| | | this.currTreeNodeData.paramList.splice(index, 1) |
| | | this.$message.success('删除成功') |
| | | }, |
| | | savePoc() { |
| | | console.log('treeData', this.treeData) |
| | | if (this.treeData[0].children.length > 0) { |
| | | addObj(this.treeData).then((response) => { |
| | | this.$message.success('保存成功') |
| | |
| | | }, |
| | | methods: { |
| | | objectSpanMethod(data) { |
| | | console.log('spanData', data) |
| | | if (data[3] === 2) { |
| | | if (data[2] % 2 === 0) { |
| | | data[4]({ |
| | |
| | | }, |
| | | // 修改保存 |
| | | saveSample(index, row) { |
| | | console.log('row', row) |
| | | var obj = {} |
| | | obj.technologyOperationParamId = row.id |
| | | obj.technologyOperationTemplateId = row.technologyOperationTemplateId |
| | |
| | | const templateType = this.templateTypeList.find( |
| | | (item) => item.templateTypeName === currOperationTemplateType |
| | | ) |
| | | console.log(templateType) |
| | | if (templateType != undefined) { |
| | | this.dataForm.dataType = templateType.dataType |
| | | } else { |
| | |
| | | getObj(this.dataForm.id).then((response) => { |
| | | if (this.dataForm) { |
| | | this.dataForm = response.data.data |
| | | console.log(this.dataForm) |
| | | this.allEquipList = this.dataForm.equipments |
| | | this.allFeedLocation = this.dataForm.locations |
| | | this.allLocation = JSON.parse( |
| | |
| | | }, |
| | | methods: { |
| | | fieldInputEnter(prop, row) { |
| | | console.log('sadasdasdsa') |
| | | this.$emit('inputEnterEvent', { prop: prop, row: row }) |
| | | }, |
| | | onDragEnd() { |
| | |
| | | this.dialogStructureImageUrl = file.url |
| | | }, |
| | | handleStructureSuccess(response, file, fileList) { |
| | | console.log('上传成功') |
| | | }, |
| | | handleStructureExceed(files, fileList) { |
| | | this.$message.warning( |
| | |
| | | }, |
| | | saveSelectRow() { |
| | | if (this.multiSelect) { |
| | | console.log("aaaaaaa--",this.multiSelect,this.multipleSelection) |
| | | this.$emit('handleSelectionParamTemplateChange', this.multipleSelection) |
| | | } else { |
| | | console.log("bbbbbbb--",this.multiSelect,this.currentRow) |
| | | this.$emit('listenToParamTemplateEvent', this.currentRow) |
| | | } |
| | | this.innerVisible = false |
| | |
| | | } |
| | | }, |
| | | saveSelectRow() { |
| | | // console.log(this.multipleSelection); |
| | | console.log(); |
| | | if (this.multiSelect) { |
| | | this.$emit('handleSelectionChange', this.multipleSelection) |
| | | } else { |
| | |
| | | }, |
| | | created() {}, |
| | | mounted() { |
| | | console.log(this.option) |
| | | }, |
| | | methods: {}, |
| | | watch: { |
| | | 'option.data': { |
| | | handler(val) { |
| | | console.log(val) |
| | | // 强制改为Number类型,不然页面展示的是字符串id |
| | | this.option.select = Number( |
| | | this.dataForm.id || this.$route.params.id || this.$route.query.id || 0 |
| | |
| | | if (this.option.select === 0) { |
| | | this.option.select = '' |
| | | } |
| | | |
| | | console.log( |
| | | this.option.data.length, |
| | | this.option.select, |
| | | 'SearchSelectOption' |
| | | ) |
| | | }, |
| | | deep: true |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(this.multipleSelection) |
| | | this.$emit('handleSelectionChange', this.multipleSelection) |
| | | } else { |
| | | this.multipleSelection = val |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(this.columnList); |
| | | this.tableKey = Math.random() |
| | | // this.$forceUpdate(); |
| | | const currPathColumnOrder = this.currPath + '_column' |
| | |
| | | }) |
| | | }, |
| | | print(row) { |
| | | console.log(row) |
| | | getPrintInfo(row ? row.id : row).then((res) => { |
| | | console.log(res) |
| | | this.$refs.printForm.printData(res.data.data) |
| | | this.getData() |
| | | }) |
| | |
| | | getCusMaterialCode() { |
| | | getHwMaterialCode() |
| | | .then((response) => { |
| | | console.log(response) |
| | | this.materialCodes = response.data.data |
| | | }) |
| | | .catch(() => {}) |
| | |
| | | }) |
| | | }, |
| | | print(row) { |
| | | console.log(row) |
| | | this.currRow = row |
| | | getPrintInfo(row ? row.id : row).then((res) => { |
| | | console.log(res) |
| | | if (res.data.data.needPwd) { |
| | | this.hintMsg = res.data.data.hintMsg |
| | | this.showTaskSecretForm = true |
| | |
| | | }) |
| | | }, |
| | | confirmSecret(data) { |
| | | console.log(data) |
| | | this.$refs.printForm.printData(data) |
| | | }, |
| | | // 删除 |
| | |
| | | checkSubmitPassword(this.password, this.grossweightcodeobj.id).then( |
| | | (response) => { |
| | | const resData = response.data |
| | | console.log(resData) |
| | | if (resData.code === 0) { |
| | | this.$emit('confirmSecret', this.tackingList) |
| | | this.innerVisible = false |
| | |
| | | // 根据工艺文件id,查询工艺文件所有的信息 |
| | | getDocumentInfo(documentId) { |
| | | getTechnology(documentId).then((response) => { |
| | | console.log(response) |
| | | const resData = response.data.data |
| | | // this.dataForm = resData |
| | | const bomRoutings = resData |
| | |
| | | } |
| | | } |
| | | this.processConfigContentData.processConfigDataList = processConfigDataList |
| | | console.log(this.processConfigContentData) |
| | | }) |
| | | } |
| | | } |
| | |
| | | }, |
| | | created() { |
| | | document.title = '工艺详情' |
| | | console.log(window.location.href) |
| | | var url = window.location.href |
| | | var param = url.split('?')[1] |
| | | if (param) { |
| | |
| | | }, |
| | | created() { |
| | | document.title = '工艺文件审核' |
| | | console.log(window.location.href) |
| | | var url = window.location.href |
| | | var param = url.split('?')[1] |
| | | const params = param.split('&') |
| | |
| | | getDocumentForOa(id).then((response) => { |
| | | if (response.data.code === 0) { |
| | | const resData = response.data.data |
| | | console.log(resData) |
| | | const bomRoutings = resData.bomRoutings |
| | | const testStandards = resData.testStandards |
| | | const materialCosts = resData.materialCosts |
| | |
| | | } |
| | | } |
| | | this.processConfigContentData.processConfigDataList = processConfigDataList |
| | | console.log(this.processConfigContentData) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | i = i + keyValues.length |
| | | } |
| | | this.materialCostList = allKeyValues |
| | | console.log(this.rowColSplitNodes) |
| | | console.log(this.materialCostList) |
| | | }, |
| | | technologyDocumentSpanMethod({ row, column, rowIndex, columnIndex }) { |
| | | if (columnIndex === 0 || columnIndex === 1) { |
| | | var rowColSplitNode = this.rowColSplitNodes.find( |
| | | (item) => item.key == row.bomId && item.node === rowIndex |
| | | ) |
| | | console.log(row.bomId, rowIndex) |
| | | if (rowColSplitNode !== undefined) { |
| | | return { |
| | | rowspan: rowColSplitNode.num, |
| | |
| | | }, |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | console.log(this.multipleSelection); |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | |
| | | }) |
| | | .catch((error) => { |
| | | this.isSubmit = false |
| | | console.log(error) |
| | | console.error(error) |
| | | }) |
| | | } else { |
| | | this.isSubmit = false |
| | |
| | | } |
| | | } |
| | | const tableData = this.$refs.commonPartTable.getTableData() |
| | | console.log(tableData) |
| | | // 判断频率列数 |
| | | let cnt = 0 |
| | | for (let i = 0; i < tableData.length; i++) { |
| | |
| | | }) |
| | | } |
| | | this.table.column = this.table.column.concat(extCol) |
| | | // console.log(this.table.column) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | // if (response.data.data.customerOrderList != null) { |
| | | // this.dataForm = response.data.data.customerOrderList |
| | | // |
| | | // console.log('0') |
| | | // if (this.dataForm.OrderOrContract) { |
| | | // console.log('1') |
| | | // // 将订单还是合同转义 |
| | | // if (this.dataForm.OrderOrContract == '0') { |
| | | // this.dataForm.OrderOrContract = '合同' |
| | |
| | | // } |
| | | // } |
| | | // } else { |
| | | // console.log('2') |
| | | this.dataForm = response.data.data |
| | | |
| | | // } |
| | |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part); |
| | | if (part) { |
| | | this.dataForm.partNo = part.partNo |
| | | } |
| | |
| | | // 保存配置单 |
| | | saveConfig() { |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEditOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAddOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } else { |
| | | this.$message.error('该销售订单号下,没有其他订单行') |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } |
| | | }) |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | // var param = Object.assign({ current: 1, size: 20 }) |
| | | // getProcessConfigPage(param).then((res) => { |
| | | // const list = res.data.data.records |
| | | // console.log(list) |
| | | // }) |
| | | }, |
| | | // 获取确认 |
| | |
| | | this.customerOrderList.forEach((item) => { |
| | | ids.push(item.id) |
| | | }) |
| | | console.log('this.userInfo.username', this.userInfo.username) |
| | | const setDataForm = { |
| | | customerOrderIds: ids, |
| | | returnUser: this.userInfo.staffName, |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(this.multipleSelection) |
| | | this.$emit('handleSelectionChange', this.multipleSelection) |
| | | } else { |
| | | this.multipleSelection = val |
| | |
| | | }, |
| | | // 创建主生产计划 |
| | | masterPlanHandle() { |
| | | console.log(this.multipleSelection); |
| | | |
| | | if (this.multipleSelection && this.multipleSelection.length > 0) { |
| | | if (this.judgeCoState(this.multipleSelection)) { |
| | | // 判断一下剩余数量是否大于0 |
| | |
| | | }) |
| | | if (flag) { |
| | | checkOA(this.multipleSelection.map((e) => e.id)).then((res) => { |
| | | console.log(res) |
| | | if (!res.data.data.success) { |
| | | this.$confirm(`${res.data.data.message}`, '提示', { |
| | | confirmButtonText: '确定', |
| | |
| | | |
| | | // 箱码信息导出 |
| | | packageExportHandle(row) { |
| | | console.log(row.otcQuantity) |
| | | if (row.otcQuantity) { |
| | | this.packageExport.visible = true |
| | | this.packageExport.form = { |
| | |
| | | }, |
| | | // 导出台账 |
| | | exportStandBook() { |
| | | // console.log(this.$refs.customerOrderTable.getQueryParam(),"SSS") |
| | | // if (this.multipleSelection.length > 0) { |
| | | // let ids = '' |
| | | // this.multipleSelection.forEach((item) => { |
| | |
| | | }, |
| | | updateCurrOrder() { |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEditOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAddOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |
| | |
| | | if (orderIds.length > 0) { |
| | | orderIds.push(this.customerOrderId) |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | this.configContent.orderIdList = orderIds |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.innerVisible = false |
| | | this.$message.success('保存成功') |
| | |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part); |
| | | const index = this.currentSelectRow |
| | | if (part) { |
| | | this.tableData[index].partNo = part.partNo |
| | |
| | | }) |
| | | this.dataForm.customer = JSON.parse(JSON.stringify(customerList)) |
| | | }) |
| | | // this.dataForm.forEach(item=>{ |
| | | // console.log(1111); |
| | | // console.log("循环",item); |
| | | // item.qtyPlaned=item.buyQtyDue |
| | | // }) |
| | | console.log("data",this.dataForm); |
| | | }, |
| | | dataFormSubmit() { |
| | | this.isSubmit = true |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | // console.log(this.dataForm); |
| | | // return |
| | | checkSchedule(this.dataForm.customer) |
| | | .then((res) => { |
| | | if (res.data.data.success) { |
| | |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | console.log('orderId', this.orderId) |
| | | this.innerVisible = this.currshowlist |
| | | if (this.selectionArray && this.selectionArray.length > 0) { |
| | | this.operationTaskType = this.selectionArray[0].workshopTypeCode |
| | |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | | const autoTaskList = resData.data |
| | | console.log(this.selectionArray) |
| | | autoTaskList.forEach((item) => { |
| | | this.operationData.push({ |
| | | operationName: item.operationName, |
| | |
| | | //附件的查询 |
| | | downs(label, e){ |
| | | if(this.activeFileName=='附件'){ |
| | | console.log('1'); |
| | | getProcessConfigFile({ |
| | | orderNumber: this.dataForm.contractNo, |
| | | lineNumber: this.dataForm.customerNo |
| | |
| | | })).then(response => { |
| | | if (response.data.code === 0) { |
| | | this.operationTemplateTypeList = response.data.data |
| | | console.info( this.operationTemplateTypeList ) |
| | | }else{ |
| | | this.operationTemplateTypeList=[]; |
| | | } |
| | |
| | | <el-card class="box-card" v-for="(item, i) in qrData" :key="i" style="margin-bottom: 15px; font-size: 16px !important;"> |
| | | <el-checkbox :label="i" :key="i" style="position: relative;top:-20px;left:5px"><br></el-checkbox> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">序号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ i + 1 }}</el-col> |
| | | <el-col :span="10" :offset="3">订单号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.orderNo }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">车间订单号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.moNo2 }}</el-col> |
| | | <el-col :span="10" :offset="3">客户名称:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.cName }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">订单二维码:</el-col> |
| | | <el-col :span="10" :offset="3">零件名称:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.pName }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">车间订单二维码:</el-col> |
| | | <el-col :span="10"> |
| | | <vueQr :text="JSON.stringify(item)" :size="80" :margin="2"></vueQr> |
| | | <vueQr :text="JSON.stringify(item.code)" :size="80" :margin="2"></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | <div class="el-dialog__body" style="width:448.8px;overflow-y: auto;position: absolute;top:9999px;padding: 0;"> |
| | | <div id="printMOrder"> |
| | | <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i" style="margin-bottom:10px;font-size: 16px !important;"> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">序号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ i + 1 }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">车间订单号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.moNo2 }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">订单号:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.customerOrderNo }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">客户名称:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.cName }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">零件名称:</el-col> |
| | | <el-col :span="10" style="font-weight: bold;">{{ item.pName }}</el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">订单二维码:</el-col> |
| | | <el-col :span="10"> |
| | | <vueQr :text="JSON.stringify(item)" :size="110" :margin="2"></vueQr> |
| | | <vueQr :text="JSON.stringify(item.code)" :size="80" :margin="2"></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | initQrData(data){ |
| | | this.qrData = [] |
| | | if(data){ |
| | | console.log(data); |
| | | let index = Number(data.qtyRequired) + Number(data.scrapQty) |
| | | if(index>0){ |
| | | for(var i=1;i<= index;i++){ |
| | | let obj = { |
| | | moNo: data.moNo, |
| | | moNo2: null, |
| | | orderNo: data.customerOrderNo, |
| | | cName: data.customerName, |
| | | pName: data.partName, |
| | | code: { |
| | | moNo: data.moNo, |
| | | moNo2: null, |
| | | } |
| | | } |
| | | let no = (i+"").padStart(3,'0') |
| | | obj.moNo2 = data.moNo + no |
| | | obj.code.moNo2 = data.moNo + no |
| | | this.qrData.push(obj) |
| | | } |
| | | } |
| | |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | console.log('orderId', this.orderId) |
| | | this.innerVisible = this.currshowlist |
| | | if (this.currshowlist) { |
| | | this.initData() |
| | |
| | | this.getBomTypeDbOptions() |
| | | this.getManufactureAttrs('manufacture_attr_type') |
| | | this.getSysParam(sysParam.IS_REPORT_OPERATION) |
| | | // console.log(this.components); |
| | | }, |
| | | watch: { |
| | | 'dataForm.partId'(newValue, oldValue) { |
| | |
| | | } |
| | | }, |
| | | components(newVal,oldVal){ |
| | | console.log("新",newVal); |
| | | console.log("老",oldVal); |
| | | console.log(this.components); |
| | | }, |
| | | currentRouting(newValue, oldValue) { |
| | | if (newValue && newValue.id) { |
| | |
| | | if (newValue && newValue.id) { |
| | | // 查询产品结构对应的组件 |
| | | getBom(newValue.id).then((response) => { |
| | | console.log("查",this.components); |
| | | // this.components = [response.data.data.tree] |
| | | }) |
| | | } |
| | |
| | | }, |
| | | // 新增工序 |
| | | addOperation(operation) { |
| | | console.log('operation', operation) |
| | | }, |
| | | insertOperation(operation) {}, |
| | | structSelectionChange(val) { |
| | |
| | | this.currRow = row |
| | | }, |
| | | getCurrRow() { |
| | | console.log('currRow', this.currRow) |
| | | }, |
| | | filterHandler(value, row, column) { |
| | | const property = column.property |
| | |
| | | }, |
| | | getWorkShopOptions() { |
| | | remote('work_shop').then((response) => { |
| | | console.log("高压",response); |
| | | if (response.data.code === 0) { |
| | | this.workShopOptions = response.data.data |
| | | } else { |
| | |
| | | this.onTaskDbclickEvents.push( |
| | | gantt.attachEvent('onTaskDblClick', (id, e) => { |
| | | const task = gantt.getTask(id) |
| | | console.log(task) |
| | | if (!task.parent) { |
| | | // this.$message.warning('所属资源展开后,才可进行编辑') |
| | | return false |
| | |
| | | |
| | | init(id, param, outPutBatchList, qtyPlaned) { |
| | | if (param) { |
| | | console.log(param); |
| | | this.dataForm.ifsOrderNo = param.ifsOrderNo |
| | | this.qtyRequired = param.qtyRequired |
| | | this.dataForm.moId = param.id |
| | |
| | | this.showPart = true |
| | | }, |
| | | delMaterial(row, index) { |
| | | console.log('index', index) |
| | | this.operationMaterialData.splice(index, 1) |
| | | }, |
| | | // 物料选中后的回调 |
| | |
| | | } |
| | | }, |
| | | selectionRow(val){ |
| | | console.log(val); |
| | | if (val.length > 1) { |
| | | const preVal = val.shift(); |
| | | this.$refs.crud.toggleRowSelection(preVal, false); |
| | |
| | | const templateType = this.templateTypeList.find( |
| | | (item) => item.templateTypeName === currOperationTemplateType |
| | | ) |
| | | console.log(templateType) |
| | | if (templateType != undefined) { |
| | | this.dataForm.dataType = templateType.dataType |
| | | } else { |
| | |
| | | gantt.refreshData() |
| | | }, |
| | | parseData() { |
| | | console.log(this.$props.tasks) |
| | | gantt.parse(this.$props.tasks) |
| | | }, |
| | | clearAll() { |
| | |
| | | return false |
| | | } |
| | | const parentTask = gantt.getTask(task.parent) |
| | | console.log(parentTask) |
| | | if (parentTask.$open == true) { |
| | | // 任务展开的情况下,才能编辑 |
| | | this.$emit('task-dbclick', task) |
| | |
| | | this.taskIds.push(item.id) |
| | | }) |
| | | getOperationsByTaskIds({ ids: this.taskIds }).then((response) => { |
| | | console.log('response', response.data) |
| | | const resData = response.data.data |
| | | resData.forEach((item) => { |
| | | this.$set(item, 'commonChecked', false) |
| | |
| | | ids.push(item.id) |
| | | }) |
| | | getOperationsByTaskIds(ids).then((response) => { |
| | | console.log('data', response.data) |
| | | }) */ |
| | | }, |
| | | taskDetailHandleSelectionChange(val) { |
| | |
| | | }, |
| | | getSegmentOperateData() { |
| | | getOperationsByTaskIds({ ids: this.taskIds }).then((response) => { |
| | | console.log('response', response.data) |
| | | const resData = response.data.data |
| | | resData.forEach((item) => { |
| | | this.$set(item, 'commonChecked', false) |
| | |
| | | }) |
| | | } |
| | | }) |
| | | console.log('resultList', resultList) |
| | | if (resultList.length > 0 && resultList[0].routingList.length > 0) { |
| | | let flag = true |
| | | resultList.forEach((ele) => { |
| | |
| | | salarySummaryList() { |
| | | let r = JSON.parse(JSON.stringify(this.salarySummaryListRes)) |
| | | const Heji = this.getHeji_tab4(r) |
| | | console.log(Heji) |
| | | Heji.forEach((e) => { |
| | | const idx = r.findLastIndex((x) => e.staffId === x.staffId) |
| | | r = [...r.slice(0, idx + 1), e, ...r.slice(idx + 1)] |
| | |
| | | _that.selectedProductSystemNo = nodeData.key.split('_')[0] |
| | | // const query = { systemNo: 'XT000131' } |
| | | const query = { systemNo: nodeData.key.split('_')[0] } |
| | | console.log(query) |
| | | queryOperationTask(query) |
| | | .then((response) => { |
| | | var data = response.data |
| | |
| | | _that.paramTabs = [] |
| | | } else { |
| | | // 工步信息 |
| | | console.log('nodeData', nodeData.batchNo) |
| | | _that.getStepRecords({ |
| | | id: _that.currOperateTask.id, |
| | | sn: nodeData.batchNo.split('SN号:')[1] |
| | |
| | | }) |
| | | } |
| | | }) |
| | | console.log(param.diagram.selection) |
| | | }, |
| | | // 根据工单id,查询对应的工艺参数信息 |
| | | queryTechnologyInfo(taskId) { |
| | |
| | | }, |
| | | // 切换追溯模式 |
| | | changeTraceType() { |
| | | console.log('traceType', this.traceType) |
| | | this.changePart() |
| | | }, |
| | | paramsTableHeaderStyle({ row, column, rowIndex, columnIndex }) { |
| | |
| | | updateModel: function(val) { |
| | | // No GoJS transaction permitted when replacing Diagram.model. |
| | | if (val instanceof go.Model) { |
| | | console.log('ssss') |
| | | this.diagram.model = val |
| | | } else { |
| | | var m = new go.GraphLinksModel() |
| | |
| | | // this.saveDisabled = false |
| | | // }) |
| | | // .catch((error) => { |
| | | // console.log('失败' + new Date().getTime()) |
| | | // this.saveDisabled = false |
| | | // }) |
| | | } else { |
| | |
| | | // this.saveDisabled = false |
| | | // }) |
| | | // .catch((error) => { |
| | | // console.log('失败' + new Date().getTime()) |
| | | // this.saveDisabled = false |
| | | // }) |
| | | }) |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } |
| | |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | // console.log('==========') |
| | | // console.log(nowListIndex) |
| | | // console.log(oriList[nowListIndex]) |
| | | const list = [] |
| | | list.push(oriList[nowListIndex]) |
| | | // 将数据的盘数 分成段后 更新此次盘数 |
| | |
| | | } |
| | | } |
| | | |
| | | // console.log(idx) |
| | | // console.log(submitCount) |
| | | // console.log(list) |
| | | // console.log(listDisNumber) |
| | | // |
| | | // setTimeout(() => { |
| | | // loading.close() |
| | |
| | | if (data.code == 0) { |
| | | // 返回报工主表id,用于刷新页面 |
| | | var productMainId = data.data |
| | | // console.log(idx) |
| | | // console.log(submitCount) |
| | | // console.log(listDisNumber) |
| | | loading.close() |
| | | // 已完成数据 消息记录 |
| | | this.messageMap['' + nowListIndex] = |
| | |
| | | } else { |
| | | // 批量提交完成,刷新报工页面数据 |
| | | this.$emit('refreshProductOutputList', productMainId) |
| | | console.log(this.messageMap) |
| | | this.$message.success('新增成功') |
| | | this.innerVisible = false |
| | | } |
| | |
| | | }) |
| | | .catch((error) => { |
| | | loading.close() |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | this.showError() |
| | | }) |
| | |
| | | // this.saveDisabled = false |
| | | // }) |
| | | // .catch((error) => { |
| | | // console.log('失败' + new Date().getTime()) |
| | | // this.saveDisabled = false |
| | | // }) |
| | | } else { |
| | |
| | | // this.saveDisabled = false |
| | | // }) |
| | | // .catch((error) => { |
| | | // console.log('失败' + new Date().getTime()) |
| | | // this.saveDisabled = false |
| | | // }) |
| | | }) |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } |
| | |
| | | productOuts.push(productOut) |
| | | } |
| | | productVo.productOutputList = productOuts |
| | | console.log('dasdad', productVo) |
| | | batchSaveProductOutput(productVo) |
| | | .then((response) => { |
| | | var data = response.data |
| | |
| | | this.saveDisabled = false |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } |
| | |
| | | pullFeed() { |
| | | var partNoList = [] |
| | | var partNoLists |
| | | console.log('this.dataList', this.dataList) |
| | | for (var i = 0; i < this.dataList.length; i++) { |
| | | partNoLists = this.dataList[i].partNo |
| | | partNoList.push(partNoLists) |
| | |
| | | } |
| | | }, |
| | | inputHandle(){ |
| | | console.log(this.currOperateTask); |
| | | if (this.selectFeeds.length > 0) { |
| | | var list = [] |
| | | this.selectFeeds.forEach(a=>{ |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log('asdasdasdad') |
| | | this.loadStockByWorkstation() |
| | | this.loadFeedByWorkstation(this.workstationId) |
| | | }, |
| | |
| | | watch: { |
| | | workstationId() { |
| | | if (this.workstationId) { |
| | | console.log('sssssssss') |
| | | |
| | | this.loadStockByWorkstation() |
| | | this.loadFeedByWorkstation(this.workstationId) |
| | | } |
| | |
| | | workstationId: { |
| | | handler: function(newVal, oldVal) { |
| | | if (this.workstationId) { |
| | | console.log(`output->this.workstationId`,this.workstationId) |
| | | getAllHandymanTemplate( |
| | | Object.assign({ workstationId: this.workstationId }) |
| | | ).then((response) => { |
| | |
| | | |
| | | .warning-info { |
| | | margin-left: 20px; |
| | | font-size: 16px; |
| | | font-size: 13px; |
| | | font-weight: bold; |
| | | color: red; |
| | | letter-spacing: 3px; |
| | | } |
| | |
| | | customerOrderNo: this.operateTaskForm.orderNumber |
| | | }).then((res) => { |
| | | const result = res.data.data |
| | | console.log(result) |
| | | result.forEach(function(item) { |
| | | const obj = { |
| | | key: item, |
| | |
| | | } |
| | | that.partNames.push(obj) |
| | | }) |
| | | console.log(that.partNames) |
| | | }) |
| | | }, 500) |
| | | } else { |
| | |
| | | (e) => e.id === this.dutyForm.workstationId |
| | | ).workCenter |
| | | } |
| | | console.log(this.paramObj_StationSave) |
| | | this.visible_StationSave = true |
| | | }, |
| | | Select_StationSave() { |
| | |
| | | fetchList(query) |
| | | .then((response) => { |
| | | var data = response.data |
| | | console.info(data) |
| | | if (data.code === 0) { |
| | | this.materialList = data.data.records |
| | | } else { |
| | |
| | | <img class="selectedImg" src="/img/workbench/icon_selected.png" /> |
| | | <div class="header"> |
| | | <div>工单号:{{ item.taskNo }}</div> |
| | | <!-- <div class="tag" :style="{ backgroundColor: getTagColor(item.planFinishDay) }"> |
| | | {{ getTagText(item.planFinishDay) }} |
| | | </div> --> |
| | | <el-alert |
| | | center |
| | | style="width: 80px;height:30px;line-height: 30px;" |
| | | style="width: 80px;height:28px;line-height: 100%;font-size:10px" |
| | | :title="getTagText(item.planFinishDay)" |
| | | :type="getTagColor(item.planFinishDay)" |
| | | effect="dark" |
| | |
| | | } |
| | | .status-change-div { |
| | | width: 20%; |
| | | max-width: 100px; |
| | | max-width: 160px; |
| | | } |
| | | .status-change-div >>> .el-select { |
| | | width: 100%; |
| | |
| | | .then((res) => { |
| | | if (!res.data.data) { |
| | | changeSubmitState(taskId, true).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | getDraftProductOut(taskId).then((response) => { |
| | | console.log(response) |
| | | const list = response.data.data || [] |
| | | if (list.length > 0) { |
| | | this.batchChangeSubmit(list, 0, currItem) |
| | | } else { |
| | | changeSubmitState(taskId, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | currItem.statusAction = null |
| | | this.$message.warning('没有可提交的数据') |
| | |
| | | .catch((error) => { |
| | | console.log(error) |
| | | changeSubmitState(taskId, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | }) |
| | | } |
| | |
| | | this.batchChangeSubmit(list, i, currItem) |
| | | } else { |
| | | changeSubmitState(this.taskID, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | // 批量提交完成,刷新报工页面数据 |
| | | this.$emit('refreshReport') |
| | |
| | | console.log(error) |
| | | loading.close() |
| | | changeSubmitState(this.taskID, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | const errorMsg = '报工单号' + list[i].productNo + ':' |
| | | this.$message.error(errorMsg + '处理失败') |
| | |
| | | endTime: this.endTime |
| | | // criteria: JSON.stringify(obj) |
| | | }).then((res) => { |
| | | console.log(res.data.data.length) |
| | | if (res.data.data.length) { |
| | | const arr = [] |
| | | arr.push(res.data.data[0]) |
| | |
| | | this.scanArr.push(res.data.data[0].id) |
| | | this.idList = [...new Set(this.scanArr)] |
| | | this.part = null |
| | | console.log(this.idList) |
| | | } |
| | | }) |
| | | } |
| | |
| | | templateType: this.currTemplateType |
| | | }) |
| | | ).then((response) => { |
| | | console.log(response) |
| | | this.paramTemplatesList = response.data.data.records |
| | | }) |
| | | }, |
| | |
| | | this.params = JSON.parse(JSON.stringify(list)) |
| | | } |
| | | }) |
| | | console.log(this.selectedTemplateId) |
| | | }, |
| | | getParamValuesi() { |
| | | this.params = [] |
| | |
| | | this.params = JSON.parse(JSON.stringify(list)) |
| | | } |
| | | }) |
| | | console.log(this.selectedTemplateIds) |
| | | }, |
| | | saveProductRecord() { |
| | | this.saveDisabled = true |
| | |
| | | // this.part = val.systemNo + ' ' + val.outBatchNo |
| | | this.part = val.outBatchNo |
| | | this.productOutId = val.id |
| | | console.log(this.part) |
| | | const forData = [] |
| | | console.log(val) |
| | | forData.push(val) |
| | | console.log(forData) |
| | | for (let i = 0; i < forData.length; i++) { |
| | | if (!this.produceList.some((e) => e.id === forData[i].id)) |
| | | this.produceList.push(forData[i]) |
| | |
| | | } |
| | | } |
| | | // this.idList = [...new Set(arr)] |
| | | console.log(this.outputPartsList) |
| | | console.log(this.idList) |
| | | } |
| | | }, |
| | | selectProductOutPuts(val) { |
| | |
| | | // this.part = val.systemNo + ' ' + val.outBatchNo |
| | | this.parts = val.partBatchNo |
| | | this.productOutId = val.id |
| | | console.log(this.parts) |
| | | const forData = [] |
| | | console.log(val) |
| | | forData.push(val) |
| | | console.log(forData) |
| | | for (let i = 0; i < forData.length; i++) { |
| | | if (!this.cutApartList.some((e) => e.id === forData[i].id)) |
| | | this.cutApartList.push(forData[i]) |
| | |
| | | } |
| | | } |
| | | // this.idLists = [...new Set(arr)] |
| | | console.log(this.outputPartsList) |
| | | console.log(this.idLists) |
| | | } |
| | | }, |
| | | handleDelete(index, row) { |
| | | console.log(index, row) |
| | | this.outputPartsList = this.outputPartsList.filter( |
| | | (item) => item.id !== row.id |
| | | ) |
| | |
| | | this.produceList = this.produceList.filter((item) => item.id !== row.id) |
| | | this.cutApartList = this.cutApartList.filter((item) => item.id !== row.id) |
| | | |
| | | console.log(this.idList) |
| | | console.log(this.outputPartsList) |
| | | }, |
| | | // 回车换行 |
| | | nextFocus(index) { |
| | |
| | | this.paramObj.endTime = this.getNowFormatDate() |
| | | this.paramObjs.startTime = this.getNowFormatDate() |
| | | this.paramObjs.endTime = this.getNowFormatDate() |
| | | console.log(123456) |
| | | } else if (this.createDateRangeArr.length !== 0) { |
| | | console.log(123456) |
| | | this.paramObj.startTime = this.createDateRangeArr[0] |
| | | .split('-') |
| | | .join('') |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } |
| | |
| | | if (data.code == 0) { |
| | | // 返回报工主表id,用于刷新页面 |
| | | var productMainId = data.data |
| | | // console.log(idx) |
| | | // console.log(submitCount) |
| | | // console.log(listDisNumber) |
| | | loading.close() |
| | | // 已完成数据 消息记录 |
| | | this.messageMap['' + nowListIndex] = |
| | |
| | | } else { |
| | | // 批量提交完成,刷新报工页面数据 |
| | | this.$emit('refreshTaskDetailInfoList') |
| | | console.log(this.messageMap) |
| | | this.$message.success('新增成功') |
| | | this.innerVisible = false |
| | | } |
| | |
| | | }) |
| | | .catch((error) => { |
| | | loading.close() |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | this.showError() |
| | | }) |
| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } |
| | |
| | | productOuts.push(productOut) |
| | | } |
| | | productVo.productOutputList = productOuts |
| | | console.log('dasdad', productVo) |
| | | saveProductOutput(productVo) |
| | | .then((response) => { |
| | | var data = response.data |
| | |
| | | this.saveDisabled = false |
| | | }) |
| | | .catch((error) => { |
| | | console.log('失败' + new Date().getTime()) |
| | | this.saveDisabled = false |
| | | }) |
| | | } else { |
| | |
| | | // dutyRecordId: this.isDutyFilter ? this.currentDutyRecord.id : null, |
| | | // workstationId: this.isWorkstationFilter ? this.workstationId : null |
| | | // }) |
| | | // console.log(val, res) |
| | | // this.productRecords = res.data.data |
| | | }, |
| | | // 多选删除 |
| | | select(selection, row) { |
| | | console.log(selection, row) |
| | | const arr = [] |
| | | // this.idList = [] |
| | | selection.forEach((item) => { |
| | | arr.push(item.id) |
| | | }) |
| | | this.idList = [...new Set(arr)] |
| | | console.log(this.idList) |
| | | }, |
| | | // 全选删除 |
| | | selectAll(selection) { |
| | | console.log(selection) |
| | | const arr = [] |
| | | // this.idList = [] |
| | | selection.forEach((item) => { |
| | | arr.push(item.id) |
| | | }) |
| | | this.idList = [...new Set(arr)] |
| | | console.log(this.idList) |
| | | }, |
| | | async delAlls() { |
| | | let isContinue = true |
| | |
| | | isContinue = true |
| | | // this.idList = [] |
| | | const res = await delAll(this.idList) |
| | | console.log(res) |
| | | this.getProductRecords() |
| | | this.$message.success('删除成功!') |
| | | this.idList = [] |
| | |
| | | }, |
| | | // 获取生产记录列表 |
| | | getProductRecords() { |
| | | console.log(this.createDateRange) |
| | | let templateJson |
| | | if (this.createDateRange != null && this.createDateRange !== '') { |
| | | templateJson = { |
| | |
| | | item.toggleRowSelection(row) |
| | | }) |
| | | const index = this.idList.indexOf(row.id) |
| | | console.log(index) |
| | | if (index >= 0) { |
| | | this.idList.splice(index, 1) |
| | | } else { |
| | | this.idList.push(row.id) |
| | | } |
| | | console.log(this.idList) |
| | | this.currProductRecordId = row.id |
| | | this.paramValues = [] |
| | | var productRecordJson = { |
| | |
| | | nextFocus(index) { |
| | | index++ |
| | | this.$refs['reference_' + index].focus() |
| | | // console.log(this.i) |
| | | }, |
| | | // 删除某条生产记录 |
| | | delProductrecord(index, row) { |
| | |
| | | // JSON.stringify(paramValueArray) |
| | | // ) |
| | | updateProductRecord(obj).then((response) => { |
| | | console.log(this.idList) |
| | | if (response.data.code === 0) { |
| | | this.$message.success('修改成功') |
| | | console.log(this.$refs.productRecordTable) |
| | | this.$refs.productRecordTable.forEach((item) => { |
| | | item.clearSelection() |
| | | }) |
| | |
| | | }, |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | console.info(this.multipleSelection) |
| | | }, |
| | | // 选中报告 |
| | | changeProductMain() { |
| | |
| | | productOuts.push(productOut) |
| | | } |
| | | productVo.productOutputList = productOuts |
| | | console.log('dasdad', productVo) |
| | | saveProductOutput(productVo) |
| | | .then((response) => { |
| | | var data = response.data |
| | |
| | | const exsitMan = this.personBoardList.find((item) => { |
| | | return item.staffId == this.userInfo.staffId |
| | | }) |
| | | console.log('exsitMan', exsitMan) |
| | | if (exsitMan) { |
| | | const flag = this.checkProductQuality() |
| | | if (flag) { |
| | |
| | | } |
| | | }, |
| | | taskTypeChange() { |
| | | // console.log('sadasd') |
| | | // this.$refs.sn_seach_input.focus() |
| | | this.stockFieldInfo = null |
| | | this.stockList = [] |
| | | this.splitResultList = [] |
| | |
| | | }, |
| | | // 放大图片 |
| | | openImg() { |
| | | console.log('放大照片') |
| | | }, |
| | | downloadProcessConfigFile(row) { |
| | | downloadProcessConfigFile( |
| | |
| | | }, |
| | | watch: { |
| | | currshowlist() { |
| | | console.log(22211); |
| | | this.innerVisible = this.currshowlist |
| | | if (this.currshowlist) { |
| | | this.$nextTick(() => { |
| | |
| | | // this.$refs.paramTable.getDataList() |
| | | // }, |
| | | Getdata(val){ |
| | | console.log(val); |
| | | this.datalistid = val |
| | | }, |
| | | saveSelectRow() { |
| | |
| | | if (this.currentApplyId) { |
| | | getStock().then((data) => { |
| | | if (data.data.data.code === 1) { |
| | | console.info(sysParam.SHOW_STEP_BUSINESS) |
| | | this.stockList = data.data.data.data.listInfo |
| | | this.showErpStock = true |
| | | } |
| | |
| | | }, |
| | | submitUpload(file) { |
| | | console.info(this.currentRow && this.currentRow.id) |
| | | console.log(file); |
| | | if (this.currentRow && this.currentRow.id) { |
| | | const maxSize = 5 * 1024 *1024 |
| | | let jpgType = 'image/jpeg' |
| | |
| | | } |
| | | }, |
| | | submitUpload() { |
| | | console.info(this.currentRow && this.currentRow.id) |
| | | if (this.currentRow && this.currentRow.id) { |
| | | this.paramData.exceptionId = this.currentRow.id |
| | | } else { |
| | |
| | | let id = res.data.data |
| | | if(id != null){ |
| | | queryById(id).then(response=>{ |
| | | console.log(response.data.data.children) |
| | | let proList = response.data.data.children |
| | | proList.forEach(item=>{ |
| | | item.iid = Math.random(); |
| | |
| | | }, |
| | | created(){ |
| | | this.tableData = this.formData |
| | | console.log("============",this.tableData) |
| | | this.initData() |
| | | // this.initProjectList(this.projectList) |
| | | }, |
| | | methods:{ |
| | | initData(){ |
| | |
| | | formData(newVal){ |
| | | if(newVal){ |
| | | this.projectList = [] |
| | | console.log(newVal) |
| | | this.tableData = newVal |
| | | this.initData() |
| | | // this.initProjectList(this.projectList) |
| | | } |
| | | } |
| | | }, |
| | |
| | | initData(){ |
| | | let ii = [] |
| | | let pp = [] |
| | | console.log("<-------------------->"); |
| | | this.deviceStr = this.tableData.projectName |
| | | this.product = this.tableData.material |
| | | this.number = this.tableData.quantity |
| | |
| | | this.material = this.tableData.material |
| | | this.materialCode = this.tableData.materialCode |
| | | this.quantity = this.tableData.quantity |
| | | console.log(this.tableData,"-----------11111"); |
| | | this.tableData.children.forEach(el =>{ |
| | | this.prjdata.push(el) |
| | | el.children.forEach(kl =>{ |
| | |
| | | this.iname = Array.from(new Set(pp)).join(",") |
| | | }, |
| | | initprjdata(list){ |
| | | console.log(list,"uuuuuuuuuuuuuuuuu"); |
| | | const data = { |
| | | eId: '', |
| | | ename: '', |
| | |
| | | formData(newVal){ |
| | | if(newVal){ |
| | | this.prjdata = [] |
| | | console.log("formData变化--",newVal) |
| | | this.tableData = newVal |
| | | this.initData() |
| | | this.initprjdata(this.prjdata) |
| | |
| | | watch:{ |
| | | printFormData(newVal){ |
| | | if(newVal){ |
| | | // console.log("pData变化--",newVal); |
| | | this.printFormData = newVal |
| | | } |
| | | } |
| | |
| | | exportExcel(){ |
| | | let queryParam=this.$refs.finishedProduct.getQueryParam(); |
| | | delete queryParam.criteria |
| | | // console.log(queryParam); |
| | | exportExaminationProducts(queryParam).then((res)=>{ |
| | | transform(res) |
| | | }) |
| | | }, |
| | | deleteHandle(row){ |
| | | // console.log(row.id) |
| | | this.$confirm('确认删除该数据吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | judgmentQuality() { |
| | | judgmentSampleCheck(this.reportInfo.reportSampleList[0]).then( |
| | | (response) => { |
| | | console.log('response', response) |
| | | const checkResult = response.data.data.success |
| | | const checkMessage = response.data.data.message |
| | | if (checkResult) { |
| | |
| | | this.dataForm.sampleCheckLength == null |
| | | ? null |
| | | : this.dataForm.sampleCheckLength |
| | | console.log('cd', cd) |
| | | if (cd && cd != null) { |
| | | if (temperature && temperature != null) { |
| | | this.dataList['采集项'].forEach((item) => { |
| | |
| | | exportExcel(){ |
| | | let queryParam=this.$refs.processInspect.getQueryParam(); |
| | | delete queryParam.criteria |
| | | console.log(queryParam); |
| | | exportProcessInsProduct(queryParam).then((res)=>{ |
| | | transform(res) |
| | | }) |
| | |
| | | methods: { |
| | | submitSave() { |
| | | let pro = 0 |
| | | console.log(this.inspectionItems); |
| | | this.inspectionItems.forEach(item => { |
| | | if (item.children) { |
| | | let arr = item.children.filter(obj => { |
| | |
| | | } |
| | | }) |
| | | this.inspectionItems = result.children |
| | | console.log(this.inspectionItems); |
| | | this.inspectionResultForm = [{ |
| | | materialCode: result.materialCode, |
| | | material: result.material, |
| | |
| | | this.technologyList = sample.children |
| | | }, |
| | | changeState(row, index) { |
| | | console.log(row) |
| | | if (row.iid != null && row.iid != '') { |
| | | let str = "" |
| | | row.empiricalValueAddss.forEach(e => { |
| | | str += e + "," |
| | | }) |
| | | |
| | | // if (note === undefined || note === '' || note === null) { |
| | | // return |
| | | // } |
| | | console.log(str) |
| | | str = str.slice(0, -1); |
| | | if (str === undefined || str === '' || str === null) { |
| | | return |
| | | } |
| | | |
| | | |
| | | let obj = { |
| | | devideId: row.eId, |
| | | ppid: row.iid, |
| | |
| | | note : row.inote |
| | | |
| | | } |
| | | console.log(obj) |
| | | updateProcessInsProduct(obj).then(res => { |
| | | if (res.data.code == 0) { |
| | | this.$message.success("更新成功") |
| | |
| | | let id = res.data.data |
| | | if (id != null) { |
| | | queryById(id).then(response => { |
| | | console.log(response.data.data.children) |
| | | let proList = response.data.data.children |
| | | proList.forEach(item => { |
| | | item.iid = Math.random(); |
| | |
| | | }, |
| | | handleExport(){ |
| | | exportData(this.queryParam).then(res=>{ |
| | | console.log(res) |
| | | this.downloadFun(res) |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | |
| | | }, |
| | | //提交审核 |
| | | Submitreview(row){ |
| | | console.log(row.id); |
| | | pullInsUnapi({id:row.id}).then(res =>{ |
| | | console.log(res); |
| | | this.$refs.processconfiguration.refreshData() |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | selectStaffCallback(param, paramName) { |
| | | console.log(paramName) |
| | | if (param) { |
| | | if (paramName == 'originator') { |
| | | this.dataForm.originator = '' |
| | |
| | | remote('work_shop').then((response) => { |
| | | if (response.data.code === 0) { |
| | | this.dataTypeList = response.data.data |
| | | console.log(this.dataTypeList) |
| | | } else { |
| | | this.dataTypeList = [] |
| | | } |
| | |
| | | return {} |
| | | }, |
| | | created() { |
| | | console.log(222222222222224564646); |
| | | }, |
| | | |
| | | components: { |
| | |
| | | }, |
| | | exportRawMaterial(){ |
| | | exportRawMaterial(this.queryParam).then(res=>{ |
| | | console.log(res) |
| | | this.downloadFun(res) |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | |
| | | Turnonthecamera() { |
| | | this.qrcode = true |
| | | this.camera = 'rear' |
| | | console.log(2222222); |
| | | }, |
| | | // 扫码结果回调 |
| | | // onDecode(result) { |
| | |
| | | let flagMsg = '' |
| | | const cd = |
| | | this.currentSample == null ? null : this.currentSample.stockQuantity |
| | | console.log('cd', cd) |
| | | if (cd && cd != null) { |
| | | this.paramValues.forEach((item) => { |
| | | if ( |
| | |
| | | }, |
| | | data: requireData, |
| | | success: function(response) { |
| | | console.log('response', response) |
| | | const resJson = JSON.parse( |
| | | response |
| | | .replace(/\r/g, '') |
| | | .replace(/\n/g, '') |
| | | .replace(/\s*/g, '') |
| | | ) |
| | | console.log('resJson', resJson) |
| | | // TODO |
| | | if (resJson.message) { |
| | | const resData = resJson.data |
| | |
| | | }, |
| | | // 附件预览 |
| | | handlePictureCardPreview(file) { |
| | | console.log(file) |
| | | this.dialogImageUrl = file.url |
| | | this.dialogImageVisible = true |
| | | }, |
| | |
| | | this.showTestStandard = true |
| | | }, |
| | | selectPart(param, nodePart, index) { |
| | | console.log(param) |
| | | if (param) { |
| | | this.dataForm.partId = param.id |
| | | this.dataForm.partNo = param.partNo |
| | |
| | | } |
| | | }, |
| | | selectOperate(operate) { |
| | | console.log(operate) |
| | | if (operate) { |
| | | this.dataForm.operationId = operate.id |
| | | this.dataForm.operationNo = operate.operationNo |
| | |
| | | } |
| | | }, |
| | | selectTestStandard(param) { |
| | | console.log(param) |
| | | if (param) { |
| | | this.dataForm.standardId = param.id |
| | | this.dataForm.standardNo = param.standardNo |
| | |
| | | } |
| | | } |
| | | }) |
| | | console.log(this.allGX) |
| | | if (this.xAxisList.length < 4) { |
| | | this.options.dataZoom[0].show = false |
| | | this.options.dataZoom[0].end = 100 |
| | |
| | | }, |
| | | // 提交生成的布局json |
| | | submitJson() { |
| | | console.log('this.layOutItems', this.layOutItems) |
| | | }, |
| | | // 弹出布局结果预览窗口 |
| | | previewLayOut() { |
| | |
| | | }, |
| | | // 删除子表 |
| | | delStandard(row) { |
| | | console.log(row) |
| | | delStandard(row.id).then((res) => { |
| | | if (res.data.code === 0) { |
| | | this.getTestPlanInfo(this.dataForm.id) |
| | |
| | | }) |
| | | }, |
| | | init(row) { |
| | | console.log(row) |
| | | this.getCauseType() |
| | | this.getProcessMode() |
| | | this.getType() |
| | |
| | | if (this.dataForm.id) { |
| | | getUnqualifiedProcess(this.dataForm.id).then((response) => { |
| | | const resData = response.data.data |
| | | console.log(resData) |
| | | this.dataForm.id = resData.id |
| | | this.dataForm.processNo = resData.processNo |
| | | this.dataForm.reason = resData.reason |
| | |
| | | } |
| | | }, |
| | | selectPart(part) { |
| | | console.log(part) |
| | | if (part) { |
| | | partDegrade(this.multipleSelection[0].id, part.id).then((res) => { |
| | | console.log(res) |
| | | this.$message.success('零件降级成功!') |
| | | }) |
| | | } |
| | |
| | | this.innerVisible = true |
| | | }, |
| | | dataFormSubmit() { |
| | | console.log(this.mulLocation) |
| | | if (this.mulLocation) { |
| | | this.$emit('refreshDataList', this.mulLocation) |
| | | this.innerVisible = false |
| | |
| | | // 选中库位行 |
| | | handleCurrentChange(val) { |
| | | this.mulLocation = val |
| | | console.log(val) |
| | | }, |
| | | getWarehouseLocGroupList() { |
| | | const warehouseList = [] |
| | |
| | | if (this.dataForm.id) { |
| | | getUnqualifiedProcess(this.dataForm.id).then((response) => { |
| | | const resData = response.data.data |
| | | console.log(resData) |
| | | this.dataForm.id = resData.id |
| | | this.dataForm.processNo = resData.processNo |
| | | this.dataForm.reason = resData.reason |
| | |
| | | }, |
| | | computed: { |
| | | editable: function() { |
| | | console.log() |
| | | if (!this.dataForm.id) { |
| | | return true |
| | | } |
| | |
| | | if (this.dataForm.id) { |
| | | getObj(this.dataForm.id).then((response) => { |
| | | var resultData = response.data.data |
| | | console.log(resultData) |
| | | this.treeForm = resultData |
| | | // this.treeForm.id = resultData.id |
| | | // this.treeForm.partId = resultData.partId |
| | | // this.treeForm.partNo = resultData.partNo |
| | | // this.treeForm.partName = resultData.partName |
| | | // this.treeForm.number = resultData.number |
| | | // this.treeForm.insulationColor = resultData.insulationColor |
| | | // this.treeForm.sheathColor = resultData.sheathColor |
| | | // this.treeForm.characteristicOne = resultData.characteristicOne |
| | | // this.treeForm.version = resultData.version |
| | | // this.treeForm.alternativeNo = resultData.alternativeNo |
| | | // this.treeForm.alternativeDesc = resultData.alternativeDesc |
| | | // this.treeForm.bomTypeDb = resultData.bomTypeDb |
| | | // this.treeForm.state = resultData.state |
| | | // this.treeForm.remark = resultData.remark |
| | | this.dataForm.state = resultData.state |
| | | this.preViewData = [] |
| | | this.preViewData.push(resultData.tree) |
| | | this.tableData = resultData.bomComponentVOS |
| | | // getPartAllStructureExt(this.treeForm).then((res) => { |
| | | // const result = res.data |
| | | // if (result.code === 0) { |
| | | // this.tableData.push(result.data) |
| | | // } |
| | | // }) |
| | | }) |
| | | } else { |
| | | this.initDefaultForm() |
| | |
| | | return |
| | | } |
| | | } |
| | | console.log(this.operationTestStandardParamList) |
| | | updDocTestStandardDetails(this.operationTestStandardParamList).then( |
| | | (response) => { |
| | | this.$message.success('检测标准参数保存成功') |
| | |
| | | } |
| | | }, |
| | | openExtendsTestStandard(row) { |
| | | console.log(row) |
| | | if (row.extendsOperationId) { |
| | | this.showExtendsTestStandard = true |
| | | this.selectRow = row |
| | |
| | | if (this.currTechnologyName != null && this.currTechnologyName !== '') { |
| | | // 当用户删除工艺文件中关联的工艺路线时,若该文件对应BOM中所需半成品的工艺路线也已与当前工艺文件关联 |
| | | routingChildCheck(this.currTechnologyBomPartName).then((res) => { |
| | | console.log('res', res.data) |
| | | const resData = res.data |
| | | let num = 0 |
| | | if (resData.code === 0) { |
| | |
| | | if (this.dataForm.id) { |
| | | this.getDocumentInfo(this.dataForm.id) |
| | | } |
| | | console.log('上传成功') |
| | | }, |
| | | handleStructureExceed(files, fileList) { |
| | | // this.$message.warning( |
| | |
| | | this.dialogFlowVisible = true |
| | | }, |
| | | handleFlowSuccess(response, file, fileList) { |
| | | console.log('上传成功') |
| | | }, |
| | | handleFlowExceed(files, fileList) { |
| | | this.$message.warning( |
| | |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param |
| | | // console.log(columns, 'A') |
| | | // console.log(data, 'B') |
| | | const sums = [] |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | |
| | | const res = response.data |
| | | if (res.code === 0) { |
| | | this.dataList = res.data.operations |
| | | console.log(this.dataList) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | } |
| | | qryDocTestStandard(obj).then((res) => { |
| | | this.dataList = res.data.data |
| | | console.log(this.dataList) |
| | | }) |
| | | }, |
| | | doubleClick() { |
| | |
| | | }, |
| | | methods: { |
| | | getData() { |
| | | console.log(this.dataFormId) |
| | | qryDocTestStandardDetailsByStandardId({ |
| | | standardId: this.dataFormId |
| | | }).then((response) => { |
| | | this.dataList = response.data.data |
| | | console.log(this.dataList) |
| | | }) |
| | | }, |
| | | doubleClick() { |
| | |
| | | this.$refs.selectTestStandardTable.getDataList() |
| | | }, |
| | | addOrUpdateHandle() { |
| | | console.info(this.documentId) |
| | | if (this.documentId) { |
| | | if (this.editable) { |
| | | this.qualityStandardParamObj = { |
| | |
| | | this.$set(nodePart, 'unit', param.unit) |
| | | this.$set(nodePart, 'drawingNumber', param.drawingNumber) |
| | | this.$set(nodePart, 'planningMethod', param.planningMethod) |
| | | console.info(index) |
| | | this.clearClass(index) |
| | | } |
| | | } else { |
| | |
| | | for (let i = 0; i < this.dataForm.dataList.length; i++) { |
| | | this.dataForm.dataList[i].synIfs = true |
| | | } |
| | | console.log(this.dataForm.dataList) |
| | | checkWdr(this.dataForm.dataList).then((res1) => { |
| | | addStockNumber(this.dataForm.dataList).then((res) => { |
| | | this.$message.success('入库成功') |
| | |
| | | // 删除 |
| | | goDel() { |
| | | if (this.multipleSelection && this.multipleSelection.length > 0) { |
| | | console.log(this.multipleSelection) |
| | | this.$confirm( |
| | | `是否确认删除,共${this.multipleSelection.length}条`, |
| | | '提示', |
| | |
| | | if (response.data.code === 0) { |
| | | this.locTypeOption = response.data.data |
| | | } |
| | | console.log(response); |
| | | }) |
| | | }, |
| | | // 单行选中 |
| | |
| | | saveSelectRow() { |
| | | this.isSubmit = true |
| | | const transportsMaterials = [] |
| | | console.log(`output->this.transportsList`,this.transportsList) |
| | | this.transportsList.forEach((item) => { |
| | | transportsMaterials.push({ |
| | | id: item.id, |
| | |
| | | flagMsg = |
| | | flagMsg + '第' + (i + 1) + '行,计划移库数量最多六位小数;' |
| | | } else { |
| | | // console.log( |
| | | // 'this.ifsStockData[i].planMoveQuality', |
| | | // this.ifsStockData[i].planMoveQuality |
| | | // ) |
| | | // console.log( |
| | | // 'this.ifsStockData[i].available', |
| | | // this.ifsStockData[i].available |
| | | // ) |
| | | // console.log( |
| | | // this.ifsStockData[i].planMoveQuality > |
| | | // this.ifsStockData[i].available |
| | | // ) |
| | | if ( |
| | | this.ifsStockData[i].planMoveQuality > |
| | | this.ifsStockData[i].available |
| | |
| | | } |
| | | } |
| | | }) |
| | | console.log(`output->this.ifsStockData`,this.ifsStockData) |
| | | }) |
| | | } |
| | | } |
| | |
| | | } |
| | | }) |
| | | this.palletTransportsMaterialSelectionChange([row]) |
| | | console.log(row); |
| | | }, |
| | | // 工艺类型中文格式化 |
| | | formatStateType(row, column, cellValue) { |
| | |
| | | openLocationDialog() { |
| | | if (this.palletTransportsMaterialMultipleSelection.length > 0) { |
| | | let flag = true |
| | | console.log(this.palletTransportsMaterialMultipleSelection) |
| | | this.palletTransportsMaterialMultipleSelection.forEach((item) => { |
| | | if (item.detailExistState) { |
| | | flag = false |
| | | } |
| | | console.log(item.detailExistState) |
| | | }) |
| | | if (flag) { |
| | | this.showLocation = true |
| | |
| | | }, |
| | | // 获取移库明细数据列表 |
| | | getPalletTransportsDetailData() { |
| | | // console.log("对应工单",this.WorkOrder); |
| | | // console.log("选中物料需求",this.palletTransportsMaterialMultipleSelection); |
| | | let transportsDetails =[] |
| | | transportsDetails = this.palletTransportsMaterialMultipleSelection.map(el =>{ |
| | | return{ |
| | |
| | | this.innerVisible = false |
| | | this.$message.success('添加移库明细成功') |
| | | let materialRow = selectionList[selectionList.length - 1] |
| | | console.log("materialRow-----",materialRow); |
| | | this.palletTransportsMaterialData.forEach(ele=>{ |
| | | if(ele.id==materialRow.id){ |
| | | console.log("ele-------",ele); |
| | | ele.transferQuantity = materialRow.surplusQuantity |
| | | ele.surplusQuantity = 0 |
| | | } |
| | |
| | | }, |
| | | // 打开单个明细批量更新库位弹框 |
| | | openSingleLocationDialog(row) { |
| | | console.log(row); |
| | | if (row.state === '01initial') { |
| | | this.detailList = [] |
| | | this.detailList.push(row) |
| | |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | | const findRowIndex = this.palletTransportsDetailData.indexOf(delRow) |
| | | // console.log("ttttt",findRowIndex); |
| | | this.palletTransportsDetailData.splice(findRowIndex, 1) |
| | | this.$message.success('移库明细删除成功') |
| | | // this.getPalletTransportsMaterialData() |
| | | const currRow = this.currPalletTransportsRow |
| | | this.getPallettransportsData().then(() => { |
| | | if (currRow) { |
| | |
| | | }, |
| | | palletTransportsMaterialSelectionChange(val) { |
| | | this.palletTransportsMaterialMultipleSelection = val |
| | | console.log(this.palletTransportsMaterialMultipleSelection); |
| | | if(val && val.length>0){ |
| | | let ids =[] |
| | | this.palletTransportsMaterialMultipleSelection.forEach(el =>{ids.push(el.id)}) |
| | | let pId = ids[ids.length - 1]; |
| | | console.log(pId); |
| | | if(pId!=null){ |
| | | selectAll({ |
| | | transportsId:this.currPalletTransportsRow.id, |
| | |
| | | ifsToLocationNo: this.currLocationRow.locationNo |
| | | }) |
| | | }) |
| | | console.log(transportsMaterials) |
| | | IFSUpdate(transportsMaterials) |
| | | .then((response) => { |
| | | const resData = response.data |
| | |
| | | idList: ids |
| | | } |
| | | delObj(ids).then((response) => { |
| | | console.log(response) |
| | | this.getData() |
| | | }) |
| | | } |
| | |
| | | ) |
| | | this.dataList = [] |
| | | detailPage(queryParam, this.returnStockId).then((response) => { |
| | | console.log(response) |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | | this.dataList = resData.data.records |
| | |
| | | }, |
| | | // 库存物料选中后的回调 |
| | | selectPartCallback(rows) { |
| | | console.log(rows) |
| | | if (rows && rows.length > 0) { |
| | | const detailList = [] |
| | | for (let i = 0; i < rows.length; i++) { |
| | |
| | | }) |
| | | ) |
| | | } |
| | | // console.log(detailList) |
| | | addDetail(detailList).then((response) => { |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | |
| | | // 获取不可选中的数据 |
| | | queryUsingApplyDetail().then((response) => { |
| | | const resData = response.data |
| | | console.log(resData) |
| | | this.paramTemplateSelArr = resData.data |
| | | if (this.$refs.commonPartTable !== undefined) { |
| | | // 默认的过滤条件 |
| | |
| | | startMeterMark: this.printLabelInfo.startMeterMark, |
| | | endMeterMark: this.printLabelInfo.endMeterMark |
| | | } |
| | | console.log('this.dataForm', this.dataForm) |
| | | }) |
| | | } |
| | | } |
| | |
| | | beginPrint(isCheck) { |
| | | this.LODOP = getLodop() |
| | | this.dataForm.lotTrackingIfs = this.partInfo.lotTrackingIfs |
| | | console.log(this.dataForm) |
| | | const qr = { |
| | | part_no: this.dataForm.partNo, |
| | | lot_batch_no: this.dataForm.ifsBatchNo, |
| | |
| | | productionPerson: this.printLabelInfo.productionPerson, |
| | | remark: this.printLabelInfo.remark |
| | | } |
| | | console.log('this.dataForm', this.dataForm) |
| | | }) |
| | | } |
| | | } |
| | |
| | | lotTrackingIfs: this.printLabelInfo.lotTrackingIfs, |
| | | unit: this.printLabelInfo.unit |
| | | } |
| | | console.log('this.dataForm', this.dataForm) |
| | | }) |
| | | } |
| | | } |
| | |
| | | beginPrint(isCheck) { |
| | | this.LODOP = getLodop() |
| | | this.dataForm.lotTrackingIfs = this.partInfo.lotTrackingIfs |
| | | console.log(this.dataForm) |
| | | const qr = { |
| | | part_no: this.dataForm.partNo, |
| | | lot_batch_no: this.dataForm.ifsBatchNo, |
| | |
| | | for (let i = 0; i < this.dataForm.stock.length; i++) { |
| | | this.dataForm.stock[i].manualInput = true |
| | | } |
| | | // console.log(this.dataForm.stock) |
| | | moveStockNumber(this.dataForm.stock) |
| | | .then((res) => { |
| | | this.$message.success('移库成功') |
| | |
| | | cusMaterialCode: this.printLabelInfo.cusMaterialCode, |
| | | productionTime: this.printLabelInfo.productionTime |
| | | } |
| | | console.log('this.dataForm', this.dataForm) |
| | | }) |
| | | } |
| | | } |
| | |
| | | beginPrint(isCheck) { |
| | | this.LODOP = getLodop() |
| | | this.dataForm.lotTrackingIfs = this.partInfo.lotTrackingIfs |
| | | console.log(this.dataForm) |
| | | const qr = { |
| | | part_no: this.dataForm.partNo, |
| | | lot_batch_no: this.dataForm.ifsBatchNo, |
| | |
| | | this.mesNo = null |
| | | this.ceNo = null |
| | | this.pkgNo = null |
| | | console.log('2') |
| | | this.clearFocus = false |
| | | this.bindFocus = false |
| | | this.$refs.mes_no_input.focus() |