Commit 0b024863 authored by 旭艳's avatar 旭艳

指令标识维护-流程中详情

parent cff725cb
<template>
<div class="task-detail-basicInfo-com">
<div v-if="loading" class="detail-com">
<dee-as-com
:key="layConfig.typeName"
:lay-config="layConfig"
:basic-data="aoData"
/>
</div>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
name: 'AoProcessDetail',
componentName: '流程中指令信息详情',
components: {
},
props: {
basicData: {
type: Object,
default: null
}
},
data() {
return {
aoData: {},
loading: false
}
},
computed: {
layConfig() {
return {
typeName: 'ExtProcessPlan',
layKey: 'instructInfo'
}
}
},
mounted() {
this.getData()
},
methods: {
getData() {
const params = {
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'id',
'operator': 'EQ',
'value': this.basicData.id
}
],
'operator': 'AND'
}
],
'items': [],
'operator': 'AND'
},
'openProps': [
{
'name': 'sourceExtProcessUsageLink',
'searchItems': {
'items': [
{
'fieldName': 'targetIdType',
'operator': 'EQ',
'value': 'ExtProcessOperation'
}
],
'operator': 'AND'
},
'openProps': [
{
'name': 'target'
}
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
}
post(`/ExtProcessPlan/aoSearch`, params).then(res => {
if (res.items) {
this.aoData = res.items.content[0]
this.loading = true
}
}).finally(() => {
})
}
}
}
</script>
<style lang="scss">
.task-detail-basicInfo-com{
height: 100%;
.detail-com{
height: 100%;
}
}
</style>
<template>
<div class="task-detail-basicInfo-com">
<div v-if="loading" class="detail-com">
<dee-as-com
:key="layConfig.typeName"
:lay-config="layConfig"
:basic-data="aoData"
/>
</div>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
name: 'AoProcessDetailEdit',
componentName: '流程中指令信息编辑',
components: {
},
props: {
basicData: {
type: Object,
default: null
}
},
data() {
return {
aoData: {},
loading: false
}
},
computed: {
layConfig() {
return {
typeName: 'ExtProcessPlan',
layKey: 'instructEdit'
}
}
},
mounted() {
this.getData()
},
methods: {
getData() {
const params = {
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'id',
'operator': 'EQ',
'value': this.basicData.id
}
],
'operator': 'AND'
}
],
'items': [],
'operator': 'AND'
},
'openProps': [
{
'name': 'sourceExtProcessUsageLink',
'searchItems': {
'items': [
{
'fieldName': 'targetIdType',
'operator': 'EQ',
'value': 'ExtProcessOperation'
}
],
'operator': 'AND'
},
'openProps': [
{
'name': 'target'
}
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
}
post(`/ExtProcessPlan/aoSearch`, params).then(res => {
if (res.items) {
this.aoData = res.items.content[0]
this.loading = true
}
}).finally(() => {
})
}
}
}
</script>
<style lang="scss">
.task-detail-basicInfo-com{
height: 100%;
.detail-com{
height: 100%;
}
}
</style>
export default {
layoutConfigData: [
{
title: '高级组件配置',
data: [
{
key: 'readOnly',
title: '只读',
component: {
name: 'el-checkbox'
}
}
]
}
],
data() {
return {
}
},
created() {
},
computed: {
},
methods: {
}
}
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
> >
<template v-slot="scope"> <template v-slot="scope">
<el-select <el-select
v-if="basicData.isView" v-if="!item.readOnly"
v-model="scope.row.target.airFlag" v-model="scope.row.target.airFlag"
placeholder="请选择" placeholder="请选择"
clearable="" clearable=""
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
fixed fixed
> >
<template v-slot="scope"> <template v-slot="scope">
<el-input v-if="basicData.isView" v-model="scope.row.target.workHour" size="mini" @change="changWorkData(scope.row)" /> <el-input v-if="!item.readOnly" v-model="scope.row.target.workHour" size="mini" @change="changWorkData(scope.row)" />
<span v-else>{{ scope.row.target.workHour }}</span> <span v-else>{{ scope.row.target.workHour }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -81,10 +81,12 @@ ...@@ -81,10 +81,12 @@
</div> </div>
</template> </template>
<script> <script>
import config from './config'
export default { export default {
name: 'ProcessInformation', name: 'ProcessInformation',
components: { }, components: { },
componentName: '工序信息', componentName: '工序信息',
mixins: [config],
props: { props: {
basicData: { basicData: {
type: Object, type: Object,
...@@ -128,8 +130,6 @@ export default { ...@@ -128,8 +130,6 @@ export default {
id: { id: {
immediate: true, immediate: true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
const user = localStorage.user || ''
this.basicData.isView = user === this.basicData.note && this.basicData.state === 'Apply'
this.tableData = this.basicData.sourceExtProcessUsageLink this.tableData = this.basicData.sourceExtProcessUsageLink
} }
} }
......
<template> <template>
<div class="search-sorties"> <div class="search-sorties">
<el-form :inline="true" :model="form" class="demo-form-inline search-bar"> <el-form :inline="true" :model="form" class="demo-form-inline search-bar" label-width="100px">
<el-form-item label="架次:"> <el-col :span="8">
<el-select v-model="form.sorties" placeholder="架次" @change="changeFrom"> <el-form-item label="架次:">
<el-option <el-select v-model="form.sorties" placeholder="架次" @change="changeFrom">
v-for="(item, i) in sortiesData" <el-option
:key="item.value + i" v-for="(item, i) in sortiesData"
:label="item.label" :key="item.value + i"
:value="item.value" :label="item.label"
/> :value="item.value"
</el-select> />
</el-form-item> </el-select>
<el-form-item label="站位:"> </el-form-item>
<el-select v-model="form.postion" placeholder="站位" @change="changeFrom"> </el-col>
<el-option <el-col :span="8">
v-for="(item, i) in postionList" <el-form-item label="站位:">
:key="item.value + i" <el-select v-model="form.postion" placeholder="站位" @change="changeFrom">
:label="item.label" <el-option
:value="item.value" v-for="(item, i) in postionList"
/> :key="item.value + i"
</el-select> :label="item.label"
</el-form-item> :value="item.value"
<el-form-item label="AO(号/名称):"> />
<el-input v-model="form.name" placeholder="AO(号/名称)" clearable @change="changeFrom" /> </el-select>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="AO(号/名称):">
<el-input v-model="form.name" placeholder="AO(号/名称)" clearable @change="changeFrom" />
</el-form-item>
</el-col>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -77,6 +83,7 @@ export default { ...@@ -77,6 +83,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
changeFrom(val) { changeFrom(val) {
console.log(this.form)
this.$emit('input', val) this.$emit('input', val)
}, },
getStation(val) { getStation(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment