Commit d6583fc2 authored by renjintao's avatar renjintao

equip_type

parent c624f999
<template> <template>
<div style="padding: 0;" class="excute"> <div style="padding: 0;" class="excute">
<DataGrid <DataGrid style="margin-top:2px; margin-bottom: -5px;" :columns="columns" ref="grid" :easy="false" :high="false" :set="false" :border="false" :data="data1" :height="gridHeight" :page="false" :size="size"></DataGrid>
style="margin-top:2px; margin-bottom: -5px;"
:columns="columns"
ref="grid"
:easy="false"
:high="false"
:set="false"
:border="false"
:data="data1"
:height="gridHeight"
:page="false"
:size="size"
></DataGrid>
<Modal v-model="editModal" title="编辑" footer-hide width="800"> <Modal v-model="editModal" title="编辑" footer-hide width="800">
<Edit :row="rowData" @on-close="cancel" @on-option-ok="addOk" /> <Edit :row="rowData" @on-close="cancel" @on-option-ok="addOk" />
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import Api from "../../aps/api"; import Api from "../../aps/api";
import Edit from "./edit"; import Edit from "./edit";
...@@ -29,7 +18,9 @@ export default { ...@@ -29,7 +18,9 @@ export default {
Add Add
}, },
props: { props: {
rowId: { type: Number } rowId: {
type: Number
}
}, },
data() { data() {
return { return {
...@@ -47,8 +38,10 @@ export default { ...@@ -47,8 +38,10 @@ export default {
curId: 0, curId: 0,
gridHeight: 150, gridHeight: 150,
size: "small", size: "small",
columns: [ columns: [{
{ title: " ", width: 130 }, title: " ",
width: 130
},
{ {
key: "task_seq", key: "task_seq",
title: this.l("task_seq"), title: this.l("task_seq"),
...@@ -108,6 +101,13 @@ export default { ...@@ -108,6 +101,13 @@ export default {
width: 140, width: 140,
hide: true hide: true
}, },
{
key: "equip_type",
title: this.l("equip_type"),
align: "left",
easy: true,
high: true
},
{ {
key: "first_equip", key: "first_equip",
title: this.l("first_equip"), title: this.l("first_equip"),
...@@ -282,7 +282,9 @@ export default { ...@@ -282,7 +282,9 @@ export default {
width: 140, width: 140,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", {
class: "action"
}, [
h("op", { h("op", {
attrs: { attrs: {
icon: "md-create", icon: "md-create",
...@@ -290,7 +292,9 @@ export default { ...@@ -290,7 +292,9 @@ export default {
title: "編輯工序", title: "編輯工序",
oprate: "edit" oprate: "edit"
}, },
on: { click: () => this.edit(params.row) } on: {
click: () => this.edit(params.row)
}
}), }),
h("op", { h("op", {
attrs: { attrs: {
...@@ -300,7 +304,9 @@ export default { ...@@ -300,7 +304,9 @@ export default {
oprate: "delete", oprate: "delete",
msg: "确认要刪除工序吗?" msg: "确认要刪除工序吗?"
}, },
on: { click: () => this.remove(params.row, params.index) } on: {
click: () => this.remove(params.row, params.index)
}
}) })
]); ]);
} }
...@@ -323,7 +329,10 @@ export default { ...@@ -323,7 +329,10 @@ export default {
mounted() { mounted() {
this.loadData(this.rowId); this.loadData(this.rowId);
}, },
async fetch({ store, params }) { async fetch({
store,
params
}) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
...@@ -385,6 +394,7 @@ export default { ...@@ -385,6 +394,7 @@ export default {
} }
}; };
</script> </script>
<style lang="less"> <style lang="less">
.excute table tr th span, .excute table tr th span,
.excute table tr td { .excute table tr td {
......
...@@ -211,8 +211,7 @@ export default { ...@@ -211,8 +211,7 @@ export default {
title: this.l("equip_type"), title: this.l("equip_type"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
hide: true
}, },
{ {
key: "first_equip", key: "first_equip",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@import "../processDesign/Process/menu.less"; @import "../processDesign/Process/menu.less";
</style> </style>
<template> <template>
<div class="new_box"> <div class="new_box">
<Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="160" inline> <Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="160" inline>
<!-- <Row> <!-- <Row>
<FormItem label="文件模板" prop="file_template"> <FormItem label="文件模板" prop="file_template">
...@@ -27,13 +27,7 @@ ...@@ -27,13 +27,7 @@
<Row> <Row>
<Col span="10"> <Col span="10">
<FormItem label="文档编号" prop="code"> <FormItem label="文档编号" prop="code">
<Input <Input size="large" v-model.trim="formValidate.code" placeholder="请输入..." style="width:240px" :disabled="codeisview" />
size="large"
v-model.trim="formValidate.code"
placeholder="请输入..."
style="width:240px"
:disabled="codeisview"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="10"> <Col span="10">
...@@ -49,11 +43,7 @@ ...@@ -49,11 +43,7 @@
<Table stripe ref="table" border :columns="column1" :data="formValidate1" class="tableCommon"> <Table stripe ref="table" border :columns="column1" :data="formValidate1" class="tableCommon">
<template slot-scope="{ row,index }" slot="materialType"> <template slot-scope="{ row,index }" slot="materialType">
<state <state code="mes_xingchi_resource.material.materialReType" type="text" :value="row.material_type"></state>
code="mes_xingchi_resource.material.materialReType"
type="text"
:value="row.material_type"
></state>
</template> </template>
</Table> </Table>
<Modal v-model="newModel" title="查看物料项" :mask-closable="false" width="830px"> <Modal v-model="newModel" title="查看物料项" :mask-closable="false" width="830px">
...@@ -77,11 +67,7 @@ ...@@ -77,11 +67,7 @@
<Col :span="12"> <Col :span="12">
<FormItem :label="l('materialType')" prop="materialType"> <FormItem :label="l('materialType')" prop="materialType">
<Dictionary <Dictionary :disabled="true" code="mes_xingchi_resource.material.materialReType" v-model="formprocessValidate.material_type"></Dictionary>
:disabled="true"
code="mes_xingchi_resource.material.materialReType"
v-model="formprocessValidate.material_type"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -117,8 +103,9 @@ ...@@ -117,8 +103,9 @@
</Row> </Row>
</Form> </Form>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import service from "@/plugins/request"; import service from "@/plugins/request";
...@@ -140,9 +127,11 @@ export default { ...@@ -140,9 +127,11 @@ export default {
editindex: -1, editindex: -1,
ruleValidate: { ruleValidate: {
materialPlanFinishDate: [ materialPlanFinishDate: [{
{ required: true, message: "配套完成时间不能为空", trigger: "blur" } required: true,
] message: "配套完成时间不能为空",
trigger: "blur"
}]
// name: [ // name: [
// { required: true, message: '文件名称不能为空', trigger: 'blur' } // { required: true, message: '文件名称不能为空', trigger: 'blur' }
...@@ -226,8 +215,12 @@ export default { ...@@ -226,8 +215,12 @@ export default {
procurementStandards: "", procurementStandards: "",
qualityGrade: "" qualityGrade: ""
}, },
column1: [ column1: [{
{ title: "序号", type: "index", width: "70", align: "center" }, title: "序号",
type: "index",
width: "70",
align: "center"
},
{ {
key: "materialNumber", key: "materialNumber",
title: this.l("materialNumber"), title: this.l("materialNumber"),
...@@ -329,14 +322,17 @@ export default { ...@@ -329,14 +322,17 @@ export default {
let id = params.row.id; let id = params.row.id;
return h( return h(
"div", "div", {
{
class: "icon_box" class: "icon_box"
}, },
[ [
h("op", { h("op", {
class: "view ", class: "view ",
attrs: { icon: "ios-eye", title: "查看", type: "icon" }, attrs: {
icon: "ios-eye",
title: "查看",
type: "icon"
},
on: { on: {
click: () => { click: () => {
this.editFun(params); this.editFun(params);
...@@ -352,7 +348,7 @@ export default { ...@@ -352,7 +348,7 @@ export default {
}, },
mounted() {}, mounted() {},
created: function() {}, created: function () {},
methods: { methods: {
handleCreate1(val) { handleCreate1(val) {
this.EquipList.push({ this.EquipList.push({
...@@ -372,7 +368,7 @@ export default { ...@@ -372,7 +368,7 @@ export default {
this.newModel = true; this.newModel = true;
}, },
loaddata(orderid) { loaddata(orderid) {
var url = `${designUrl}/ordermateriallist/getbyorderid?id=` + orderid; var url = `${technologyUrl}/ordermateriallist/getbyorderid?id=` + orderid;
service.get(`${url}`).then(response => { service.get(`${url}`).then(response => {
this.formValidate = response.result.orderMaterial; this.formValidate = response.result.orderMaterial;
...@@ -394,7 +390,7 @@ export default { ...@@ -394,7 +390,7 @@ export default {
orderMaterialList: this.formValidate1, orderMaterialList: this.formValidate1,
finishDate: this.formValidate.materialPlanFinishDate finishDate: this.formValidate.materialPlanFinishDate
}; };
let url = `${designUrl}/ordersupport/updateordermaterialactualquantity`; let url = `${technologyUrl}/ordersupport/updateordermaterialactualquantity`;
service.put(`${url}`, parmes).then(res => { service.put(`${url}`, parmes).then(res => {
if (res.success) { if (res.success) {
this.$Message.success("操作成功"); this.$Message.success("操作成功");
......
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