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

This commit is contained in:
super_liu
2022-03-08 16:57:10 +08:00
13 changed files with 183 additions and 158 deletions
@@ -1674,7 +1674,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if(row.taskInfo === '企标制修订计划整改') { }else if(row.taskInfo === '重新起草') {
this.$router.push({ this.$router.push({
name: 'qbzxdjhgkStep1', name: 'qbzxdjhgkStep1',
query: { query: {
@@ -1456,6 +1456,7 @@ export default {
callback() callback()
} }
return { return {
gdType: '', //归档位置的赋值
standTypeModel: 'INLAND', standTypeModel: 'INLAND',
submitType: '', submitType: '',
nodeList3: [], nodeList3: [],
@@ -2223,6 +2224,7 @@ export default {
switch (status) { switch (status) {
// 新增 // 新增
case 1: case 1:
this.gdType = '新增'
this.selectedList = [] this.selectedList = []
this.standardCheckedList = [] this.standardCheckedList = []
this.standardDrawer = false this.standardDrawer = false
@@ -2231,6 +2233,7 @@ export default {
break break
// 带入(确认) // 带入(确认)
case 2: case 2:
this.gdType = '带入'
if (this.standardCheckedList.length === 1) { if (this.standardCheckedList.length === 1) {
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, { this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this _this: this
@@ -2368,7 +2371,7 @@ export default {
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
this.treeListOptions = res.data this.treeListOptions = res.data
if(bringData.standNumber){ if(this.gdType === '带入'){
this.$http.get('sarStandardsInfo/sar-standards-info/getStandMenuId', { this.$http.get('sarStandardsInfo/sar-standards-info/getStandMenuId', {
standId: bringData.id, standId: bringData.id,
}, {}, reson => { }, {}, reson => {
@@ -2388,6 +2391,20 @@ export default {
this.form.treeListId = treeListId this.form.treeListId = treeListId
} }
}) })
}else{
let treeList = ''
let treeListId = ''
reson.data.forEach(item=>{
this.treeCheckedKeys.push(item.menuId)
if (treeList.length > 0) {
treeList += ','
treeListId += ','
}
treeList += item.menuName
treeListId += item.menuId
})
this.form.treeListName = treeList
this.form.treeListId = treeListId
} }
} }
}) })
@@ -636,33 +636,16 @@
</el-form> </el-form>
</div> </div>
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion>
<el-collapse-item title="审批意见" name="1"> <el-collapse-item title="审批意见">
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
<el-form <el-input
ref="formTongGuo" type="textarea"
:model="formTongGuo" :rows="3"
:rules="rules"> resize="none"
<!-- <el-form-item--> placeholder="请输入意见"
<!-- prop="approvalOpinion"--> v-model="commentText">
<!-- >--> </el-input>
<!-- <el-select @change="getRule" v-model="formTongGuo.approvalOpinion" placeholder="请审批" style="margin-bottom: 20px;">-->
<!-- <el-option label="驳回" value="1"></el-option>-->
<!-- <el-option label="通过" value="0"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item
prop="commentText"
>
<el-input
type="textarea"
:rows="3"
resize="none"
placeholder="请输入意见"
v-model="formTongGuo.commentText">
</el-input>
</el-form-item>
</el-form>
</div> </div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
@@ -805,11 +788,11 @@
</template> </template>
<script> <script>
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from "../../components/ProcessTitle";
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process' import { changeAssigneeNew, inboundLiaisonDetail, processCreateStand } from "api/process";
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from "@/components/treeSelect/treeSelect.vue";
import CusTomDataPickerGroup import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup"; from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
@@ -834,22 +817,23 @@ export default {
drawerModal: false, drawerModal: false,
drawerTitle: '', drawerTitle: '',
nodeList: [], nodeList: [],
selectPeople: '', selectPeople: "",
xgdFileId: '', xgdFileId: "",
fbgbjbdFileId: '', fbgbjbdFileId: "",
bpgFileId: '', bpgFileId: "",
ssgFileId: '', ssgFileId: "",
zqyjgFileId: '', zqyjgFileId: "",
jdwjFileId: '', jdwjFileId: "",
kwjFileId: '', kwjFileId: "",
glwjFileId: '', glwjFileId: "",
caFileId: '', caFileId: "",
zbjbdFileId: '', commentText: "",
zbjbdFileId: "",
rules: { rules: {
commentText: [{required: true, message: '请输入意见', trigger: 'blur'}], commentText: [{ required: true, message: "请输入意见", trigger: "blur" }],
approvalOpinion: [{required: true, message: '请选择审批意见', trigger: 'change'}] approvalOpinion: [{ required: true, message: "请选择审批意见", trigger: "change" }]
}, },
activeName: '1', activeName: "1",
// 当前流程类型(1待办/2已办) // 当前流程类型(1待办/2已办)
processType: 1, processType: 1,
detailData: [], detailData: [],
@@ -1224,76 +1208,77 @@ export default {
}, },
handleSave() { handleSave() {
}, },
//流程驳回按钮
handle1() { handle1() {
this.formTongGuo.approvalOpinion = 1 if (this.commentText) {
this.handleSubmit() this.formTongGuo.approvalOpinion = 1;
this.handleSubmit();
} else {
this.$message.warning("请填写审批意见");
}
}, },
//流程提交按钮
handle2() { handle2() {
this.formTongGuo.approvalOpinion = 0 this.formTongGuo.approvalOpinion = 0;
this.handleSubmit() this.handleSubmit();
}, },
handleSubmit() { handleSubmit() {
this.getRule()
const val = this.form.country; const val = this.form.country;
if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val !== "" && val !== null && typeof (val) !== "undefined") {
if (val instanceof Array) { if (val instanceof Array) {
this.form.country = val.join(","); this.form.country = val.join(",");
} else { } else {
this.form.country = val this.form.country = val;
} }
} else if (val === '') { } else if (val === "") {
this.form.country = [] this.form.country = [];
} }
this.$refs['formTongGuo'].validate((valid) => { this.isSubmit = true;
if (valid) { this.form.commentText = this.commentText;
this.isSubmit = true this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
this.form.commentText = this.formTongGuo.commentText console.log(this.form);
this.form.approvalOpinion = this.formTongGuo.approvalOpinion if (this.form.syrz.length === 0) {
console.log(this.form) this.form.syrz = "";
if (this.form.syrz.length === 0) { }
this.form.syrz = '' if (this.form.nylx.length === 0) {
this.form.nylx = "";
}
if (this.form.zrbm.length === 0) {
this.form.zrbm = "";
}
if (this.form.qcdw.length === 0) {
this.form.qcdw = "";
}
if (this.form.cllx.length === 0) {
this.form.cllx = "";
}
if (this.form.sycpx.length === 0) {
this.form.sycpx = "";
}
if (this.form.zrgcs.length === 0) {
this.form.zrgcs = "";
}
this.form.menuIds = this.form.treeListId;
const json = JSON.stringify(this.form);
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
if (this.formTongGuo.approvalOpinion == "1") {
this.$message.warning("驳回成功");
this.isSubmit = false;
this.formTongGuo.commentText = "";
// 流程提交之后,应该流转至待办任务页面
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
} else {
this.processCreateStand(json);
} }
if (this.form.nylx.length === 0) {
this.form.nylx = ''
}
if (this.form.zrbm.length === 0) {
this.form.zrbm = ''
}
if (this.form.qcdw.length === 0) {
this.form.qcdw = ''
}
if (this.form.cllx.length === 0) {
this.form.cllx = ''
}
if (this.form.sycpx.length === 0) {
this.form.sycpx = ''
}
if (this.form.zrgcs.length === 0) {
this.form.zrgcs = ''
}
this.form.menuIds = this.form.treeListId
const json = JSON.stringify(this.form);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
if (this.formTongGuo.approvalOpinion == '1') {
this.$message.warning("驳回成功")
this.isSubmit = false
this.formTongGuo.commentText = ''
// 流程提交之后,应该流转至待办任务页面
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else {
this.processCreateStand(json)
}
}
})
} }
}) });
}, },
/** /**
@@ -67,6 +67,7 @@
<el-tooltip v-if="form.standName" effect="dark" :content=form.standName placement="top-start"> <el-tooltip v-if="form.standName" effect="dark" :content=form.standName placement="top-start">
<el-input <el-input
v-model="form.standName" v-model="form.standName"
disabled
placeholder="请输入标准中文名称" placeholder="请输入标准中文名称"
clearable clearable
></el-input> ></el-input>
@@ -510,6 +511,7 @@
<el-tooltip v-if="form.dtbjh" effect="dark" :content=form.dtbjh placement="top-start"> <el-tooltip v-if="form.dtbjh" effect="dark" :content=form.dtbjh placement="top-start">
<el-input <el-input
v-model="form.dtbjh" v-model="form.dtbjh"
disabled
placeholder="请输入代替标准号" placeholder="请输入代替标准号"
clearable clearable
></el-input> ></el-input>
@@ -517,6 +519,7 @@
<el-input <el-input
v-else v-else
v-model="form.dtbjh" v-model="form.dtbjh"
disabled
placeholder="请输入代替标准号" placeholder="请输入代替标准号"
clearable clearable
></el-input> ></el-input>
@@ -547,6 +550,7 @@
<el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled"> <el-form-item label="部分代替标准号" prop="bfbdtbzh" class="add-form-item form-item-disabled">
<el-tooltip v-if="form.bfbdtbzh" effect="dark" :content=form.bfbdtbzh placement="top-start"> <el-tooltip v-if="form.bfbdtbzh" effect="dark" :content=form.bfbdtbzh placement="top-start">
<el-input <el-input
disabled
v-model="form.bfbdtbzh" v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号" placeholder="请输入部分代替标准号"
clearable clearable
@@ -554,6 +558,7 @@
</el-tooltip> </el-tooltip>
<el-input <el-input
v-else v-else
disabled
v-model="form.bfbdtbzh" v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号" placeholder="请输入部分代替标准号"
clearable clearable
@@ -563,6 +568,7 @@
<el-tooltip v-if="form.cbbh" effect="dark" :content=form.cbbh placement="top-start"> <el-tooltip v-if="form.cbbh" effect="dark" :content=form.cbbh placement="top-start">
<el-input <el-input
v-model="form.cbbh" v-model="form.cbbh"
disabled
placeholder="请输入采标编号" placeholder="请输入采标编号"
clearable clearable
></el-input> ></el-input>
@@ -570,6 +576,7 @@
<el-input <el-input
v-else v-else
v-model="form.cbbh" v-model="form.cbbh"
disabled
placeholder="请输入采标编号" placeholder="请输入采标编号"
clearable clearable
></el-input> ></el-input>
@@ -578,12 +585,14 @@
<el-tooltip v-if="form.yybj" effect="dark" :content=form.yybj placement="top-start"> <el-tooltip v-if="form.yybj" effect="dark" :content=form.yybj placement="top-start">
<el-input <el-input
v-model="form.yybj" v-model="form.yybj"
disabled
placeholder="请输入引用标准" placeholder="请输入引用标准"
clearable clearable
></el-input> ></el-input>
</el-tooltip> </el-tooltip>
<el-input <el-input
v-else v-else
disabled
v-model="form.yybj" v-model="form.yybj"
placeholder="请输入引用标准" placeholder="请输入引用标准"
clearable clearable
@@ -1186,10 +1195,10 @@ export default {
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
this.form.submitType = this.submitType
this.form.commentText = this.commentText this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
json.submitType = this.submitType
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId : this.userId, userId : this.userId,
@@ -10,7 +10,7 @@
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div> <div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
<!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>--> <!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>-->
</div> </div>
<div class="content" v-if="active === '1'"> <div class="content" v-show="active === '1'">
<div style="flex: auto; overflow: auto;"> <div style="flex: auto; overflow: auto;">
<el-form <el-form
ref="form" ref="form"
@@ -875,10 +875,11 @@
:lazy=true :lazy=true
:multiple=true :multiple=true
:check-strictly=true :check-strictly=true
:show-checkBox=true
:modalShowFlag="modalShowFlag4" :modalShowFlag="modalShowFlag4"
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="'TRUCK'"
:show-checkBox="showCheckBox"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel"></tree-select-module> :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel"></tree-select-module>
@@ -895,6 +896,7 @@
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="'CAR'" :type="'CAR'"
:show-checkBox="showCheckBox"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel2" @popoverHideCancel="popoverHideModelCancel2"></tree-select-module> :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel2" @popoverHideCancel="popoverHideModelCancel2"></tree-select-module>
@@ -1258,7 +1260,7 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<div class="content" v-if="active === '2'"> <div class="content" v-show="active === '2'">
<div class="block" style="padding-top: 20px;"> <div class="block" style="padding-top: 20px;">
<el-timeline> <el-timeline>
<el-timeline-item timestamp="发起流程" placement="top" :color="user1 ? '#66b1ff' : ''"> <el-timeline-item timestamp="发起流程" placement="top" :color="user1 ? '#66b1ff' : ''">
@@ -1305,7 +1307,7 @@
</el-timeline> </el-timeline>
</div> </div>
</div> </div>
<div class="content" v-if="active === '3'"> <div class="content" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list">
<el-table <el-table
height="100%" height="100%"
@@ -1596,6 +1598,7 @@ export default {
commentText: '', // 意见 commentText: '', // 意见
title: '', // 新增编辑抽屉标题 title: '', // 新增编辑抽屉标题
ListModel: false, // 新增编辑抽屉开关 ListModel: false, // 新增编辑抽屉开关
showCheckBox: true, // 树形控件是否展示多选框
active: '1', // 默认显示 active: '1', // 默认显示
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
@@ -1988,11 +1991,19 @@ export default {
this.modalShowFlag4 = true this.modalShowFlag4 = true
this.url = '' this.url = ''
this.urlChild = '' this.urlChild = ''
this.url = "sarModelTree/list" this.url = "sarModelTree/listByType"
this.urlChild = "sarModelTree/childByList" this.urlChild = "sarModelTree/childByList"
this.key3++ this.key3++
}, },
choiceZRR5(type, title, id) {
this.drawerTitle = title
this.modalShowFlag5 = true
this.url = ''
this.urlChild = ''
this.url = "sarModelTree/listByType"
this.urlChild = "sarModelTree/childByList"
this.key4++
},
choiceTree(type, title, id) { choiceTree(type, title, id) {
this.drawerTitle = title this.drawerTitle = title
this.getListTree(this.form) this.getListTree(this.form)
@@ -2801,10 +2812,10 @@ export default {
if (res.ok) { if (res.ok) {
this.fileInfoHandle(); this.fileInfoHandle();
this.isSubmit = true this.isSubmit = true
this.form.submitType = this.submitType
this.form.commentText = this.commentText this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
json.submitType = this.submitType
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -2829,10 +2840,10 @@ export default {
} else { } else {
this.fileInfoHandle(); this.fileInfoHandle();
this.isSubmit = true this.isSubmit = true
this.form.submitType = this.submitType
this.form.commentText = this.commentText this.form.commentText = this.commentText
this.form.approvalOpinion = this.approvalOpinion this.form.approvalOpinion = this.approvalOpinion
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
json.submitType = this.submitType
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -52,6 +52,7 @@
<el-tooltip v-if="form.standName" effect="dark" :content=form.standName placement="top-start"> <el-tooltip v-if="form.standName" effect="dark" :content=form.standName placement="top-start">
<el-input <el-input
v-model="form.standName" v-model="form.standName"
disabled
placeholder="请输入标准中文名称" placeholder="请输入标准中文名称"
clearable clearable
></el-input> ></el-input>
@@ -468,12 +469,14 @@
<el-tooltip v-if="form.dtbjh" effect="dark" :content=form.dtbjh placement="top-start"> <el-tooltip v-if="form.dtbjh" effect="dark" :content=form.dtbjh placement="top-start">
<el-input <el-input
v-model="form.dtbjh" v-model="form.dtbjh"
disabled
placeholder="请输入代替标准号" placeholder="请输入代替标准号"
clearable clearable
></el-input> ></el-input>
</el-tooltip> </el-tooltip>
<el-input <el-input
v-else v-else
disabled
v-model="form.dtbjh" v-model="form.dtbjh"
placeholder="请输入代替标准号" placeholder="请输入代替标准号"
clearable clearable
@@ -507,12 +510,14 @@
<el-tooltip v-if="form.bfbdtbzh" effect="dark" :content=form.bfbdtbzh placement="top-start"> <el-tooltip v-if="form.bfbdtbzh" effect="dark" :content=form.bfbdtbzh placement="top-start">
<el-input <el-input
v-model="form.bfbdtbzh" v-model="form.bfbdtbzh"
disabled
placeholder="请输入部分代替标准号" placeholder="请输入部分代替标准号"
clearable clearable
></el-input> ></el-input>
</el-tooltip> </el-tooltip>
<el-input <el-input
v-else v-else
disabled
v-model="form.bfbdtbzh" v-model="form.bfbdtbzh"
placeholder="请输入部分代替标准号" placeholder="请输入部分代替标准号"
clearable clearable
@@ -522,6 +527,7 @@
<el-tooltip v-if="form.cbbh" effect="dark" :content=form.cbbh placement="top-start"> <el-tooltip v-if="form.cbbh" effect="dark" :content=form.cbbh placement="top-start">
<el-input <el-input
v-model="form.cbbh" v-model="form.cbbh"
disabled
placeholder="请输入采标编号" placeholder="请输入采标编号"
clearable clearable
></el-input> ></el-input>
@@ -529,6 +535,7 @@
<el-input <el-input
v-else v-else
v-model="form.cbbh" v-model="form.cbbh"
disabled
placeholder="请输入采标编号" placeholder="请输入采标编号"
clearable clearable
></el-input> ></el-input>
@@ -537,6 +544,7 @@
<el-tooltip v-if="form.yybj" effect="dark" :content=form.yybj placement="top-start"> <el-tooltip v-if="form.yybj" effect="dark" :content=form.yybj placement="top-start">
<el-input <el-input
v-model="form.yybj" v-model="form.yybj"
disabled
placeholder="请输入引用标准" placeholder="请输入引用标准"
clearable clearable
></el-input> ></el-input>
@@ -544,6 +552,7 @@
<el-input <el-input
v-else v-else
v-model="form.yybj" v-model="form.yybj"
disabled
placeholder="请输入引用标准" placeholder="请输入引用标准"
clearable clearable
></el-input> ></el-input>
@@ -786,7 +786,7 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.workData = res.data.records; this.workData = res.data.records;
this.total = res.data.total; this.totalNo = res.data.total;
}, e => { }, e => {
}); });
}, },
@@ -275,6 +275,7 @@ export default {
}, },
data() { data() {
return { return {
submitFlag: '',
toggleType: '5', toggleType: '5',
comFlag: 1, comFlag: 1,
active: "1", active: "1",
@@ -338,7 +339,8 @@ export default {
if(this.taskId){ if(this.taskId){
this.approvalFlag = true this.approvalFlag = true
this.processTable() this.processTable()
this.getData(); //被驳回时调用
this.getHistoryData()
} }
}, },
methods: { methods: {
@@ -355,16 +357,6 @@ export default {
}, e => { }, e => {
}) })
}, },
getDatas(){
queryTaskFirst({
bpnId: this.$route.query.bpnId
}).then(res => {
let mes = JSON.parse(res.mes)
this.roleForm = mes.roleForm
this.qbfsForm = mes.qbfsForm
this.commentText = mes.commentText
});
},
getData() { getData() {
this.formLoading = true this.formLoading = true
this.showFlag = false this.showFlag = false
@@ -375,11 +367,29 @@ export default {
this.getFormFieldList(mes); this.getFormFieldList(mes);
}); });
}, },
getHistoryData() {
this.submitFlag = '重新起草'
this.showFlag = false
this.formLoading = true
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
}).then(res => {
if (res) {
const processForm = JSON.parse(res.mesg)
this.getFormFieldList(processForm)
}
}).catch(e => {
})
})
},
/** /**
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
getFormFieldList(item) { getFormFieldList(item) {
let type = item.qbfsForm.type console.log(item);
let type = item.type || item.qbfsForm.type
this.$nextTick(() => { this.$nextTick(() => {
switch (type){ switch (type){
case '1': case '1':
@@ -398,18 +408,18 @@ export default {
this.comName = "establish" this.comName = "establish"
break break
} }
this.qbfsForm = item.qbfsForm; this.qbfsForm = item.qbfsForm || item;
this.formLoading = false; this.formLoading = false;
this.roleForm.dockUser = item.roleForm.dockUser; this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
this.roleForm.dockUserName = item.roleForm.dockUserName; this.roleForm.dockUserName = item.dockUserName || item.roleForm.dockUserName;
this.roleForm.countersigner = item.roleForm.countersigner; this.roleForm.countersigner = item.countersigner || item.roleForm.countersigner;
this.roleForm.countersignerName = item.roleForm.countersignerName; this.roleForm.countersignerName = item.countersignerName || item.roleForm.countersignerName;
this.roleForm.approver = item.roleForm.approver; this.roleForm.approver = item.approver ||item.roleForm.approver;
this.roleForm.approverName = item.roleForm.approverName; this.roleForm.approverName = item.approverName || item.roleForm.approverName;
this.roleForm.engineer = item.roleForm.engineer; this.roleForm.engineer = item.engineer || item.roleForm.engineer;
this.roleForm.engineerName = item.roleForm.engineerName; this.roleForm.engineerName = item.engineerName || item.roleForm.engineerName;
this.roleForm.examine = item.roleForm.examine; this.roleForm.examine = item.examine || item.roleForm.examine;
this.roleForm.examineName = item.roleForm.examineName; this.roleForm.examineName = item.examineName || item.roleForm.examineName;
}); });
}, },
handleTabs(name) { handleTabs(name) {
@@ -531,6 +531,7 @@ export default {
this.$http.postData('importWkExcel/importData', _formData,{ this.$http.postData('importWkExcel/importData', _formData,{
_this: this _this: this
}, res => { }, res => {
console.log(res);
if(res.ok){ if(res.ok){
if(res.data.length){ if(res.data.length){
this.qblx_pageData.qblxData = res.data this.qblx_pageData.qblxData = res.data
@@ -539,7 +540,7 @@ export default {
this.$message.warning('请勿上传为空的文件') this.$message.warning('请勿上传为空的文件')
} }
}else{ }else{
this.$confirm(res.message, "提示", { this.$confirm(res.data, "提示", {
confirmButtonText: "确认", confirmButtonText: "确认",
confirmButtonClass: "common-button-primary", confirmButtonClass: "common-button-primary",
cancelButtonText: "取消", cancelButtonText: "取消",
@@ -87,6 +87,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
width="180"
label="标准号" label="标准号"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -40,7 +40,7 @@
@selection-change="selectStandChange"> @selection-change="selectStandChange">
<el-table-column align="center" type="selection" width="55"> <el-table-column align="center" type="selection" width="55">
</el-table-column> </el-table-column>
<el-table-column label="标准号" prop="standNumber"> <el-table-column label="标准号" width="180" prop="standNumber">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" <a v-if="scope.row.standYear" class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber
@@ -2184,7 +2184,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if(row.taskInfo === '企标制修订计划整改') { }else if(row.taskInfo === '重新起草') {
this.$router.push({ this.$router.push({
name: 'qbzxdjhgkStep1', name: 'qbzxdjhgkStep1',
query:{ query:{
@@ -119,18 +119,6 @@
align="center" align="center"
label="责任工程师"> label="责任工程师">
</el-table-column> </el-table-column>
<el-table-column
prop="authEngineer"
width="150"
align="center"
label="认证工程师">
</el-table-column>
<el-table-column
prop="qaEngineer"
width="150"
align="center"
label="质量工程师">
</el-table-column>
<el-table-column <el-table-column
prop="actualCloseTime" prop="actualCloseTime"
width="130" width="130"
@@ -194,12 +182,6 @@
<el-form-item class="add-form-item" label="责任工程师:"> <el-form-item class="add-form-item" label="责任工程师:">
<div class="seeItem">{{historySeeForm.dutyEngineer}}</div> <div class="seeItem">{{historySeeForm.dutyEngineer}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="认证工程师:">
<div class="seeItem">{{historySeeForm.authEngineer}}</div>
</el-form-item>
<el-form-item class="add-form-item" label="质量工程师:">
<div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item>
<el-form-item class="add-form-item" label="要求关闭时间:"> <el-form-item class="add-form-item" label="要求关闭时间:">
<div class="seeItem">{{historySeeForm.actualCloseTime ? historySeeForm.actualCloseTime.substring(0, 11) : '-'}}</div> <div class="seeItem">{{historySeeForm.actualCloseTime ? historySeeForm.actualCloseTime.substring(0, 11) : '-'}}</div>
</el-form-item> </el-form-item>