Commit e3f03878 authored by 康振飞's avatar 康振飞

工艺规程新增

parent 26eb1c60
......@@ -397,13 +397,17 @@ export default {
this.showMenu = true;
},
productSearch(id, item, ids) {
let where = { productId: { op: "In", value: ids } };
this.$refs.grid.reload(where);
console.log(item)
// this.productId = data.join(",");
// this.tableTata(this.selectName);
// let where = { productId: { op: "In", value: ids } };
// this.$refs.grid.reload(where);
},
update() {
this.tableTata(this.selectName);
},
getMsgFormSon(data) {
console.log(data)
this.productId = data.join(",");
this.tableTata(this.selectName);
},
......
<template>
<div>
<!-- 左侧树 -->
<div class="zh-tree" :style="{height:treeHeight+'px'}">
<!-- <div class="zh-tree" :style="{height:treeHeight+'px'}">
<h3 class="zh-title">产品结构</h3>
<div class="zh-box">
<Input search placeholder="请输入查询条件" v-model="treeInputSearch" />
......@@ -13,6 +14,14 @@
@on-select-change="selectTreeNode"
></Tree>
</div>
</div> -->
<Sider hide-trigger v-if="showMenu" class="menu_side" width="300">
<ProductTree @on-hide="onHide" @on-select="productSearch" />
</Sider>
<div v-if="!showMenu" class="show_menu">
<a class="menu_play fr" @click="showMenuFn" title="展开">
<Icon type="ios-arrow-forward" size="24" />
</a>
</div>
<!-- 右侧内容 -->
<div class="content-right">
......@@ -377,7 +386,7 @@ import orderData from './components/orderData.vue' //数据审查
import modelTable from '../Process/model.vue'
import processNew from '../Process/processNew.vue'
import service from '@/plugins/request'
import ProductTree from "@/components/page/productTree.vue";//左侧树列表
import OrderSendReview from './components/orderSendReview' //送审页面
import processview from '../Process/processview.vue'
import sendAudit from '../Process/sendAudit.vue'
......@@ -389,7 +398,7 @@ export default {
modelTable,
processNew,
orderMaterial,
OrderSendReview,
OrderSendReview, ProductTree,
processview,
sendAudit,
orderData
......@@ -398,6 +407,7 @@ export default {
return {
isview: false,
isdview: false,
showMenu: true,
ismview: false,
issendAudit: false,
createtype: 1,
......@@ -927,6 +937,18 @@ export default {
}
},
methods: {
onHide() {
// this.$Message.info("收起左侧树")
this.showMenu = false;
},
showMenuFn() {
//this.$Message.info("展开左侧树")
this.showMenu = true;
},
productSearch(id, item, ids) {
let where = { productId: { op: "In", value: ids } };
this.$refs.grid.reload(where);
},
// tab切换
tabChange(name) {
this.tabstatus = name
......
......@@ -17,10 +17,10 @@
</FormItem>
</Col>
<Col :span="8">
<FormItem v-if="title=='新增'" :label="l('code')" prop="code">
<!-- <FormItem v-if="title=='新增'" :label="l('code')" prop="code">
<Input v-model="entity.code"></Input>
</FormItem>
<FormItem v-else-if="title=='克隆'" :label="l('code')" prop="code">
</FormItem> v-else-if="title=='克隆'"-->
<FormItem :label="l('code')" prop="code">
<Input disabled v-model="entity.code"></Input>
</FormItem>
</Col>
......@@ -201,10 +201,10 @@ export default {
mounted() {
this.parms.eid = this.$u.guid();
this.$refs.refFile.intFiles();
// console.log(this.title)
// console.log(this.eid)
if (this.eid > 0) {
this.load(this.eid);
}else{
this.getCodNumber();
}
},
methods: {
......@@ -212,7 +212,7 @@ export default {
this.$refs.form.validate(v => {
if (v) {
this.disabled = true;
if(this.title=='克隆'){
if(this.title=='克隆'){
this.$Message.success("克隆");
this.getcloneData()
}else{
......@@ -290,16 +290,16 @@ export default {
this.entity.isEffect = parseInt(r.result.isEffect);
this.entity.id = 0;
});
if(this.title=='克隆'){
this.getCodNumber();
},
getCodNumber(){
Api.getCodeNumber({code:'GY',count:'1'}).then( r => {
// console.log(r)
if(r.success){
this.entity.code = r.result[0]
}else{
this.$Message.error("生成编号失败");
}
})
}
},
l(key) {
key = "routingHeader" + "." + key;
......
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