日期回显及展示
This commit is contained in:
@@ -180,12 +180,6 @@
|
||||
width="210px"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zccssrqgj === null">
|
||||
{{ scope.row.zccssrqgj }}
|
||||
</span>
|
||||
<span v-else>{{ scope.row.zccssrqgj.slice(0, 10) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrqgj"
|
||||
@@ -193,12 +187,6 @@
|
||||
align="center"
|
||||
width="210px"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.xcxssrqgj === null">
|
||||
{{ scope.row.xcxssrqgj }}
|
||||
</span>
|
||||
<span v-else>{{ scope.row.xcxssrqgj.slice(0, 10) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
@@ -214,34 +202,6 @@
|
||||
align="center"
|
||||
label="适用产品线">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="cycvppsbm"
|
||||
width="210px"
|
||||
align="center"
|
||||
label="乘用车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="cycvppscn"
|
||||
width="210px"
|
||||
align="center"
|
||||
label="乘用车VPPS中文名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="kccvppsbm"
|
||||
align="center"
|
||||
width="210px"
|
||||
label="卡车VPPS编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="kccvppscn"
|
||||
align="center"
|
||||
width="210px"
|
||||
label="卡车VPPS中文名称">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination :page="standardForm.page" :total="standardFormTotal" @pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
|
||||
@@ -415,41 +415,6 @@
|
||||
<el-col :span="24">
|
||||
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
|
||||
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"
|
||||
class="add-form-item">
|
||||
<el-select
|
||||
@@ -472,7 +437,7 @@
|
||||
:disabled="true"
|
||||
v-model="addForm.standName"
|
||||
placeholder="请输入标准名称"
|
||||
/>
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item prop="itemsNum" label="条款号" style="width: 100%; margin-right:10px"
|
||||
class="add-form-item add-input">
|
||||
@@ -489,6 +454,41 @@
|
||||
placeholder="请输入条款名称"
|
||||
:maxlength="500" />
|
||||
</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"
|
||||
class="add-form-item">
|
||||
<el-input
|
||||
@@ -593,6 +593,7 @@ export default {
|
||||
loading: false,
|
||||
nonList: [], //未符合项表格数据
|
||||
replaceLoading: false,
|
||||
productLines: [], //产品线数据
|
||||
//项目数据
|
||||
ProjectDatas: [],
|
||||
itemsData: [],
|
||||
@@ -1006,6 +1007,7 @@ export default {
|
||||
},
|
||||
//新增事件
|
||||
addModel() {
|
||||
alert('222')
|
||||
this.dataList = []
|
||||
this.serialNumber = true
|
||||
this.drawerTitle = "新增";
|
||||
@@ -1099,6 +1101,11 @@ export default {
|
||||
this.pageSizeNo = pageSize;
|
||||
this.getTableByPage();
|
||||
},
|
||||
//产品线change事件
|
||||
handleChangeLine(val){
|
||||
console.log(val);
|
||||
this.ProjectDatas = val.sarStandProjectLibraries
|
||||
},
|
||||
|
||||
/** 项目名称change事件 */
|
||||
handleChange(val) {
|
||||
@@ -1108,12 +1115,11 @@ export default {
|
||||
}
|
||||
this.addForm.productId = val.id
|
||||
this.addForm.productId = val.projectNumber
|
||||
this.addForm.productLine = val.productLine
|
||||
this.addForm.productName = val.projectName
|
||||
this.addForm.productType = val.projectPlatfor
|
||||
this.serialNumber = false
|
||||
let productId = val.id
|
||||
this.getStandData(productId)
|
||||
// let productId = val.id
|
||||
// this.getStandData(productId)
|
||||
},
|
||||
/** 标准号change事件 */
|
||||
standChange(item) {
|
||||
@@ -1179,11 +1185,30 @@ export default {
|
||||
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() {
|
||||
//查询已维护的项目
|
||||
this.getProjectData();
|
||||
//查询产品线
|
||||
this.getProductData()
|
||||
this.getData()
|
||||
// 加载所有的部门
|
||||
this.getOrgTreeSource();
|
||||
|
||||
Reference in New Issue
Block a user