Browse Source

switch调整

langfang-develop
liwei 3 years ago
parent
commit
2ac563a354
3 changed files with 14 additions and 10 deletions
  1. +4
    -5
      src/views/plant/material/maintainbom.vue
  2. +4
    -2
      src/views/plant/processData/technology/addOrEdit.vue
  3. +6
    -3
      src/views/plant/resource/operationDefinition/addOrEdit.vue

+ 4
- 5
src/views/plant/material/maintainbom.vue View File

@ -453,7 +453,7 @@ export default {
if (this.formBom['ME_BomLst-LossRate']) {
this.formBom['ME_BomLst-LossRate'] = parseFloat(this.formBom['ME_BomLst-LossRate'])
}
if (this.editType === '编辑模式') {
if (this.editType == '编辑模式') {
updateBomlst(this.formBom).then(res => {
if (res.code === 200) {
this.msgSuccess('修改成功')
@ -464,8 +464,7 @@ export default {
this.msgError(res.msg)
}
})
}
if (this.editType === '新增模式') {
} else if (this.editType == '新增模式') {
addBomlst(this.formBom).then(res => {
if (res.code === 200) {
this.msgSuccess('新增成功')
@ -481,8 +480,8 @@ export default {
}
})
}
this.formBom1 = {}
this.editType = ''
// this.formBom1 = {}
// this.editType = ''
}
},
//


+ 4
- 2
src/views/plant/processData/technology/addOrEdit.vue View File

@ -312,8 +312,10 @@ export default {
},
},
created(){
this.item['Operation-ActivateInStation']=this.item['Operation-ActivateInStation']?this.item['Operation-ActivateInStation']:false;
this.item['Operation-ActivateWhenRepair']=this.item['Operation-ActivateWhenRepair']?this.item['Operation-ActivateWhenRepair']:false;
let item = JSON.parse(JSON.stringify(this.item));
item['Operation-ActivateInStation']=item['Operation-ActivateInStation']?true:false;
item['Operation-ActivateWhenRepair']=item['Operation-ActivateWhenRepair']?true:false;
this.item=item;
this.getProcessList();
this.getAttribute();
this.getSteptype();


+ 6
- 3
src/views/plant/resource/operationDefinition/addOrEdit.vue View File

@ -153,6 +153,7 @@
</template>
<script>
import {add, edit, getProductionLine} from '@/api/plant/operationDefinition'
import ItemVue from '@/layout/components/Sidebar/Item.vue'
export default {
props:{
item:{
@ -275,9 +276,11 @@ export default {
})
}
}
this.item['Process-HasDependOn']=this.item['Process-HasDependOn']?this.item['Process-HasDependOn']:false;
this.item['Process-IsLastPO']=this.item['Process-IsLastPO']?this.item['Process-IsLastPO']:false;
this.item['Process-IsFirstPO']=this.item['Process-IsFirstPO']?this.item['Process-IsFirstPO']:false;
let item = JSON.parse(JSON.stringify(this.item));
item['Process-HasDependOn']=item['Process-HasDependOn']?true:false;
item['Process-IsLastPO']=item['Process-IsLastPO']?true:false;
item['Process-IsFirstPO']=item['Process-IsFirstPO']?true:false;
this.item=item;
this.getWorkLineList();
}
}

Loading…
Cancel
Save