Commit 20bb7d43 authored by renjintao's avatar renjintao

techenology

parent cd8255a0
...@@ -56,7 +56,8 @@ export default { ...@@ -56,7 +56,8 @@ export default {
item=items[0]; item=items[0];
} }
this.$emit("on-change",v,item) this.$emit("on-change",v,item)
} },
}, },
watch: { watch: {
value: { value: {
......
...@@ -1171,9 +1171,11 @@ export default { ...@@ -1171,9 +1171,11 @@ export default {
name: '工艺名称', name: '工艺名称',
code: '工艺编号', code: '工艺编号',
productId: '产品id', productId: '产品id',
productName:'产品名称',
version: '版本', version: '版本',
author: '编制人', author: '编制人',
departmentId: '主制车间', departmentId: '主制车间',
departmentName:'主制车间',
isMain: '主工艺', isMain: '主工艺',
upId: '父工艺', upId: '父工艺',
upDetailId: '上级工序', upDetailId: '上级工序',
...@@ -1191,6 +1193,10 @@ export default { ...@@ -1191,6 +1193,10 @@ export default {
phase: '阶段', phase: '阶段',
versionid: '版本ID', versionid: '版本ID',
isSendPpm: '发送PPM', isSendPpm: '发送PPM',
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'最近修改时间',
lastModifierUserId:'最近修改人',
}, },
routing_detail:{ routing_detail:{
id:'', id:'',
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('productId')" prop="productId"> <FormItem :label="l('productId')" prop="productId">
<ProductSelect v-model="entity.productId"></ProductSelect> <ProductSelect v-model="entity.productId" @on-change="proChange"></ProductSelect>
</FormItem> </FormItem>
</Col> </Col>
...@@ -40,27 +40,22 @@ ...@@ -40,27 +40,22 @@
<Input v-model="entity.version"></Input> <Input v-model="entity.version"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8">
<FormItem :label="l('author')" prop="author">
<UserSelect v-model="entity.author"></UserSelect>
</FormItem>
</Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('departmentId')" prop="departmentId"> <FormItem :label="l('departmentId')" prop="departmentId">
<departmentSelect v-model="entity.departmentId"></departmentSelect> <departmentSelect v-model="entity.departmentId" @on-change="departChange"></departmentSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="5"> <Col :span="8">
<FormItem :label="l('isMain')" prop="isMain"> <FormItem :label="l('isMain')" prop="isMain">
<Dictionary code="Process.state" v-model="entity.isMain" type="radio"></Dictionary> <Dictionary code="Process.state" v-model="entity.isMain" type="radio"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="6"> <Col :span="8">
<FormItem :label="l('isSendPpm')" prop="isSendPpm"> <FormItem :label="l('isSendPpm')" prop="isSendPpm">
<Dictionary code="Process.Status" v-model="entity.isSendPpm" type="radio"></Dictionary> <Dictionary code="Process.Status" v-model="entity.isSendPpm" type="radio"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="5"> <Col :span="8">
<FormItem :label="l('isEffect')" prop="isEffect"> <FormItem :label="l('isEffect')" prop="isEffect">
<Dictionary code="Process.Status" v-model="entity.isEffect" type="radio"></Dictionary> <Dictionary code="Process.Status" v-model="entity.isEffect" type="radio"></Dictionary>
</FormItem> </FormItem>
...@@ -123,7 +118,13 @@ ...@@ -123,7 +118,13 @@
<FormItem :label="l('versionid')" prop="versionid"> <FormItem :label="l('versionid')" prop="versionid">
<InputNumber v-model="entity.versionid"></InputNumber> <InputNumber v-model="entity.versionid"></InputNumber>
</FormItem> </FormItem>
</Col>--> </Col>
<Col :span="8">
<FormItem :label="l('author')" prop="author">
<UserSelect v-model="entity.author"></UserSelect>
</FormItem>
</Col>
-->
<Col :span="24"> <Col :span="24">
<FormItem :label="l('remark')" prop="remark"> <FormItem :label="l('remark')" prop="remark">
<i-quill v-model="entity.remark" :height="300" border v-paste="handleImg" /> <i-quill v-model="entity.remark" :height="300" border v-paste="handleImg" />
...@@ -304,6 +305,14 @@ export default { ...@@ -304,6 +305,14 @@ export default {
l(key) { l(key) {
key = "routingHeader" + "." + key; key = "routingHeader" + "." + key;
return this.$t(key); return this.$t(key);
},
proChange(v,items)
{
alert(v+"__"+JSON.stringify(items))
},
departChange(v,items)
{
alert(v+"__"+JSON.stringify(items))
} }
}, },
watch: { watch: {
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
high: true high: true
}, },
{ key: "version", title: this.l("version"), align: "left", high: true }, { key: "version", title: this.l("version"), align: "left", high: true },
{ key: "author", title: this.l("author"), align: "left", high: true }, { key: "creatorUserId", title: this.l("author"), align: "left", high: true,type:"user" },
{ {
key: "departmentId", key: "departmentId",
title: this.l("departmentId"), title: this.l("departmentId"),
...@@ -161,14 +161,7 @@ export default { ...@@ -161,14 +161,7 @@ export default {
align: "left", align: "left",
high: true high: true
}, },
{
key: "isMain",
title: this.l("isMain"),
align: "center",
width: 80,
high: true,
code: "Process.state"
},
// { key:"upId",title:this.l("upId") ,align:"left" ,high:true }, // { key:"upId",title:this.l("upId") ,align:"left" ,high:true },
// { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true }, // { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true },
{ {
...@@ -191,6 +184,7 @@ export default { ...@@ -191,6 +184,7 @@ export default {
align: "center", align: "center",
width: 80, width: 80,
high: true, high: true,
hide: true,
code: "Process.Status" code: "Process.Status"
}, },
{ {
...@@ -205,6 +199,7 @@ export default { ...@@ -205,6 +199,7 @@ export default {
title: this.l("phase"), title: this.l("phase"),
align: "left", align: "left",
high: true, high: true,
hide: true,
code: "Process.Routing.phase" code: "Process.Routing.phase"
}, },
{ {
...@@ -214,6 +209,14 @@ export default { ...@@ -214,6 +209,14 @@ export default {
hide: true, hide: true,
code: "Process.Routing.version" code: "Process.Routing.version"
}, },
{
key: "isMain",
title: this.l("isMain"),
align: "center",
width: 80,
high: true,
code: "Process.state"
},
{ {
key: "isSendPpm", key: "isSendPpm",
title: this.l("isSendPpm"), title: this.l("isSendPpm"),
......
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