未符合项新增
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standNumber"
|
prop="standNumber"
|
||||||
label="标准号/条款号"
|
label="标准号/条款号"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="researchCompletionTime"
|
prop="researchCompletionTime"
|
||||||
label="完成时间"
|
label="完成时间"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -43,12 +45,14 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="evaluationPeople"
|
prop="evaluationPeople"
|
||||||
label="评估人"
|
label="评估人"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="evaluationTime"
|
prop="evaluationTime"
|
||||||
label="评估时间"
|
label="评估时间"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -73,6 +77,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standNumber"
|
prop="standNumber"
|
||||||
label="标准号/条款号"
|
label="标准号/条款号"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -85,12 +90,14 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="evaluationPeople"
|
prop="evaluationPeople"
|
||||||
label="评估人"
|
label="评估人"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="evaluationTime"
|
prop="evaluationTime"
|
||||||
label="评估时间"
|
label="评估时间"
|
||||||
|
width="160"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|||||||
@@ -162,7 +162,7 @@
|
|||||||
label="责任部门">
|
label="责任部门">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="dutyEngineer"
|
prop="dutyEngineerName"
|
||||||
width="100"
|
width="100"
|
||||||
label="责任工程师">
|
label="责任工程师">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -415,56 +415,19 @@
|
|||||||
<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-input
|
||||||
v-model="addForm.standSerialNumber"
|
v-model="addForm.standSerialNumber"
|
||||||
filterable
|
placeholder="请输入标准名称"
|
||||||
:disabled="serialNumber"
|
/>
|
||||||
@change="standChange"
|
<el-button
|
||||||
placeholder="请选择标准号">
|
type="primary"
|
||||||
<el-option
|
class="common-button-primary"
|
||||||
v-for="item in dataList"
|
size="mini"
|
||||||
:key="item.standId"
|
style="position:absolute;top: 10px;right: 0;"
|
||||||
:label="item.standSort + '-' + item.standNumber + '-' + item.standYear"
|
@click="showStand"
|
||||||
:value="item"
|
>手动查找</el-button>
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px"
|
<el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px"
|
||||||
class="add-form-item">
|
class="add-form-item">
|
||||||
@@ -489,6 +452,41 @@
|
|||||||
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
|
||||||
@@ -579,6 +577,136 @@
|
|||||||
:nodeList="nodeListZRBM"
|
:nodeList="nodeListZRBM"
|
||||||
@checkedRole="drawerCheckZRBM"
|
@checkedRole="drawerCheckZRBM"
|
||||||
/>
|
/>
|
||||||
|
<el-dialog
|
||||||
|
title="添加标准"
|
||||||
|
:visible.sync="dialogTableVisible"
|
||||||
|
width="875px"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:append-to-body="true"
|
||||||
|
>
|
||||||
|
<div class="search-area">
|
||||||
|
<div class="left">
|
||||||
|
<el-form :modal="standardSearch" :inline="true" class="label-input-form"
|
||||||
|
style="margin-left:10px">
|
||||||
|
<el-form-item label="类型" class="search-item search-item-last">
|
||||||
|
<el-select
|
||||||
|
@change="typeChange"
|
||||||
|
v-model="standardSearch.standType"
|
||||||
|
placeholder="请选择"
|
||||||
|
filterable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in standardTypeOptions"
|
||||||
|
:value="item.value"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="标准号/标准名称" class="search-item search-item-last">
|
||||||
|
<el-input
|
||||||
|
v-model="standardSearch.standNumber"
|
||||||
|
placeholder="请输入标准号或标准名称"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="search-item btn-box">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="common-button-primary"
|
||||||
|
size="small"
|
||||||
|
v-btn-permission="'072efe80c5459dd47fedd2d14f59ff7f'"
|
||||||
|
@click="getStandDataBtn">
|
||||||
|
查询
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="search-item btn-box">
|
||||||
|
<el-button
|
||||||
|
class="common-button-default"
|
||||||
|
size="small"
|
||||||
|
v-btn-permission="'3480a13964a18e000196e4d5bc6ef117'"
|
||||||
|
@click="clearStandSearch">清空
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="standardData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%; overflow-y: auto;overflow-x: hidden;"
|
||||||
|
border
|
||||||
|
:height="300"
|
||||||
|
ref="table"
|
||||||
|
@selection-change="selectStand"
|
||||||
|
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
align="center"
|
||||||
|
label="标准号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a v-if="scope.row.standYear" class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||||
|
scope.row.standNumber
|
||||||
|
}}-{{ scope.row.standYear }}</a>
|
||||||
|
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{
|
||||||
|
scope.row.standSortShow
|
||||||
|
}}
|
||||||
|
{{ scope.row.standNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standName"
|
||||||
|
align="center"
|
||||||
|
min-width="200"
|
||||||
|
label="标准名称"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="issueTime"
|
||||||
|
align="center"
|
||||||
|
label="发布日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="XCXSSRQ"
|
||||||
|
align="center"
|
||||||
|
label="新车型实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="ZCCSSRQ"
|
||||||
|
align="center"
|
||||||
|
label="在产车实施日期">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
|
||||||
|
<!--分页-->
|
||||||
|
<pagination
|
||||||
|
style="position: relative;"
|
||||||
|
:page="page"
|
||||||
|
:pageSize="pageSize"
|
||||||
|
:total="total"
|
||||||
|
@pageChange="pageChange"
|
||||||
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelStand">取消</el-button>
|
||||||
|
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="okStand">添加</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -593,11 +721,34 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
nonList: [], //未符合项表格数据
|
nonList: [], //未符合项表格数据
|
||||||
replaceLoading: false,
|
replaceLoading: false,
|
||||||
|
standList: [],
|
||||||
|
productLines: [], //产品线数据
|
||||||
//项目数据
|
//项目数据
|
||||||
ProjectDatas: [],
|
ProjectDatas: [],
|
||||||
|
dialogTableVisible: false,
|
||||||
itemsData: [],
|
itemsData: [],
|
||||||
selectItems: [],
|
selectItems: [],
|
||||||
dataList: [],
|
dataList: [],
|
||||||
|
//查询添加标准相关数据
|
||||||
|
standardSearch: {
|
||||||
|
standType: "",
|
||||||
|
standNumber: "",
|
||||||
|
pageNo: 1,
|
||||||
|
pageSizeNo: this.$store.getters.userInfo.configContent
|
||||||
|
},
|
||||||
|
standardData: [], //存放标准数据
|
||||||
|
standardTypeOptions: [
|
||||||
|
{
|
||||||
|
value: "INLAND",
|
||||||
|
label: "国内标准法规",
|
||||||
|
item: "INLAND"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "FOREIGN",
|
||||||
|
label: "海外标准法规",
|
||||||
|
item: "FOREIGN"
|
||||||
|
}
|
||||||
|
],
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -685,9 +836,6 @@ export default {
|
|||||||
//数据查看
|
//数据查看
|
||||||
historySee: false,
|
historySee: false,
|
||||||
historySeeForm: {},
|
historySeeForm: {},
|
||||||
// 新增编辑框的disabled
|
|
||||||
serialNumber: true,
|
|
||||||
|
|
||||||
// 提交按钮loading
|
// 提交按钮loading
|
||||||
submiting: false,
|
submiting: false,
|
||||||
// 选择人(单选)
|
// 选择人(单选)
|
||||||
@@ -749,6 +897,47 @@ export default {
|
|||||||
this.myLoading.loadData = false;
|
this.myLoading.loadData = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
typeChange(type) {
|
||||||
|
console.log(type);
|
||||||
|
this.standardSearch.standType = type;
|
||||||
|
},
|
||||||
|
//取消添加
|
||||||
|
cancelStand(){
|
||||||
|
this.dialogTableVisible = false
|
||||||
|
},
|
||||||
|
//确认添加标准
|
||||||
|
okStand(){
|
||||||
|
if(this.standList > 1){
|
||||||
|
this.$message.warning('您只能选择一条标准进行添加')
|
||||||
|
}else if(this.standList < 1){
|
||||||
|
this.$message.warning('请至少选择一条数据进行添加')
|
||||||
|
}else{
|
||||||
|
this.addForm.standId = this.standList[0].id
|
||||||
|
this.addForm.standName = this.standList[0].standName
|
||||||
|
this.addForm.standSerialNumber = this.standList[0].standSort + '-' + this.standList[0].standNumber + '-' + this.standList[0].standYear
|
||||||
|
this.dialogTableVisible = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//添加标准select的改变
|
||||||
|
selectStand(data) {
|
||||||
|
this.standList = data;
|
||||||
|
},
|
||||||
|
showStand(){
|
||||||
|
this.dialogTableVisible = true
|
||||||
|
},
|
||||||
|
//标准查询按钮
|
||||||
|
getStandDataBtn(){
|
||||||
|
this.page =1;
|
||||||
|
this.getStandDatas();
|
||||||
|
},
|
||||||
|
//清空查询按钮
|
||||||
|
clearStandSearch(){
|
||||||
|
this.standardSearch = {
|
||||||
|
standType: "",
|
||||||
|
standNumber: ""
|
||||||
|
};
|
||||||
|
this.getStandDatas();
|
||||||
|
},
|
||||||
// 点击历史记录按钮事件
|
// 点击历史记录按钮事件
|
||||||
historyClick() {
|
historyClick() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@@ -873,25 +1062,24 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取项目数据
|
// //获取项目数据
|
||||||
getProjectData() {
|
// getProjectData() {
|
||||||
this.$http.get("sarStandProjectLibrary/queryProjectWorkFlow", {
|
// this.$http.get("sarStandProjectLibrary/queryProjectWorkFlow", {
|
||||||
page: this.page,
|
// page: 1,
|
||||||
pageSize: this.pageSize,
|
// pageSize: 100,
|
||||||
...this.projectSearch
|
// }, {
|
||||||
}, {
|
// _this: this
|
||||||
_this: this
|
// }, res => {
|
||||||
}, res => {
|
// if (res.data === null) {
|
||||||
if (res.data === null) {
|
// this.ProjectDatas = "";
|
||||||
this.ProjectDatas = "";
|
// this.total = 0;
|
||||||
this.total = 0;
|
// } else {
|
||||||
} else {
|
// this.ProjectDatas = res.data.Maintenance.records;
|
||||||
this.ProjectDatas = res.data.Maintenance.records;
|
// this.total = res.data.Maintenance.total;
|
||||||
this.total = res.data.Maintenance.total;
|
// }
|
||||||
}
|
// });
|
||||||
});
|
//
|
||||||
|
// },
|
||||||
},
|
|
||||||
//提交
|
//提交
|
||||||
submit() {
|
submit() {
|
||||||
const id = this.addForm.id;
|
const id = this.addForm.id;
|
||||||
@@ -1004,13 +1192,31 @@ export default {
|
|||||||
});*/
|
});*/
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//查询项目下的标准
|
||||||
|
getStandDatas() {
|
||||||
|
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", {
|
||||||
|
standType: this.standardSearch.standType,
|
||||||
|
standNumber: this.standardSearch.standNumber,
|
||||||
|
page: this.pageNo,
|
||||||
|
pageSize: this.pageSizeNo
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.standardData = res.data.list;
|
||||||
|
this.standardData.forEach(item => {
|
||||||
|
this.$set(item, "ZCCSSRQ", item.zccssrq);
|
||||||
|
this.$set(item, "XCXSSRQ", item.xcxssrq);
|
||||||
|
})
|
||||||
|
this.total = res.data.count;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
//新增事件
|
//新增事件
|
||||||
addModel() {
|
addModel() {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.serialNumber = true
|
|
||||||
this.drawerTitle = "新增";
|
this.drawerTitle = "新增";
|
||||||
this.getProjectData()
|
|
||||||
this.drawerTable = true
|
this.drawerTable = true
|
||||||
|
this.getStandDatas()
|
||||||
},
|
},
|
||||||
//编辑事件
|
//编辑事件
|
||||||
projectEdit(row) {
|
projectEdit(row) {
|
||||||
@@ -1022,9 +1228,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
let productId = this.projectId
|
let productId = this.projectId
|
||||||
this.getProjectData()
|
// this.getProjectData()
|
||||||
this.getStandData(productId)
|
this.getStandData(productId)
|
||||||
this.serialNumber = false
|
|
||||||
this.drawerTable = true;
|
this.drawerTable = true;
|
||||||
},
|
},
|
||||||
//点击查看按钮事件
|
//点击查看按钮事件
|
||||||
@@ -1091,6 +1296,15 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 分页事件
|
// 分页事件
|
||||||
|
pageChange(page) {
|
||||||
|
this.page = page;
|
||||||
|
this.getStandDatas()
|
||||||
|
},
|
||||||
|
pageSizeChange(pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
this.getStandDatas()
|
||||||
|
},
|
||||||
|
// 分页事件
|
||||||
pageChangeNo(page) {
|
pageChangeNo(page) {
|
||||||
this.pageNo = page;
|
this.pageNo = page;
|
||||||
this.getTableByPage();
|
this.getTableByPage();
|
||||||
@@ -1099,6 +1313,11 @@ export default {
|
|||||||
this.pageSizeNo = pageSize;
|
this.pageSizeNo = pageSize;
|
||||||
this.getTableByPage();
|
this.getTableByPage();
|
||||||
},
|
},
|
||||||
|
//产品线change事件
|
||||||
|
handleChangeLine(val){
|
||||||
|
this.addForm.productLine = val.productLine
|
||||||
|
this.ProjectDatas = val.sarStandProjectLibraries
|
||||||
|
},
|
||||||
|
|
||||||
/** 项目名称change事件 */
|
/** 项目名称change事件 */
|
||||||
handleChange(val) {
|
handleChange(val) {
|
||||||
@@ -1108,18 +1327,11 @@ 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事件 */
|
|
||||||
standChange(item) {
|
|
||||||
this.addForm.standId = item.standId
|
|
||||||
this.addForm.standName = item.standName
|
|
||||||
this.addForm.standSerialNumber = item.standSort + '-' + item.standNumber + '-' + item.standYear
|
|
||||||
},
|
},
|
||||||
/** 责任工程师选择 */
|
/** 责任工程师选择 */
|
||||||
choiceZRR(type, title, id) {
|
choiceZRR(type, title, id) {
|
||||||
@@ -1179,11 +1391,28 @@ 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.getProductData()
|
||||||
this.getData()
|
this.getData()
|
||||||
// 加载所有的部门
|
// 加载所有的部门
|
||||||
this.getOrgTreeSource();
|
this.getOrgTreeSource();
|
||||||
@@ -1192,6 +1421,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
/deep/.el-dialog__body{
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
.el-select-dropdown__item.selected {
|
.el-select-dropdown__item.selected {
|
||||||
color: #606266 !important;
|
color: #606266 !important;
|
||||||
}
|
}
|
||||||
@@ -1270,6 +1502,5 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user