Commit 687df1cc authored by 仇晓婷's avatar 仇晓婷

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

parents d11aeedd 1b457162
...@@ -143,8 +143,10 @@ ...@@ -143,8 +143,10 @@
</template> </template>
<script> <script>
import ColumnSlot from "./treeGrid/columnSolt";
export default { export default {
name: "DataGrid", name: "DataGrid",
components: { ColumnSlot },
data() { data() {
return { return {
keys: "", keys: "",
...@@ -155,7 +157,7 @@ export default { ...@@ -155,7 +157,7 @@ export default {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
sortBy: "id", sortBy: "id",
isDesc:true, isDesc: true,
conditions: [], conditions: [],
}, },
searchConditions: this.search, searchConditions: this.search,
...@@ -294,15 +296,16 @@ export default { ...@@ -294,15 +296,16 @@ export default {
default: "", default: "",
}, },
}, },
provide() {
return {
tableRoot: this.slots,
};
},
created() { created() {
this.columns.forEach((u) => {
if (!u.hide) {
u.hide = false;
}
});
this.columnsCur = this.$u.clone(this.columns);
}, },
mounted() { mounted() {
this.initColumns();
if (this.data && this.data.length > 0) { if (this.data && this.data.length > 0) {
this.list = this.data; this.list = this.data;
return; return;
...@@ -350,7 +353,41 @@ export default { ...@@ -350,7 +353,41 @@ export default {
this.getRoutingHeaderData(); this.getRoutingHeaderData();
this.getAllUser(); //获取所有用户 this.getAllUser(); //获取所有用户
}, },
methods: { methods: {
//列初始化 slot 支持;
slots() {
return this.$scopedSlots;
},
initColumns() {
this.columns.forEach((u) => {
if (!u.hide) {
u.hide = false;
}
});
var items=this.$u.clone(this.columns);
var soct=this.$scopedSlots;
console.warn("that.$scopedSlots()",soct["action"]());
items.forEach((u) => {
if (u.slot) {
u.render = (h, params) => {
return h(
"span",
// soct[u.slot]({
// row: params.row,
// column: params.column,
// index: params.index,
// })
params.row.id
);
};
delete u.slot;
}
});
this.columnsCur = items;
console.log("cur", items,this.columnsCur);
},
//数据加载 //数据加载
load() { load() {
if (this.action) { if (this.action) {
......
export default {
name: 'ColumnSlot',
functional: true,
inject: ['tableRoot'],
props: {
row: Object,
index: Number,
column: {
type: Object,
default: null
}
},
render: (h, ctx) => {
return h('span', ctx.injections.tableRoot()[ctx.props.column.slot]({
row: ctx.props.row,
column: ctx.props.column,
index: ctx.props.index
}));
}
};
\ No newline at end of file
...@@ -14,21 +14,21 @@ ...@@ -14,21 +14,21 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th v-for="(column,index) in cloneColumns" :key="index"> <th v-for="(column, index) in cloneColumns" :key="index">
<label v-if="column.type === 'selection'"> <label v-if="column.type === 'selection'">
<input type="checkbox" v-model="checks" @click="handleCheckAll" />全选 <Checkbox v-model="all"></Checkbox>
</label> </label>
<label v-else> <label v-else>
{{ renderHeader(column, index) }} {{ renderHeader(column, index) }}
<span class="ivu-table-sort" v-if="column.sortable"> <span class="ivu-table-sort" v-if="column.sortable">
<Icon <Icon
type="arrow-up-b" type="arrow-up-b"
:class="{on: column._sortType === 'asc'}" :class="{ on: column._sortType === 'asc' }"
@click.native="handleSort(index, 'asc')" @click.native="handleSort(index, 'asc')"
/> />
<Icon <Icon
type="arrow-down-b" type="arrow-down-b"
:class="{on: column._sortType === 'desc'}" :class="{ on: column._sortType === 'desc' }"
@click.native="handleSort(index, 'desc')" @click.native="handleSort(index, 'desc')"
/> />
</span> </span>
...@@ -38,96 +38,168 @@ ...@@ -38,96 +38,168 @@
</thead> </thead>
<tbody> <tbody>
<tr <tr
v-for="(item,index) in initItems" v-for="(item, index) in initItems"
:key="item.id" :key="item.id"
v-show="show(item)" v-show="show(item)"
class="treetr" class="treetr"
:class="{'child-tr':item.parent}" :class="{ 'child-tr': item.parent }"
:draggable="drag"
@dragstart="dragstart($event, index, item)"
@dragover="dragover($event, index, item)"
@drop="dragdrop($event, index, item)"
> >
<td v-for="(column,snum) in columns" :key="column.key" :style="tdStyle(column)"> <td
<!-- <label> v-for="(column, snum) in columns"
<input :key="column.key"
v-if="column.type === 'selection'" :style="tdStyle(column)"
type="checkbox" >
:value="item.id" <!-- 多选 -->
v-model="checkGroup" <label v-if="column.type === 'selection'" @click="handleCheckClick(item, $event, index)">
@click="handleCheckClick(item,$event,index)" <Checkbox v-model="item.checked" ></Checkbox>
/> </label>
</label>-->
<!-- 图标 --> <!-- 图标 -->
<div v-if="column.type === 'icon'"> <div v-if="column.type === 'icon'">
<i <i
class="icon-set" class="icon-set"
size="small" size="small"
@click="RowClick(item,$event,index,action.text)" @click="RowClick(item, $event, index, action.text)"
v-for="action in (column.actions)" v-for="action in column.actions"
:key="action.text" :key="action.text"
> >
<Icon :type="action.type" :title="action.text" :style="action.style" /> <Icon
:type="action.type"
:title="action.text"
:style="action.style"
/>
</i> </i>
</div> </div>
<div v-if="column.type === 'icons'"> <div v-if="column.type === 'icons'">
<Icon :type="item[column.key]" size="20" /> <Icon :type="item[column.key]" size="20" />
</div> </div>
<state v-if="column.code" :code="column.code" :value="item[column.key]" /> <state
v-if="column.code"
:code="column.code"
:value="item[column.key]"
/>
<!-- 操作 --> <!-- 操作 -->
<div v-if="column.type === 'action'" class="action" style="text-align:left;"> <div
v-if="column.type === 'action'"
class="action"
style="text-align: left"
>
<op <op
v-for="action in (column.actions)" v-for="action in column.actions"
:key="action.text" :key="action.text"
@click="RowClick(item,$event,index,action.text)" @click="RowClick(item, $event, index, action.text)"
:type="action.type" :type="action.type"
size="small" size="small"
style=" margin:0 5px;" style="margin: 0 5px"
:class="action.text=='删除'? 'remove' : (action.text=='新增' ? 'add': (action.text=='编辑' ?'edit':''))" :class="
v-show="(item.type=='3'&&action.text=='新增')||(item.children.length>0&&action.text=='删除')?false:true" action.text == '删除'
>{{action.text}}</op> ? 'remove'
: action.text == '新增'
? 'add'
: action.text == '编辑'
? 'edit'
: ''
"
v-show="
(item.type == '3' && action.text == '新增') ||
(item.children.length > 0 && action.text == '删除')
? false
: true
"
>{{ action.text }}</op
>
</div> </div>
<!-- 类型 --> <!-- 类型 -->
<div v-if="column.type === 'menuRender'" style="text-align:center;"> <div v-if="column.type === 'menuRender'" style="text-align: center">
<Button <Button
:ghost="item[column.key] ==0 ?false:true" :ghost="item[column.key] == 0 ? false : true"
size="small" size="small"
:type="item[column.key] ==0 ? 'default' :item[column.key] == 1 ? 'info' :item[column.key] == 2?'error':'warning'" :type="
>{{item[column.key] == 0 ? '子系统':item[column.key] == 1 ? '目录': item[column.key] == 2 ? '菜单' : '按钮'}}</Button> item[column.key] == 0
? 'default'
: item[column.key] == 1
? 'info'
: item[column.key] == 2
? 'error'
: 'warning'
"
>{{
item[column.key] == 0
? "子系统"
: item[column.key] == 1
? "目录"
: item[column.key] == 2
? "菜单"
: "按钮"
}}</Button
>
</div> </div>
<!-- 状态 --> <!-- 状态 -->
<div v-if="column.type === 'menuIsshow'" style="text-align:center;"> <div v-if="column.type === 'menuIsshow'" style="text-align: center">
<Button <Button
:ghost="item[column.key] == 1 ? true :false" :ghost="item[column.key] == 1 ? true : false"
:disabled="item[column.key] == 1 ? false :true" :disabled="item[column.key] == 1 ? false : true"
size="small" size="small"
:type="item[column.key] == 1 ? 'info' :'default'" :type="item[column.key] == 1 ? 'info' : 'default'"
>{{item[column.key] == 1 ? '显示': '隐藏'}}</Button> >{{ item[column.key] == 1 ? "显示" : "隐藏" }}</Button
>
</div> </div>
<!-- 打开方式 --> <!-- 打开方式 -->
<div v-if="column.type === 'menuTarget'"> <div v-if="column.type === 'menuTarget'">
<span <span
:style="item[column.key] == 0?'color:#006699':item[column.key] == 1?'color:black':''" :style="
>{{item[column.key] == 0 ? '本页面': item[column.key] == 1?'新页面':''}}</span> item[column.key] == 0
? 'color:#006699'
: item[column.key] == 1
? 'color:black'
: ''
"
>{{
item[column.key] == 0
? "本页面"
: item[column.key] == 1
? "新页面"
: ""
}}</span
>
</div> </div>
<!-- 菜单名称、排序、请求地址 --> <!-- 树图标 -->
<label @click="toggle(index,item)" v-if="!column.type&&!column.code&&!column.render"> <span @click="toggle(index, item)" v-if="snum == iconRow()">
<span v-if="snum==iconRow()">
<i v-html="item.spaceHtml"></i> <i v-html="item.spaceHtml"></i>
<a v-if="item.children&&item.children.length>0"> <a v-if="item.children && item.children.length > 0">
<i <i
class="ivu-icon" class="ivu-icon"
:class="{'ivu-icon-ios-arrow-forward':!item.expanded,'ivu-icon-ios-arrow-down':item.expanded }" :class="{
></i> 'ivu-icon-ios-arrow-forward': !item.expanded,
</a> 'ivu-icon-ios-arrow-down': item.expanded,
}"
<i v-else class="ms-tree-space"></i> ></i> </a
><i v-else class="ms-tree-space"></i>
</span> </span>
{{renderBody(item,column) }} <!-- 菜单名称、排序、请求地址 -->
<label
v-if="
!column.type && !column.code && !column.render && !column.slot
"
>
{{ renderBody(item, column) }}
</label> </label>
<table-expand <table-expand
v-if="column.render&&!column.type" v-if="column.render && !column.type && !column.solt"
:row="item" :row="item"
:column="column" :column="column"
:index="snum" :index="snum"
:render="column.render" :render="column.render"
></table-expand> ></table-expand>
<column-slot
v-if="column.slot"
:row="item"
:column="column"
:index="snum"
></column-slot>
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -136,9 +208,10 @@ ...@@ -136,9 +208,10 @@
</template> </template>
<script> <script>
import TableExpand from "./expand"; import TableExpand from "./expand";
import ColumnSlot from "./columnSolt";
export default { export default {
name: "treeGrid", name: "treeGrid",
components: { TableExpand }, components: { TableExpand, ColumnSlot },
props: { props: {
columns: Array, columns: Array,
items: { items: {
...@@ -148,10 +221,24 @@ export default { ...@@ -148,10 +221,24 @@ export default {
}, },
}, },
iconName: false, iconName: false,
drag:{
type:Boolean,
default:false
},
spaceWidth:{
type:Number,
default:20
}
},
provide() {
return {
tableRoot: this.slots,
};
}, },
data() { data() {
return { return {
color: "#19be6b", color: "#19be6b",
all:true,
initItems: [], // 处理后数据数组 initItems: [], // 处理后数据数组
cloneColumns: [], // 处理后的表头数据 cloneColumns: [], // 处理后的表头数据
checkGroup: [], // 复选框数组 checkGroup: [], // 复选框数组
...@@ -160,6 +247,7 @@ export default { ...@@ -160,6 +247,7 @@ export default {
tdsWidth: 0, // td总宽 tdsWidth: 0, // td总宽
timer: false, // 控制监听时长 timer: false, // 控制监听时长
dataLength: 0, // 树形数据长度 dataLength: 0, // 树形数据长度
dragIndex:-1,//拖拽开始的序号
}; };
}, },
computed: { computed: {
...@@ -203,6 +291,7 @@ export default { ...@@ -203,6 +291,7 @@ export default {
}, },
}, },
mounted() { mounted() {
console.warn("treegrid", this.$scopedSlots);
if (this.items) { if (this.items) {
this.dataLength = this.Length(this.items); this.dataLength = this.Length(this.items);
this.initData(this.deepCopy(this.items), 1, null); this.initData(this.deepCopy(this.items), 1, null);
...@@ -225,14 +314,30 @@ export default { ...@@ -225,14 +314,30 @@ export default {
})(); })();
}, },
methods: { methods: {
slots() {
return this.$scopedSlots;
},
//拖拽
dragstart(e,index, row ) {
this.dragIndex=index;
console.log(index)
},
dragover(e,index, row ) {
e.preventDefault();
},
dragdrop(e,index, row ) {
event.preventDefault();
this.$emit("on-drag-drop",this.dragIndex,index,this.initItems)
},
// 有无多选框折叠位置优化 // 有无多选框折叠位置优化
iconRow() { iconRow() {
var num = 0;
for (let i = 0, len = this.columns.length; i < len; i++) { for (let i = 0, len = this.columns.length; i < len; i++) {
if (this.columns[i].type == "selection") { if (this.columns[i].tree) {
return 1; num = i;
} }
} }
return 0; return num;
}, },
// 设置td宽度,td的align // 设置td宽度,td的align
tdStyle(column) { tdStyle(column) {
...@@ -349,11 +454,7 @@ export default { ...@@ -349,11 +454,7 @@ export default {
// 数据处理 增加自定义属性监听 // 数据处理 增加自定义属性监听
initData(items, level, parent) { initData(items, level, parent) {
// this.initItems = [] // this.initItems = []
let spaceHtml = ""; let spaceHtml = "<i class='ms-tree-space' style='width:"+this.spaceWidth*level+"px'></i>";
for (let i = 1; i < level; i++) {
spaceHtml +=
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class='ms-tree-space'></i>";
}
items.forEach((item, index) => { items.forEach((item, index) => {
item = Object.assign({}, item, { item = Object.assign({}, item, {
parent, parent,
......
export default {
name: 'TableSlot',
functional: true,
inject: ['tableRoot'],
props: {
row: Object,
index: Number,
column: {
type: Object,
default: null
}
},
render: (h, ctx) => {
return h('div', ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot]({
row: ctx.props.row,
column: ctx.props.column,
index: ctx.props.index
}));
}
};
\ No newline at end of file
...@@ -157,8 +157,8 @@ export default { ...@@ -157,8 +157,8 @@ export default {
this.resources = this.$u.clone(r.result); this.resources = this.$u.clone(r.result);
//alert(JSON.stringify(this.resources)) //alert(JSON.stringify(this.resources))
this.entity = v; this.entity = v;
this.entity.resourceCode = v.firsT_EQUIP_CODE; this.entity.resourceCode = v.first_equip;
let code = v.firsT_EQUIP_CODE; let code = v.first_equip;
this.entity.resource = [] this.entity.resource = []
//let code = 'PCZYBZBH_20200804_1' //let code = 'PCZYBZBH_20200804_1'
if (code && code != '') { if (code && code != '') {
......
...@@ -144,9 +144,9 @@ export default { ...@@ -144,9 +144,9 @@ export default {
key: "firsT_EQUIP_CODE", key: "firsT_EQUIP_CODE",
title: this.l("first_equip"), title: this.l("first_equip"),
align: "left", align: "left",
render: (h, params) => { //test:PCZYBZBH_20200804_1 params.row.firsT_EQUIP_CODE // render: (h, params) => { //test:PCZYBZBH_20200804_1 params.row.firsT_EQUIP_CODE
return h("span", {}, this.getResourceName(params.row.firsT_EQUIP_CODE)) // return h("span", {}, this.getResourceName(params.row.firsT_EQUIP_CODE))
} // }
}, },
{ {
key: "setup_time", key: "setup_time",
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('upId')" prop="upId"> <FormItem :label="l('upId')" prop="upId">
...@@ -138,10 +138,7 @@ ...@@ -138,10 +138,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish"> <FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.is_supporting_finish" v-model="entity.isSupportingFinish"></Dictionary>
code="mes_xingchi_plan.mes_order.is_supporting_finish"
v-model="entity.isSupportingFinish"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -191,10 +188,7 @@ ...@@ -191,10 +188,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus"> <FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.order_quotation_status" v-model="entity.orderQuotationStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.order_quotation_status"
v-model="entity.orderQuotationStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -233,10 +227,7 @@ ...@@ -233,10 +227,7 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem <FormItem :label="l('productingPreparationFinishDate')" prop="productingPreparationFinishDate">
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker> <DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem> </FormItem>
</Col> </Col>
...@@ -292,34 +283,22 @@ ...@@ -292,34 +283,22 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus"> <FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.main_routing_set_status" v-model="entity.mainRoutingSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.main_routing_set_status"
v-model="entity.mainRoutingSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus"> <FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_set_status" v-model="entity.majorRoutingSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_set_status"
v-model="entity.majorRoutingSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus"> <FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.material_bill_set_status" v-model="entity.materialBillSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.material_bill_set_status"
v-model="entity.materialBillSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus"> <FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.routing_data_set_status" v-model="entity.routingDataSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.routing_data_set_status"
v-model="entity.routingDataSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -329,18 +308,12 @@ ...@@ -329,18 +308,12 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus"> <FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.main_routing_execute_status" v-model="entity.mainRoutingExecuteStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.main_routing_execute_status"
v-model="entity.mainRoutingExecuteStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus"> <FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_execute_status" v-model="entity.majorRoutingExecuteStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_execute_status"
v-model="entity.majorRoutingExecuteStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -385,10 +358,7 @@ ...@@ -385,10 +358,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('isPreschedule')" prop="isPreschedule"> <FormItem :label="l('isPreschedule')" prop="isPreschedule">
<Dictionary <Dictionary code="aps.plan.ispreschedule" v-model="entity.isPreschedule"></Dictionary>
code="mes_xingchi_plan.mes_order.is_preschedule"
v-model="entity.isPreschedule"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -416,9 +386,11 @@ ...@@ -416,9 +386,11 @@
<Button type="primary" @click="handleSubmit" v-noClick>保存</Button> <Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
</template> </template>
<script>
<script>
import Api from "./api"; import Api from "./api";
export default { export default {
name: "Add", name: "Add",
...@@ -426,7 +398,11 @@ export default { ...@@ -426,7 +398,11 @@ export default {
return { return {
entity: {}, entity: {},
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{
required: true,
message: "必填",
trigger: "blur"
}],
}, },
}; };
}, },
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('upId')" prop="upId"> <FormItem :label="l('upId')" prop="upId">
...@@ -138,10 +138,7 @@ ...@@ -138,10 +138,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish"> <FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.is_supporting_finish" v-model="entity.isSupportingFinish"></Dictionary>
code="mes_xingchi_plan.mes_order.is_supporting_finish"
v-model="entity.isSupportingFinish"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -191,10 +188,7 @@ ...@@ -191,10 +188,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus"> <FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.order_quotation_status" v-model="entity.orderQuotationStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.order_quotation_status"
v-model="entity.orderQuotationStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -233,10 +227,7 @@ ...@@ -233,10 +227,7 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem <FormItem :label="l('productingPreparationFinishDate')" prop="productingPreparationFinishDate">
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker> <DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem> </FormItem>
</Col> </Col>
...@@ -292,34 +283,22 @@ ...@@ -292,34 +283,22 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus"> <FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.main_routing_set_status" v-model="entity.mainRoutingSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.main_routing_set_status"
v-model="entity.mainRoutingSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus"> <FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_set_status" v-model="entity.majorRoutingSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_set_status"
v-model="entity.majorRoutingSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus"> <FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.material_bill_set_status" v-model="entity.materialBillSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.material_bill_set_status"
v-model="entity.materialBillSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus"> <FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.routing_data_set_status" v-model="entity.routingDataSetStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.routing_data_set_status"
v-model="entity.routingDataSetStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -329,18 +308,12 @@ ...@@ -329,18 +308,12 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus"> <FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.main_routing_execute_status" v-model="entity.mainRoutingExecuteStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.main_routing_execute_status"
v-model="entity.mainRoutingExecuteStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus"> <FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_execute_status" v-model="entity.majorRoutingExecuteStatus"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_execute_status"
v-model="entity.majorRoutingExecuteStatus"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -385,10 +358,7 @@ ...@@ -385,10 +358,7 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('isPreschedule')" prop="isPreschedule"> <FormItem :label="l('isPreschedule')" prop="isPreschedule">
<Dictionary <Dictionary code="aps.plan.ispreschedule" v-model="entity.isPreschedule"></Dictionary>
code="mes_xingchi_plan.mes_order.is_preschedule"
v-model="entity.isPreschedule"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -416,8 +386,9 @@ ...@@ -416,8 +386,9 @@
<Button type="primary" @click="handleSubmit" v-noClick>保存</Button> <Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
export default { export default {
...@@ -426,7 +397,11 @@ export default { ...@@ -426,7 +397,11 @@ export default {
return { return {
entity: {}, entity: {},
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{
required: true,
message: "必填",
trigger: "blur"
}],
}, },
}; };
}, },
...@@ -435,7 +410,9 @@ export default { ...@@ -435,7 +410,9 @@ export default {
}, },
methods: { methods: {
load(v) { load(v) {
Api.get({ id: v }).then((r) => { Api.get({
id: v
}).then((r) => {
this.entity = r.result; this.entity = r.result;
this.$emit("on-load"); this.$emit("on-load");
}); });
......
...@@ -266,6 +266,14 @@ export default { ...@@ -266,6 +266,14 @@ export default {
high: true, high: true,
hide: true, hide: true,
}, },
{
key: "isPreschedule",
title: this.l("isPreschedule"),
align: "center",
width: 100,
high: true,
code: "aps.plan.ispreschedule",
},
{ {
key: "demandStart", key: "demandStart",
title: this.l("demandStart"), title: this.l("demandStart"),
......
<template> <template>
<Form ref="form" :model="condition" :label-width="90"> <Form ref="form" :model="condition" :label-width="90">
<Row> <Row>
<Col span="8" v-if="condition.id.show"> <Col span="8" v-if="condition.id.show">
<FormItem :label="l('id')" prop="id"> <FormItem :label="l('id')" prop="id">
...@@ -143,10 +143,7 @@ ...@@ -143,10 +143,7 @@
</Col> </Col>
<Col span="8" v-if="condition.isSupportingFinish.show"> <Col span="8" v-if="condition.isSupportingFinish.show">
<FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish"> <FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish">
<Dictionary <Dictionary code="aps.plan.supportingStatus" v-model="condition.isSupportingFinish.value"></Dictionary>
code="aps.plan.supportingStatus"
v-model="condition.isSupportingFinish.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.demandStartDate.show"> <Col span="8" v-if="condition.demandStartDate.show">
...@@ -171,10 +168,7 @@ ...@@ -171,10 +168,7 @@
</Col> </Col>
<Col span="8" v-if="condition.isDeleted.show"> <Col span="8" v-if="condition.isDeleted.show">
<FormItem :label="l('isDeleted')" prop="isDeleted"> <FormItem :label="l('isDeleted')" prop="isDeleted">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.is_deleted" v-model="condition.isDeleted.value"></Dictionary>
code="mes_xingchi_plan.mes_order.is_deleted"
v-model="condition.isDeleted.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.creatorUserId.show"> <Col span="8" v-if="condition.creatorUserId.show">
...@@ -199,10 +193,7 @@ ...@@ -199,10 +193,7 @@
</Col> </Col>
<Col span="8" v-if="condition.orderQuotationStatus.show"> <Col span="8" v-if="condition.orderQuotationStatus.show">
<FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus"> <FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.order_quotation_status" v-model="condition.orderQuotationStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.order_quotation_status"
v-model="condition.orderQuotationStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.distributeMainRouting.show"> <Col span="8" v-if="condition.distributeMainRouting.show">
...@@ -241,10 +232,7 @@ ...@@ -241,10 +232,7 @@
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.productingPreparationFinishDate.show"> <Col span="8" v-if="condition.productingPreparationFinishDate.show">
<FormItem <FormItem :label="l('productingPreparationFinishDate')" prop="productingPreparationFinishDate">
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="daterange" v-model="condition.productingPreparationFinishDate.value"></DatePicker> <DatePicker type="daterange" v-model="condition.productingPreparationFinishDate.value"></DatePicker>
</FormItem> </FormItem>
</Col> </Col>
...@@ -270,10 +258,7 @@ ...@@ -270,10 +258,7 @@
</Col> </Col>
<Col span="8" v-if="condition.divideMark.show"> <Col span="8" v-if="condition.divideMark.show">
<FormItem :label="l('divideMark')" prop="divideMark"> <FormItem :label="l('divideMark')" prop="divideMark">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.divide_mark" v-model="condition.divideMark.value"></Dictionary>
code="mes_xingchi_plan.mes_order.divide_mark"
v-model="condition.divideMark.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.productCode.show"> <Col span="8" v-if="condition.productCode.show">
...@@ -303,34 +288,22 @@ ...@@ -303,34 +288,22 @@
</Col> </Col>
<Col span="8" v-if="condition.mainRoutingSetStatus.show"> <Col span="8" v-if="condition.mainRoutingSetStatus.show">
<FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus"> <FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus">
<Dictionary <Dictionary code="aps.plan.mainRoutingStatus" v-model="condition.mainRoutingSetStatus.value"></Dictionary>
code="aps.plan.mainRoutingStatus"
v-model="condition.mainRoutingSetStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.majorRoutingSetStatus.show"> <Col span="8" v-if="condition.majorRoutingSetStatus.show">
<FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus"> <FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_set_status" v-model="condition.majorRoutingSetStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_set_status"
v-model="condition.majorRoutingSetStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.materialBillSetStatus.show"> <Col span="8" v-if="condition.materialBillSetStatus.show">
<FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus"> <FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.material_bill_set_status" v-model="condition.materialBillSetStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.material_bill_set_status"
v-model="condition.materialBillSetStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.routingDataSetStatus.show"> <Col span="8" v-if="condition.routingDataSetStatus.show">
<FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus"> <FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.routing_data_set_status" v-model="condition.routingDataSetStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.routing_data_set_status"
v-model="condition.routingDataSetStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.rootId.show"> <Col span="8" v-if="condition.rootId.show">
...@@ -340,18 +313,12 @@ ...@@ -340,18 +313,12 @@
</Col> </Col>
<Col span="8" v-if="condition.mainRoutingExecuteStatus.show"> <Col span="8" v-if="condition.mainRoutingExecuteStatus.show">
<FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus"> <FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.main_routing_execute_status" v-model="condition.mainRoutingExecuteStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.main_routing_execute_status"
v-model="condition.mainRoutingExecuteStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.majorRoutingExecuteStatus.show"> <Col span="8" v-if="condition.majorRoutingExecuteStatus.show">
<FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus"> <FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus">
<Dictionary <Dictionary code="mes_xingchi_plan.mes_order.major_routing_execute_status" v-model="condition.majorRoutingExecuteStatus.value"></Dictionary>
code="mes_xingchi_plan.mes_order.major_routing_execute_status"
v-model="condition.majorRoutingExecuteStatus.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.mainRoutingActualStartDate.show"> <Col span="8" v-if="condition.mainRoutingActualStartDate.show">
...@@ -396,10 +363,7 @@ ...@@ -396,10 +363,7 @@
</Col> </Col>
<Col span="8" v-if="condition.isPreschedule.show"> <Col span="8" v-if="condition.isPreschedule.show">
<FormItem :label="l('isPreschedule')" prop="isPreschedule"> <FormItem :label="l('isPreschedule')" prop="isPreschedule">
<Dictionary <Dictionary code="aps.plan.ispreschedule" v-model="condition.isPreschedule.value"></Dictionary>
code="mes_xingchi_plan.mes_order.is_preschedule"
v-model="condition.isPreschedule.value"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="8" v-if="condition.spareQty.show"> <Col span="8" v-if="condition.spareQty.show">
...@@ -423,8 +387,9 @@ ...@@ -423,8 +387,9 @@
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
</Form> </Form>
</template> </template>
<script> <script>
import Api from './api' import Api from './api'
export default { export default {
...@@ -432,87 +397,391 @@ export default { ...@@ -432,87 +397,391 @@ export default {
data() { data() {
return { return {
condition: { condition: {
id: { op: 'Equal', value: null, show: false }, id: {
upId: { op: 'Equal', value: null, show: false }, op: 'Equal',
mesCode: { op: 'Equal', value: null, show: true }, value: null,
taskType: { op: 'Equal', value: null, show: true }, show: false
productId: { op: 'Equal', value: null, show: false }, },
stage: { op: 'Equal', value: null, show: true }, upId: {
materialId: { op: 'Equal', value: null, show: false }, op: 'Equal',
quantity: { op: 'Equal', value: null, show: false }, value: null,
guestName: { op: 'Equal', value: null, show: false }, show: false
printSupply: { op: 'Equal', value: null, show: false }, },
functionaryOffice: { op: 'Equal', value: null, show: false }, mesCode: {
mainDepartmentId: { op: 'Equal', value: null, show: false }, op: 'Equal',
remark: { op: 'Equal', value: null, show: false }, value: null,
taskInputDate: { op: 'Range', value: null, show: true }, show: true
taskRequire: { op: 'Equal', value: null, show: false }, },
putintDocmentCode: { op: 'Equal', value: null, show: false }, taskType: {
technologyDocmentCode: { op: 'Equal', value: null, show: false }, op: 'Equal',
outerDrawnNumber: { op: 'Equal', value: null, show: false }, value: null,
modelVersion: { op: 'Equal', value: null, show: false }, show: true
taskCode: { op: 'Equal', value: null, show: false }, },
designer: { op: 'Equal', value: null, show: false }, productId: {
officeFunctionary: { op: 'Equal', value: null, show: false }, op: 'Equal',
mainRoutingPeople: { op: 'Equal', value: null, show: false }, value: null,
status: { op: 'Equal', value: null, show: true }, show: false
workHours: { op: 'Equal', value: null, show: true }, },
printPeriod: { op: 'Equal', value: null, show: false }, stage: {
equipment: { op: 'Equal', value: null, show: false }, op: 'Equal',
materialWeight: { op: 'Equal', value: null, show: true }, value: null,
isSupportingFinish: { op: 'Equal', value: null, show: true }, show: true
demandStartDate: { op: 'Range', value: null, show: true }, },
demandFinishDate: { op: 'Range', value: null, show: true }, materialId: {
actualStartDate: { op: 'Range', value: null, show: false }, op: 'Equal',
actualFinishDate: { op: 'Range', value: null, show: false }, value: null,
isDeleted: { op: 'Equal', value: null, show: false }, show: false
creatorUserId: { op: 'Equal', value: null, show: false }, },
creationTime: { op: 'Range', value: null, show: false }, quantity: {
lastModifierUserId: { op: 'Equal', value: null, show: false }, op: 'Equal',
lastModificationTime: { op: 'Range', value: null, show: false }, value: null,
orderQuotationStatus: { op: 'Equal', value: null, show: false }, show: false
distributeMainRouting: { op: 'Equal', value: null, show: false }, },
mainRoutingFinishDate: { op: 'Range', value: null, show: false }, guestName: {
majorRoutingPeople: { op: 'Equal', value: null, show: false }, op: 'Equal',
majorRoutingFinishDate: { op: 'Range', value: null, show: false }, value: null,
checkUpPeople: { op: 'Equal', value: null, show: false }, show: false
checkUpFinishDate: { op: 'Range', value: null, show: false }, },
productingPreparationPeople: { op: 'Equal', value: null, show: false }, printSupply: {
op: 'Equal',
value: null,
show: false
},
functionaryOffice: {
op: 'Equal',
value: null,
show: false
},
mainDepartmentId: {
op: 'Equal',
value: null,
show: false
},
remark: {
op: 'Equal',
value: null,
show: false
},
taskInputDate: {
op: 'Range',
value: null,
show: true
},
taskRequire: {
op: 'Equal',
value: null,
show: false
},
putintDocmentCode: {
op: 'Equal',
value: null,
show: false
},
technologyDocmentCode: {
op: 'Equal',
value: null,
show: false
},
outerDrawnNumber: {
op: 'Equal',
value: null,
show: false
},
modelVersion: {
op: 'Equal',
value: null,
show: false
},
taskCode: {
op: 'Equal',
value: null,
show: false
},
designer: {
op: 'Equal',
value: null,
show: false
},
officeFunctionary: {
op: 'Equal',
value: null,
show: false
},
mainRoutingPeople: {
op: 'Equal',
value: null,
show: false
},
status: {
op: 'Equal',
value: null,
show: true
},
workHours: {
op: 'Equal',
value: null,
show: true
},
printPeriod: {
op: 'Equal',
value: null,
show: false
},
equipment: {
op: 'Equal',
value: null,
show: false
},
materialWeight: {
op: 'Equal',
value: null,
show: true
},
isSupportingFinish: {
op: 'Equal',
value: null,
show: true
},
demandStartDate: {
op: 'Range',
value: null,
show: true
},
demandFinishDate: {
op: 'Range',
value: null,
show: true
},
actualStartDate: {
op: 'Range',
value: null,
show: false
},
actualFinishDate: {
op: 'Range',
value: null,
show: false
},
isDeleted: {
op: 'Equal',
value: null,
show: false
},
creatorUserId: {
op: 'Equal',
value: null,
show: false
},
creationTime: {
op: 'Range',
value: null,
show: false
},
lastModifierUserId: {
op: 'Equal',
value: null,
show: false
},
lastModificationTime: {
op: 'Range',
value: null,
show: false
},
orderQuotationStatus: {
op: 'Equal',
value: null,
show: false
},
distributeMainRouting: {
op: 'Equal',
value: null,
show: false
},
mainRoutingFinishDate: {
op: 'Range',
value: null,
show: false
},
majorRoutingPeople: {
op: 'Equal',
value: null,
show: false
},
majorRoutingFinishDate: {
op: 'Range',
value: null,
show: false
},
checkUpPeople: {
op: 'Equal',
value: null,
show: false
},
checkUpFinishDate: {
op: 'Range',
value: null,
show: false
},
productingPreparationPeople: {
op: 'Equal',
value: null,
show: false
},
productingPreparationFinishDate: { productingPreparationFinishDate: {
op: 'Range', op: 'Range',
value: null, value: null,
show: false show: false
}, },
quotationPeople: { op: 'Equal', value: null, show: false }, quotationPeople: {
quotationFinishDate: { op: 'Range', value: null, show: false }, op: 'Equal',
routingMethod: { op: 'Equal', value: null, show: true }, value: null,
outerEnvelopeSize: { op: 'Equal', value: null, show: false }, show: false
divideMark: { op: 'Equal', value: null, show: false }, },
productCode: { op: 'Equal', value: null, show: false }, quotationFinishDate: {
productName: { op: 'Equal', value: null, show: true }, op: 'Range',
drawnNumber: { op: 'Equal', value: null, show: true }, value: null,
qualifiedQuantity: { op: 'Equal', value: null, show: true }, show: false
uncertificateQuantity: { op: 'Equal', value: null, show: true }, },
mainRoutingSetStatus: { op: 'Equal', value: null, show: true }, routingMethod: {
majorRoutingSetStatus: { op: 'Equal', value: null, show: false }, op: 'Equal',
materialBillSetStatus: { op: 'Equal', value: null, show: false }, value: null,
routingDataSetStatus: { op: 'Equal', value: null, show: false }, show: true
rootId: { op: 'Equal', value: null, show: false }, },
mainRoutingExecuteStatus: { op: 'Equal', value: null, show: false }, outerEnvelopeSize: {
majorRoutingExecuteStatus: { op: 'Equal', value: null, show: false }, op: 'Equal',
mainRoutingActualStartDate: { op: 'Range', value: null, show: false }, value: null,
mainRoutingActualFinishDate: { op: 'Range', value: null, show: false }, show: false
majorRoutingActualStartDate: { op: 'Range', value: null, show: false }, },
majorRoutingActualFinishDate: { op: 'Range', value: null, show: false }, divideMark: {
batchNumber: { op: 'Equal', value: null, show: true }, op: 'Equal',
projectNumber: { op: 'Equal', value: null, show: true }, value: null,
urgencyLevel: { op: 'Equal', value: null, show: true }, show: false
materialName: { op: 'Equal', value: null, show: true }, },
isPreschedule: { op: 'Equal', value: null, show: false }, productCode: {
spareQty: { op: 'Equal', value: null, show: false }, op: 'Equal',
demandStart: { op: 'Range', value: null, show: false }, value: null,
demandFinish: { op: 'Range', value: null, show: false }, show: false
partNamePro: { op: 'Equal', value: null, show: false } },
productName: {
op: 'Equal',
value: null,
show: true
},
drawnNumber: {
op: 'Equal',
value: null,
show: true
},
qualifiedQuantity: {
op: 'Equal',
value: null,
show: true
},
uncertificateQuantity: {
op: 'Equal',
value: null,
show: true
},
mainRoutingSetStatus: {
op: 'Equal',
value: null,
show: true
},
majorRoutingSetStatus: {
op: 'Equal',
value: null,
show: false
},
materialBillSetStatus: {
op: 'Equal',
value: null,
show: false
},
routingDataSetStatus: {
op: 'Equal',
value: null,
show: false
},
rootId: {
op: 'Equal',
value: null,
show: false
},
mainRoutingExecuteStatus: {
op: 'Equal',
value: null,
show: false
},
majorRoutingExecuteStatus: {
op: 'Equal',
value: null,
show: false
},
mainRoutingActualStartDate: {
op: 'Range',
value: null,
show: false
},
mainRoutingActualFinishDate: {
op: 'Range',
value: null,
show: false
},
majorRoutingActualStartDate: {
op: 'Range',
value: null,
show: false
},
majorRoutingActualFinishDate: {
op: 'Range',
value: null,
show: false
},
batchNumber: {
op: 'Equal',
value: null,
show: true
},
projectNumber: {
op: 'Equal',
value: null,
show: true
},
urgencyLevel: {
op: 'Equal',
value: null,
show: true
},
materialName: {
op: 'Equal',
value: null,
show: true
},
isPreschedule: {
op: 'Equal',
value: null,
show: false
},
spareQty: {
op: 'Equal',
value: null,
show: false
},
demandStart: {
op: 'Range',
value: null,
show: false
},
demandFinish: {
op: 'Range',
value: null,
show: false
},
partNamePro: {
op: 'Equal',
value: null,
show: false
}
} }
} }
}, },
......
<template> <template>
<div class=""> <div class="orderDetail">
<Form :label-width="190" inline>
<Row> <Row>
<Col span="12"> <Col span="8">
<FormItem label="订单编号:" style="width:100%"> <span class="fwBold">{{l('mesCode')}}</span>
<h3>{{baseData.mesCode}}</h3> <p>{{baseData.mesCode}}</p>
</FormItem>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="产品名称:" style="width:100%"> <span class="fwBold">{{l('taskType')}}</span>
<h4>{{baseData.productName}}</h4> <p>
</FormItem> <state code="plan.order.taskType" :value="baseData.taskType" type="text"></state>
</p>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="产品图号:" style="width:100%"> <span class="fwBold">{{l('quantity')}}</span>
<h4>{{baseData.drawnNumber}}</h4> <p>{{baseData.quantity}}</p>
</FormItem>
</Col> </Col>
<Col span="12" class=""> </Row>
<FormItem label="任务类型:" style="width:100%"> <Row>
<state code="plan.order.taskType" :value="baseData.taskType+''" type="text"></state> <Col span="8">
</FormItem> <span class="fwBold">{{l('status')}}</span>
</Col> <p>
<Col span="8" class=""> <state code="plan.order.status" :value="baseData.status" type="text"></state>
<FormItem label="阶段:" style="width:100%"> </p>
<state code="plan.order.stage" :value="baseData.stage+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="材料:" style="width:100%">
<state code="plan.order.material" :value="baseData.materialId+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="数量:" style="width:100%">
<span>{{baseData.quantity}}</span>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="工艺方法:" style="width:100%">
<state code="plan.order.routingMethod" :value="baseData.routing_Method+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="甲方客户:" style="width:100%">
<state code="plan.order.guestName" :value="baseData.guestName+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="外包络尺寸(mm):" style="width:100%">
<span>{{baseData.outer_Envelope_Size}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="开始时间:" style="width:100%">
<span>{{baseData.demandStartDate}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="完成时间:" style="width:100%">
<span>{{baseData.demandFinishDate}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="任务节点要求:" style="width:100%">
<span>{{baseData.taskRequire}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="厂内责任机关:" style="width:100%">
<span>{{baseData.functionaryOffice}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="厂内责任主体部门:" style="width:100%">
<state code="plan.order.mainDepartment" :value="baseData.mainDepartmentId+''" type="text"></state>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="3D打印承制单位:" style="width:100%">
<state code="plan.order.printSupply" :value="baseData.printSupply+''" type="text"></state>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="甲方投产输入文件(编号):" style="width:100%">
<span>{{baseData.putintDocmentCode}}</span>
</FormItem>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="甲方技术输入文件(编号):" style="width:100%"> <span class="fwBold">{{l('productName')}}</span>
<span>{{baseData.technologyDocmentCode}}</span> <p>{{baseData.productName}}</p>
</FormItem>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="外部图号/模型号:" style="width:100%"> <span class="fwBold">{{l('drawnNumber')}}</span>
<span>{{baseData.outerDrawnNumber}}</span> <p>{{baseData.drawnNumber}}</p>
</FormItem>
</Col> </Col>
<Col span="12" class=""> </Row>
<FormItem label="模型版本:" style="width:100%"> <Row>
<span>{{baseData.modelVersion}}</span> <Col span="8">
</FormItem> <span class="fwBold">{{l('batchNumber')}}</span>
<p>{{baseData.batchNumber}}</p>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="甲方任务号:" style="width:100%"> <span class="fwBold">{{l('projectNumber')}}</span>
<span>{{baseData.taskCode}}</span> <p>{{baseData.projectNumber}}</p>
</FormItem>
</Col> </Col>
<Col span="12" class=""> <Col span="8">
<FormItem label="甲方设计人员:" style="width:100%"> <span class="fwBold">{{l('urgencyLevel')}}</span>
<span>{{baseData.designer}}</span> <p>
</FormItem> <state code="plan.order.urgencyLevel" :value="baseData.urgencyLevel" type="text"></state>
</p>
</Col> </Col>
<Col span="12" class=""> </Row>
<FormItem label="厂内机关负责人:" style="width:100%"> <Row>
<span>{{baseData.officeFunctionary}}</span> <Col span="8">
</FormItem> <span class="fwBold">{{l('demandStartDate')}}</span>
<p>
<DTSpan type="date" v-model="baseData.demandStartDate"></DTSpan>
</p>
</Col>
<Col span="8">
<span class="fwBold">{{l('demandFinishDate')}}</span>
<p>
<DTSpan type="date" v-model="baseData.demandFinishDate"></DTSpan>
</p>
</Col>
<Col span="8">
<span class="fwBold">{{l('taskRequire')}}</span>
<p>{{baseData.taskRequire}}</p>
</Col> </Col>
<Col span="12" class=""> </Row>
<FormItem label="厂内主工艺人员:" style="width:100%"> <Row class="lastRow">
<span>{{baseData.mainRoutingPeople}}</span> <Col span="24">
</FormItem> <span class="fwBold">{{l('remark')}}</span>
<p>{{baseData.remark}}</p>
</Col> </Col>
</Row> </Row>
</Form>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ['baseData'], props: ['baseData'],
data() { data() {
return { return {
themeBg:'light', themeBg: 'light',
basicData:{}, basicData: {},
} }
}, },
methods: { methods: {
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
}, },
} }
</script> </script>
<style scoped>
<style lang="less">
.orderDetail {
line-height: 30px;
width: 90%;
margin: 0 auto;
.ivu-row {
padding-top: 20px;
padding-bottom: 20px;
border-bottom: #ccc solid 1px;
}
.lastRow {
border-bottom: none;
}
}
</style> </style>
<template> <template>
<div class="reve_cont"> <div class="reve_cont">
<Row> <Row>
<Col span="4"> <Col span="4">
<Menu :active-name="actNum" ref="actNum" class="menuBg" @on-select="openView" :theme="themeBg"> <Menu :active-name="actNum" ref="actNum" class="menuBg" @on-select="openView" :theme="themeBg">
...@@ -15,22 +15,27 @@ ...@@ -15,22 +15,27 @@
</Menu> </Menu>
</Col> </Col>
<Col span="20" class="revieweBox"> <Col span="20" class="revieweBox">
<basicView ref="basicView" :baseData="basicData" v-show="basicmodal"/> <basicView ref="basicView" :baseData="basicData" v-show="basicmodal" />
<mainView ref="mainView" :baseData="basicData" v-show="mainmodal" /> <mainView ref="mainView" :baseData="basicData" v-show="mainmodal" />
<!-- <dispatched ref="dispatched" :baseData="basicData" v-show="dispatchedmodal"/> --> <!-- <dispatched ref="dispatched" :baseData="basicData" v-show="dispatchedmodal"/> -->
</Col> </Col>
</Row> </Row>
</div> </div>
</template> </template>
<script> <script>
import service from '@/plugins/request' import service from '@/plugins/request'
import basicView from './basicView.vue'; import basicView from './basicView.vue';
import mainView from './mainView.vue'; import mainView from './mainView.vue';
import dispatched from './dispatched.vue'; import dispatched from './dispatched.vue';
export default { export default {
components:{basicView,mainView,dispatched}, components: {
basicView,
mainView,
dispatched
},
props: { props: {
basicData:null, basicData: null,
actValue: { actValue: {
type: Number, type: Number,
default: 1 default: 1
...@@ -41,21 +46,21 @@ export default { ...@@ -41,21 +46,21 @@ export default {
}, },
data() { data() {
return { return {
actNum:'1', actNum: '1',
themeBg:'light', themeBg: 'light',
basicmodal: true, basicmodal: true,
mainmodal: false, mainmodal: false,
dispatchedmodal: false, dispatchedmodal: false,
headerid:'',//暂存传字段 headerid: '', //暂存传字段
routingType:'',//工艺类型(主/专业) routingType: '', //工艺类型(主/专业)
diHeaderid:'',//暂存传字段 diHeaderid: '', //暂存传字段
diRoutingType:'',//工艺类型(主/专业) diRoutingType: '', //工艺类型(主/专业)
disexecuteid:0, disexecuteid: 0,
mainexecuteid:0 mainexecuteid: 0
} }
}, },
mounted(){ mounted() {
this.$nextTick(()=>{ this.$nextTick(() => {
this.actNum == this.$route.path.slice(1) this.actNum == this.$route.path.slice(1)
this.$refs.actNum.updateActiveName(); this.$refs.actNum.updateActiveName();
// this.shop = this.$route.path.slice(1) // this.shop = this.$route.path.slice(1)
...@@ -63,30 +68,30 @@ export default { ...@@ -63,30 +68,30 @@ export default {
}) })
}, },
methods: { methods: {
loaddata(pamasId){ loaddata(pamasId) {
this.basicmodal=true; this.basicmodal = true;
this.mainmodal= false; this.mainmodal = false;
// this.dispatchedmodal= false; // this.dispatchedmodal= false;
// console.warn(pamasId) 获取主工艺信息 10030 // console.warn(pamasId) 获取主工艺信息 10030
let url = `${designUrl}/orderrouting/getordersheaderinfo?orderId=` + pamasId; let url = `${designUrl}/orderrouting/getordersheaderinfo?orderId=` + pamasId;
if(pamasId){ if (pamasId) {
service.get(`${url}`).then((response) => { service.get(`${url}`).then((response) => {
console.log(response) console.log(response)
if(response.result.length>0){ if (response.result.length > 0) {
if(response.result[0]){ if (response.result[0]) {
this.$refs.mainView.craftData = response.result[0]; this.$refs.mainView.craftData = response.result[0];
this.headerid = response.result[0].id; this.headerid = response.result[0].id;
this.routingType = response.result[0].routingType; this.routingType = response.result[0].routingType;
this.getmainorder(pamasId) this.getmainorder(pamasId)
} }
if(response.result[1]){ if (response.result[1]) {
this.$refs.dispatched.craftData = response.result[1]; this.$refs.dispatched.craftData = response.result[1];
this.diHeaderid = response.result[1].id; this.diHeaderid = response.result[1].id;
this.diRoutingType = response.result[1].routingType; this.diRoutingType = response.result[1].routingType;
this.getdisorder(pamasId) this.getdisorder(pamasId)
} }
this.$refs.dispatched.getmaterialsupport(pamasId) //this.$refs.dispatched.getmaterialsupport(pamasId)
}else{ } else {
console.log('获取工艺信息为空.') console.log('获取工艺信息为空.')
this.$refs.mainView.craftData = {}; this.$refs.mainView.craftData = {};
this.$refs.dispatched.craftData = {}; this.$refs.dispatched.craftData = {};
...@@ -95,21 +100,21 @@ export default { ...@@ -95,21 +100,21 @@ export default {
} }
}, },
// 获取产品号和设备id orderexecute/getorderproductandequip 10050 // 获取产品号和设备id orderexecute/getorderproductandequip 10050
getmainorder(pamasId){ getmainorder(pamasId) {
let headerid = this.headerid; let headerid = this.headerid;
let routingType = this.routingType; let routingType = this.routingType;
let url01 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId let url01 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
+`&headerid=`+headerid +`&routingType=`+ routingType; `&headerid=` + headerid + `&routingType=` + routingType;
service.get(`${url01}`).then((res) => { service.get(`${url01}`).then((res) => {
if(res.success){ if (res.success) {
if(res.result.equipids){ if (res.result.equipids) {
let equipids = res.result.equipids; let equipids = res.result.equipids;
this.mainexecuteid = res.result.executeid; this.mainexecuteid = res.result.executeid;
this.$refs.mainView.getlistall(equipids) this.$refs.mainView.getlistall(equipids)
this.$refs.mainView.getqc(this.mainexecuteid); this.$refs.mainView.getqc(this.mainexecuteid);
let bandleList = res.result.productCode; let bandleList = res.result.productCode;
let codeList = [];// 编号List let codeList = []; // 编号List
bandleList.map((item,index)=>{ bandleList.map((item, index) => {
codeList.push(item.productcodes) codeList.push(item.productcodes)
}) })
this.$refs.mainView.mainCodeList = codeList this.$refs.mainView.mainCodeList = codeList
...@@ -125,28 +130,27 @@ export default { ...@@ -125,28 +130,27 @@ export default {
console.log(err) console.log(err)
}) })
}, },
getdisorder(pamasId){ getdisorder(pamasId) {
let diHeaderid = this.diHeaderid; let diHeaderid = this.diHeaderid;
let diRoutingType = this.diRoutingType; let diRoutingType = this.diRoutingType;
let url02 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId let url02 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
+`&headerid=`+diHeaderid +`&routingType=`+ diRoutingType; `&headerid=` + diHeaderid + `&routingType=` + diRoutingType;
service.get(`${url02}`).then((res) => { service.get(`${url02}`).then((res) => {
if(res.success){ if (res.success) {
if(res.result.equipids){ if (res.result.equipids) {
let equipids = res.result.equipids; let equipids = res.result.equipids;
this.disexecuteid = res.result.executeid; this.disexecuteid = res.result.executeid;
this.$refs.dispatched.getlistall(equipids) this.$refs.dispatched.getlistall(equipids)
this.$refs.dispatched.getqc(this.disexecuteid); this.$refs.dispatched.getqc(this.disexecuteid);
let bandleList = res.result.productCode; let bandleList = res.result.productCode;
let boardList = [];// 板次List let boardList = []; // 板次List
bandleList.map((item,index)=>{ bandleList.map((item, index) => {
boardList.push(item.boardNumber) boardList.push(item.boardNumber)
}) })
this.$refs.dispatched.disCodeList = boardList this.$refs.dispatched.disCodeList = boardList
console.warn(boardList) console.warn(boardList)
} } else {
else {
console.log('获取专业工艺信息数据为空.') console.log('获取专业工艺信息数据为空.')
} }
} else { } else {
...@@ -157,10 +161,10 @@ export default { ...@@ -157,10 +161,10 @@ export default {
}) })
}, },
// 更换左侧 // 更换左侧
openView(v){ openView(v) {
if(v==2){ if (v == 2) {
this.basicmodal= false; this.basicmodal = false;
this.mainmodal= true; this.mainmodal = true;
// this.dispatchedmodal= false; // this.dispatchedmodal= false;
this.$refs.mainView.getqc(this.mainexecuteid); this.$refs.mainView.getqc(this.mainexecuteid);
} }
...@@ -170,18 +174,18 @@ export default { ...@@ -170,18 +174,18 @@ export default {
// // this.dispatchedmodal= true; // // this.dispatchedmodal= true;
//  this.$refs.dispatched.getqc(this.disexecuteid); //  this.$refs.dispatched.getqc(this.disexecuteid);
// } // }
else{ else {
this.basicmodal= true; this.basicmodal = true;
this.mainmodal= false; this.mainmodal = false;
// this.dispatchedmodal= false; // this.dispatchedmodal= false;
} }
}, },
}, },
watch:{ watch: {
basicData: { basicData: {
handler(v, o) { handler(v, o) {
this.loaddata(v.id) this.loaddata(v.id)
if(v){ if (v) {
this.actNum == '1' this.actNum == '1'
this.openView(1) this.openView(1)
} }
...@@ -191,15 +195,18 @@ export default { ...@@ -191,15 +195,18 @@ export default {
}, },
} }
</script> </script>
<style scoped> <style scoped>
.menuBg{ .menuBg {
background: none; background: none;
height: 630px; height: 630px;
} }
.menuBg .ivu-menu-item{
.menuBg .ivu-menu-item {
color: #000; color: #000;
} }
.revieweBox{
.revieweBox {
padding: 0 0 0 60px; padding: 0 0 0 60px;
height: 630px; height: 630px;
} }
......
<template> <template>
<div class="content"> <div class="content">
<!-- 搜索+按钮 --> <!-- 搜索+按钮 -->
<div class="title_box mb10"> <div class="title_box mb10">
<div class="table_title"> <div class="table_title">
<Input <Input search enter-button style="width:300px;" v-model="orderSearchForm.SimpleSearch" placeholder="请输入查询条件" @on-search="tableSearch"></Input>
search
enter-button
style="width:300px;"
v-model="orderSearchForm.SimpleSearch"
placeholder="请输入查询条件"
@on-search="tableSearch"
></Input>
</div> </div>
<Button type="primary" class="title_btn" @click="searchModel">高级查询</Button> <Button type="primary" class="title_btn" @click="searchModel">高级查询</Button>
</div> </div>
<div class="tableBox mb10" :style="{height:tbHeight}"> <div class="tableBox mb10" :style="{height:tbHeight}">
<div class="table"> <div>
<div v-if="listTask.length==0" class="wu_data">暂无数据</div> <div v-if="listTask.length==0" class="wu_data">暂无数据</div>
<Row :gutter="16" :style="{width:rowWidth}"> <Row :gutter="16" :style="{width:rowWidth}">
<Col span="6" v-for="(item,index) in listTask" :key="index"> <Col :span="6" v-for="(item,index) in listTask" :key="index">
<Card class="card"> <Card class="card">
<h3 slot="title"> <h3 slot="title">
订单编号:{{item.mesCode}} 订单编号:{{item.mesCode}}
...@@ -44,20 +37,7 @@ ...@@ -44,20 +37,7 @@
<h3>暂无数据</h3> <h3>暂无数据</h3>
</div> </div>
</div> </div>
<Page <Page class="mr10 fr" id="pageComent" show-total size="small" show-elevator show-sizer :total="search.total" :current="search.pageIndex" :page-size="search.pageSize" :page-size-opts="showPagesize" @on-change="pageChange" @on-page-size-change="pageSizeChange" />
class="mr10 fr"
id="pageComent"
show-total
size="small"
show-elevator
show-sizer
:total="search.total"
:current="search.pageIndex"
:page-size="search.pageSize"
:page-size-opts="showPagesize"
@on-change="pageChange"
@on-page-size-change="pageSizeChange"
/>
<!-- 高级搜索弹框 --> <!-- 高级搜索弹框 -->
<Modal v-model="showModel" title="高级搜索" :width="800" :mask-closable="false"> <Modal v-model="showModel" title="高级搜索" :width="800" :mask-closable="false">
<Form :model="orderSearchForm" ref="orderSearchForm" :label-width="100" inline> <Form :model="orderSearchForm" ref="orderSearchForm" :label-width="100" inline>
...@@ -65,23 +45,14 @@ ...@@ -65,23 +45,14 @@
<Col span="12"> <Col span="12">
<FormItem label="产品名称" style="width:100%"> <FormItem label="产品名称" style="width:100%">
<Select v-model="orderSearchForm.productName" placeholder="请选择" style="width:240px;"> <Select v-model="orderSearchForm.productName" placeholder="请选择" style="width:240px;">
<Option <Option v-for="(item,index) in list" :key="index" :value="item.value" style="display:none">{{item.label}}</Option>
v-for="(item,index) in list"
:key="index"
:value="item.value"
style="display:none"
>{{item.label}}</Option>
<Tree key="mytree" :data="data1" ref="mytree" :render="renderContent"></Tree> <Tree key="mytree" :data="data1" ref="mytree" :render="renderContent"></Tree>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="状态" style="width:100%"> <FormItem label="状态" style="width:100%">
<dictionary <dictionary code="plan.order.status" v-model="orderSearchForm.status" style="width:240px"></dictionary>
code="plan.order.status"
v-model="orderSearchForm.status"
style="width:240px"
></dictionary>
<Input v-model="orderSearchForm.productId" style="width:240px" v-if="false" /> <Input v-model="orderSearchForm.productId" style="width:240px" v-if="false" />
</FormItem> </FormItem>
</Col> </Col>
...@@ -89,20 +60,12 @@ ...@@ -89,20 +60,12 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem label="工艺编号" style="width:100%"> <FormItem label="工艺编号" style="width:100%">
<Input <Input v-model="orderSearchForm.processcode" placeholder="请输入工艺编号" style="width: 240px" />
v-model="orderSearchForm.processcode"
placeholder="请输入工艺编号"
style="width: 240px"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="工艺名称" style="width:100%"> <FormItem label="工艺名称" style="width:100%">
<Input <Input v-model="orderSearchForm.processname" placeholder="请输入工艺名称" style="width: 240px" />
v-model="orderSearchForm.processname"
placeholder="请输入工艺名称"
style="width: 240px"
/>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -122,41 +85,25 @@ ...@@ -122,41 +85,25 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem label="紧急程度" style="width:100%"> <FormItem label="紧急程度" style="width:100%">
<dictionary <dictionary code="plan.order.urgencyLevel" v-model="orderSearchForm.urgencyLevel" style="width:240px"></dictionary>
code="plan.order.urgencyLevel"
v-model="orderSearchForm.urgencyLevel"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="任务类型" style="width:100%"> <FormItem label="任务类型" style="width:100%">
<dictionary <dictionary code="plan.order.taskType" v-model="orderSearchForm.taskType" style="width:240px"></dictionary>
code="plan.order.taskType"
v-model="orderSearchForm.taskType"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem label="阶段" style="width:100%"> <FormItem label="阶段" style="width:100%">
<dictionary <dictionary code="plan.order.stage" v-model="orderSearchForm.stage" style="width:240px"></dictionary>
code="plan.order.stage"
v-model="orderSearchForm.stage"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="材料" style="width:100%"> <FormItem label="材料" style="width:100%">
<dictionary <dictionary code="plan.order.material" v-model="orderSearchForm.materialId" style="width:240px"></dictionary>
code="plan.order.material"
v-model="orderSearchForm.materialId"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -168,11 +115,7 @@ ...@@ -168,11 +115,7 @@
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="甲方客户" style="width:100%"> <FormItem label="甲方客户" style="width:100%">
<dictionary <dictionary code="plan.order.guestName" v-model="orderSearchForm.guestName" style="width:240px"></dictionary>
code="plan.order.guestName"
v-model="orderSearchForm.guestName"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -184,11 +127,7 @@ ...@@ -184,11 +127,7 @@
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="厂内责任主体部门" style="width:100%"> <FormItem label="厂内责任主体部门" style="width:100%">
<dictionary <dictionary code="plan.order.mainDepartment" v-model="orderSearchForm.mainDepartmentId" style="width:240px"></dictionary>
code="plan.order.mainDepartment"
v-model="orderSearchForm.mainDepartmentId"
style="width:240px"
></dictionary>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -207,11 +146,7 @@ ...@@ -207,11 +146,7 @@
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem label="甲方技术输入文件(编号)" style="width:100%"> <FormItem label="甲方技术输入文件(编号)" style="width:100%">
<Input <Input v-model="orderSearchForm.technologyDocmentCode" placeholder style="width:240px" />
v-model="orderSearchForm.technologyDocmentCode"
placeholder
style="width:240px"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
...@@ -246,14 +181,20 @@ ...@@ -246,14 +181,20 @@
<Button @click="reviewOk" type="primary" style="margin-left:10px;">确定</Button> <Button @click="reviewOk" type="primary" style="margin-left:10px;">确定</Button>
</div> </div>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import service from "@/plugins/request"; import service from "@/plugins/request";
import reviewCount from "./components/reviewCount.vue"; import reviewCount from "./components/reviewCount.vue";
export default { export default {
components: { reviewCount }, components: {
async fetch({ store, params }) { reviewCount
},
async fetch({
store,
params
}) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
data() { data() {
...@@ -264,7 +205,7 @@ export default { ...@@ -264,7 +205,7 @@ export default {
total: 0, //总数 total: 0, //总数
conditions: [] conditions: []
}, },
rowWidth:'', rowWidth: '',
showPagesize: [20, 50, 100], showPagesize: [20, 50, 100],
showModel: false, showModel: false,
list: [], list: [],
...@@ -277,7 +218,7 @@ export default { ...@@ -277,7 +218,7 @@ export default {
orderSearchForm: { orderSearchForm: {
//高级搜索字段内容 //高级搜索字段内容
MaxResultCount: 20, MaxResultCount: 20,
SkipCount: 1, SkipCount: 0,
SimpleSearch: "", //搜索框内容 SimpleSearch: "", //搜索框内容
productId: null, //产品id productId: null, //产品id
productName: "", //产品名称 productName: "", //产品名称
...@@ -315,7 +256,10 @@ export default { ...@@ -315,7 +256,10 @@ export default {
this.laode(); this.laode();
this.tbHeight = window.innerHeight - 208 + "px"; this.tbHeight = window.innerHeight - 208 + "px";
}, },
async fetch({ store, params }) { async fetch({
store,
params
}) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
...@@ -325,7 +269,7 @@ export default { ...@@ -325,7 +269,7 @@ export default {
service service
.post(`${url}`, { .post(`${url}`, {
MaxResultCount: 20, MaxResultCount: 20,
SkipCount: 1 SkipCount: 0
}) })
.then(res => { .then(res => {
// console.log(res) // console.log(res)
...@@ -382,7 +326,7 @@ export default { ...@@ -382,7 +326,7 @@ export default {
.then(res => { .then(res => {
this.listTask = res.result.items; this.listTask = res.result.items;
this.search.total = res.result.totalCount; this.search.total = res.result.totalCount;
if(this.listTask.length<4){ if (this.listTask.length < 4) {
this.rowWidth = "100%" this.rowWidth = "100%"
} }
}); });
...@@ -393,14 +337,19 @@ export default { ...@@ -393,14 +337,19 @@ export default {
async openDetails(lemData) { async openDetails(lemData) {
this.$router.push({ this.$router.push({
name: "qcimplement", name: "qcimplement",
params: { transmitData: lemData } params: {
transmitData: lemData
}
}); });
}, },
renderContent(h, { root, node, data }) { renderContent(h, {
root,
node,
data
}) {
//渲染树的样式 //渲染树的样式
return h( return h(
"span", "span", {
{
style: { style: {
color: data.isProduct != "1" ? "#249E91" : "#333", //根据选中状态设置样式 color: data.isProduct != "1" ? "#249E91" : "#333", //根据选中状态设置样式
cursor: "pointer" cursor: "pointer"
...@@ -421,7 +370,10 @@ export default { ...@@ -421,7 +370,10 @@ export default {
this.selectdata = []; this.selectdata = [];
this.selectdata = data; this.selectdata = data;
this.list = []; this.list = [];
this.list.push({ label: data[0].title, value: data[0].id }); this.list.push({
label: data[0].title,
value: data[0].id
});
if (data[0].isProduct == "1") { if (data[0].isProduct == "1") {
this.orderSearchForm.productName = data[0].id; this.orderSearchForm.productName = data[0].id;
this.orderSearchForm.productId = data[0].productId; this.orderSearchForm.productId = data[0].productId;
...@@ -474,22 +426,27 @@ export default { ...@@ -474,22 +426,27 @@ export default {
} }
}; };
</script> </script>
<style scoped> <style scoped>
#pageComent .ivu-select-dropdown { #pageComent .ivu-select-dropdown {
top: 0 !important; top: 0 !important;
bottom: 36px; bottom: 36px;
} }
ul, ul,
li { li {
list-style: none; list-style: none;
} }
.table_title { .table_title {
width: 320px; width: 320px;
float: left; float: left;
} }
.title_btn { .title_btn {
margin-top: 1px; margin-top: 1px;
} }
.tableBox { .tableBox {
/* height: 582px; 笔记本高度*/ /* height: 582px; 笔记本高度*/
/* height: 778px; */ /* height: 778px; */
...@@ -497,31 +454,38 @@ li { ...@@ -497,31 +454,38 @@ li {
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
} }
.table { .table {
margin: 10px 0 0 0; margin: 10px 0 0 0;
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.no_data { .no_data {
height: 800px; height: 800px;
text-align: center; text-align: center;
line-height: 800px; line-height: 800px;
} }
.card{
.card {
margin: 10px 0 10px 20px; margin: 10px 0 10px 20px;
} }
.wu_data { .wu_data {
margin: 200px auto; margin: 200px auto;
font-size: 18px; font-size: 18px;
} }
.card_line{
.card_line {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
.footer01 { .footer01 {
text-align: center; text-align: center;
} }
.footer_btn { .footer_btn {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
display: block; display: block;
......
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
<template> <template>
<div class="flex fd test_layout"> <div class="flex fd test_layout">
<div> <div>
<Menu mode="horizontal" theme="light" active-name="0"> <Menu mode="horizontal" theme="light" active-name="a0">
<div class="layout-assistant"> <div class="layout-assistant">
<MenuItem name="0" to="/test/example">基础组件</MenuItem> <MenuItem name="a0" to="/test/example">基础组件</MenuItem>
<MenuItem name="1" to="/test/user">人员选择</MenuItem> <MenuItem name="a1" to="/test/user">人员选择</MenuItem>
<MenuItem name="2" to="/test/com">异步组件</MenuItem> <MenuItem name="a2" to="/test/com">异步组件</MenuItem>
<MenuItem name="4" to="/test/resource">资源选择</MenuItem> <MenuItem name="a4" to="/test/resource">资源选择</MenuItem>
<MenuItem name="3" to="/test/view">详情拖拽排版</MenuItem> <MenuItem name="a3" to="/test/view">详情拖拽排版</MenuItem>
</div> </div>
</Menu> </Menu>
</div> </div>
......
...@@ -13,10 +13,16 @@ export const exampleRouter = [ ...@@ -13,10 +13,16 @@ export const exampleRouter = [
}, },
{ {
route: '/test/example/table', route: '/test/example/table',
title: 'treeGrid组件', title: '表格',
name: 'components-table', name: 'components-table',
icon: 'md-aperture' icon: 'md-aperture'
}, },
{
route: '/test/example/tree',
title: '树',
name: 'tree',
icon: 'md-aperture'
},
{ {
route: '/test/example/select', route: '/test/example/select',
title: 'select组件', title: 'select组件',
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
</FormItem> </FormItem>
</Form> </Form>
</template> </template>
<template slot-scope="{row,column,index}" slot="action">
<strong>aaaa</strong>
</template>
</DataGrid> </DataGrid>
</div> </div>
</template> </template>
...@@ -62,6 +65,7 @@ export default { ...@@ -62,6 +65,7 @@ export default {
easy: true, easy: true,
sortable:true, sortable:true,
high: true, high: true,
slot:"cardNo",
tooltip: true, tooltip: true,
}, },
], ],
......
<template>
<div class="tree">
<TreeGrid :columns="columns" :items="treeData">
<template slot-scope="{row,column,index}" slot="name">
<Icon type="md-folder" /> {{row.name}}
</template>
<template slot-scope="{row,column,index}" slot="action">
<strong>{{row.action}}</strong>
</template>
</TreeGrid>
<!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> -->
</div>
</template>
<script>
import Mock from "mockjs";
export default {
name: "",
data() {
return {
columns: [
{
type: "selection",
width:50,
align:"center"
},
{
key: "name",
title: "名称",
tree:true,
slot:"name"
},
{
key: "status",
title: "状态",
width: "100"
},
{
key: "action",
title: "操作",
width: "100",
sortable:true,
slot:"action"
},
],
treeData1: [],
treeData: [
{
action: "510000202006085435",
name: "书加部保处",
status: 0,
children: [
{ action: "430000200008054924", name: "越组大过越", status: 0 },
{ action: "350000200106195747", name: "反走和报山", status: 1 },
{ action: "46000019920810827X", name: "强级法量少务持", status: 1 },
{ action: "620000198005286979", name: "况题米", status: 1 },
{ action: "440000200901093872", name: "又多为", status: 0 },
],
},
{ action: "510000199304272074", name: "参什叫", status: 1 },
{ action: "710000199110144186", name: "情克应个该农", status: 1 },
{ action: "140000201204175550", name: "阶研其交式", status: 1 },
{ action: "500000198710051748", name: "议开你集", status: 1 },
],
data: "",
};
},
mounted() {
// this.init();
},
methods: {
init() {
var data = Mock.mock({
"data|5": [
{
action: "@id",
name: "@ctitle",
"status|1": [0, 1],
},
],
});
console.warn(data);
this.data = JSON.stringify(data.data);
this.treeData = data.data;
},
},
};
</script>
<style lang="less" >
</style>
\ No newline at end of file
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