6 changed files with 275 additions and 6 deletions
-
1src/api/sampleManagement/technicalSpecificationList.js
-
3src/router/index.js
-
260src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
-
2src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
-
12src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue
-
3src/views/modules/sampleManagement/technicalSpecificationList.vue
@ -0,0 +1,260 @@ |
|||
<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="'终端客户/End Customer'"> |
|||
<el-input v-model="dataForm.finalCustomerNo" disabled ></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.finalCustomerDesc" disabled ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'直接客户/Direct Customer'" > |
|||
<el-input v-model="dataForm.directCustomerNo" disabled ></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.directCustomerDesc" disabled ></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="'产品编号/Part Number'"> |
|||
<el-input v-model="dataForm.partNo" disabled style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="12"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'产品描述/Part Description'"> |
|||
<el-input v-model="dataForm.partDesc" disabled style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'客户版本/Customer Rev.'"> |
|||
<el-input v-model="dataForm.customerRevNo" disabled 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="'图号/Drawing Number'"> |
|||
<el-input v-model="dataForm.materialNumber" disabled style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'需要的认证/Certificates Needed'"> |
|||
<el-input v-model="dataForm.certification" disabled style="" ></el-input> |
|||
</el-form-item> |
|||
</div></el-col> |
|||
<el-col :span="6"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'材料或成品/Material Or Label'"> |
|||
<el-input v-model="dataForm.partFamily" disabled style="" ></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="'客户应用/要求/Customer App./Req.'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.customerRemark " |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
style="height: 60px" disabled> |
|||
</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="'其他特殊要求/Other Requirement'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.projectRemark " |
|||
:rows="3" |
|||
resize='none' |
|||
maxlength="120" |
|||
show-word-limit |
|||
style="height: 60px" disabled> |
|||
</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="'附加客户图纸/Attach Customer Drawing'"> |
|||
<el-input v-model="dataForm.pictureAddess" :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="'客户图纸变更说明/Attach Customer Drawing'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.customerPictureChangeRemark " |
|||
: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-row :gutter="20" style="margin-top: 60px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'转量产附档说明/MP Comments'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.productionFileComments " |
|||
: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-row :gutter="20" style="margin-top: 60px"> |
|||
<el-col :span="24"><div class="grid-content bg-purple"> |
|||
<el-form-item :label="'备注/Comments'"> |
|||
<el-input |
|||
type="textarea" |
|||
v-model="dataForm.remark" |
|||
: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"> |
|||
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|||
</el-form> |
|||
|
|||
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
searchBMcustomerInfo, |
|||
} 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: '', |
|||
bu:'', |
|||
}, |
|||
ifDisableFlag:false, |
|||
dataForm:{ |
|||
site: '', |
|||
codeNo:'', |
|||
finalCustomerNo:'', |
|||
finalCustomerDesc:'', |
|||
directCustomerNo:'', |
|||
directCustomerDesc:'', |
|||
partNo:'', |
|||
partDesc:'', |
|||
customerRevNo:'', |
|||
certification:'', |
|||
partFamily:'', |
|||
customerRemark:'', |
|||
projectRemark:'', |
|||
pictureAddess:'', |
|||
customerPictureChangeRemark:'', |
|||
productionFileComments:'', |
|||
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) { |
|||
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|||
return false; |
|||
} |
|||
//初始化参数 |
|||
this.searchData = JSON.parse(JSON.stringify(inData)); |
|||
//刷新表格 |
|||
this.searchTable(); |
|||
|
|||
}, |
|||
searchTable(){ |
|||
searchBMcustomerInfo(this.searchData).then(({data}) => { |
|||
this.dataForm = data.rows[0]; |
|||
|
|||
}); |
|||
} |
|||
|
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue