12 changed files with 23 additions and 2579 deletions
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
-
393src/views/modules/sampleManagement/technicalSpecificationDetail/old_com_bm_bom.vue
-
420src/views/modules/sampleManagement/technicalSpecificationDetail/old_com_bm_packageInfo.vue
-
490src/views/modules/sampleManagement/technicalSpecificationDetail/old_com_bm_printing.vue
-
594src/views/modules/sampleManagement/technicalSpecificationDetail/old_com_bm_routing.vue
-
251src/views/modules/sampleManagement/technicalSpecificationDetail/old_com_tsd_basicInformation.vue
-
426src/views/modules/sampleManagement/technicalSpecificationDetail/old_technicalSpecificationDetail.vue
-
18src/views/modules/tooling/searchToolApply.vue
@ -1,393 +0,0 @@ |
|||
<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(true)" >刷新</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> |
|||
|
|||
<el-dialog append-to-body title="BOM" :close-on-click-modal="false" v-drag :visible.sync="bomFlag" width="500px"> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item > |
|||
<span slot="label" style="" @click="erpPartModel()"><a herf="#">800料号</a></span> |
|||
<el-input v-model="dataForm.erpPartNo" :disabled="dataForm.addId==1" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'物料分类'"> |
|||
<el-input v-model="dataForm.familyName" disabled ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'物料名称'" > |
|||
<el-input v-model="dataForm.partDesc" disabled ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'数量'"> |
|||
<el-input v-model="dataForm.quantity" type="number" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'产品规格'"> |
|||
<el-input v-model="dataForm.spec" disabled style="width:294px"></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'Remark'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.remark " |
|||
:rows="3" |
|||
resize='none' |
|||
show-word-limit |
|||
:disabled="ifDisableFlag" |
|||
style="width:448px;height: 60px" > |
|||
</el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-footer style="height:40px;margin-top: 60px;text-align:center"> |
|||
<el-button type="primary" @click="bomSave()">保存</el-button> |
|||
<el-button type="primary" @click="bomFlag = false">取消</el-button> |
|||
</el-footer> |
|||
</el-dialog> |
|||
|
|||
<el-dialog append-to-body title="800物料清单" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="500px"> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'800料号'"> |
|||
<el-input v-model="partSearchData.erpPartNo" style="width:100px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'物料分类'"> |
|||
<el-input v-model="partSearchData.familyId" style="width:100px" ></el-input> |
|||
</el-form-item> |
|||
|
|||
<el-form-item :label="'物料名称'" > |
|||
<el-input v-model="partSearchData.partDesc" style="width:150px" ></el-input> |
|||
<el-button type="primary" @click="searchPartData()">查询</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-table |
|||
:data="partList" |
|||
border |
|||
:height="300" |
|||
@row-dblclick="choosePart" |
|||
v-loading="false" |
|||
style="width: 100%;"> |
|||
<el-table-column |
|||
prop="erpPartNo" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="IFS料号"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="familyName" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="材料分类"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="partDesc" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="120" |
|||
label="材料名称"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="spec" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="120" |
|||
label="规格型号"> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<span slot="footer" class="dialog-footer"> |
|||
<div style="margin-top: 5px"> |
|||
<el-button @click="partModelFlag = false" type="primary">取消</el-button> |
|||
</div> |
|||
</span> |
|||
</el-dialog> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
searchBMBom, |
|||
saveBMBom, |
|||
searchPartDataForSelect, |
|||
deleteBMBom, |
|||
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|||
import Chooselist from '@/views/modules/common/Chooselist' |
|||
export default { |
|||
components: { |
|||
Chooselist |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
partModelFlag:false, |
|||
bomFlag:false, |
|||
height:200, |
|||
searchData: { |
|||
site: '', |
|||
username: this.$store.state.user.name, |
|||
codeNo: '', |
|||
buNo:'', |
|||
}, |
|||
tableData:'', |
|||
partSearchData:{ |
|||
site:'', |
|||
erpPartNo:'', |
|||
familyId:'', |
|||
partDesc:'', |
|||
}, |
|||
partList:[], |
|||
ifDisableFlag:false, |
|||
dataForm:{ |
|||
addId:'', |
|||
site: '', |
|||
codeNo:'', |
|||
erpPartNo:'', |
|||
familyId: '', |
|||
familyName:'', |
|||
partDesc:'', |
|||
quantity:'', |
|||
spec:'', |
|||
remark:'', |
|||
username:this.$store.state.user.name, |
|||
}, |
|||
dataRole: { |
|||
partTypeDesc: [ |
|||
{ |
|||
required: true, |
|||
message: ' ', |
|||
trigger: 'change' |
|||
} |
|||
], |
|||
partName: [ |
|||
{ |
|||
required: true, |
|||
message: ' ', |
|||
trigger: 'change' |
|||
} |
|||
], |
|||
} |
|||
} |
|||
}, |
|||
mounted () { |
|||
this.$nextTick(() => { |
|||
this.height = window.innerHeight - 100 |
|||
}) |
|||
}, |
|||
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 |
|||
} |
|||
} |
|||
}, |
|||
searchPartData(){ |
|||
searchPartDataForSelect(this.partSearchData).then(({data}) => { |
|||
this.partList = data.rows; |
|||
|
|||
}); |
|||
}, |
|||
newData(){ |
|||
this.dataForm={ |
|||
addId:0, |
|||
site: this.searchData.site, |
|||
codeNo:this.searchData.codeNo, |
|||
erpPartNo:'', |
|||
familyId: '', |
|||
familyName:'', |
|||
partDesc:'', |
|||
quantity:'', |
|||
spec:'', |
|||
remark:'', |
|||
username:this.$store.state.user.name, |
|||
} |
|||
this.bomFlag=true; |
|||
}, |
|||
updateData(row){ |
|||
this.dataForm={ |
|||
addId:1, |
|||
site: row.site, |
|||
codeNo:row.codeNo, |
|||
erpPartNo:row.erpPartNo, |
|||
familyId: row.familyId, |
|||
familyName:row.familyName, |
|||
partDesc:row.partDesc, |
|||
quantity:row.quantity, |
|||
spec:row.spec, |
|||
remark:row.remark, |
|||
username:this.$store.state.user.name, |
|||
} |
|||
this.bomFlag=true; |
|||
}, |
|||
bomSave(){ |
|||
this.$confirm("是否保存信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
saveBMBom(this.dataForm).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.searchTable(); |
|||
this.bomFlag=false |
|||
this.$message.success( '操作成功') |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
return |
|||
}) |
|||
}, |
|||
erpPartModel(){ |
|||
if(this.dataForm.addId==1){ |
|||
return false |
|||
} |
|||
this.partSearchData={ |
|||
site:this.searchData.site, |
|||
erpPartNo:'', |
|||
familyId:'', |
|||
partDesc:'', |
|||
} |
|||
this.searchPartData(); |
|||
this.partModelFlag=true; |
|||
}, |
|||
choosePart(row){ |
|||
this.dataForm.erpPartNo=row.erpPartNo |
|||
this.dataForm.familyId=row.familyId |
|||
this.dataForm.familyName=row.familyName |
|||
this.dataForm.partDesc=row.partDesc |
|||
this.dataForm.spec=row.spec |
|||
this.partModelFlag=false; |
|||
}, |
|||
//初始化组件的参数 |
|||
init(inData) { |
|||
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){ |
|||
return false; |
|||
} |
|||
//初始化参数 |
|||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|||
//刷新表格 |
|||
this.searchTable(); |
|||
|
|||
}, |
|||
searchTable(type){ |
|||
searchBMBom(this.searchData).then(({data}) => { |
|||
this.tableData = data.rows; |
|||
if(type){ |
|||
this.$message.success( '操作成功') |
|||
} |
|||
}); |
|||
}, |
|||
deleteData(row){ |
|||
this.$confirm(`是否删除这条信息?`, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
deleteBMBom(row).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.searchTable(); |
|||
this.bomFlag=false |
|||
this.$message({ |
|||
message: '操作成功', |
|||
type: 'success', |
|||
duration: 1500, |
|||
onClose: () => {} |
|||
}) |
|||
} else { |
|||
this.$alert(data.msg, '错误', { |
|||
confirmButtonText: '确定' |
|||
}) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,420 +0,0 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo==='Flexo'"> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'排废/Matrix Stripped'"> |
|||
<el-select clearable v-model="dataForm.matrixStripped" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'使用方式/AppliedType'"> |
|||
<el-input v-model="dataForm.appliedType" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'包装方式/Final Format'" > |
|||
<el-input v-model="dataForm.finalFormat" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'横排数/if Rolls, No. Cross'"> |
|||
<el-input v-model="dataForm.rowCount" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯类型/CoreType'"> |
|||
<el-input v-model="dataForm.coreType" :disabled="ifDisableFlag"></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯直径/Core Diameter'"> |
|||
<el-input v-model="dataForm.coreDiameter" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯宽度/CoreWidth'"> |
|||
<el-input v-model="dataForm.coreWidth" :disabled="ifDisableFlag"></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'每卷/包数量/Qty Per Roll/Pack'"> |
|||
<el-input v-model="dataForm.rollPerQty" type="number" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否允许接头/Join Allowed'"> |
|||
<el-select clearable v-model="dataForm.joinAllowedFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否允许空缺/MissingAllowed'"> |
|||
<el-select clearable v-model="dataForm.missingAllowedFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'特殊出纸方向要求/Special Copy Positior'"> |
|||
<el-select clearable v-model="dataForm.specialPositiorFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'出纸方式/Copy Position'"> |
|||
<el-input v-model="dataForm.copyPosition" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'执转移打印/Overprinting'"> |
|||
<el-select clearable v-model="dataForm.overprintingFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 0px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'其他特殊要求/Other Requirement'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.otherRequirement" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
style="height: 60px" :disabled="ifDisableFlag"> |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
</el-form> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo==='SS'"> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'包装方式/Final Format'" > |
|||
<el-input v-model="dataForm.finalFormat" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'使用方式/AppliedType'"> |
|||
<el-input v-model="dataForm.appliedType" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
|
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'横排数/if Rolls, No. Cross'"> |
|||
<el-input v-model="dataForm.rowCount" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否允许空缺/MissingAllowed'"> |
|||
<el-select clearable v-model="dataForm.missingAllowedFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'每卷/包数量/Qty Per Roll/Pack'"> |
|||
<el-input v-model="dataForm.rollPerQty" type="number" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否隔离/底纸/AddingFilm/Linner'"> |
|||
<el-select clearable v-model="dataForm.addingFilmFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯类型/CoreType'"> |
|||
<el-input v-model="dataForm.coreType" :disabled="ifDisableFlag"></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯直径/Core Diameter'"> |
|||
<el-input v-model="dataForm.coreDiameter" type="number" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否允许接头/Join Allowed'"> |
|||
<el-select clearable v-model="dataForm.joinAllowedFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'卷芯宽度/CoreWidth'"> |
|||
<el-input v-model="dataForm.coreWidth" :disabled="ifDisableFlag"></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'特殊出纸方向要求/Special Copy Positior'"> |
|||
<el-select clearable v-model="dataForm.specialPositiorFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 0px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'其他特殊要求/Other Requirement'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.otherRequirement" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
style="height: 60px" :disabled="ifDisableFlag"> |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
</el-form> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo==='DBE'"> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'包装方式/Final Format'" > |
|||
<el-input v-model="dataForm.finalFormat" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'使用方式/AppliedType'"> |
|||
<el-input v-model="dataForm.appliedType" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
|
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'横排数/No. of Cross'"> |
|||
<el-input v-model="dataForm.rowCount" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
|
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'纵排数/No. of Column'"> |
|||
<el-input v-model="dataForm.columnCount" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否允许空缺/MissingAllowed'"> |
|||
<el-select clearable v-model="dataForm.missingAllowedFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'每卷/包数量/Qty Per Roll/Pack'"> |
|||
<el-input v-model="dataForm.rollPerQty" type="number" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否隔离/底纸/AddingFilm/Linner'"> |
|||
<el-select clearable v-model="dataForm.addingFilmFlag" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'包装要求'"> |
|||
<el-input v-model="dataForm.packageRequest" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 0px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'其他特殊要求/Other Requirement'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.otherRequirement" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
style="height: 60px" :disabled="ifDisableFlag"> |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
</el-form> |
|||
|
|||
<el-form label-position="top" style="margin-top: 60px; margin-left: 0px;text-align:center"> |
|||
<div class="rq-bmPic" v-if="searchData.buNo==='Flexo'||searchData.buNo==='SS'"> |
|||
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="picUrl"> |
|||
</div> |
|||
<el-button type="primary" style="margin-top: 5px;" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|||
</el-form> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
searchBMPackageInfo, |
|||
updateBMPackageInfo, |
|||
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|||
import Chooselist from '@/views/modules/common/Chooselist' |
|||
export default { |
|||
components: { |
|||
Chooselist |
|||
}, |
|||
data() { |
|||
return { |
|||
searchData: { |
|||
site: '', |
|||
username: this.$store.state.user.name, |
|||
codeNo: '', |
|||
buNo:'', |
|||
}, |
|||
ifDisableFlag:false, |
|||
picUrl:this.$store.state.user.bmPicUrl+'defaultPaperOrientation.png', |
|||
dataForm:{ |
|||
site: '', |
|||
codeNo:'', |
|||
matrixStripped:'', |
|||
appliedType:'', |
|||
finalFormat:'', |
|||
rowCount:'', |
|||
coreType:'', |
|||
coreDiameter:'', |
|||
coreWidth:'', |
|||
rollPerQty:'', |
|||
joinAllowedFlag:'', |
|||
missingAllowedFlag:'', |
|||
specialPositiorFlag:'', |
|||
copyPosition:'', |
|||
overprintingFlag:'', |
|||
otherRequirement:'', |
|||
addingFilmFlag:'', |
|||
packageRequest:'', |
|||
columnCount:'', |
|||
}, |
|||
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) { |
|||
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|||
return false; |
|||
} |
|||
//初始化参数 |
|||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|||
if(this.searchData.ifDisableFlag){ |
|||
this.ifDisableFlag=true |
|||
} |
|||
//刷新表格 |
|||
this.searchTable(); |
|||
|
|||
}, |
|||
searchTable(){ |
|||
searchBMPackageInfo(this.searchData).then(({data}) => { |
|||
if(data.rows.length>0){ |
|||
this.dataForm = data.rows[0]; |
|||
}else { |
|||
this.dataForm.site=this.searchData.site; |
|||
this.dataForm.codeNo=this.searchData.codeNo; |
|||
} |
|||
|
|||
|
|||
}); |
|||
}, |
|||
saveData(){ |
|||
this.$confirm("是否保存信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
updateBMPackageInfo(this.dataForm).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.$message.success( '操作成功') |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
return |
|||
}) |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,490 +0,0 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" > |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'颜色匹配'"> |
|||
<el-input v-model="dataForm.colourMatch" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'如目测,所需环境条件'"> |
|||
<el-input v-model="dataForm.conditions" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'如需要标准色差则△E公差'" > |
|||
<el-input v-model="dataForm.colourIndicat" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'文档名称'" > |
|||
<el-input v-model="dataForm.customerFile" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否光泽度要求'"> |
|||
<el-input v-model="dataForm.glossinessRequirement" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'光泽度要求备注'"> |
|||
<el-input v-model="dataForm.comments" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
</el-form> |
|||
|
|||
<el-form label-position="top" style="margin-top: 5px; margin-left: 0px;" > |
|||
<el-form-item > |
|||
<el-button type="primary" @click="colorSearch(true)" >刷新</el-button> |
|||
<el-button type="primary" @click="newColor()" v-if="!ifDisableFlag">新增</el-button> |
|||
</el-form-item> |
|||
<el-table |
|||
height="400" |
|||
:data="colorTable" |
|||
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="updateColor(scope.row)">编辑</a> |
|||
<a type="text" size="small" @click="deleteColor(scope.row)">删除</a> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="order" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="40" |
|||
label="色序"> |
|||
</el-table-column> |
|||
<el-table-column label="油墨类型" header-align="center"> |
|||
<el-table-column |
|||
prop="inkType" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Ink Type"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="颜色参考" header-align="center"> |
|||
<el-table-column |
|||
prop="colorReference" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Color Reference"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="颜色匹配" header-align="center"> |
|||
<el-table-column |
|||
prop="colorMatch" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Color Match"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="容积" header-align="center"> |
|||
<el-table-column |
|||
prop="bcm" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="BCM"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="印刷速度" header-align="center"> |
|||
<el-table-column |
|||
prop="speed" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Speed"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="外干燥" header-align="center"> |
|||
<el-table-column |
|||
prop="dry" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Dry"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
<el-table-column label="UV固化/UV Curing" header-align="center"> |
|||
<el-table-column |
|||
prop="gallus" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Gallus(level%)"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="markAndy" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="MarkAndy(level%)"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="lp" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="LP(L/M/H)"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="hexiang" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="Hexiang(L/H)"> |
|||
</el-table-column> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'印刷排位 Print Layout'"> |
|||
<el-input v-model="dataForm.printLayout" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Repeat/周长'"> |
|||
<el-input v-model="dataForm.repeat" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'vp/竖向跳距'"> |
|||
<el-input v-model="dataForm.vp" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'LabelSize/尺寸标签'" > |
|||
<el-input v-model="dataForm.labelSize" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Down/竖排数'" > |
|||
<el-input v-model="dataForm.down" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Plate Distortion Rate/柔板压缩'"> |
|||
<el-input v-model="dataForm.plateDistortionRate" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Actual Number/实际数目'"> |
|||
<el-input v-model="dataForm.actualNumber" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Print Copy Position/印刷出纸方向'" > |
|||
<el-input v-model="dataForm.printPosition" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Goods Roll Width/成品卷边宽度'" > |
|||
<el-input v-model="dataForm.goodsRollWidth" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<div class="rq-bmPic" > |
|||
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="picUrl"> |
|||
</div> |
|||
</el-form> |
|||
|
|||
<el-form label-position="top" style="margin-top:10px; margin-left: 0px;text-align:center" v-if="!ifDisableFlag"> |
|||
<el-button type="primary" @click="saveData()" >保存</el-button> |
|||
</el-form> |
|||
|
|||
|
|||
<el-dialog append-to-body title="颜色信息" :close-on-click-modal="false" v-drag :visible.sync="colorFlag" width="600px"> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'色序'"> |
|||
<el-input v-model="colorData.order" type="number" style="width: 130px" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'油墨类型'"> |
|||
<el-input v-model="colorData.inkType" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'颜色参考'"> |
|||
<el-input v-model="colorData.colorReference" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'颜色匹配'"> |
|||
<el-input v-model="colorData.colorMatch" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'容积'"> |
|||
<el-input v-model="colorData.bcm" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'印刷速度'"> |
|||
<el-input v-model="colorData.speed" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'外干燥'"> |
|||
<el-input v-model="colorData.dry" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'Gallus(level%)'"> |
|||
<el-input v-model="colorData.gallus" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'MarkAndy(level%)'"> |
|||
<el-input v-model="colorData.markAndy" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'LP(L/M/H)'"> |
|||
<el-input v-model="colorData.lp" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'Hexiang(L/H)'"> |
|||
<el-input v-model="colorData.hexiang" style="width: 130px" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|||
<el-button type="primary" @click="colorSave()">保存</el-button> |
|||
<el-button type="primary" @click="colorFlag = false">取消</el-button> |
|||
</el-footer> |
|||
</el-dialog> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
searchBMPrintingDetail, |
|||
updateBMPrintingDetail, |
|||
searchBMPrintingColor, |
|||
saveBMPrintingColor, |
|||
deleteBMPrintingColor, |
|||
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|||
import Chooselist from '@/views/modules/common/Chooselist' |
|||
export default { |
|||
components: { |
|||
Chooselist |
|||
}, |
|||
data() { |
|||
return { |
|||
searchData: { |
|||
site: '', |
|||
username: this.$store.state.user.name, |
|||
codeNo: '', |
|||
buNo:'', |
|||
}, |
|||
picUrl:this.$store.state.user.bmPicUrl+'defaultPaperOrientation.png', |
|||
ifDisableFlag:false, |
|||
dataForm:{ |
|||
site: '', |
|||
codeNo:'', |
|||
colourMatch:'', |
|||
conditions:'', |
|||
colourIndicat:'', |
|||
customerFile:'', |
|||
glossinessRequirement:'', |
|||
comments:'', |
|||
printLayout:'', |
|||
repeat:'', |
|||
vp:'', |
|||
labelSize:'', |
|||
down:'', |
|||
plateDistortionRate:'', |
|||
actualNumber:'', |
|||
printPosition:'', |
|||
goodsRollWidth:'', |
|||
}, |
|||
colorTable:[], |
|||
colorData:{ |
|||
id:'', |
|||
site: '', |
|||
codeNo:'', |
|||
order:'', |
|||
inkType:'', |
|||
colorReference:'', |
|||
colorMatch:'', |
|||
bcm:'', |
|||
speed:'', |
|||
dry:'', |
|||
gallus:'', |
|||
markAndy:'', |
|||
lp:'', |
|||
hexiang:'', |
|||
updateBy:'', |
|||
updateDate:'', |
|||
}, |
|||
colorFlag:false, |
|||
} |
|||
}, |
|||
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) { |
|||
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|||
return false; |
|||
} |
|||
//初始化参数 |
|||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|||
if(this.searchData.ifDisableFlag){ |
|||
this.ifDisableFlag=true |
|||
} |
|||
//刷新表格 |
|||
this.searchTable(); |
|||
this.colorSearch(); |
|||
|
|||
}, |
|||
searchTable(){ |
|||
searchBMPrintingDetail(this.searchData).then(({data}) => { |
|||
if(data.rows.length>0){ |
|||
this.dataForm = data.rows[0]; |
|||
}else { |
|||
this.dataForm.site=this.searchData.site |
|||
this.dataForm.codeNo=this.searchData.codeNo |
|||
} |
|||
}); |
|||
}, |
|||
saveData(){ |
|||
this.$confirm("是否保存信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
updateBMPrintingDetail(this.dataForm).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.$message.success( '操作成功') |
|||
this.$emit("closeModel") |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
return |
|||
}) |
|||
}, |
|||
|
|||
newColor(){ |
|||
if(this.searchData.codeNo==''){ |
|||
this.$message.success('数据错误,请关闭页面重试!') |
|||
return false; |
|||
} |
|||
let number=1; |
|||
for (let i = 0; i <this.colorTable.length ; i++) { |
|||
if(number<=this.colorTable[i].order){ |
|||
number=Number(this.colorTable[i].order)+1 |
|||
} |
|||
} |
|||
this.colorData={ |
|||
id:0, |
|||
site: this.searchData.site, |
|||
codeNo:this.searchData.codeNo, |
|||
order:number, |
|||
inkType:'', |
|||
colorReference:'', |
|||
colorMatch:'', |
|||
bcm:'', |
|||
speed:'', |
|||
dry:'', |
|||
gallus:'', |
|||
markAndy:'', |
|||
lp:'', |
|||
hexiang:'', |
|||
updateBy:'', |
|||
updateDate:'', |
|||
} |
|||
this.colorFlag=true; |
|||
}, |
|||
updateColor(row){ |
|||
this.colorData=JSON.parse(JSON.stringify(row)) |
|||
this.colorFlag=true; |
|||
}, |
|||
|
|||
colorSearch(type){ |
|||
searchBMPrintingColor(this.searchData).then(({data}) => { |
|||
this.colorTable = data.rows |
|||
if(type){ |
|||
this.$message.success( '操作成功') |
|||
} |
|||
}); |
|||
}, |
|||
colorSave(){ |
|||
this.$confirm("是否保存信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
saveBMPrintingColor(this.colorData).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.colorSearch(); |
|||
this.colorFlag=false |
|||
this.$message.success( '操作成功') |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
|
|||
}) |
|||
}, |
|||
deleteColor(row){ |
|||
this.$confirm(`是否删除这条信息?`, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
deleteBMPrintingColor(row).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.colorSearch(); |
|||
this.$message({ |
|||
message: '操作成功', |
|||
type: 'success', |
|||
duration: 1500, |
|||
onClose: () => {} |
|||
}) |
|||
} else { |
|||
this.$alert(data.msg, '错误', { |
|||
confirmButtonText: '确定' |
|||
}) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
|
|||
|
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,594 +0,0 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo=='RDC'"> |
|||
<el-row :gutter="20" > |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'过程及过程控制/Process and Production Control'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.processDetail " |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="255" |
|||
show-word-limit |
|||
:disabled="ifDisableFlag" |
|||
style="height: 60px" > |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 60px"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'是否提供胶条/Supply Adhesive Tape'"> |
|||
<el-select clearable v-model="dataForm.supplyAdhesiveTape" :disabled="ifDisableFlag"> |
|||
<el-option label="Yes" value="Y"></el-option> |
|||
<el-option label="No" value="N"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="18"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'图稿/Drawing'"> |
|||
<el-input v-model="dataForm.routingDrawing" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" > |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'图稿版本/Drawing Revison'"> |
|||
<el-input v-model="dataForm.drawingRevison" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'图稿日期/Drawing Date'"> |
|||
<el-date-picker |
|||
v-model="searchData.drawingDate" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
:disabled="ifDisableFlag" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" > |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'作业说明/WI'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.workInfo" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="255" |
|||
show-word-limit |
|||
:disabled="ifDisableFlag" |
|||
style="height: 60px" > |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 60px"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'作业说明版本/WI Revison'"> |
|||
<el-input v-model="dataForm.wiRevison" :disabled="ifDisableFlag" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'作业说明日期/WI Date'"> |
|||
<el-date-picker |
|||
v-model="searchData.wiDate" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
:disabled="ifDisableFlag" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" > |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item> |
|||
<span slot="label" style="" @click="reviewEngineerChooseModal()"><a herf="#">选择审查工程师/Select ME Review Engineer</a></span> |
|||
<el-input v-model="dataForm.reviewEngineer" readonly style="" @focus="reviewEngineerChooseModal()" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item > |
|||
<span slot="label" style="" @click="peEngineerChooseModal()"><a herf="#">选择PE工程师/Select PE Engineer</a></span> |
|||
<el-input v-model="dataForm.peEngineer" readonly style="" @focus="peEngineerChooseModal()" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item > |
|||
<span slot="label" style="" @click="cqeModal()"><a herf="#">选择CQE/Select CQE</a></span> |
|||
<el-input v-model="dataForm.cqe" readonly style="" @focus="cqeModal()" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" > |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'备注/Remark'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.routingRemark" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="255" |
|||
show-word-limit |
|||
:disabled="ifDisableFlag" |
|||
style="height: 60px" > |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20" style="margin-top: 60px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'Action'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.routingAction" |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="255" |
|||
show-word-limit |
|||
:disabled="ifDisableFlag" |
|||
style="height: 60px" > |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-form-item style="margin-top: 60px;text-align:center"> |
|||
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
|
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo!='RDC'"> |
|||
<el-form-item > |
|||
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|||
<el-button type="primary" @click="newRoute()" 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="itemNo" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="60" |
|||
label="工序号"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="operationDesc" |
|||
header-align="center" |
|||
align="left" |
|||
min-width="200" |
|||
label="工序名称"> |
|||
</el-table-column> |
|||
<!-- <el-table-column--> |
|||
<!-- prop="remark"--> |
|||
<!-- header-align="center"--> |
|||
<!-- align="left"--> |
|||
<!-- min-width="300"--> |
|||
<!-- label="备注">--> |
|||
<!-- </el-table-column>--> |
|||
</el-table> |
|||
</el-form> |
|||
|
|||
<el-dialog title="工艺路线" :close-on-click-modal="false" v-drag :visible.sync="routeFlag" width="470px"> |
|||
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|||
<el-form-item :label="'工序编码'"> |
|||
<el-input v-model="routingData.itemNo" type="number" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'工序名称'"> |
|||
<el-input v-model="routingData.operationDesc" style="width: 440px" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|||
<el-button type="primary" @click="routeSave()">保存</el-button> |
|||
<el-button type="primary" @click="routeFlag = false">取消</el-button> |
|||
</el-footer> |
|||
</el-dialog> |
|||
|
|||
|
|||
|
|||
<el-dialog |
|||
width="530px" |
|||
title="审查工程师" |
|||
:close-on-click-modal="false" |
|||
:visible.sync="reviewEngineerFlag"> |
|||
<el-transfer v-model="reviewEngineerList" class="rq" filterable :props="{ |
|||
key: 'operatorId', |
|||
label: 'operatorName' |
|||
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|||
<span slot="footer" class="dialog-footer"> |
|||
<div style="margin-top: 5px"> |
|||
<el-button type="primary" @click="savereviewEngineerList()">确定</el-button> |
|||
<el-button @click="reviewEngineerFlag = false" type="primary">取消</el-button> |
|||
</div> |
|||
</span> |
|||
</el-dialog> |
|||
<el-dialog |
|||
width="530px" |
|||
title="PE工程师" |
|||
:close-on-click-modal="false" |
|||
:visible.sync="peEngineerFlag"> |
|||
<el-transfer v-model="peEngineerList" class="rq" filterable :props="{ |
|||
key: 'operatorId', |
|||
label: 'operatorName' |
|||
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|||
<span slot="footer" class="dialog-footer"> |
|||
<div style="margin-top: 5px"> |
|||
<el-button type="primary" @click="savepeEngineerList()">确定</el-button> |
|||
<el-button @click="peEngineerFlag = false" type="primary">取消</el-button> |
|||
</div> |
|||
</span> |
|||
</el-dialog> |
|||
<el-dialog |
|||
width="530px" |
|||
title="选择CQE" |
|||
:close-on-click-modal="false" |
|||
:visible.sync="cqeFlag"> |
|||
<el-transfer v-model="cqeList" class="rq" filterable :props="{ |
|||
key: 'operatorId', |
|||
label: 'operatorName' |
|||
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|||
<span slot="footer" class="dialog-footer"> |
|||
<div style="margin-top: 5px"> |
|||
<el-button type="primary" @click="savecqeList()">确定</el-button> |
|||
<el-button @click="cqeFlag = false" type="primary">取消</el-button> |
|||
</div> |
|||
</span> |
|||
</el-dialog> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
searchBMRoutingDetail, |
|||
deleteBMBom, |
|||
searchTechnicalSpecificationTeamStr, |
|||
updateBMRoutingDetail, |
|||
saveBMRoute, |
|||
searchBMRoute, |
|||
deleteBMRoute |
|||
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|||
import Chooselist from '@/views/modules/common/Chooselist' |
|||
import { |
|||
searchOperatorWithSite, |
|||
} from "@/api/project/project.js" |
|||
export default { |
|||
components: { |
|||
Chooselist |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
routeFlag:false, |
|||
height:200, |
|||
searchData: { |
|||
site: '', |
|||
username: this.$store.state.user.name, |
|||
codeNo: '', |
|||
buNo:'', |
|||
}, |
|||
tableData:'', |
|||
partList:[], |
|||
ifDisableFlag:false, |
|||
dataForm:{ |
|||
site: '', |
|||
codeNo:'', |
|||
processDetail:'', |
|||
supplyAdhesiveTape: '', |
|||
routingDrawing:'', |
|||
drawingRevison:'', |
|||
drawingDate:'', |
|||
workInfo:'', |
|||
wiRevison:'', |
|||
wiDate:'', |
|||
reviewEngineer: '', |
|||
routingRemark:'', |
|||
routingAction:'', |
|||
username:this.$store.state.user.name, |
|||
peEngineer:'', |
|||
cqe:'', |
|||
reviewEngineerList:[], |
|||
peEngineerList:[], |
|||
cqeList:[], |
|||
}, |
|||
reviewEngineerFlag:false, |
|||
peEngineerFlag:false, |
|||
cqeFlag:false, |
|||
operatorList:[], |
|||
reviewEngineerList:[], |
|||
peEngineerList:[], |
|||
cqeList:[], |
|||
//工艺路线部分 |
|||
routingData:{ |
|||
id:0, |
|||
site:'', |
|||
codeNo:'', |
|||
itemNo:'', |
|||
operationDesc:'', |
|||
remark:'', |
|||
username:'', |
|||
} |
|||
} |
|||
}, |
|||
mounted () { |
|||
this.$nextTick(() => { |
|||
this.height = window.innerHeight - 100 |
|||
}) |
|||
}, |
|||
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 |
|||
} |
|||
} |
|||
}, |
|||
newRoute(){ |
|||
let number=10; |
|||
for (let i = 0; i <this.tableData.length ; i++) { |
|||
if(number<=this.tableData[i].itemNo){ |
|||
number=Number(this.tableData[i].itemNo)+10 |
|||
} |
|||
} |
|||
this.routingData={ |
|||
id:0, |
|||
site:this.searchData.site, |
|||
codeNo:this.searchData.codeNo, |
|||
itemNo:number, |
|||
operationDesc:'', |
|||
remark:'', |
|||
username:this.$store.state.user.name |
|||
} |
|||
this.routeFlag=true; |
|||
}, |
|||
updateData(row){ |
|||
this.routingData={ |
|||
id:row.id, |
|||
site:row.site, |
|||
codeNo:row.codeNo, |
|||
itemNo:row.itemNo, |
|||
operationDesc:row.operationDesc, |
|||
remark:row.remark, |
|||
username:this.$store.state.user.name, |
|||
} |
|||
this.routeFlag=true; |
|||
}, |
|||
routeSave(){ |
|||
this.$confirm("是否保存信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
saveBMRoute(this.routingData).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.searchTable(); |
|||
this.routeFlag=false |
|||
this.$message.success( '操作成功') |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
|
|||
}) |
|||
}, |
|||
|
|||
|
|||
//初始化组件的参数 |
|||
init(inData) { |
|||
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|||
return false; |
|||
} |
|||
//初始化参数 |
|||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|||
//刷新表格 |
|||
this.searchTable(); |
|||
|
|||
}, |
|||
searchTable(type){ |
|||
if(this.searchData.buNo==='RDC'){ |
|||
searchBMRoutingDetail(this.searchData).then(({data}) => { |
|||
if(data.rows.length>0){ |
|||
this.dataForm=data.rows[0] |
|||
}else { |
|||
this.dataForm.site=this.searchData.site |
|||
this.dataForm.codeNo=this.searchData.codeNo |
|||
} |
|||
|
|||
}); |
|||
let inData = { |
|||
site: this.searchData.site, |
|||
codeNo: this.searchData.codeNo, |
|||
type: 'reviewEngineer', |
|||
} |
|||
searchTechnicalSpecificationTeamStr(inData).then(({data}) => { |
|||
this.dataForm.reviewEngineerList = data.rows |
|||
}) |
|||
let inData2 = { |
|||
site: this.searchData.site, |
|||
codeNo: this.searchData.codeNo, |
|||
type: 'cqe', |
|||
} |
|||
searchTechnicalSpecificationTeamStr(inData2).then(({data}) => { |
|||
this.dataForm.cqeList = data.rows |
|||
}) |
|||
let inData3 = { |
|||
site: this.searchData.site, |
|||
codeNo: this.searchData.codeNo, |
|||
type: 'peEngineer', |
|||
} |
|||
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => { |
|||
this.dataForm.peEngineerList = data.rows |
|||
}) |
|||
|
|||
}else { |
|||
searchBMRoute(this.searchData).then(({data}) => { |
|||
this.tableData = data.rows; |
|||
|
|||
}); |
|||
} |
|||
if(type){ |
|||
this.$message.success( '操作成功') |
|||
} |
|||
}, |
|||
deleteData(row){ |
|||
this.$confirm(`是否删除这条信息?`, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
deleteBMRoute(row).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.searchTable(); |
|||
this.$message({ |
|||
message: '操作成功', |
|||
type: 'success', |
|||
duration: 1500, |
|||
onClose: () => {} |
|||
}) |
|||
} else { |
|||
this.$alert(data.msg, '错误', { |
|||
confirmButtonText: '确定' |
|||
}) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
reviewEngineerChooseModal(){ |
|||
if(this.ifDisableFlag){ |
|||
return false |
|||
} |
|||
let inData={ |
|||
site:this.searchData.site, |
|||
} |
|||
searchOperatorWithSite(inData).then(({data}) => { |
|||
this.operatorList=data.rows |
|||
}) |
|||
this.reviewEngineerList = JSON.parse(JSON.stringify(this.dataForm.reviewEngineerList)); |
|||
this.reviewEngineerFlag=true |
|||
}, |
|||
|
|||
savereviewEngineerList(){ |
|||
let reviewEngineerName=''; |
|||
for (let i = 0; i < this.reviewEngineerList.length; i++) { |
|||
let select= this.operatorList.filter(item => item.operatorId === this.reviewEngineerList[i]) |
|||
if(select.length>0){ |
|||
reviewEngineerName+=select[0].operatorName+';' |
|||
} |
|||
} |
|||
this.dataForm.reviewEngineer=reviewEngineerName |
|||
this.dataForm.reviewEngineerList=JSON.parse(JSON.stringify(this.reviewEngineerList)); |
|||
this.reviewEngineerFlag=false |
|||
}, |
|||
|
|||
peEngineerChooseModal(){ |
|||
if(this.ifDisableFlag){ |
|||
return false |
|||
} |
|||
let inData={ |
|||
site:this.searchData.site, |
|||
} |
|||
searchOperatorWithSite(inData).then(({data}) => { |
|||
this.operatorList=data.rows |
|||
}) |
|||
this.peEngineerList = JSON.parse(JSON.stringify(this.dataForm.peEngineerList)); |
|||
this.peEngineerFlag=true |
|||
}, |
|||
|
|||
savepeEngineerList(){ |
|||
let peEngineerName=''; |
|||
for (let i = 0; i < this.peEngineerList.length; i++) { |
|||
let select= this.operatorList.filter(item => item.operatorId === this.peEngineerList[i]) |
|||
if(select.length>0){ |
|||
peEngineerName+=select[0].operatorName+';' |
|||
} |
|||
} |
|||
this.dataForm.peEngineer=peEngineerName |
|||
this.dataForm.peEngineerList=JSON.parse(JSON.stringify(this.peEngineerList)); |
|||
this.peEngineerFlag=false |
|||
}, |
|||
|
|||
cqeModal(){ |
|||
if(this.ifDisableFlag){ |
|||
return false |
|||
} |
|||
let inData={ |
|||
site:this.searchData.site, |
|||
} |
|||
searchOperatorWithSite(inData).then(({data}) => { |
|||
this.operatorList=data.rows |
|||
}) |
|||
this.cqeList = JSON.parse(JSON.stringify(this.dataForm.cqeList)); |
|||
this.cqeFlag=true |
|||
}, |
|||
savecqeList(){ |
|||
let cqeName=''; |
|||
for (let i = 0; i < this.cqeList.length; i++) { |
|||
let select= this.operatorList.filter(item => item.operatorId === this.cqeList[i]) |
|||
if(select.length>0){ |
|||
cqeName+=select[0].operatorName+';' |
|||
} |
|||
} |
|||
this.dataForm.cqe=cqeName |
|||
this.dataForm.cqeList=JSON.parse(JSON.stringify(this.cqeList)); |
|||
this.cqeFlag=false |
|||
}, |
|||
saveData(){ |
|||
this.$confirm("是否保存基本信息?", '保存提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
}).then(() => { |
|||
updateBMRoutingDetail(this.dataForm).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.$message.success( '操作成功') |
|||
} else { |
|||
this.$message.error(data.msg) |
|||
} |
|||
}) |
|||
}).catch(() => { |
|||
return |
|||
}) |
|||
}, |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,251 +0,0 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'参数卡编码'"> |
|||
<el-input v-model="dataForm.codeNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'版本号'"> |
|||
<el-input v-model="dataForm.revNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'加工中心编码'"> |
|||
<el-input v-model="dataForm.workCenterNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'加工中心名称'"> |
|||
<el-input v-model="dataForm.workCenterDesc" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'项目号'"> |
|||
<el-input v-model="dataForm.projectId" readonly style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="18"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'项目描述'"> |
|||
<el-input v-model="dataForm.revNo" readonly style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'物料编码'"> |
|||
<el-input v-model="dataForm.finalPartNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'物料编码'"> |
|||
<el-input v-model="dataForm.testPartNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'客户料号'"> |
|||
<el-input v-model="dataForm.customerPartNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'物料描述'"> |
|||
<el-input v-model="dataForm.partDesc" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'规格型号'"> |
|||
<el-input v-model="dataForm.spec" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'物料图号'"> |
|||
<el-input v-model="dataForm.materialNumber" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'物料类别'"> |
|||
<el-input v-model="dataForm.partType" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'类别名称'"> |
|||
<el-input v-model="dataForm.partTypeDesc" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'ECN变更'"> |
|||
<el-input v-model="dataForm.ecnFlag" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'ECN单据号'"> |
|||
<el-input v-model="dataForm.ecnNo" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="12"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'ECN文档路径'"> |
|||
<el-input v-model="dataForm.ecnAddress" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'报价员'"> |
|||
<el-input v-model="dataForm.quotationOfficer" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'工程师'"> |
|||
<el-input v-model="dataForm.engineer" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'技术员'"> |
|||
<el-input v-model="dataForm.technician" readonly ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'备注信息'" style="height: 80px"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.remark " |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
readonly |
|||
style="height: 60px"> |
|||
</el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
</el-row> |
|||
</el-form> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
tsdBasicInformationSearch, |
|||
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|||
import Chooselist from '@/views/modules/common/Chooselist' |
|||
export default { |
|||
components: { |
|||
Chooselist |
|||
}, |
|||
data() { |
|||
return { |
|||
searchData: { |
|||
site: '', |
|||
username: this.$store.state.user.name, |
|||
codeNo: '', |
|||
}, |
|||
dataForm:{ |
|||
site: '', |
|||
codeNo:'', |
|||
revNo:'', |
|||
workCenterNo:'', |
|||
workCenterDesc:'', |
|||
finalPartNo:'', |
|||
testPartNo:'', |
|||
customerPartNo:'', |
|||
partDesc:'', |
|||
ecnFlag:'', |
|||
ecnNo:'', |
|||
ecnAddress:'', |
|||
quotationOfficer:'', |
|||
engineer:'', |
|||
technician:'', |
|||
remark:'', |
|||
|
|||
}, |
|||
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(); |
|||
|
|||
}, |
|||
searchTable(){ |
|||
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|||
//区分请求成功和失败的状况 |
|||
if (data && data.code == 0) { |
|||
this.dataForm = data.row |
|||
} else { |
|||
this.dataList = ''; |
|||
} |
|||
}); |
|||
}, |
|||
|
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,426 +0,0 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
<el-tabs class="tabs" tab-position="left" style="height: 200px;" type="border-card" v-model="activeName" @tab-click="refreshCurrentTabTable"> |
|||
<el-tab-pane label="基本信息" name="baseInfo" > |
|||
<basicInformation ref="basicInformation" ></basicInformation> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="客户信息" name="customerInfo" v-if="getPageIf('customerInfo')"> |
|||
<customerInfo ref="customerInfo" ></customerInfo> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="包装信息" name="packageInfo" v-if="getPageIf('packageInfo')"> |
|||
<packageInfo ref="packageInfo"></packageInfo> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="材料信息" name="bom" v-if="getPageIf('bom')"> |
|||
<bom ref="bom"></bom> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="工艺信息" name="routing" v-if="getPageIf('routing')"> |
|||
<routing ref="routing"></routing> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="TP工程师填写信息" name="tpInfo" v-if="getPageIf('tpInfo')"> |
|||
<tpInfo ref="tpInfo"></tpInfo> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="产品技术要求" name="technicalRequirement" v-if="getPageIf('technicalRequirement')"> |
|||
<technicalRequirement ref="technicalRequirement"></technicalRequirement> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="图稿信息" name="drawing" v-if="getPageIf('drawing')"> |
|||
<drawing ref="drawing"></drawing> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="PE确认信息" name="PEConfirm" v-if="getPageIf('PEConfirm')"> |
|||
<PEConfirm ref="PEConfirm"></PEConfirm> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="印前" name="prepress" v-if="getPageIf('prepress')">--> |
|||
<el-tab-pane label="印前" name="prepress" v-if="false"> |
|||
<prepress ref="prepress"></prepress> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="印刷" name="printing" v-if="getPageIf('printing')">--> |
|||
<el-tab-pane label="印刷" name="printing" v-if="false"> |
|||
<printing ref="printing"></printing> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="印刷:油墨房&&其他" name="printOther" v-if="getPageIf('printOther')">--> |
|||
<el-tab-pane label="印刷:油墨房&&其他" name="printOther" v-if="false"> |
|||
<printOther ref="printOther"></printOther> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="热转移打印" name="overprinting" v-if="getPageIf('overprinting')">--> |
|||
<el-tab-pane label="热转移打印" name="overprinting" v-if="false"> |
|||
<overprinting ref="overprinting"></overprinting> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="分条" name="slitting" v-if="getPageIf('slitting')">--> |
|||
<el-tab-pane label="分条" name="slitting" v-if="false"> |
|||
<slitting ref="slitting"></slitting> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="热覆膜" name="lamTemperature" v-if="getPageIf('lamTemperature')">--> |
|||
<el-tab-pane label="热覆膜" name="lamTemperature" v-if="false"> |
|||
<lamTemperature ref="lamTemperature"></lamTemperature> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="模切" name="cutting" v-if="getPageIf('cutting')">--> |
|||
<el-tab-pane label="模切" name="cutting" v-if="false"> |
|||
<cutting ref="cutting"></cutting> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="油墨房" name="InkMixing" v-if="getPageIf('InkMixing')">--> |
|||
<el-tab-pane label="油墨房" name="InkMixing" v-if="false"> |
|||
<InkMixing ref="InkMixing"></InkMixing> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="油墨配方" name="InkFormulation" v-if="getPageIf('InkFormulation')">--> |
|||
<el-tab-pane label="油墨配方" name="InkFormulation" v-if="false"> |
|||
<InkFormulation ref="InkFormulation"></InkFormulation> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="覆膜" name="lamination" v-if="getPageIf('Lamination')">--> |
|||
<el-tab-pane label="覆膜" name="lamination" v-if="false"> |
|||
<lamination ref="lamination"></lamination> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="CNC" name="CNC" v-if="getPageIf('CNC')">--> |
|||
<el-tab-pane label="CNC" name="CNC" v-if="false"> |
|||
<CNC ref="CNC"></CNC> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="切割" name="Cut" v-if="getPageIf('Cut')">--> |
|||
<el-tab-pane label="切割" name="Cut" v-if="false"> |
|||
<Cut ref="Cut"></Cut> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="包装" name="packagePage" v-if="getPageIf('packagePage')">--> |
|||
<el-tab-pane label="包装" name="packagePage" v-if="false"> |
|||
<packagePage ref="packagePage"></packagePage> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="FQC" name="fqc" v-if="getPageIf('fqc')">--> |
|||
<el-tab-pane label="FQC" name="fqc" v-if="false"> |
|||
<fqc ref="fqc"></fqc> |
|||
</el-tab-pane> |
|||
<!-- <el-tab-pane label="CQC" name="cqc" v-if="getPageIf('cqc')">--> |
|||
<el-tab-pane label="CQC" name="cqc" v-if="false"> |
|||
<cqc ref="cqc"></cqc> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="品质文件" name="qualityDocument" v-if="getPageIf('qualityDocument')"> |
|||
<qualityDocument ref="qualityDocument"></qualityDocument> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="文档控制" name="documentControl" v-if="getPageIf('documentControl')"> |
|||
<documentControl ref="documentControl"></documentControl> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="产品工程师审核/确认" name="peReviewed" v-if="getPageIf('peReviewed')"> |
|||
<peReviewed ref="peReviewed"></peReviewed> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="报价专员确认信息" name="queteConfirm" v-if="getPageIf('queteConfirm')"> |
|||
<queteConfirm ref="queteConfirm"></queteConfirm> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="FAI" name="fai" v-if="getPageIf('fai')"> |
|||
<fai ref="fai"></fai> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="CQE确认" name="cqeComfirm" v-if="getPageIf('cqeComfirm')"> |
|||
<cqeComfirm ref="cqeComfirm"></cqeComfirm> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
getBMPageBase |
|||
} from '@/api/sampleManagement/technicalSpecificationList.js' |
|||
import basicInformation from "./com_tsd_basicInformation";/*組件*/ |
|||
import customerInfo from "./com_bm_customerInformation";/*客户信息*/ |
|||
import packageInfo from "./com_bm_packageInfo";/*包装信息*/ |
|||
import bom from "./com_bm_bom";/*BOM*/ |
|||
import routing from "./com_bm_routing";/*工艺*/ |
|||
import prepress from "./com_bm_prepress";/*组件*/ |
|||
import technicalRequirement from "./com_bm_demoSlot";/*组件*/ |
|||
import drawing from "./com_bm_demoSlot";/*组件*/ |
|||
import PEConfirm from "./com_bm_demoSlot";/*组件*/ |
|||
import overprinting from "./com_bm_demoSlot";/*组件*/ |
|||
import slitting from "./com_bm_demoSlot";/*组件*/ |
|||
import lamTemperature from "./com_bm_demoSlot";/*组件*/ |
|||
import cutting from "./com_bm_demoSlot";/*组件*/ |
|||
import packagePage from "./com_bm_demoSlot";/*组件*/ |
|||
import fqc from "./com_bm_demoSlot";/*组件*/ |
|||
import cqc from "./com_bm_demoSlot";/*组件*/ |
|||
import qualityDocument from "./com_bm_demoSlot";/*组件*/ |
|||
import documentControl from "./com_bm_demoSlot";/*组件*/ |
|||
import peReviewed from "./com_bm_demoSlot";/*组件*/ |
|||
import queteConfirm from "./com_bm_demoSlot";/*组件*/ |
|||
import fai from "./com_bm_demoSlot";/*组件*/ |
|||
import cqeComfirm from "./com_bm_demoSlot";/*组件*/ |
|||
import tpInfo from "./com_bm_tpInfo";/*组件*/ |
|||
import printOther from "./com_bm_printOther";/*组件*/ |
|||
import InkMixing from "./com_bm_inkMixing";/*组件*/ |
|||
import InkFormulation from "./com_bm_inkFormulation";/*组件*/ |
|||
import lamination from "./com_bm_lamination";/*组件*/ |
|||
import printing from "./com_bm_printing";/*组件*/ |
|||
|
|||
import CNC from "./com_bm_cnc"; |
|||
import Cut from "./com_bm_cut"; |
|||
export default { |
|||
name: "technicalSpecificationDetail", |
|||
components: { |
|||
basicInformation, |
|||
customerInfo, |
|||
packageInfo, |
|||
bom, |
|||
routing, |
|||
prepress, |
|||
technicalRequirement, |
|||
drawing, |
|||
PEConfirm, |
|||
overprinting, |
|||
slitting, |
|||
lamTemperature, |
|||
cutting, |
|||
packagePage, |
|||
fqc, |
|||
cqc, |
|||
qualityDocument, |
|||
documentControl, |
|||
peReviewed, |
|||
queteConfirm, |
|||
fai, |
|||
cqeComfirm, |
|||
tpInfo, |
|||
printOther, |
|||
InkMixing, |
|||
InkFormulation, |
|||
lamination, |
|||
CNC, |
|||
Cut, |
|||
printing, |
|||
}, |
|||
data() { |
|||
return { |
|||
dataForm:{ |
|||
site:'', |
|||
codeNo:'', |
|||
buNo:'', |
|||
username:this.$store.state.user.name, |
|||
type:'', |
|||
}, |
|||
pageRole:'', |
|||
activeName:'baseInfo', |
|||
|
|||
} |
|||
}, |
|||
mounted() { |
|||
if(localStorage.getItem('tsfData')!=undefined){ |
|||
let data=JSON.parse(localStorage.getItem('tsfData')) |
|||
this.dataForm.site=data.site |
|||
this.dataForm.codeNo=data.codeNo |
|||
this.dataForm.buNo=data.buNo |
|||
localStorage.removeItem('tsfData'); |
|||
this.getPageRole() |
|||
} |
|||
this.$nextTick(() => { |
|||
this.changeHeightAuto(); |
|||
this.getBaseInfoData(); |
|||
}) |
|||
}, |
|||
methods: { |
|||
refreshCurrentTabTable(){ |
|||
//先调整页面的高度 |
|||
this.changeHeightAuto() |
|||
if (this.activeName == 'baseInfo') { |
|||
this.getBaseInfoData(); |
|||
}else if(this.activeName == 'customerInfo'){ |
|||
//有的页面要高一点 |
|||
this.getCustomerInfo(); |
|||
}else if(this.activeName == 'packageInfo'){ |
|||
this.getPackageInfo(); |
|||
}else if(this.activeName == 'bom'){ |
|||
this.getBom(); |
|||
}else if(this.activeName == 'routing'){ |
|||
this.changeHeight(800); |
|||
this.getRouting(); |
|||
}else if(this.activeName == 'prepress'){ |
|||
this.changeHeight(800); |
|||
this.getPrepress(); |
|||
}else if(this.activeName == 'technicalRequirement'){ |
|||
this.getTechnicalRequirement(); |
|||
}else if(this.activeName == 'PEConfirm'){ |
|||
this.getPEConfirm(); |
|||
}else if(this.activeName == 'drawing'){ |
|||
this.getDrawing(); |
|||
} else if(this.activeName == 'overprinting'){ |
|||
this.getOverprinting(); |
|||
}else if(this.activeName == 'slitting'){ |
|||
this.getSlitting(); |
|||
}else if(this.activeName == 'lamTemperature'){ |
|||
this.getLamTemperature(); |
|||
}else if(this.activeName == 'cutting'){ |
|||
this.getCutting(); |
|||
}else if(this.activeName == 'packagePage'){ |
|||
this.getPackagePage(); |
|||
}else if(this.activeName == 'fqc'){ |
|||
this.getFqc(); |
|||
}else if(this.activeName == 'cqc'){ |
|||
this.getCqc(); |
|||
}else if(this.activeName == 'qualityDocument'){ |
|||
this.getQualityDocument(); |
|||
}else if(this.activeName == 'documentControl'){ |
|||
this.getDocumentControl(); |
|||
}else if(this.activeName == 'peReviewed'){ |
|||
this.getPeReviewed(); |
|||
}else if(this.activeName == 'queteConfirm'){ |
|||
this.getQueteConfirm(); |
|||
}else if(this.activeName == 'fai'){ |
|||
this.getFai(); |
|||
}else if(this.activeName == 'cqeComfirm'){ |
|||
this.getCqeComfirm(); |
|||
}else if(this.activeName == 'tpInfo'){ |
|||
this.changeHeight(800); |
|||
this.getTpInfo(); |
|||
}else if(this.activeName == 'printOther'){ |
|||
this.getPrintOther(); |
|||
}else if(this.activeName == 'InkMixing'){ |
|||
this.getInkMixing(); |
|||
}else if(this.activeName == 'InkFormulation'){ |
|||
this.changeHeight(800); |
|||
this.getInkFormulation(); |
|||
}else if(this.activeName == 'lamination'){ |
|||
this.getLamination(); |
|||
}else if(this.activeName == 'CNC'){ |
|||
this.getCNC(); |
|||
}else if(this.activeName == 'Cut'){ |
|||
this.getCut(); |
|||
}else if(this.activeName == 'printing') { |
|||
this.changeHeight(800); |
|||
this.getPrinting(); |
|||
} |
|||
}, |
|||
getPrintOther(){ |
|||
this.$refs.printOther.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getBaseInfoData(){ |
|||
this.$refs.basicInformation.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCustomerInfo(){ |
|||
this.$refs.customerInfo.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPackageInfo(){ |
|||
this.$refs.packageInfo.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getBom(){ |
|||
this.$refs.bom.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getRouting(){ |
|||
this.$refs.routing.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPrepress(){ |
|||
this.dataForm.type='prepress' |
|||
this.$refs.prepress.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getTechnicalRequirement(){ |
|||
this.dataForm.type='technicalRequirement' |
|||
this.$refs.technicalRequirement.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPEConfirm(){ |
|||
this.dataForm.type='PEConfirm' |
|||
this.$refs.PEConfirm.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getDrawing(){ |
|||
this.dataForm.type='drawing' |
|||
this.$refs.drawing.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getOverprinting(){ |
|||
this.dataForm.type='overprinting' |
|||
this.$refs.overprinting.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getSlitting(){ |
|||
this.dataForm.type='slitting' |
|||
this.$refs.slitting.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getLamTemperature(){ |
|||
this.dataForm.type='lamTemperature' |
|||
this.$refs.lamTemperature.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCutting(){ |
|||
this.dataForm.type='cutting' |
|||
this.$refs.cutting.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPackagePage(){ |
|||
// 这个有点特殊 是package |
|||
this.dataForm.type='packagePage' |
|||
this.$refs.packagePage.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getFqc(){ |
|||
this.dataForm.type='fqc' |
|||
this.$refs.fqc.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCqc(){ |
|||
this.dataForm.type='cqc' |
|||
this.$refs.cqc.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getQualityDocument(){ |
|||
this.dataForm.type='qualityDocument' |
|||
this.$refs.qualityDocument.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getDocumentControl(){ |
|||
this.dataForm.type='documentControl' |
|||
this.$refs.documentControl.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPeReviewed(){ |
|||
this.dataForm.type='peReviewed' |
|||
this.$refs.peReviewed.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getQueteConfirm(){ |
|||
this.dataForm.type='queteConfirm' |
|||
this.$refs.queteConfirm.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getFai(){ |
|||
this.dataForm.type='fai' |
|||
this.$refs.fai.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCqeComfirm(){ |
|||
this.dataForm.type='cqeComfirm' |
|||
this.$refs.cqeComfirm.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getTpInfo(){ |
|||
this.dataForm.type='tpInfo' |
|||
this.$refs.tpInfo.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getInkMixing(){ |
|||
this.dataForm.type='InkMixing' |
|||
this.$refs.InkMixing.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getInkFormulation(){ |
|||
this.dataForm.type='InkFormulation' |
|||
this.$refs.InkFormulation.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getLamination(){ |
|||
this.dataForm.type='lamination' |
|||
this.$refs.lamination.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCNC(){ |
|||
this.dataForm.type='CNC' |
|||
this.$refs.CNC.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getCut(){ |
|||
this.dataForm.type='Cut' |
|||
this.$refs.Cut.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
getPrinting(){ |
|||
this.dataForm.type='printing' |
|||
this.$refs.printing.init(JSON.parse(JSON.stringify(this.dataForm))) |
|||
}, |
|||
|
|||
//看有没有这个页面的权限 |
|||
getPageRole(){ |
|||
getBMPageBase(this.dataForm).then(({data}) => { |
|||
if (data && data.code === 0) { |
|||
this.pageRole=data.row |
|||
} |
|||
}) |
|||
}, |
|||
getPageIf(key){ |
|||
return this.pageRole.indexOf(';'+key+';') !== -1 || false |
|||
}, |
|||
|
|||
changeHeight(height){ |
|||
var tabsElement = document.querySelector('.tabs'); |
|||
// tabsElement.style.minHeight = window.innerHeight+'px'; |
|||
tabsElement.style.minHeight = height +'px'; |
|||
}, |
|||
changeHeightAuto(){ |
|||
//页签大小铺满网页 |
|||
var tabsElement = document.querySelector('.tabs'); |
|||
tabsElement.style.minHeight = window.innerHeight+'px'; |
|||
} |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style > |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue