Merge remote-tracking branch 'origin/develop' into develop-1

This commit is contained in:
yangzijiao
2021-07-19 17:41:02 +08:00
7 changed files with 128 additions and 62 deletions
@@ -163,41 +163,51 @@
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0"> <div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0"> <div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
<!-- <div class="left">--> <div class="left">
<!-- <el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" style="margin-left:10px">--> <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-form-item label="类型" class="search-item search-item-last">
<!-- <el-input--> <el-select
<!-- v-model="sarSarAccessEOSearch.standName"--> @change="typeChange"
<!-- placeholder="请输入标准号"--> v-model="standardSearch.standType"
<!-- ></el-input>--> placeholder="请选择"
<!-- </el-form-item>--> filterable
<!-- <el-form-item label="标准名称" class="search-item search-item-last">--> >
<!-- <el-input--> <el-option
<!-- v-model="sarSarAccessEOSearch.standNumber"--> v-for="item in standardTypeOptions"
<!-- placeholder="请输入标准名称"--> :value="item.value"
<!-- ></el-input>--> :key="item.value"
<!-- </el-form-item>--> :label="item.label"
<!-- <el-form-item class="search-item btn-box">--> >
<!-- <el-button--> </el-option>
<!-- :loading="searching"--> </el-select>
<!-- type="primary"--> </el-form-item>
<!-- class="common-button-primary"--> <el-form-item label="标准号/标准名称" class="search-item search-item-last">
<!-- size="small"--> <el-input
<!-- v-btn-permission="'072efe80c5459dd47fedd2d14f59ff7f'"--> v-model="standardSearch.standName"
<!-- @click="getStandData">--> placeholder="请输入标准号或标准名称"
<!-- 查询--> ></el-input>
<!-- </el-button>--> </el-form-item>
<!-- </el-form-item>--> <el-form-item class="search-item btn-box">
<!-- <el-form-item class="search-item btn-box">--> <el-button
<!-- <el-button--> :loading="searching"
<!-- class="common-button-default"--> type="primary"
<!-- size="small"--> class="common-button-primary"
<!-- v-btn-permission="'3480a13964a18e000196e4d5bc6ef117'"--> size="small"
<!-- @click="clearSearch">清空--> v-btn-permission="'072efe80c5459dd47fedd2d14f59ff7f'"
<!-- </el-button>--> @click="getStandData">
<!-- </el-form-item>--> 查询
<!-- </el-form>--> </el-button>
<!-- </div>--> </el-form-item>
<el-form-item class="search-item btn-box">
<el-button
class="common-button-default"
size="small"
v-btn-permission="'3480a13964a18e000196e4d5bc6ef117'"
@click="clearSearch">清空
</el-button>
</el-form-item>
</el-form>
</div>
<el-table <el-table
:data="sarAccessListDatas" :data="sarAccessListDatas"
tooltip-effect="dark" tooltip-effect="dark"
@@ -381,12 +391,22 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
sarSarAccessEOSearch: { standardSearch: {
standType:'',
standName:'', standName:'',
standNumber:'',
page: 1,
pageSize: this.$store.getters.userInfo.configContent
}, },
standardTypeOptions: [
{
value: 'INLAND',
label: '国内标准法规',
item:'INLAND',
},
{
value: 'FOREIGN',
label: '海外标准法规',
item:'FOREIGN',
},
],
nodeList: [], nodeList: [],
defaultProps: { defaultProps: {
children: "children", children: "children",
@@ -453,7 +473,8 @@ export default {
id: "", id: "",
itemsName: "", itemsName: "",
itemsNum: "", itemsNum: "",
responsibleUnit: "", responsibleUnit: "", //责任部门
responsibleEngineer: "", //责任工程师
standId: "", standId: "",
svpps: "" svpps: ""
}], }],
@@ -521,6 +542,9 @@ export default {
handleTabs(name) { handleTabs(name) {
this.active = name; this.active = name;
}, },
typeChange(type) {
this.standardSearch.standType = type
},
choiceShow() { choiceShow() {
this.ListModel = true; this.ListModel = true;
}, },
@@ -543,7 +567,6 @@ export default {
}, },
// 点击批量删除事件 // 点击批量删除事件
deleteList() { deleteList() {
console.log(this.selectList.length);
if(this.selectList.length < 1){ if(this.selectList.length < 1){
this.$message.warning('请选择一条数据进行删除') this.$message.warning('请选择一条数据进行删除')
}else { }else {
@@ -610,8 +633,8 @@ export default {
json.prcCreateUser = this.$store.getters.userInfo.userId; json.prcCreateUser = this.$store.getters.userInfo.userId;
json.prcCreateUserName = this.$store.getters.userInfo.account; json.prcCreateUserName = this.$store.getters.userInfo.account;
json.standId = this.listForm.standId; json.standId = this.listForm.standId;
json.XCXSSRQ = this.sarAccessListDatas[0].attrInfoMap.XCXSSRQ json.XCXSSRQ = this.sarAccessListDatas[0].xcxssrqgj
json.ZCCSSRQ = this.sarAccessListDatas[0].attrInfoMap.ZCCSSRQ json.ZCCSSRQ = this.sarAccessListDatas[0].zccssrqgj
this.$refs['listForm'].validate((valid) => { this.$refs['listForm'].validate((valid) => {
if (valid) { if (valid) {
this.$refs['roleForm'].validate((valid) => { this.$refs['roleForm'].validate((valid) => {
@@ -660,7 +683,7 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res.data); console.log(res)
this.listForm.breakdownList = res.data; this.listForm.breakdownList = res.data;
this.ListModel = false; this.ListModel = false;
}, e => { }, e => {
@@ -733,22 +756,24 @@ export default {
}); });
}, },
//获取标准数据 //获取标准数据
getStandData() { getStandData(){
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { this.$http.post('SarStandItems/sar-stand-items/findStand',{
page: this.page, page: this.page,
pageSize: this.pageSize, size: this.pageSize,
}, { ...this.standardSearch,
_this: this },{
_this: this,
}, res => { }, res => {
this.sarAccessListDatas = res.data.list; this.sarAccessListDatas = res.records;
this.total = res.data.count; this.total = res.total
}, e => { }, e => {
});
})
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch = { this.standardSearch = {
standName: "", standName: "",
standNumber: "" standType:"",
}; };
this.getStandData(); this.getStandData();
}, },
@@ -241,7 +241,8 @@ export default {
id: "", id: "",
itemsName: "", itemsName: "",
itemsNum: "", itemsNum: "",
responsibleUnit: "", responsibleUnit: "", //责任部门
responsibleEngineer: "", //责任工程师
standId: "", standId: "",
svpps: "" svpps: ""
}], }],
@@ -316,6 +317,7 @@ export default {
*/ */
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
console.log(item.dataList)
this.listForm = JSON.parse(JSON.stringify(item)) this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName this.listForm.prcName = this.prcName
@@ -323,6 +325,7 @@ export default {
this.listForm.dataList = item.dataList this.listForm.dataList = item.dataList
this.dataList = item.dataList this.dataList = item.dataList
this.dataList.distributePerson = item.dataList[0].distributePerson this.dataList.distributePerson = item.dataList[0].distributePerson
this.listForm.breakdownList = item.breakdownList
}) })
}, },
@@ -342,6 +345,7 @@ export default {
this.listForm.standId = this.listForm.standId; this.listForm.standId = this.listForm.standId;
this.listForm.passFlag = '1'; this.listForm.passFlag = '1';
this.listForm.signFlag = ""; this.listForm.signFlag = "";
this.listForm.breakdownList = this.listForm.breakdownList
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
@@ -101,11 +101,17 @@
prop="xCXSSRQ" prop="xCXSSRQ"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zCCSSRQ" prop="zCCSSRQ"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
@@ -382,6 +388,8 @@ export default {
this.listForm.breakdownList.push({ this.listForm.breakdownList.push({
itemsName: item.pepdtos[i].breakdownList[j].itemsName, itemsName: item.pepdtos[i].breakdownList[j].itemsName,
itemNum: item.pepdtos[i].breakdownList[j].itemsNum, itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
responsibleEngineer: item.pepdtos[i].breakdownList[j].responsibleEngineer,
responsibleUnit: item.pepdtos[i].breakdownList[j].responsibleUnit,
productLine: item.pepdtos[i].sarStandProjectLibraries.productLine, productLine: item.pepdtos[i].sarStandProjectLibraries.productLine,
projectNumber: item.pepdtos[i].sarStandProjectLibraries.projectNumber, projectNumber: item.pepdtos[i].sarStandProjectLibraries.projectNumber,
projectName: item.pepdtos[i].sarStandProjectLibraries.projectName, projectName: item.pepdtos[i].sarStandProjectLibraries.projectName,
@@ -398,6 +406,7 @@ export default {
zCCSSRQ: item.pepdtos[i].zCCSSRQ, zCCSSRQ: item.pepdtos[i].zCCSSRQ,
}); });
} }
console.log(item.pepdtos);
} }
}, },
saveUserInfo() { saveUserInfo() {
@@ -440,7 +449,6 @@ export default {
this.listForm.zrUserId = this.$store.getters.userInfo.userId; this.listForm.zrUserId = this.$store.getters.userInfo.userId;
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.approvalOpinion = ""; this.listForm.approvalOpinion = "";
this.listForm.standId = this.listForm.standId;
this.listForm.signFlag = ""; this.listForm.signFlag = "";
const json = JSON.stringify(this.listForm.breakdownList); const json = JSON.stringify(this.listForm.breakdownList);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
@@ -107,12 +107,18 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zCCSSRQ" prop="zCCSSRQ"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="productType" prop="productType"
@@ -494,6 +500,10 @@ export default {
this.listForm.standNumber = item.step3DTOS[0].standNumber this.listForm.standNumber = item.step3DTOS[0].standNumber
this.listForm.qualityEngineer = item.step3DTOS[0].qualityEngineer this.listForm.qualityEngineer = item.step3DTOS[0].qualityEngineer
this.listForm.certifiedEngineer = item.step3DTOS[0].certifiedEngineer this.listForm.certifiedEngineer = item.step3DTOS[0].certifiedEngineer
this.listForm.itemsName = item.step3DTOS[0].itemsName
this.listForm.itemNum = item.step3DTOS[0].itemNum
this.listForm.responsibleUnit = item.step3DTOS[0].responsibleUnit
this.listForm.responsibleEngineer = item.step3DTOS[0].responsibleEngineer
}) })
}, },
@@ -504,12 +514,8 @@ export default {
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
this.listForm.zrUserId = this.$store.getters.userInfo.userId ;
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.approvalOpinion = ""; this.listForm.approvalOpinion = "";
this.listForm.standId = this.listForm.standId;
this.listForm.signFlag = ""; this.listForm.signFlag = "";
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
@@ -107,12 +107,18 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zCCSSRQ" prop="zCCSSRQ"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="productType" prop="productType"
@@ -426,13 +432,19 @@ export default {
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
getFormFieldList (item) { getFormFieldList (item) {
console.log(item.dataList); console.log(item);
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)) this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum this.listForm.prcNum = this.prcNum
this.listForm.prcName = this.prcName this.listForm.prcName = this.prcName
this.listForm['id'] = item.id this.listForm['id'] = item.id
this.dataList = item.dataList this.dataList = item.dataList
this.listForm.standName = item.standName
this.listForm.standNumber = item.standNumber
this.listForm.qualityEngineer = item.qualityEngineer
this.listForm.certifiedEngineer = item.certifiedEngineer
this.listForm.responsibleUnit = item.responsibleUnit
this.listForm.responsibleEngineer = item.responsibleEngineer
}) })
}, },
@@ -446,7 +458,6 @@ export default {
handleSubmit() { handleSubmit() {
this.listForm.applyUpdUserId = this.dataList[0].distributePersonId this.listForm.applyUpdUserId = this.dataList[0].distributePersonId
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.standId = this.listForm.standId;
this.listForm.fenFlag = "1"; this.listForm.fenFlag = "1";
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
@@ -107,12 +107,18 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zCCSSRQ" prop="zCCSSRQ"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="productType" prop="productType"
@@ -107,12 +107,18 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xCXSSRQ ? $moment(scope.row.xCXSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zCCSSRQ" prop="zCCSSRQ"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zCCSSRQ ? $moment(scope.row.zCCSSRQ).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="productType" prop="productType"