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

This commit is contained in:
yanyizhou
2021-08-04 14:51:43 +08:00
8 changed files with 177 additions and 105 deletions
@@ -14,6 +14,7 @@
<el-form <el-form
ref="bzzqyjForm" ref="bzzqyjForm"
:model="form" :model="form"
:rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="210px"
> >
@@ -499,7 +500,7 @@
_this: this _this: this
}, res => { }, res => {
this.standInfoList = res.data.list this.standInfoList = res.data.list
this.total = res.data.total this.total = res.data.count
this.spinShow = false this.spinShow = false
}, e => { }, e => {
}) })
@@ -198,6 +198,7 @@
</el-table> </el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-save
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@@ -220,7 +221,7 @@
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} from 'api/process' import {inboundLiaisonDetail, processCreateStand, saveTaskForPub} from 'api/process'
export default { export default {
name: "bzjdStep2", name: "bzjdStep2",
@@ -306,7 +307,26 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('pId', this.pId)
_formData.append('json', JSON.stringify({
form: this.form,
roleForm: this.roleForm,
commentText: this.commentText,
itemList: this.itemList,
sarType: this.sarType
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
this.saveLoading = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => { this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -530,7 +530,12 @@
this.form.itemsName1 = data.itemsName1 this.form.itemsName1 = data.itemsName1
this.sarType = data.standInData this.sarType = data.standInData
this.json = data this.json = data
const itemList = JSON.parse(data.itemList) let itemList
if (typeof (data.itemList) == 'string') {
itemList = JSON.parse(data.itemList)
} else {
itemList = data.itemList
}
itemList.forEach(item => { itemList.forEach(item => {
item.unitDeptName = this.$store.getters.userInfo.orgName item.unitDeptName = this.$store.getters.userInfo.orgName
item.onlineData = '' item.onlineData = ''
@@ -542,6 +547,7 @@
item.technicalRequir = '' item.technicalRequir = ''
item.itemsTitle = item.itermsConditions item.itemsTitle = item.itermsConditions
}) })
console.log(2);
this.itemList = itemList this.itemList = itemList
this.loading = false this.loading = false
}).catch(e => { }).catch(e => {
@@ -976,38 +976,51 @@
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button> <el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-drawer <Role-tree
:title="drawerTitle" is-title="选择责任部门对接人"
:visible.sync="modalShowFlag" :is-visible.sync="modalShowRoleFlag"
:wrapperClosable="false" @checkedRole="checkedRole2"
size="800px"> :nodeList="nodeList2"
<el-input ></Role-tree>
style="width:70%;padding: 10px" <Role-tree
placeholder="请输入姓名" check-box
v-model="filterText"> :is-title="drawerTitle"
</el-input> :is-visible.sync="modalShowFlag"
<el-tree @checkedRole="checkedRole"
:filter-node-method="filterNode" :nodeList="nodeList"
v-if="modalShowFlag" ></Role-tree>
node-key="id" <!-- <el-drawer-->
style="height: 100%; overflow: auto;" <!-- :title="drawerTitle"-->
class="filter-tree" <!-- :visible.sync="modalShowFlag"-->
:data="treeData" <!-- :wrapperClosable="false"-->
:props="defaultUserProps" <!-- size="800px">-->
:default-checked-keys="nodeList" <!-- <el-input-->
highlight-current <!-- style="width:70%;padding: 10px"-->
check-strictly <!-- placeholder="请输入姓名"-->
@check="drawerCheck" <!-- v-model="filterText">-->
default-expand-all <!-- </el-input>-->
:expand-on-click-node="false" <!-- <el-tree-->
show-checkbox <!-- :filter-node-method="filterNode"-->
ref="tree"> <!-- v-if="modalShowFlag"-->
</el-tree> <!-- node-key="id"-->
<div id="roleFormButton" class="demo-drawer-footer"> <!-- style="height: 100%; overflow: auto;"-->
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">确定</el-button> <!-- class="filter-tree"-->
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelUserInfo">取消</el-button> <!-- :data="treeData"-->
</div> <!-- :props="defaultUserProps"-->
</el-drawer> <!-- :default-checked-keys="nodeList"-->
<!-- highlight-current-->
<!-- check-strictly-->
<!-- @check="drawerCheck"-->
<!-- default-expand-all-->
<!-- :expand-on-click-node="false"-->
<!-- show-checkbox-->
<!-- ref="tree">-->
<!-- </el-tree>-->
<!-- <div id="roleFormButton" class="demo-drawer-footer">-->
<!-- <el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">确定</el-button>-->
<!-- <el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelUserInfo">取消</el-button>-->
<!-- </div>-->
<!-- </el-drawer>-->
<!-- 选择标准的弹框 --> <!-- 选择标准的弹框 -->
<el-drawer <el-drawer
ref="standard" ref="standard"
@@ -1256,6 +1269,7 @@
label: 'model' label: 'model'
}, },
nodeList: [], nodeList: [],
nodeList2: [],
type: '', type: '',
defaultUserProps: { defaultUserProps: {
children: 'children', children: 'children',
@@ -1267,6 +1281,7 @@
key3:4, key3:4,
treeData: [], // 人员数据 treeData: [], // 人员数据
modalShowFlag: false, // drawer开关 modalShowFlag: false, // drawer开关
modalShowRoleFlag: false, // drawer开关
modalShowFlag1: false, // drawer开关 modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关 modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关 modalShowFlag3: false, // drawer开关
@@ -1491,6 +1506,39 @@
}, },
}, },
methods: { methods: {
choiceZRRS () {
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
}
this.modalshowflag2 = true
},
checkedRole2 (data) {
var idList = ''
var nameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.zrUserIds = idList
this.zrUserIds = nameList
},
checkedRole (data) {
if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = data[0].id
this.roleForm.jlUserName = data[0].name
}else if(this.userType === 'zrUserId'){
this.roleForm.zrUserId=data[0].id;
this.roleForm.zrUserName=data[0].name;
}
},
// z责任人会签姓名搜索 // z责任人会签姓名搜索
filterNode(value, data) { filterNode(value, data) {
if (!value) return true; if (!value) return true;
@@ -1792,6 +1840,7 @@
}, },
getTree () { getTree () {
this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> {
this.treeData = res.data this.treeData = res.data
}) })
}, },
@@ -232,7 +232,7 @@
<div class="seeItem">{{historySeeForm.qaEngineer}}</div> <div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="要求关闭时间:"> <el-form-item class="add-form-item" label="要求关闭时间:">
<div class="seeItem">{{historySeeForm.actualCloseTime}}</div> <div class="seeItem">{{historySeeForm.actualCloseTime ? historySeeForm.actualCloseTime.substring(0, 11) : '-'}}</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -5,7 +5,7 @@
<div class="content-top"> <div class="content-top">
<el-form :modal="nonConformitySearch" inline class="label-input-form"> <el-form :modal="nonConformitySearch" inline class="label-input-form">
<el-form-item label="标准号/标准名称" class="search-item"> <el-form-item label="标准号/标准名称" class="search-item">
<el-input v-model="nonConformitySearch.standId" <el-input v-model="nonConformitySearch.standSerialNumber"
placeholder="请输入" placeholder="请输入"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
@@ -269,7 +269,7 @@
<div class="seeItem">{{historySeeForm.qaEngineer}}</div> <div class="seeItem">{{historySeeForm.qaEngineer}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="计划关闭时间:"> <el-form-item class="add-form-item" label="计划关闭时间:">
<div class="seeItem">{{historySeeForm.planCloseTime}}</div> <div class="seeItem">{{historySeeForm.planCloseTime ? historySeeForm.planCloseTime.substring(0, 11) : '-'}}</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -384,7 +384,7 @@
</div> </div>
<div class="typeitems"> <div class="typeitems">
<div class="itemsLeft">验证时间:</div> <div class="itemsLeft">验证时间:</div>
<div class="itemsRight">{{(item.validTime ? item.validTime.substring(0, 11): '')}}</div> <div class="itemsRight">{{(item.validTime ? item.validTime.substring(0, 11) : '')}}</div>
</div> </div>
<div class="typeitems"> <div class="typeitems">
<div class="itemsLeft">验证结果:</div> <div class="itemsLeft">验证结果:</div>
@@ -430,6 +430,7 @@ export default {
pageNo: 1, pageNo: 1,
nonConformitySearch: { nonConformitySearch: {
standId: '', // 标准号/名称 standId: '', // 标准号/名称
standSerialNumber:'',
productName: '', // 项目名称 productName: '', // 项目名称
responsibleUnit: '' // 责任部门 responsibleUnit: '' // 责任部门
}, },
@@ -591,16 +592,18 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
const arr = [] const arr = []
let questionType = [] let questionType = []
questionType = this.historySeeForm.quesType.split(',') if (this.historySeeForm.quesType) {
questionType.map((item) => { questionType = this.historySeeForm.quesType.split(',')
this.optionList.map((opr) => { questionType.map((item) => {
if (item === opr.value) { this.optionList.map((opr) => {
item = opr.label if (item === opr.value) {
arr.push(item) item = opr.label
} arr.push(item)
}
})
}) })
}) this.historySeeForm.quesType = arr.toString()
this.historySeeForm.quesType = arr.toString() }
}) })
}, },
//点击编辑按钮事件 //点击编辑按钮事件
@@ -32,54 +32,52 @@
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')">添加</el-button> <el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')">添加</el-button>
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button>
</div> </div>
<div class="container" style="position:relative;"> <div class="container">
<div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;"> <el-table
<el-table :data="standinfoList"
:data="standinfoList" height="100%"
height="100%" border
border style="width: 100%"
style="width: 100%" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
prop="partCode" prop="partCode"
label="章节编号" label="章节编号"
align="center" align="center"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="content" prop="content"
align="center" align="center"
label="修改意见内容(包括理由或依据)" label="修改意见内容(包括理由或依据)"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="deptName" prop="deptName"
align="center" align="center"
label="提出部门" label="提出部门"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="userName" prop="userName"
align="center" align="center"
label="提出人" label="提出人"
> >
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right" v-if="ideaKey"> <el-table-column label="操作" align="center" width="50" fixed="right" v-if="ideaKey">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i v-if="scope.row.userId === $store.getters.userInfo.userId" class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-if="scope.row.userId === $store.getters.userInfo.userId" :command="[scope.row, '编辑']">编辑</el-dropdown-item> <el-dropdown-item v-if="scope.row.userId === $store.getters.userInfo.userId" :command="[scope.row, '编辑']">编辑</el-dropdown-item>
<el-dropdown-item :command="[scope.row, '删除']">删除</el-dropdown-item> <el-dropdown-item v-if="scope.row.userId === $store.getters.userInfo.userId" :command="[scope.row, '删除']">删除</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
</div> </div>
<pagination <pagination
style="position: static;width: 100%;" style="position: static;width: 100%;"
@@ -174,15 +172,9 @@
_this: this _this: this
}, res => { }, res => {
this.standinfoList = res.data.records this.standinfoList = res.data.records
console.log(this.standinfoList);
this.total = res.data.total this.total = res.data.total
this.spinShow = false this.spinShow = false
res.data.records.forEach(item => {
if (item.ideaKey == 1) {
this.ideaKey = false
} else {
this.ideaKey = true
}
})
}, e => { }, e => {
}) })
}, },
@@ -388,6 +380,7 @@
display: flex; display: flex;
margin:10px 0; margin:10px 0;
flex-direction: column; flex-direction: column;
padding: 0;
.el-tabs{ .el-tabs{
height: 100%; height: 100%;
display: flex; display: flex;
+2 -2
View File
@@ -6,7 +6,7 @@
// 服务器地址 // 服务器地址
// const devIp = '10.96.10.171' // const devIp = '10.96.10.171'
// const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
const devIp = '10.96.170.156' const devIp = '127.0.0.1'
const devInterfacePORT = '9999' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
@@ -31,7 +31,7 @@ const processPort = '17210'
*****************************************************************/ *****************************************************************/
// 生产环境配置 // 生产环境配置
const prodIp = '62.234.136.153' const prodIp = '62.234.136.153'
const prodInterfacePORT = '8033' const prodInterfacePORT = '8038'
// 判断环境 // 判断环境