评估流程

This commit is contained in:
宋伟佳
2021-07-08 21:08:08 +08:00
parent ea9a271c1a
commit 7c7ef0c56c
3 changed files with 62 additions and 95 deletions
@@ -70,15 +70,17 @@
label="产品线"> label="产品线">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="cpxzrr" prop="projectManager"
label="产品线责任人"> label="产品线责任人">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ffzrr" prop="ministerUser"
label="分发责任人"> label="分发责任人">
<template> <template>
<el-input <el-input
placeholder="请选择分发责任人" placeholder="请选择分发责任人"
v-model="ffzrr"
@click.native="choiceZRR('ministerUser', '请选择分发责任人', roleForm.ministerUser)"
> >
</el-input> </el-input>
</template> </template>
@@ -173,64 +175,36 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="detailedList" prop="code"
label="清单类别" fixed="left"
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>
<el-table-column <el-table-column
prop="detailedListName" prop="standName"
label="清单名称" label="标准名称"
align="center"
> >
<template slot-scope="scope">
<a class="table-jump" @click.stop="showTable(scope.row)">{{ scope.row.detailedListName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="detailedListState" prop="issueTime"
label="清单状态" label="发布日期">
align="center">
<template slot-scope="scope">
<span v-if="scope.row.detailedListState === '1'">未发布</span>
<span v-if="scope.row.detailedListState === '2'">已发布</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="detailedListVision" prop="xcxssrq"
label="清单版本" label="新车型实施日期">
align="center">
<template slot-scope="scope">
<span
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="applicationScope" show-overflow-tooltip
label="适用领域" prop="zccssrq"
align="center"> label="在产车实施日期">
<template slot-scope="scope">
<span
v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">{{ scope.row.applicationScope
}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="updateTime" show-overflow-tooltip
label="更新时间" prop="textStatus"
sortable label="文本状态">
align="center">
<template slot-scope="scope">
<div>
{{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
}}
</div>
</template>
</el-table-column>
<el-table-column
prop="updatePeople"
label="更新人"
align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@@ -355,6 +329,7 @@ export default {
}, },
data() { data() {
return { return {
ffzrr:'',
active: "1", active: "1",
standModel: false, standModel: false,
sarAccessListDatas: [], sarAccessListDatas: [],
@@ -416,13 +391,11 @@ export default {
standNumber: "", //标准编号 standNumber: "", //标准编号
standName: "",//标准名称 standName: "",//标准名称
dataList: [{ dataList: [{
code: "", //标准号 projectLine: '', //产品线
standName: "", //标准名称 projectManager:'',//产品线责任人
issueTime: "", //发布日期 ffzrr: '', //分发责任人
xcxssrq: "", //新车型实施日期 id: "",
zccssrq: "", //在产车实施日期 sarStandProjectLibraries: [],
textStatus: "", //文本状态
id: ""
}] }]
}, },
choiceForm: {}, //选择标准清单列表 choiceForm: {}, //选择标准清单列表
@@ -479,15 +452,8 @@ export default {
//确认添加事件 //确认添加事件
okStand() { okStand() {
if(this.standList.length >= 1){ if(this.standList.length >= 1){
let deposit = new Map(); this.dataList = this.standList
this.sarAccessListDatas.forEach(item => { this.listForm.dataList = this.standList
deposit.set(item.id, item);
});
let bringData = [];
for (let i = 0; i < this.standList.length; i++) {
bringData.push(deposit.get(this.standList[i]));
}
console.log(bringData);
this.standModel = false this.standModel = false
}else{ }else{
this.$message.warning('请选择一条数据进行添加') this.$message.warning('请选择一条数据进行添加')
@@ -526,11 +492,7 @@ export default {
json.prcCreateUserName = this.$store.getters.userInfo.account; json.prcCreateUserName = this.$store.getters.userInfo.account;
json.standName = this.listForm.listName; json.standName = this.listForm.listName;
json.standId = this.listForm.standId; json.standId = this.listForm.standId;
this.$refs["qdfbForm"].validate((valid) => { this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
if (valid) {
this.$refs["Form"].validate((valid) => {
if (valid) {
this.$http.get("lawss/activiti/startProcess", { type: "4" }, {
_this: this _this: this
}, res => { }, res => {
if (res.ok) { if (res.ok) {
@@ -548,14 +510,6 @@ export default {
}); });
} }
}); });
} else {
return this.$message.warning("请完善人员信息");
}
});
} else {
return this.$message.warning("请完善基础信息");
}
});
}, },
//选择拆分标准取消事件 //选择拆分标准取消事件
closeDrawer() { closeDrawer() {
@@ -564,13 +518,19 @@ export default {
//选择拆分标准确定事件 //选择拆分标准确定事件
OkDrawer() { OkDrawer() {
if(this.selectedList.length == 1){
this.listForm.standNumber = this.selectedList[0].standNumber
this.listForm.standName = this.selectedList[0].standName
this.ListModel = false
}else if(this.selectedList.length > 1){
this.$message.warning('您只能选择一条数据进行带入')
}else{
this.$message.warning('请选择一条数据带入')
}
}, },
//选择拆分标准选择框改变 //选择拆分标准选择框改变
selectListChange(data) { selectListChange(data) {
this.selectedList = []; this.selectedList = data;
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id);
}
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
@@ -581,10 +541,7 @@ export default {
}, },
//添加产品线select的改变 //添加产品线select的改变
selectThree(data) { selectThree(data) {
this.standList = []; this.standList = data;
for(let i=0;i<data.length; i++){
this.standList.push(data[i].id)
}
}, },
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = []; this.nodeList = [];
@@ -616,15 +573,27 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.productData = res.data this.productData = res.data
// this.totalNo = res.data
}, e => { }, e => {
}) })
}, },
//获取标准数据
getStandData() {
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage','',{
_this: this
}, res => {
this. sarAccessListDatas = res.data.list
this.total = res.pageCount
}, e => {
})
},
}, },
computed: {}, computed: {},
mounted() { mounted() {
this.getTree(); this.getTree();
this.getProductData() this.getProductData()
this.getStandData()
} }
}; };
@@ -1120,12 +1120,12 @@ export default {
} }
}, },
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (data) { sarAccessInfoSelect (selectData) {
let sarAccessInfoListArry = []; this.sarAccessInfoListArry = selectData
for(let i = 0; i< data.length; i++){ let sarAccessInfoListArryId = []
this.sarAccessInfoListArry.push(data[i].id) for(let i=0; i<this.selectData.length; i++){
} }
console.log(this.sarAccessInfoListArry);
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
backCancal () { backCancal () {
@@ -1196,8 +1196,6 @@ export default {
_this: this _this: this
}, res =>{ }, res =>{
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
this.$nextTick(() => {
})
}, e => { }, e => {
}) })
+2 -2
View File
@@ -6,8 +6,8 @@
// 服务器地址 // 服务器地址
// const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
// const devInterfacePORT = '10005' // const devInterfacePORT = '10005'
const devIp = '192.168.10.121' const devIp = '192.168.10.248'
const devInterfacePORT = '9988' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload' const simpleFilePath = 'att/attFile/upload'