@@ -165,16 +169,20 @@
searchBMBom,
searchBMBomDetail,
updateBMBomRev,
- tsdBasicInformationSearch,getBMStatusDesc,
+ tsdBasicInformationSearch,
+ getBMStatusDesc,
submitChange, // 提交
getOADetailForBM,
+ updateBMProcessBom, // 保存数据
} from "@/api/sampleManagement/technicalSpecificationList.js"
import {
getNodeAuthority, // 获取节点权限
} from '@/api/changeManagement/changeManagement.js'
import Chooselist from '@/views/modules/common/Chooselist'
+ import DictDataSelect from "../../sys/dict-data-select-highlight";
export default {
components: {
+ DictDataSelect,
Chooselist
},
@@ -197,6 +205,7 @@
alternativeNo:'',
bomType:'',
engChgLevel:'',
+ urlFile: ''
},
currentRow:"",
bomList:[],
@@ -515,18 +524,18 @@
})
return false;
}
- if (this.currentRow.status!=='Buildable') {
+ if (this.currentRow.status !== 'Buildable') {
this.$alert('只有Buildable状态的可以保存!', '错误', {
confirmButtonText: '确定'
})
return false;
}
let inData = {
- site:this.bomData.site,
- codeNo:this.searchData.codeNo,
- bomType:this.currentRow.bomType,
- engChgLevel:this.currentRow.engChgLevel,
- bomAlternativeNo:this.currentRow.alternativeNo
+ site: this.bomData.site,
+ codeNo: this.searchData.codeNo,
+ bomType: this.currentRow.bomType,
+ engChgLevel: this.currentRow.engChgLevel,
+ bomAlternativeNo: this.currentRow.alternativeNo
}
updateBMBomRev(inData).then(({data})=>{
if(data&& data.code===0){
@@ -602,6 +611,23 @@
})
},
+ // 修改表单数据
+ updateBMProcess () {
+ let inData = {
+ site: this.bomData.site,
+ codeNo: this.searchData.codeNo,
+ urlFile: this.bomData.urlFile
+ }
+ updateBMProcessBom(inData).then(({data})=>{
+ if (data&& data.code === 0) {
+ this.searchTable()
+ this.$message.success( '操作成功')
+ } else {
+ this.$message.error(data.msg)
+ }
+ })
+ },
+
// 同意提交
agreeSubmit () {
this.$confirm(`是否确认提交?`, '提示', {
diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
index 7a728d4..35a1fa1 100644
--- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
+++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
@@ -481,8 +481,8 @@
documentSource: '',
copyFlag: '',
shopOrder: '',
- planOperator:'',
- planOperatorName:'',
+ planOperator: '',
+ planOperatorName: '',
},
dataRole: {
partTypeDesc: [