commit
This commit is contained in:
@@ -415,6 +415,41 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
|
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
|
||||||
ref="addForm">
|
ref="addForm">
|
||||||
|
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-select v-model="addForm.productName" filterable @change="handleChange" placeholder="请选择项目名称">
|
||||||
|
<el-option
|
||||||
|
v-for="item in ProjectDatas"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.projectName"
|
||||||
|
:value="item"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="productId" label="项目编号" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
|
v-model="addForm.productId"
|
||||||
|
placeholder="请输入项目编号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
|
v-model="addForm.productType"
|
||||||
|
placeholder="请输入产品类型"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
|
||||||
|
class="add-form-item">
|
||||||
|
<el-input
|
||||||
|
:disabled="true"
|
||||||
|
v-model="addForm.productLine"
|
||||||
|
placeholder="请输入产品线"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px"
|
<el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -454,48 +489,13 @@
|
|||||||
placeholder="请输入条款名称"
|
placeholder="请输入条款名称"
|
||||||
:maxlength="500" />
|
:maxlength="500" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- :disabled="true"-->
|
|
||||||
<!-- v-model="addForm.productLine"-->
|
|
||||||
<!-- placeholder="请输入产品线"-->
|
|
||||||
<!-- />-->
|
|
||||||
<el-select v-model="addForm.productLine" filterable @change="handleChangeLine" placeholder="请选择产品线">
|
|
||||||
<el-option
|
|
||||||
v-for="item in productLines"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.productLine"
|
|
||||||
:value="item"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<el-select v-model="addForm.productName" filterable @change="handleChange" placeholder="请选择项目名称">
|
|
||||||
<el-option
|
|
||||||
v-for="item in ProjectDatas"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.projectName"
|
|
||||||
:value="item"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="productId" label="项目编号" style="width: 100%; margin-right:10px"
|
|
||||||
class="add-form-item">
|
|
||||||
<el-input
|
|
||||||
:disabled="true"
|
|
||||||
v-model="addForm.productId"
|
|
||||||
placeholder="请输入项目编号"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px"
|
<el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="addForm.responsibleUnit"
|
v-model="addForm.responsibleUnit"
|
||||||
placeholder="请输入责任部门"
|
placeholder="请输入责任部门"
|
||||||
@click.native="choiceZRBM"
|
@click.native="choiceZRBM"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px"
|
<el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
@@ -510,7 +510,7 @@
|
|||||||
v-model="addForm.dutyEngineer"
|
v-model="addForm.dutyEngineer"
|
||||||
placeholder="请输入责任工程师"
|
placeholder="请输入责任工程师"
|
||||||
@click.native="choiceZRR"
|
@click.native="choiceZRR"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="authEngineer" label="认证工程师" style="width: 100%; margin-right:10px"
|
<el-form-item prop="authEngineer" label="认证工程师" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
v-model="addForm.authEngineer"
|
v-model="addForm.authEngineer"
|
||||||
placeholder="请输入认证工程师"
|
placeholder="请输入认证工程师"
|
||||||
@click.native="choiceMore('authEngineer','选择认证工程师',addForm.authEngineer)"
|
@click.native="choiceMore('authEngineer','选择认证工程师',addForm.authEngineer)"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="qaEngineer" label="质量工程师" style="width: 100%; margin-right:10px"
|
<el-form-item prop="qaEngineer" label="质量工程师" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
@@ -526,7 +526,7 @@
|
|||||||
v-model="addForm.qaEngineer"
|
v-model="addForm.qaEngineer"
|
||||||
placeholder="请输入质量工程师"
|
placeholder="请输入质量工程师"
|
||||||
@click.native="choiceMore('qaEngineer','选择质量工程师',addForm.qaEngineer)"
|
@click.native="choiceMore('qaEngineer','选择质量工程师',addForm.qaEngineer)"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="planCloseTime" label="计划关闭时间" style="width: 100%; margin-right:10px"
|
<el-form-item prop="planCloseTime" label="计划关闭时间" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
@@ -593,7 +593,6 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
nonList: [], //未符合项表格数据
|
nonList: [], //未符合项表格数据
|
||||||
replaceLoading: false,
|
replaceLoading: false,
|
||||||
productLines: [], //产品线数据
|
|
||||||
//项目数据
|
//项目数据
|
||||||
ProjectDatas: [],
|
ProjectDatas: [],
|
||||||
itemsData: [],
|
itemsData: [],
|
||||||
@@ -1007,7 +1006,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//新增事件
|
//新增事件
|
||||||
addModel() {
|
addModel() {
|
||||||
alert('222')
|
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.serialNumber = true
|
this.serialNumber = true
|
||||||
this.drawerTitle = "新增";
|
this.drawerTitle = "新增";
|
||||||
@@ -1101,11 +1099,6 @@ export default {
|
|||||||
this.pageSizeNo = pageSize;
|
this.pageSizeNo = pageSize;
|
||||||
this.getTableByPage();
|
this.getTableByPage();
|
||||||
},
|
},
|
||||||
//产品线change事件
|
|
||||||
handleChangeLine(val){
|
|
||||||
console.log(val);
|
|
||||||
this.ProjectDatas = val.sarStandProjectLibraries
|
|
||||||
},
|
|
||||||
|
|
||||||
/** 项目名称change事件 */
|
/** 项目名称change事件 */
|
||||||
handleChange(val) {
|
handleChange(val) {
|
||||||
@@ -1115,11 +1108,12 @@ export default {
|
|||||||
}
|
}
|
||||||
this.addForm.productId = val.id
|
this.addForm.productId = val.id
|
||||||
this.addForm.productId = val.projectNumber
|
this.addForm.productId = val.projectNumber
|
||||||
|
this.addForm.productLine = val.productLine
|
||||||
this.addForm.productName = val.projectName
|
this.addForm.productName = val.projectName
|
||||||
this.addForm.productType = val.projectPlatfor
|
this.addForm.productType = val.projectPlatfor
|
||||||
this.serialNumber = false
|
this.serialNumber = false
|
||||||
// let productId = val.id
|
let productId = val.id
|
||||||
// this.getStandData(productId)
|
this.getStandData(productId)
|
||||||
},
|
},
|
||||||
/** 标准号change事件 */
|
/** 标准号change事件 */
|
||||||
standChange(item) {
|
standChange(item) {
|
||||||
@@ -1185,30 +1179,11 @@ export default {
|
|||||||
this.addForm.responsibleUnit = nameList;
|
this.addForm.responsibleUnit = nameList;
|
||||||
|
|
||||||
},
|
},
|
||||||
//获取产品线数据
|
|
||||||
getProductData() {
|
|
||||||
this.$http.get("sarStandProjectLibrary/queryProjectManager", {
|
|
||||||
current: 1,
|
|
||||||
PageSize:100,
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
res.data.records.forEach(item => {
|
|
||||||
if(item.productLine){
|
|
||||||
this.productLines.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, e => {
|
|
||||||
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//查询已维护的项目
|
//查询已维护的项目
|
||||||
this.getProjectData();
|
this.getProjectData();
|
||||||
//查询产品线
|
|
||||||
this.getProductData()
|
|
||||||
this.getData()
|
this.getData()
|
||||||
// 加载所有的部门
|
// 加载所有的部门
|
||||||
this.getOrgTreeSource();
|
this.getOrgTreeSource();
|
||||||
|
|||||||
Reference in New Issue
Block a user