| | |
| | | }, |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | console.log(this.multipleSelection); |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | |
| | | // 创建主生产计划 |
| | | masterPlanHandle() { |
| | | console.log(this.multipleSelection); |
| | | |
| | | if (this.multipleSelection && this.multipleSelection.length > 0) { |
| | | if (this.judgeCoState(this.multipleSelection)) { |
| | | // 判断一下剩余数量是否大于0 |
| | |
| | | this.dataForm.customer = [] |
| | | const _that = this |
| | | customer.forEach((item) => { |
| | | console.log(item); |
| | | const outPutBatchList = [] |
| | | _that.$set(item, 'outPutBatchList', outPutBatchList) |
| | | customerList.push(item) |
| | | }) |
| | | this.dataForm.customer = JSON.parse(JSON.stringify(customerList)) |
| | | console.log(this.dataForm.customer); |
| | | }) |
| | | }, |
| | | dataFormSubmit() { |
| | |
| | | <h2 v-else>编辑-产品检验单</h2> |
| | | </div> |
| | | <div class="btn-group header-right"> |
| | | <el-button @click="addTestProject" type="primary" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | <el-button @click="addTestProject" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="page-main"> |
| | |
| | | }) |
| | | }, |
| | | updateDevice(row,index){ |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iId}).then(res=>{ |
| | | let rowId=JSON.stringify(row.iid) |
| | | console.log(row); |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iid}).then(res=>{ |
| | | this.inspectionItems.forEach(obj=>{ |
| | | if(obj.children){ |
| | | obj.children[index-1].inspectionValue = '' |
| | | obj.children[index-1].iresult = null |
| | | obj.children[index-1].empiricalValueAddss = [] |
| | | obj.children[index-1].inote='' |
| | | |
| | | obj.children.forEach(c=>{ |
| | | if(c.iid==rowId){ |
| | | c.inspectionValue = null |
| | | c.iresult = null |
| | | c.empiricalValueAddss = [] |
| | | c.inote='' |
| | | } |
| | | }) |
| | | |
| | | // if(obj.children){ |
| | | // obj.children[index-1].inspectionValue = '' |
| | | // obj.children[index-1].iresult = null |
| | | // obj.children[index-1].empiricalValueAddss = [] |
| | | // obj.children[index-1].inote='' |
| | | |
| | | // } |
| | | }) |
| | | }).catch(error=>{ |
| | | console.log(error) |
| | | }) |
| | |
| | | top="10vh" |
| | | title="打印预览" |
| | | :visible.sync="printDialogVisible" |
| | | width="65%"> |
| | | width="70%"> |
| | | <div style="width:100%;height: 60vh;overflow-y: scroll;"> |
| | | <printTemplate id="printRaw" :formData="printFormData"></printTemplate> |
| | | </div> |
| | |
| | | import finishedProductInspectionAdd from './finishedProduct-form' |
| | | import { page,deletePro,exportExaminationProducts,queryById } from '@/api/quality/finishedProduct' |
| | | import { transform } from '@/util/fileTransform' |
| | | import printTemplate from './finishedProduct-print.vue' |
| | | import printTemplate from './finishedProducter-print.vue' |
| | | import PrintJS from 'print-js' |
| | | export default { |
| | | components: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //查看报告按钮 |
| | | // showPrint(row){ |
| | | // queryById(row.id).then(res=>{ |
| | | // console.log(res); |
| | | // this.printFormData = res.data.data |
| | | // this.printDialogVisible = true |
| | | // }) |
| | | // .catch(error=>{ |
| | | // console.log(error); |
| | | // }) |
| | | // }, |
| | | |
| | | //打印按钮 |
| | | printFun() { |
| | | this.printDialogVisible = false; |
| | |
| | | orientation: 'portrait' |
| | | }); |
| | | }, |
| | | //查看报告按钮 |
| | | showPrint(row){ |
| | | console.log('----------'); |
| | | queryById(row.id).then(res=>{ |
| | | this.printFormData = res.data.data |
| | | this.printDialogVisible = true |
| | |
| | | } |
| | | ele.children.push(o) |
| | | }) |
| | | console.log("----------",ele); |
| | | this.list.push(ele) |
| | | } |
| | | }) |
| | |
| | | let val='' |
| | | arr.forEach(a=>{ |
| | | val+=a+"," |
| | | // val += '"' + a + "," |
| | | }) |
| | | let end=val.substring(0,val.length-1) |
| | | c.testValue=end |