Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before into master
| | |
| | | import qs from 'qs' |
| | | import store from '@/store' // progress bar style |
| | | import { webVersion } from '@/config/sysParam' |
| | | axios.defaults.timeout = 60000 |
| | | axios.defaults.timeout = 20*60*1000 |
| | | // 返回其他状态吗 |
| | | axios.defaults.validateStatus = function(status) { |
| | | return status >= 200 && status <= 500 // 默认的 |
| | |
| | | created() { |
| | | // this.getManufactureAttrs() |
| | | this.getTitles() |
| | | if (this.permissions.plan_customerorder_add) { |
| | | this.table.toolbar.push({ |
| | | text: '新增销售订单', |
| | | type: 'primary', |
| | |
| | | disabled: false, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_from_otc) { |
| | | this.table.toolbar.push({ |
| | | text: '获取销售订单', |
| | |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | } |
| | | if(this.permissions.plan_relevance_order){ |
| | | this.table.toolbar.push({ |
| | | text: '关联订单', |
| | | disabled: false, |
| | |
| | | fun: this.interrelatedOrderFun, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_create_masterplan) { |
| | | this.table.toolbar.push({ |
| | | text: '主生产计划', |
| | |
| | | |
| | | }) |
| | | } |
| | | this.table.operator = [{ |
| | | text: '审核', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.examineHandle, |
| | | showFun: (row)=>{return row.type==='首检'}, |
| | | show: { |
| | | key: 'checkState', |
| | | val: ['0'] |
| | | } |
| | | }] |
| | | if(this.permissions.quality_rawMaterial_check){ |
| | | this.table.operator = [{ |
| | | text: '审核', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.examineHandle, |
| | | showFun: (row)=>{return row.type==='首检'&& row.insState==='1'}, |
| | | show: { |
| | | key: 'checkState', |
| | | val: ['0','2'] |
| | | } |
| | | }] |
| | | } |
| | | if(this.permissions.quality_rawMaterial_del){ |
| | | this.table.operator.push({ |
| | | text: '作废', |
| | |
| | | if(res.data.code == 0 && (res.data.data=='1'|| res.data.data=='0')){ |
| | | sessionStorage.setItem("raw-resultVal-"+this.dataForm.id,res.data.data) |
| | | this.$message.success("上报成功"); |
| | | this.$router.go(-1) |
| | | }else{ |
| | | this.$message.error("上报失败,",res.data.data); |
| | | } |
| | |
| | | data.rawInsProducts = this.list |
| | | addRawInspects(data).then(res=>{ |
| | | this.$message.success("保存成功") |
| | | // this.$router.go(-1) |
| | | this.$router.go(-1) |
| | | }).catch(error=>{ |
| | | this.$message.error(error) |
| | | }) |
| | |
| | | this.isSubmit = true |
| | | if (this.testStandardParams.length > 0) { |
| | | this.testStandardParams.map(m=>{ |
| | | m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')') |
| | | if(m.referenceValue !== undefined) { |
| | | m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')') |
| | | return m |
| | | } |
| | | }) |
| | | addTestStandardParam(this.testStandardParams) |
| | | .then((response) => { |
| | |
| | | fun: ()=>{this.deleteAll()}, |
| | | }) |
| | | } |
| | | if(this.permissions.technology_completeproductstructure_bom_export){ |
| | | this.table.toolbar.push({ |
| | | text: 'BOM导出', |
| | | type:'primary', |
| | |
| | | permitArr: [], |
| | | fun: ()=>{this.exportBomFun()}, |
| | | }) |
| | | } |
| | | if(this.permissions.technology_completeproductstructure_del){ |
| | | this.table.operator = [ |
| | | { |
| | |
| | | style="width:100%" |
| | | v-model="dataForm.operationNo" |
| | | placeholder="工序编号" |
| | | :disabled="isUpdate" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | workCenterOptions: [], |
| | | runTimeCodeDbOptions: [], |
| | | laborClassNoOptions: [], |
| | | outsideOpItemOptions: [] |
| | | outsideOpItemOptions: [], |
| | | isUpdate:false |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | init() { |
| | | // this.operationId = this.dataForm.id |
| | | // this.fetchCapabilityForOperation() |
| | | |
| | | if (this.dataForm.id) { |
| | | getObj(this.dataForm.id).then((response) => { |
| | | this.dataForm = response.data.data |
| | |
| | | |
| | | created() { |
| | | this.dataForm.id = this.$route.params.id |
| | | if(this.dataForm.id){ |
| | | this.isUpdate=true |
| | | } |
| | | this.init() |
| | | this.initPartFamilySelect() |
| | | this.getParamType() |