Commit 3a549d53 authored by 佟礼's avatar 佟礼

Merge branch 'master' of 39.98.128.195:zhouyx/mes-ui

parents 8354172b 80973e73
......@@ -496,6 +496,11 @@ export default {
})
return cols
}
},
watch:{
"data.length"(){
this.list=this.data;
}
}
}
</script>
......
......@@ -4,7 +4,6 @@
style="margin-top:-25px;margin-bottom:-25px"
:columns="columns"
ref="grid"
:action="action"
:easy="false"
:high="false"
:set="false"
......@@ -330,110 +329,7 @@ export default {
}
}
],
data1: [
{
id: "1",
op_task_pk: "001",
part_task_pk: "001",
task_seq: "1",
task_name: "测试工序1",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 1,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
},
{
id: "2",
op_task_pk: "002",
part_task_pk: "002",
task_seq: "2",
task_name: "测试工序2",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 0,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
},
{
id: "3",
op_task_pk: "003",
part_task_pk: "003",
task_seq: "3",
task_name: "测试工序3",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 0,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
}
],
data1: [],
insertTItle: "插单"
};
},
......@@ -449,9 +345,8 @@ export default {
let params = {
id: expendId
}
Api.getbyorderid(params).then(res => {
if (res.sucess) {
this.data1 = [];
Api.getbyorderid(params).then((res) => {
if (res.success) {
this.data1 = res.result;
}
});
......
......@@ -40,11 +40,11 @@
</div>
</template>
<script>
import Api from './api'
import Add from './add'
import Expand from './components/excute'
import Api from "./api";
import Add from "./add";
import Expand from "./components/excute";
export default {
name: 'list',
name: "list",
components: {
Add,
Expand
......@@ -53,252 +53,248 @@ export default {
return {
action: Api.index,
easySearch: {
keys: { op: 'notes', value: null }
keys: { op: "notes", value: null }
},
addModal: false,
editModal: false,
detailModal: false,
deletelModal: false,
apsModal: false,
list: [
],
list: [],
curId: 0,
columns: [
{
key: 'move',
title: ' ',
key: "move",
title: " ",
hide: false,
align: 'center',
align: "center",
width: 30,
render: (h, params) => {
return h('Icon', {
return h("Icon", {
attrs: {
type: 'md-more',
type: "md-more",
size: 18
},
class: 'drag'
})
class: "drag"
});
}
},
{
type: 'expand',
type: "expand",
width: 50,
render: (h, params) => {
return h(Expand, {
props: {
rowId: params.row.id
rowId: params.row.part_task_pk
}
})
});
}
},
{
key: 'selection',
type: 'selection',
key: "selection",
type: "selection",
width: 50,
align: 'center'
align: "center"
},
{
key: 'id',
title: this.l('id'),
key: "id",
title: this.l("id"),
hide: true,
align: 'left',
align: "left",
sortable: true,
width: 50
},
{
key: 'insert_flag',
title: this.l('insert_flag'),
align: 'center',
key: "insert_flag",
title: this.l("insert_flag"),
align: "center",
width: 70,
high: true,
code: 'aps.aps.insert_flag',
category: 'icon'
code: "aps.aps.insert_flag",
category: "icon"
},
{
key: 'part_task_pk',
title: this.l('part_task_pk'),
align: 'left',
key: "part_task_pk",
title: this.l("part_task_pk"),
align: "left",
high: true
},
{
key: 'priority',
title: this.l('priority'),
align: 'left',
key: "priority",
title: this.l("priority"),
align: "left",
high: true
},
{
key: 'plan_qty',
title: this.l('plan_qty'),
align: 'left',
key: "plan_qty",
title: this.l("plan_qty"),
align: "left",
high: true,
sortable: true
},
{
key: 'spare_qty',
title: this.l('spare_qty'),
align: 'left',
key: "spare_qty",
title: this.l("spare_qty"),
align: "left",
high: true
},
{
key: 'plan_start',
title: this.l('plan_start'),
align: 'center',
key: "plan_start",
title: this.l("plan_start"),
align: "center",
high: true,
resizable: true,
width: 140
},
{
key: 'plan_finish',
title: this.l('plan_finish'),
align: 'center',
key: "plan_finish",
title: this.l("plan_finish"),
align: "center",
high: true,
sortable: true,
resizable: true,
width: 140
},
{
key: 'notes',
title: this.l('notes'),
align: 'left',
key: "notes",
title: this.l("notes"),
align: "left",
easy: true,
high: true,
hide: true
},
{
key: 'demand_start',
title: this.l('demand_start'),
align: 'center',
key: "demand_start",
title: this.l("demand_start"),
align: "center",
hide: true,
resizable: true,
width: 100
},
{
key: 'demand_finish',
title: this.l('demand_finish'),
align: 'center',
key: "demand_finish",
title: this.l("demand_finish"),
align: "center",
high: true,
resizable: true,
width: 140
},
{
key: 'badjustflag',
title: this.l('badjustflag'),
align: 'left',
key: "badjustflag",
title: this.l("badjustflag"),
align: "left",
high: true
},
{
title: '操作',
key: 'action',
title: "操作",
key: "action",
width: 140,
align: 'center',
align: "center",
// fixed:"right",
render: (h, params) => {
return h('div', { class: 'action' }, [
h('op', {
return h("div", { class: "action" }, [
h("op", {
attrs: {
icon: 'md-options',
type: 'icon',
title: '工序参数设置'
icon: "md-options",
type: "icon",
title: "工序参数设置"
},
on: { click: () => this.openParms(params.row.id) }
}),
h('op', {
h("op", {
attrs: {
icon: 'md-return-left',
type: 'icon',
title: '移出排产池',
oprate: 'delete',
msg: '确认要移出排产吗?'
icon: "md-return-left",
type: "icon",
title: "移出排产池",
oprate: "delete",
msg: "确认要移出排产吗?"
},
on: { click: () => this.remove(params.row.id) }
}),
h('op', {
h("op", {
attrs: {
icon: 'md-refresh',
type: 'icon',
title: '恢复工序',
oprate: 'delete',
msg: '确认要恢复工序吗?'
icon: "md-refresh",
type: "icon",
title: "恢复工序",
oprate: "delete",
msg: "确认要恢复工序吗?"
},
on: { click: () => this.remove(params.row.id) }
})
])
]);
}
}
]
}
};
},
mounted() {
this.loadList()
this.loadList();
},
async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
//排产池加载数据列表
loadList()
{
Api.getall().then((res)=>{
if(res.success)
{
this.list=res.result
loadList() {
Api.getall().then(res => {
if (res.success) {
this.list = res.result;
}
})
});
},
addOk() {
this.$refs.grid.load()
this.addModal = false
this.detailModal = false
this.editModal = false
this.curId = 0
this.$refs.grid.load();
this.addModal = false;
this.detailModal = false;
this.editModal = false;
this.curId = 0;
},
detail(id) {
this.detailModal = true
this.curId = id
this.detailModal = true;
this.curId = id;
},
edit(id) {
this.editModal = true
this.curId = id
this.editModal = true;
this.curId = id;
},
remove(id) {
this.deletelModal = true
this.curId = id
this.deletelModal = true;
this.curId = id;
},
onSelect(a, b) {},
removeOk() {
Api.delete({ id: this.curId }).then((r) => {
Api.delete({ id: this.curId }).then(r => {
if (r.success) {
this.$refs.grid.load()
this.deletelModal = false
this.$Message.success('删除成功')
this.$refs.grid.load();
this.deletelModal = false;
this.$Message.success("删除成功");
}
})
});
},
removeCancel() {
this.deletelModal = false
this.deletelModal = false;
},
cancel() {
this.curId = 0
this.addModal = false
this.detailModal = false
this.editModal = false
this.deletedlModal = false
this.apsModal = false
this.curId = 0;
this.addModal = false;
this.detailModal = false;
this.editModal = false;
this.deletedlModal = false;
this.apsModal = false;
},
onDragDrop(a, b) {
this.list.splice(b, 1, ...this.list.splice(a, 1, this.list[b]))
this.list.splice(b, 1, ...this.list.splice(a, 1, this.list[b]));
},
openParms(id) {
this.addModal = true
this.addModal = true;
},
l(key) {
let vkey = 'mes_part_task_plan_simulate' + '.' + key
return this.$t(vkey) || key
let vkey = "mes_part_task_plan_simulate" + "." + key;
return this.$t(vkey) || key;
}
}
}
};
</script>
<style lang="less">
.drag {
......
......@@ -457,10 +457,6 @@ export default {
}
}
});
this.$router.push({
name: "aps-aps"
// params: { customerId: id }
});
},
addOk() {
this.$refs.grid.load();
......
......@@ -65,7 +65,7 @@ export default {
{
title: "序号",
type: "index",
width: 60,
width: 65,
align: "center"
},
{
......
......@@ -402,7 +402,7 @@ th.conciseContent .ivu-table-cell {
padding: 0px !important;
}
.ivu-table-cell {
padding: 0px !important;
/* padding: 0px !important; */
}
</style>>
......@@ -458,7 +458,7 @@ export default {
this.recordColumn = [
{
type: "index",
width: 60,
width: 65,
title: "序号",
align: "center"
},
......
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