8 changed files with 392 additions and 138 deletions
-
2src/api/sampleManagement/technicalSpecificationList.js
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
-
8src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
-
12src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue
-
133src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
-
279src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
-
5src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue
-
89src/views/modules/sampleManagement/technicalSpecificationDetail/tsdzujian.vue
@ -0,0 +1,133 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo==='Flexo'||searchData.buNo==='DBE'"> |
||||
|
<el-form-item > |
||||
|
<el-button type="primary" @click="searchTable()" >刷新</el-button> |
||||
|
<el-button type="primary" @click="newData()" v-if="!ifDisableFlag">新增</el-button> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="tableData" |
||||
|
border |
||||
|
style="width: 100%"> |
||||
|
<el-table-column |
||||
|
prop="" |
||||
|
header-align="center" |
||||
|
align="center" |
||||
|
min-width="30" |
||||
|
v-if="!ifDisableFlag" |
||||
|
label="操作"> |
||||
|
<template slot-scope="scope"> |
||||
|
<a type="text" size="small" @click="updateData(scope.row)">编辑</a> |
||||
|
<a type="text" size="small" @click="deleteData(scope.row)">删除</a> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="familyName" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="60" |
||||
|
label="材料分类"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="erpPartNo" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="60" |
||||
|
label="IFS料号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partDesc" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="120" |
||||
|
label="材料名称"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="quantity" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="60" |
||||
|
label="数量"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="spec" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="120" |
||||
|
label="UL产品型号"> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="remark" |
||||
|
header-align="center" |
||||
|
align="left" |
||||
|
min-width="180" |
||||
|
label="Remark"> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</el-form> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
searchBMBom, |
||||
|
saveBMBom, |
||||
|
searchPartDataForSelect, |
||||
|
deleteBMBom, |
||||
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
height:200, |
||||
|
searchData: { |
||||
|
site: '', |
||||
|
username: this.$store.state.user.name, |
||||
|
codeNo: '', |
||||
|
buNo:'', |
||||
|
type:'', |
||||
|
}, |
||||
|
type:'prepress', |
||||
|
ifDisableFlag:false, |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
this.$nextTick(() => { |
||||
|
this.height = window.innerHeight - 100 |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
//初始化组件的参数 |
||||
|
init(inData) { |
||||
|
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
||||
|
return false; |
||||
|
} |
||||
|
//初始化参数 |
||||
|
this.searchData = JSON.parse(JSON.stringify(inData)); |
||||
|
this.searchData.type= JSON.parse(JSON.stringify(this.type)); |
||||
|
//刷新表格 |
||||
|
this.searchTable(); |
||||
|
|
||||
|
}, |
||||
|
searchTable(){ |
||||
|
searchBMBom(this.searchData).then(({data}) => { |
||||
|
this.tableData = data.rows; |
||||
|
|
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
|
||||
|
</style> |
||||
@ -1,89 +0,0 @@ |
|||||
<template> |
|
||||
<div class="mod-config"> |
|
||||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
||||
<el-form :inline="true" label-position="top" style="margin-top: 0px"> |
|
||||
<el-button type="primary" @click="addModal()">新增</el-button> |
|
||||
</el-form> |
|
||||
</el-form> |
|
||||
|
|
||||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import { |
|
||||
getProjectInfoPartList, |
|
||||
saveProjectPart, |
|
||||
deleteProjectPartWithId, |
|
||||
} from "@/api/project/project.js" |
|
||||
import Chooselist from '@/views/modules/common/Chooselist' |
|
||||
export default { |
|
||||
components: { |
|
||||
Chooselist |
|
||||
}, |
|
||||
data() { |
|
||||
return { |
|
||||
searchData: { |
|
||||
site: '', |
|
||||
username: this.$store.state.user.name, |
|
||||
projectId: '', |
|
||||
}, |
|
||||
dataRole: { |
|
||||
partTypeDesc: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: ' ', |
|
||||
trigger: 'change' |
|
||||
} |
|
||||
], |
|
||||
partName: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: ' ', |
|
||||
trigger: 'change' |
|
||||
} |
|
||||
], |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
methods: { |
|
||||
// 获取基础数据列表S |
|
||||
getBaseList (val, type) { |
|
||||
this.tagNo = val |
|
||||
this.tagNo1 = type |
|
||||
this.$nextTick(() => { |
|
||||
let strVal = '' |
|
||||
if (val === 1013) { |
|
||||
if(type==1) { |
|
||||
strVal = this.dataForm.partType |
|
||||
} |
|
||||
} |
|
||||
this.$refs.baseList.init(val, strVal) |
|
||||
}) |
|
||||
}, |
|
||||
/* 列表方法的回调 */ |
|
||||
getBaseData (val) { |
|
||||
if (this.tagNo === 1013) { |
|
||||
if(this.tagNo1==1) { |
|
||||
this.dataForm.partType = val.Base_id |
|
||||
this.dataForm.partTypeDesc = val.Base_desc |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
//初始化组件的参数 |
|
||||
init(inData) { |
|
||||
//初始化参数 |
|
||||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|
||||
//刷新表格 |
|
||||
this.searchTable(); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
|
|
||||
}, |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style scoped> |
|
||||
|
|
||||
</style> |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue