feat: 标准库 编辑对应属性字段 体系树结构 流程
This commit is contained in:
@@ -114,15 +114,10 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '0'" label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSystem" placeholder="请选择标准体系">
|
||||
<el-option
|
||||
v-for="item in standSystemOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<tree-select
|
||||
:data="standSystemOptions"
|
||||
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
|
||||
:nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -630,6 +625,8 @@
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {saveTaskFirst} from "api/process";
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
|
||||
export default {
|
||||
name: "bzrkStep1",
|
||||
data () {
|
||||
@@ -640,6 +637,12 @@
|
||||
active: '1', // 默认显示
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
defaultCheckedKeys: [],
|
||||
form: {
|
||||
// 基础信息
|
||||
textStatus: '', // 文本状态
|
||||
@@ -654,6 +657,7 @@
|
||||
issueTime: '', // 发布时间
|
||||
isRelateAccess: '', // 是否纳入认证清单
|
||||
standSystem: '',// 标准体系
|
||||
standSystemName: '',// 标准体系名称
|
||||
gxhbq: '', // 标签
|
||||
// 实施日期
|
||||
ssrq: '', // 实施日期(标准文本)
|
||||
@@ -724,9 +728,17 @@
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
TreeSelect
|
||||
},
|
||||
methods: {
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
console.log(checkedIds);
|
||||
console.log(checkedData);
|
||||
this.form.standSystem = checkedData.id
|
||||
this.form.standSystemName = checkedData.menuName
|
||||
console.log(this.sarStandardsInfoEO.standSystem);
|
||||
},
|
||||
closeDrawer() {
|
||||
this.ListModel = false
|
||||
},
|
||||
@@ -771,7 +783,7 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
var json = this.form
|
||||
json.zrUserId = this.$store.getters.userInfo.userId+',5UM3769REUPLPRTRJ54R'
|
||||
json.zrUserId = this.$store.getters.userInfo.userId
|
||||
json.jlUserId = this.$store.getters.userInfo.userId
|
||||
json.commentText = this.commentText
|
||||
json.applyUpdUserId = this.$store.getters.userInfo.userId
|
||||
|
||||
@@ -120,18 +120,14 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '0'" label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSystem" placeholder="请选择标准体系" disabled>
|
||||
<el-option
|
||||
v-for="item in standSystemOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<el-input
|
||||
disabled
|
||||
v-model="form.standSystemName"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
<el-input
|
||||
disabled
|
||||
v-model="form.gxhbq"
|
||||
placeholder="请输入标签"
|
||||
@@ -676,6 +672,8 @@
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
|
||||
export default {
|
||||
name: "bzrkStep2",
|
||||
data () {
|
||||
@@ -693,6 +691,12 @@
|
||||
active: '1', // 默认显示
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
defaultCheckedKeys: [],
|
||||
form: {
|
||||
// 基础信息
|
||||
textStatus: '', // 文本状态
|
||||
@@ -707,6 +711,7 @@
|
||||
issueTime: '', // 发布时间
|
||||
isRelateAccess: '', // 是否纳入认证清单
|
||||
standSystem: '',// 标准体系
|
||||
standSystemName: '',// 标准体系
|
||||
gxhbq: '', // 标签
|
||||
// 实施日期
|
||||
ssrq: '', // 实施日期(标准文本)
|
||||
@@ -785,7 +790,8 @@
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
TreeSelect
|
||||
},
|
||||
computed: {
|
||||
listNoDataText () {
|
||||
@@ -793,6 +799,12 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
console.log(checkedIds);
|
||||
console.log(checkedData);
|
||||
this.form.standSystem = checkedData.id
|
||||
console.log(this.sarStandardsInfoEO.standSystem);
|
||||
},
|
||||
processTable () {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -825,6 +837,7 @@
|
||||
getFormFieldList (item) {
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
this.defaultCheckedKeys = [this.form.standSystem];
|
||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||
this.form.prcNum = this.prcNum
|
||||
this.form.prcName = this.prcName
|
||||
|
||||
@@ -119,15 +119,11 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '0'" label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSystem" placeholder="请选择标准体系" disabled>
|
||||
<el-option
|
||||
v-for="item in standSystemOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<el-input
|
||||
disabled
|
||||
v-model="form.standSystemName"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -669,6 +665,8 @@ import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
|
||||
export default {
|
||||
name: "bzrkStep3",
|
||||
data () {
|
||||
@@ -686,6 +684,12 @@ export default {
|
||||
active: '1', // 默认显示
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
defaultCheckedKeys: [],
|
||||
form: {
|
||||
// 基础信息
|
||||
textStatus: '', // 文本状态
|
||||
@@ -778,7 +782,8 @@ export default {
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
TreeSelect
|
||||
},
|
||||
computed: {
|
||||
listNoDataText () {
|
||||
@@ -786,6 +791,9 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
this.form.standSystem = checkedData.id
|
||||
},
|
||||
processTable () {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -818,10 +826,12 @@ export default {
|
||||
getFormFieldList (item) {
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
this.defaultCheckedKeys = [this.form.standSystem];
|
||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||
this.form.prcNum = this.prcNum
|
||||
this.form.prcName = this.prcName
|
||||
this.form['id'] = item.id
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
closeDrawer() {
|
||||
@@ -886,7 +896,6 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.processTable()
|
||||
this.getData()
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -894,6 +903,7 @@ export default {
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
||||
console.log(this.standSystemOptions)
|
||||
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
||||
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||
@@ -902,8 +912,10 @@ export default {
|
||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||
this.getData()
|
||||
})
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -114,15 +114,10 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '0'" label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSystem" placeholder="请选择标准体系">
|
||||
<el-option
|
||||
v-for="item in standSystemOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<tree-select v-if="treeStatus"
|
||||
:data="standSystemOptions"
|
||||
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
|
||||
:nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -646,6 +641,8 @@ import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
|
||||
export default {
|
||||
name: "bzrkStep4",
|
||||
data () {
|
||||
@@ -663,6 +660,13 @@ export default {
|
||||
active: '1', // 默认显示
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
defaultCheckedKeys: [],
|
||||
treeStatus:false,
|
||||
form: {
|
||||
// 基础信息
|
||||
textStatus: '', // 文本状态
|
||||
@@ -677,6 +681,7 @@ export default {
|
||||
issueTime: '', // 发布时间
|
||||
isRelateAccess: '', // 是否纳入认证清单
|
||||
standSystem: '',// 标准体系
|
||||
standSystemName: '',// 标准体系
|
||||
gxhbq: '', // 标签
|
||||
// 实施日期
|
||||
ssrq: '', // 实施日期(标准文本)
|
||||
@@ -755,7 +760,8 @@ export default {
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
TreeSelect
|
||||
},
|
||||
computed: {
|
||||
listNoDataText () {
|
||||
@@ -763,6 +769,12 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
console.log(checkedIds);
|
||||
console.log(checkedData);
|
||||
this.form.standSystem = checkedData.id
|
||||
this.form.standSystemName = checkedData.menuName
|
||||
},
|
||||
processTable () {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -795,10 +807,12 @@ export default {
|
||||
getFormFieldList (item) {
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
this.defaultCheckedKeys = [this.form.standSystem];
|
||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||
this.form.prcNum = this.prcNum
|
||||
this.form.prcName = this.prcName
|
||||
this.form['id'] = item.id
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
closeDrawer() {
|
||||
@@ -861,6 +875,9 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
created(){
|
||||
this.getData()
|
||||
},
|
||||
mounted () {
|
||||
this.processTable()
|
||||
this.getData()
|
||||
@@ -879,7 +896,15 @@ export default {
|
||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||
this.treeStatus = true
|
||||
})
|
||||
},
|
||||
watch:{
|
||||
form(val){
|
||||
if(this.form){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -119,15 +119,10 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '0'" label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSystem" placeholder="请选择标准体系" disabled>
|
||||
<el-option
|
||||
v-for="item in standSystemOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<tree-select
|
||||
:data="standSystemOptions"
|
||||
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
|
||||
:nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData === '1'" label="标签" prop="gxhbq" class="add-form-item form-item-disabled">
|
||||
<el-input
|
||||
@@ -669,6 +664,8 @@
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import {inboundLiaisonDetail,processCreateStand} from 'api/process'
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
|
||||
export default {
|
||||
name: "bzrkStep5",
|
||||
data () {
|
||||
@@ -686,6 +683,12 @@
|
||||
active: '1', // 默认显示
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
defaultCheckedKeys: [],
|
||||
form: {
|
||||
// 基础信息
|
||||
textStatus: '', // 文本状态
|
||||
@@ -778,7 +781,8 @@
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
TreeSelect
|
||||
},
|
||||
computed: {
|
||||
listNoDataText () {
|
||||
@@ -786,6 +790,12 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
console.log(checkedIds);
|
||||
console.log(checkedData);
|
||||
this.form.standSystem = checkedData.id
|
||||
console.log(this.sarStandardsInfoEO.standSystem);
|
||||
},
|
||||
processTable () {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -818,6 +828,7 @@
|
||||
getFormFieldList (item) {
|
||||
this.$nextTick(() => {
|
||||
this.form = JSON.parse(JSON.stringify(item))
|
||||
this.defaultCheckedKeys = [this.form.standSystem];
|
||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||
this.form.prcNum = this.prcNum
|
||||
this.form.prcName = this.prcName
|
||||
|
||||
Reference in New Issue
Block a user