Commit 589eb2e2 authored by “lixuyan”'s avatar “lixuyan”

流程中漆料调配卡接口调试

parent 852804de
<template>
<div class="AssignCardProcess">
<dee-as-com
v-show="baseData"
ref="detailCom"
dis-business
:lay-config="cmpOptions"
:basic-data="baseData"
/>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
name: 'AssignCardProcess',
componentName: '调配卡流程中表单',
components: {},
props: {
basicData: {
type: Object,
default: () => null
}
},
data() {
return {
cmpOptions: {
typeName: 'AssignCardPaint',
layKey: 'paintProcessFrom'
},
baseData: null
}
},
watch: {
basicData: {
immediate: true,
deep: true,
handler: function(val) {
this.getFormData(val.id)
}
}
},
mounted() {
},
// 组件方法
methods: {
getFormData(id) {
const params = {
'searchItems': {
'items': [
{
'fieldName': 'id',
'operator': 'EQ',
'value': id
}
]
},
'openProps': [{
'name': 'assignCardDetails',
'openProps': [{
'name': 'target',
'openProps': [{
'name': 'extSupporting',
'openProps': [{
'name': 'extProcessPlan'
}]
}]
}]
},
{
'name': 'material'
}],
'toValidateKeys': ''
}
post('/AssignCard/search', params).then((res) => {
this.baseData = res.items.content[0]
})
}
}
}
</script>
<style lang='scss'>
</style>
<template>
<div v-if="value" class="online-session-com page-wrap">
<dee-up-table
ref="multipleTable"
:columns="tableColums"
:data="value"
tooltip-effect="light"
/>
</div>
</template>
<script>
export default {
name: 'SupportingCardDetails',
componentName: '调配卡中配套明细列表',
props: {
value: {
type: Array,
default: () => null
}
},
data() {
const that = this
return {
tableColums: [
{ title: 'AO号', key: 'target.extSupporting.extProcessPlan.serialNumber', align: 'center', minWidth: 180 },
{ title: '架次', key: 'target.sorties', align: 'center', hideTip: true, minWidth: 110 },
{ title: '申领人', key: 'target.applyerName', align: 'center' },
{ title: '申领时间', key: 'target.applyTime', align: 'center', minWidth: 180, formatter(row, column) {
return that.$moment(row.target.applyTime).format('YYYY-MM-DD HH:mm:ss')
} },
{ title: '数量', key: 'target.reqAmount', align: 'center' },
{ title: '单位', key: 'target.applyerDepartment', align: 'center' }
],
tableData: []
}
},
mounted() {
},
methods: {
}
}
</script>
<style lang="scss">
.online-session-com {
.mb10{
margin-bottom:10px;
}
.dee-table {
height: calc( 100% - 30px);
.dee-table-body{
height: calc( 100% - 30px);
overflow-y: scroll;
}
}
}
</style>
<template>
<div>
<el-input
v-model="cup"
class="input-with-select el-input--small"
placeholder=""
clearable
style="width: 40%"
@change="change"
/>
<span style="color: #606266"></span>
<el-input
v-model="second"
class="input-with-select el-input--small"
placeholder=""
clearable
style="width: 40%"
@change="change"
/>
<span style="color: #606266"></span>
</div>
</template>
<script>
export default {
name: 'ViscosityBox',
componentName: '黏度框',
props: {
form: {
type: Object,
default: () => null
}
},
data() {
return {
cup: '',
second: ''
}
},
methods: {
change() {
this.$emit('input', this.cup + ' ' + this.second)
}
}
}
</script>
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