归档位置

This commit is contained in:
shenyanpei
2022-01-24 11:21:03 +08:00
parent ba3a0f9698
commit 6fa409b027
3 changed files with 1431 additions and 1405 deletions
@@ -167,7 +167,7 @@ export default {
methods: { methods: {
filterNode(value, data) { filterNode(value, data) {
if (!value) return true; if (!value) return true;
return data.label.indexOf(value) !== -1; return data.menuName.indexOf(value) !== -1;
}, },
loadNode(node, resolve) { loadNode(node, resolve) {
const that = this; const that = this;
@@ -1505,6 +1505,7 @@ export default {
fileType: '', fileType: '',
countryArr: '', countryArr: '',
form: { form: {
standId: '',
// 基础信息 // 基础信息
country: '', country: '',
textStatus: '', // 文本状态 textStatus: '', // 文本状态
@@ -2156,6 +2157,7 @@ export default {
const json = Object.assign(bringData, bringData.attrInfoCaseMap); const json = Object.assign(bringData, bringData.attrInfoCaseMap);
this.form = JSON.parse(JSON.stringify(json)) this.form = JSON.parse(JSON.stringify(json))
this.getListTree(bringData) this.getListTree(bringData)
this.form.standId = bringData.id
this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw : '' this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw : ''
this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr : '' this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr : ''
this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs : '' this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs : ''
@@ -2280,17 +2282,20 @@ export default {
}, {}, reson => { }, {}, reson => {
if (reson.ok) { if (reson.ok) {
let treeList = '' let treeList = ''
let treeListId = ''
reson.data.forEach(item=>{ reson.data.forEach(item=>{
this.treeCheckedKeys.push(item.menuId) this.treeCheckedKeys.push(item.menuId)
if (item.menuId.length > 0) { if (treeList.length > 0) {
treeList += ',' treeList += ','
treeListId += ','
} }
treeList = item.menuName treeList += item.menuName
this.treeListName = treeList treeListId += item.menuId
}) })
this.form.treeListName = treeList
this.form.treeListId = treeListId
} }
}) })
this.form.treeListId = this.treeCheckedKeys.join(',')
} }
}) })
}, },
@@ -691,7 +691,8 @@
<h4>责任人</h4> <h4>责任人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="user2" placeholder="选择责任人"> <el-input v-model="user2" placeholder="选择责任人">
</el-input></div> </el-input>
</div>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''"> <el-timeline-item timestamp="填写意见" placement="top" :color="user3 ? '#66b1ff' : ''">
@@ -836,9 +837,6 @@
zbjbdFileMap: [], zbjbdFileMap: [],
// 调整处理人抽屉状态 // 调整处理人抽屉状态
drawerModal: false, drawerModal: false,
drawerTitle: '', drawerTitle: '',
@@ -896,6 +894,8 @@
standSystem: '',// 标准体系 standSystem: '',// 标准体系
standSystemName: '',// 标准体系 standSystemName: '',// 标准体系
gxhbq: '', // 标签 gxhbq: '', // 标签
treeListId: '',
treeListName: '',
// 实施日期 // 实施日期
ssrq: '', // 实施日期(标准文本) ssrq: '', // 实施日期(标准文本)
xcxssrq: '', // 新车型实施日期(标准文本) xcxssrq: '', // 新车型实施日期(标准文本)
@@ -1127,7 +1127,8 @@
_this: this _this: this
}, res => { }, res => {
this.detailData = res this.detailData = res
}, e => {}) }, e => {
})
}, },
assemble(ids, names) { assemble(ids, names) {
let list = new Array(); let list = new Array();
@@ -1229,7 +1230,8 @@
this.drawerModal = true this.drawerModal = true
this.drawerTitle = '转办处理人' this.drawerTitle = '转办处理人'
}, },
handleSave() {}, handleSave() {
},
handle1() { handle1() {
this.formTongGuo.approvalOpinion = 1 this.formTongGuo.approvalOpinion = 1
this.handleSubmit() this.handleSubmit()
@@ -1297,7 +1299,8 @@
} }
} }
}) })
}}) }
})
}, },
/** /**
@@ -1306,12 +1309,22 @@
* @auth: chenxiaoxi * @auth: chenxiaoxi
*/ */
processCreateStand(json) { processCreateStand(json) {
console.log(json)
const _formData = new FormData() const _formData = new FormData()
_formData.append('infoJson', json) _formData.append('infoJson', json)
processCreateStand(_formData).then(res => { processCreateStand(_formData).then(res => {
if (res.result === '操作成功' || res.data === '入库成功') { if (res.result === '操作成功' || res.data === '入库成功') {
this.$message.success(res.data) this.$message.success(res.data)
let menuList = {
idlist: [this.form.standId],
menuIds: this.form.treeListId
}
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenuForFlow', menuList, {
_this: this,
}, resMenu => {
if (resMenu.ok) {
console.log(resMenu)
}
})
setTimeout(() => { setTimeout(() => {
this.$router.push({ this.$router.push({
name: 'ProcessCenter' name: 'ProcessCenter'
@@ -1361,6 +1374,7 @@
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
.bzrkStep2 { .bzrkStep2 {
/deep/ .el-drawer__container { /deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
@@ -1368,8 +1382,10 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
position: relative; position: relative;
height: 100%; height: 100%;
.headerTabs { .headerTabs {
height: 52px; height: 52px;
display: flex; display: flex;
@@ -1377,6 +1393,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 10px; right: 10px;
.headerTabsItem { .headerTabsItem {
border: 1px solid #c1c1c1; border: 1px solid #c1c1c1;
padding: 0 5px; padding: 0 5px;
@@ -1384,18 +1401,21 @@
line-height: 30px; line-height: 30px;
cursor: pointer; cursor: pointer;
} }
.active { .active {
border: 1px solid #E6A23C; border: 1px solid #E6A23C;
color: #fff; color: #fff;
background: #E6A23C; background: #E6A23C;
} }
} }
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px'); height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -1403,6 +1423,7 @@
position: relative; position: relative;
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
.tableButton { .tableButton {
position: absolute; position: absolute;
right: 0; right: 0;