Commit 22a5c1f3 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents 6a67aa28 d4c64b07
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="120">
<Row>
<Col :span="12">
<!-- <Col :span="12">
<FormItem :label="l('code')" prop="code">
<Input v-model="entity.code" disabled></Input>
</FormItem>
</Col>
</Col> -->
<Col :span="12">
<FormItem :label="l('name')" prop="name">
<Input v-model="entity.name"></Input>
......@@ -56,13 +56,13 @@ export default {
data() {
return {
entity: {
creationTime: null,
creatorUserId: null,
lastModificationTime: null,
lastModifierUserId: null,
isDeleted: null,
deletionTime: null,
deleterUserId: null,
// creationTime: null,
// creatorUserId: null,
// lastModificationTime: null,
// lastModifierUserId: null,
// isDeleted: null,
// deletionTime: null,
// deleterUserId: null,
code: "",
name: "",
type: null,
......
<template>
<div class="new-detail">
<Row>
<Filed :span="8" :name="l('routingDetailNo')+':'">{{entity.routingDetailNo}}</Filed>
<Filed :span="8" :name="l('routingDetailName')+':'">{{entity.routingDetailName}}</Filed>
<Filed :span="8" :name="l('materialNumber')+':'">{{entity.materialNumber}}</Filed>
<Filed :span="8" :name="l('nameMaterial')+':'">{{entity.nameMaterial}}</Filed>
<Filed :span="8" :name="l('routingDetailNo') + ':'">{{
entity.routingDetailNo
}}</Filed>
<Filed :span="8" :name="l('routingDetailName') + ':'">{{
entity.routingDetailName
}}</Filed>
<Filed :span="8" :name="l('materialNumber') + ':'">{{
entity.materialNumber
}}</Filed>
<Filed :span="8" :name="l('nameMaterial') + ':'">{{
entity.nameMaterial
}}</Filed>
<Filed :span="8" :name="l('creationTime')+':'">{{entity.creationTime}}</Filed>
<Filed :span="8" :name="l('creationTime') + ':'">{{
entity.creationTime
}}</Filed>
<Filed :span="8" :name="l('creatorUserId')+':'">
<Filed :span="8" :name="l('creatorUserId') + ':'">
<User :value="parseInt(entity.creatorUserId)" />
</Filed>
<Filed :span="8" :name="l('quantity')+':'">{{entity.quantity}}</Filed>
<Filed :span="8" :name="l('quantity') + ':'">{{
entity.quantity
}}</Filed>
</Row>
<Divider orientation="left">扩展属性</Divider>
<Row>
......@@ -19,8 +31,24 @@
v-for="li in fileds"
:key="li.field"
:span="li.span"
:name="li.title+':'"
>{{li.newConten}}</Filed>
:name="li.title + ':'"
>
<!-- {{li.newConten}} -->
<State
v-if="li.dataType == 3"
:code="li.note"
:value="entity[li.field]"
/>
<div v-else-if="li.dataType == 8">{{ entity[li.field] }}</div>
<div v-else-if="li.dataType == 5" v-html="entity[li.field]"></div>
<DTSpan v-else-if="li.dataType == 4" :value="entity[li.field]" />
<span v-else>{{ entity[li.field] }}</span>
<State
v-if="li.unitName && (li.dataType == 1 || li.dataType == 2)"
:code="li.note"
:value="entity[li.field]"
/>
</Filed>
</Row>
</div>
</template>
......
......@@ -142,56 +142,56 @@ export default {
high: true,
width: 80,
},
{
key: "brand",
title: this.l("brand"),
align: "left",
easy: true,
high: true,
},
{
key: "specifications",
title: this.l("specifications"),
align: "left",
easy: true,
high: true,
},
{
key: "xhgg",
title: this.l("xhgg"),
align: "left",
easy: true,
high: true,
hide: true,
},
{
key: "texture",
title: this.l("texture"),
align: "left",
easy: true,
high: true,
},
{
key: "procurementStandards",
title: this.l("procurementStandards"),
align: "left",
easy: true,
high: true,
},
{
key: "qualityGrade",
title: this.l("qualityGrade"),
align: "left",
easy: true,
high: true,
},
{
key: "drawNum",
title: this.l("drawNum"),
align: "left",
easy: true,
high: true,
},
// {
// key: "brand",
// title: this.l("brand"),
// align: "left",
// easy: true,
// high: true,
// },
// {
// key: "specifications",
// title: this.l("specifications"),
// align: "left",
// easy: true,
// high: true,
// },
// {
// key: "xhgg",
// title: this.l("xhgg"),
// align: "left",
// easy: true,
// high: true,
// hide: true,
// },
// {
// key: "texture",
// title: this.l("texture"),
// align: "left",
// easy: true,
// high: true,
// },
// {
// key: "procurementStandards",
// title: this.l("procurementStandards"),
// align: "left",
// easy: true,
// high: true,
// },
// {
// key: "qualityGrade",
// title: this.l("qualityGrade"),
// align: "left",
// easy: true,
// high: true,
// },
// {
// key: "drawNum",
// title: this.l("drawNum"),
// align: "left",
// easy: true,
// high: true,
// },
{
key: "creationTime",
title: this.l("creationTime"),
......
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