| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="å·¥èºæä»¶" prop="technologyDocumentName"> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.technologyDocumentName"> |
| | | <el-input v-model="dataForm.technologyDocumentName" placeholder=""> |
| | | </el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-col |
| | | :span="2" |
| | |
| | | endDate: null, |
| | | manufactureAttr: 'N', |
| | | isReportOperation: false, |
| | | outPutBatchList: [] |
| | | outPutBatchList: [], |
| | | technologyDocumentId: null, |
| | | technologyDocumentName: null, |
| | | }, |
| | | currentRow: [], |
| | | currentRouting: {}, // å½åéæ©çå·¥èº |
| | |
| | | operationTemplateList: [], // åæ°é |
| | | templateParamList: [], // åæ° |
| | | dataRule: { |
| | | technologyDocumentName:[ |
| | | { required: true, message: 'å·¥èºæä»¶ä¸è½ä¸ºç©º', trigger: 'blur' } |
| | | ], |
| | | workshopTypeCode: [ |
| | | { required: true, message: '车é´è®¢åç±»åä¸è½ä¸ºç©º', trigger: 'blur' } |
| | | ], |
| | |
| | | checkPart(value, this.dataForm.workshopTypeCode) |
| | | .then((response) => { |
| | | const manufacturingOrderDTO = response.data.data |
| | | /* this.dataForm.routingList = manufacturingOrderDTO.routingList.filter( |
| | | (e) => e.bomTypeDb === this.dataForm.workshopTypeCode |
| | | ) */ |
| | | this.dataForm.routingList = manufacturingOrderDTO.routingList |
| | | /* this.dataForm.bomList = manufacturingOrderDTO.bomList.filter( |
| | | (e) => e.bomTypeDb === this.dataForm.workshopTypeCode |
| | | ) */ |
| | | this.dataForm.bomList = manufacturingOrderDTO.bomList |
| | | this.dataForm.technologyRoutingId = |
| | | manufacturingOrderDTO.technologyRoutingId |
| | |
| | | this.showRouting = true |
| | | }, |
| | | selectRouting(param) { |
| | | console.log(param); |
| | | if (param) { |
| | | this.dataForm.partNo = param.partNo |
| | | this.dataForm.partName = param.partName |
| | | this.dataForm.partId = param.partId |
| | | this.dataForm.technologyDocumentId = param.id |
| | | this.dataForm.technologyDocumentName = param.name |
| | | this.$refs.dataForm.validateField('partId', (valid) => {}) |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | // 2.tabs-å·¥èºè·¯çº¿ |
| | | //å·¥èºæä»¶éæ© |
| | | |
| | | // å·¥èºè·¯çº¿éæ© |
| | | routingSelectChanged(routingId) { |
| | | this.currentRouting = this.dataForm.routingList.find( |
| | |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import { fetchList } from '@/api/technology/routing' |
| | | import { fetchList } from '@/api/technology/document' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { remote } from '@/api/admin/dict' |
| | | export default { |
| | |
| | | border: true, // æ¯å¦æçºµåè¾¹æ¡ |
| | | lazy: false, // æ¯å¦éè¦æå è½½ |
| | | fit: true, // åç宽度æ¯å¦èªæå¼ |
| | | multiSelect: false, // |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isRefresh: true, // æ¯å¦æ¾ç¤ºå·æ°æé® |
| | | isShowHide: true, // æ¯å¦æ¾ç¤ºæ¾å½±æé® |
| | | isSearch: false, // é«çº§æ¥è¯¢æé® |
| | | defaultOrderBy: { column: 'updateTime', direction: 'desc' } |
| | | isShowHide: true, // æ¯å¦æ¾ç¤ºæ¾å½±æé®H |
| | | isSearch: true, // é«çº§æ¥è¯¢æé® |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | | total: 0, |
| | |
| | | column: [ |
| | | { |
| | | minWidth: '100', |
| | | prop: 'routingNo', |
| | | label: 'å·¥èºç¼å·', |
| | | prop: 'number', |
| | | label: 'æä»¶ç¼å·', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'name', |
| | | label: 'æä»¶åç§°', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // å·¥èºç±»å |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'bomTypeDb', |
| | | // label: 'å·¥èºç±»å', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: false, |
| | | // searchInfoType: 'select', |
| | | // formatter: this.formatBomTypeDbType, |
| | | // optList: () => { |
| | | // return this.bomTypeDbOptions |
| | | // } |
| | | // }, |
| | | // { |
| | | // minWidth: '100', |
| | | // prop: 'name', |
| | | // label: 'å·¥èºåç§°', |
| | | // prop: 'master', |
| | | // label: '主工èº', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // searchInfoType: 'select', |
| | | // formatter: this.getMaster, |
| | | // optList: () => { |
| | | // return this.getMasterList() |
| | | // } |
| | | // }, |
| | | // å·¥èºç±»å |
| | | { |
| | | minWidth: '120', |
| | | prop: 'bomTypeDb', |
| | | label: 'å·¥èºç±»å', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: false, |
| | | searchInfoType: 'select', |
| | | formatter: this.formatBomTypeDbType, |
| | | optList: () => { |
| | | return this.bomTypeDbOptions |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'master', |
| | | label: '主工èº', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | formatter: this.getMaster, |
| | | optList: () => { |
| | | return this.getMasterList() |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'state', |
| | | label: 'ç¶æ', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | formatter: this.getMasterState, |
| | | optList: () => { |
| | | return this.getMasterStateList() |
| | | } |
| | | }, |
| | | // { |
| | | // minWidth: '100', |
| | | // prop: 'state', |
| | | // label: 'ç¶æ', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'select', |
| | | // formatter: this.getMasterState, |
| | | // optList: () => { |
| | | // return this.getMasterStateList() |
| | | // } |
| | | // }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'description', |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'partName', |
| | | label: 'é¶ä»¶å', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | noShowTip: false |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'partName', |
| | | // label: 'é¶ä»¶å', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text', |
| | | // noShowTip: false |
| | | // }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'partNo', |
| | |
| | | label: 'è稿' |
| | | }, |
| | | { |
| | | value: '02accepted', |
| | | value: '02pending', |
| | | label: 'å·²æ¥å' |
| | | }, |
| | | { |
| | |
| | | currshowlist() { |
| | | this.innerVisible = this.currshowlist |
| | | if (this.currshowlist) { |
| | | this.queryParam.state = '02accepted' |
| | | this.queryParam.state = '03accepted' |
| | | this.$nextTick(() => { |
| | | this.getData() |
| | | }) |
| | |
| | | } |
| | | }, |
| | | codeDevice(row,index){ |
| | | this.row=row |
| | | this.row=row |
| | | console.log("row",row); |
| | | this.deviceCode =true |
| | | this.$refs.codeDeviceCompont.openCamera() |
| | |
| | | this.processInspectVo.documentId = result.documentId |
| | | this.processInspectVo.outBatchNo = result.outBatchNo |
| | | this.processInspectVo.locName = result.locName |
| | | this.processInspectVo.productNo = result.productNo |
| | | let userList = [] |
| | | result.children.forEach(item=>{ |
| | | item.iid = Math.random() |
| | |
| | | updateFinishedInsProduct(obj).then(res => { |
| | | if (res.data.code == 0) { |
| | | this.init() |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | |
| | | }, |
| | | { |
| | | minWidth: '130', |
| | | width: '150', |
| | | prop: 'projectName', |
| | | label: 'å·¥ç¨åç§°', |
| | | sort: true, |
| | |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | width: '150', |
| | | prop: 'material', |
| | | label: '产å大类', |
| | | label: '产ååç§°', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | |
| | | @row-save="addInspectHandler" |
| | | @row-del="delInspectHandler" |
| | | :page="page"> |
| | | <template slot="inspectNameForm" slot-scope="scope"> |
| | | <el-input |
| | | placeholder="请è¾å
¥æ£éªé¡¹ç®åç§°" |
| | | type="textarea" |
| | | v-model="scope.row.inspectName" |
| | | :rows="2" /> |
| | | </template> |
| | | <template slot="inspectRequiredForm" slot-scope="scope"> |
| | | <el-input |
| | | placeholder="请è¾å
¥æ£éªæ å" |
| | | type="textarea" |
| | | v-model="scope.row.inspectRequired" |
| | | :rows="2" /> |
| | | </template> |
| | | <template #menu="{size,row,index}"> |
| | | <el-button v-if="row.children!=null" class="menu-button" :size="size" @click="addChildren(size,row,index)" type="text" icon="el-icon-circle-plus-outline">æ·»å å项ç®</el-button> |
| | | <el-button v-if="row.children==null" class="menu-button" :size="size" @click="showUpdateDialog(size,row,index)" type="text" icon="el-icon-edit">ç¼è¾</el-button> |
| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="addChildrenVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="addInspectHandler">ç¡® å®</el-button> |
| | | <el-button type="primary" @click="addChildrenHandler">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | methods:{ |
| | | addChildren(size,row,index){ |
| | | console.log(row); |
| | | this.addChildrenForm.inspectName = row.inspectName |
| | | this.addChildrenVisible = true |
| | | }, |
| | | addInspectHandler(row,done,loading){ |
| | | const _than = this |
| | | let obj = { |
| | | parentId: this.paramObj.id, |
| | | ...row |
| | | } |
| | | addInspect(obj).then(res=>{ |
| | | if(res.status===200){ |
| | | _than.getData() |
| | | _than.$message.success("æ·»å æå") |
| | | } |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | }) |
| | | done() |
| | | }, |
| | | delInspectHandler(size,row,index){ |
| | | const _than = this |
| | |
| | | } |
| | | }) |
| | | }, |
| | | addInspectHandler(){ |
| | | addChildrenHandler(){ |
| | | const _than = this |
| | | this.$refs.addChildrenForm.validate(valid=>{ |
| | | if(valid){ |
| | |
| | | <el-row :gutter="10" style="width:100%;z-index: 10;height:30px;"> |
| | | <el-col :span="12">æ£éªé¡¹ç®</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-dropdown @command="handleCommand" v-if="!isShow && resultVal==null"> |
| | | <el-dropdown @command="handleCommand" v-if="isShow"> |
| | | <el-button size="mini" style="margin-right: 10px;" type="primary" > |
| | | 忢æ£éªé¡¹æ¨¡æ¿<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | |
| | | getCustomer, |
| | | } from '@/api/quality/packageInspect' |
| | | import {getAllTemplateByEnable} from '@/api/quality/packageInspectTemp' |
| | | import {inspect1,inspect2} from '@/const/defaultPackageInspect' |
| | | export default { |
| | | computed:{ |
| | | }, |
| | |
| | | data(){ |
| | | return{ |
| | | inspectMoulds: [], |
| | | isShow: false, |
| | | isShow: true, |
| | | submitData: { |
| | | id:null, |
| | | result: null, |
| | |
| | | }, |
| | | { |
| | | minWidth: '130', |
| | | width: '150', |
| | | prop: 'specs', |
| | | label: 'è§æ ¼åå·', |
| | | sort: true, |