|
|
@@ -449,7 +449,7 @@
|
|
|
import routing from './components/routing.vue';
|
|
|
import workmanship from './components/workmanship.vue';
|
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
-import { mapGetters } from 'vuex';
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
|
|
|
export default {
|
|
|
name: 'bomDetailsPop',
|
|
|
@@ -461,7 +461,8 @@ import { mapGetters } from 'vuex';
|
|
|
importDialog,
|
|
|
LCdetail,
|
|
|
routing,
|
|
|
- workmanship,processSubmitDialog
|
|
|
+ workmanship,
|
|
|
+ processSubmitDialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -828,6 +829,8 @@ import { mapGetters } from 'vuex';
|
|
|
},
|
|
|
|
|
|
handSubmit() {
|
|
|
+ console.log(this.currentNodeData, 'this.currentNodeData');
|
|
|
+
|
|
|
if (Number(this.currentNodeData.baseCount) <= 0) {
|
|
|
this.$message.warning('基本用量需要大于0');
|
|
|
return;
|
|
|
@@ -858,12 +861,19 @@ import { mapGetters } from 'vuex';
|
|
|
this.$nextTick(() => {
|
|
|
let params = {
|
|
|
businessId: this.currentNodeData.id,
|
|
|
- businessKey: businessKey||'bom_approver',
|
|
|
+ businessKey: businessKey || 'bom_approver',
|
|
|
formCreateUserId: this.user.info.userId,
|
|
|
variables: {
|
|
|
businessCode: this.currentNodeData.code,
|
|
|
businessName: this.currentNodeData.name,
|
|
|
- businessType:this.currentNodeData.bomType==1?'PBOM':this.currentNodeData.bomType==2?'MBOM':this.currentNodeData.bomType==3?'ABOM':'EBOM'
|
|
|
+ businessType:
|
|
|
+ this.currentNodeData.bomType == 1
|
|
|
+ ? 'PBOM'
|
|
|
+ : this.currentNodeData.bomType == 2
|
|
|
+ ? 'MBOM'
|
|
|
+ : this.currentNodeData.bomType == 3
|
|
|
+ ? 'ABOM'
|
|
|
+ : 'EBOM'
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -871,7 +881,9 @@ import { mapGetters } from 'vuex';
|
|
|
});
|
|
|
},
|
|
|
handJsSubmit() {
|
|
|
- this.submit(this.radioSubmit == 1 ? 'bom_release' : 'bom_release_device')
|
|
|
+ this.submit(
|
|
|
+ this.radioSubmit == 1 ? 'bom_release' : 'bom_release_device'
|
|
|
+ );
|
|
|
this.isSubmit = false;
|
|
|
// let URL = this.radioSubmit == 1 ? jsBomSubmit : deviceBomSubmit;
|
|
|
// this.$alert('确定要发布吗?', '提示', {
|