Commit 2eed7992 authored by 康振飞's avatar 康振飞

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

parents 390d952b 4973afc9
...@@ -1218,7 +1218,7 @@ export default { ...@@ -1218,7 +1218,7 @@ export default {
resourceType: '首选资源', resourceType: '首选资源',
resourceCode: '首选资源', resourceCode: '首选资源',
runtime: '排产单件工时', runtime: '排产单件工时',
setupTime: '准备工时', setupTime: '排产准结工时',
transportTime: '转运工时', transportTime: '转运工时',
checkTime: '检验工时', checkTime: '检验工时',
checkFlag: '检验标识', checkFlag: '检验标识',
...@@ -1235,7 +1235,7 @@ export default { ...@@ -1235,7 +1235,7 @@ export default {
outsideTime: '外协工期', outsideTime: '外协工期',
performanceHours: '绩效工时', performanceHours: '绩效工时',
isImportantResources: '关重资源', isImportantResources: '关重资源',
schedulingWorkingHours: '排产准结工时', schedulingWorkingHours: '*排产准结工时',//准备工时?
realWorkingHours: '实作准结工时', realWorkingHours: '实作准结工时',
realRuntime: '实作单件工时', realRuntime: '实作单件工时',
performanceWorkingHours: '绩效准结工时', performanceWorkingHours: '绩效准结工时',
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('version')" prop="versionid"> <FormItem :label="l('version')" prop="versionid">
<Dictionary code="Process.Routing.version" v-model="entity.versionid"></Dictionary> <Dictionary code="Process.Routing.version" v-model="entity.versionid"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
...@@ -196,7 +196,15 @@ export default { ...@@ -196,7 +196,15 @@ export default {
}, },
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], name: [{ required: true, message: "必填", trigger: "blur" }],
code: [{ required: true, message: "必填", trigger: "blur" }] code: [{ required: true, message: "必填", trigger: "blur" }],
routingType: [
{
required: true,
message: "请选择工艺类型",
trigger: "change",
type: "number"
}
]
}, },
parms: { parms: {
app: "technology", app: "technology",
......
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
</FormItem> </FormItem>
</Col>--> </Col>-->
<Col :span="12"> <Col :span="12">
<FormItem :label="l('schedulingWorkingHours')" prop="schedulingWorkingHours"> <FormItem :label="l('setupTime')" prop="setupTime">
<InputTime v-model="entity.schedulingWorkingHours" /> <InputTime v-model="entity.setupTime" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
isImportant: null, isImportant: null,
outsideTime: 0, outsideTime: 0,
isImportantResources: null, isImportantResources: null,
schedulingWorkingHours: 0, setupTime: 0,
realWorkingHours: 0, realWorkingHours: 0,
realRuntime: 0, realRuntime: 0,
isParticipateIntime: null, isParticipateIntime: null,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<!-- <Filed :span="12" :name="l('isImportantResources')"> <!-- <Filed :span="12" :name="l('isImportantResources')">
<state code="Process.state" :value="entity.isImportantResources" type="text"></state> <state code="Process.state" :value="entity.isImportantResources" type="text"></state>
</Filed> --> </Filed> -->
<Filed :span="12" :name="l('schedulingWorkingHours')"><OutputTime :value="entity.schedulingWorkingHours"></OutputTime></Filed> <Filed :span="12" :name="l('setupTime')"><OutputTime :value="entity.setupTime"></OutputTime></Filed>
<Filed :span="12" :name="l('runtime')"><OutputTime :value="entity.runtime"></OutputTime></Filed> <Filed :span="12" :name="l('runtime')"><OutputTime :value="entity.runtime"></OutputTime></Filed>
<Filed :span="12" :name="l('realRuntime')"><OutputTime :value="entity.realRuntime"></OutputTime></Filed> <Filed :span="12" :name="l('realRuntime')"><OutputTime :value="entity.realRuntime"></OutputTime></Filed>
<Filed :span="12" :name="l('realWorkingHours')"><OutputTime :value="entity.realWorkingHours"></OutputTime></Filed> <Filed :span="12" :name="l('realWorkingHours')"><OutputTime :value="entity.realWorkingHours"></OutputTime></Filed>
......
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
</FormItem> </FormItem>
</Col>--> </Col>-->
<Col :span="12"> <Col :span="12">
<FormItem :label="l('schedulingWorkingHours')" prop="schedulingWorkingHours"> <FormItem :label="l('setupTime')" prop="setupTime">
<InputTime v-model="entity.schedulingWorkingHours" /> <InputTime v-model="entity.setupTime" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
......
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
// }, // },
{ {
key: "schedulingWorkingHours", key: "setupTime",
title: this.l("schedulingWorkingHours"), title: this.l("setupTime"),
align: "right", align: "right",
type: "outputTime", type: "outputTime",
}, },
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</Col> </Col>
</Row> </Row>
</Form> </Form>
<changeSendReview ref="changeSendReview"></changeSendReview> <changeSendReview ref="changeSendReview" @on-ok="ok"></changeSendReview>
</div> </div>
</template> </template>
<script> <script>
...@@ -204,9 +204,7 @@ export default { ...@@ -204,9 +204,7 @@ export default {
this.disabled = true; this.disabled = true;
this.entity.handlingOpinions = this.entity.handlingOpinionsId; this.entity.handlingOpinions = this.entity.handlingOpinionsId;
this.entity.routingHeaderId = this.headid; this.entity.routingHeaderId = this.headid;
if (!this.checked) { this.entity.status = 1;
this.entity.status = 1;
}
Api.create(this.entity) Api.create(this.entity)
.then(r => { .then(r => {
this.disabled = false; this.disabled = false;
...@@ -293,6 +291,10 @@ export default { ...@@ -293,6 +291,10 @@ export default {
this.entity.departmentId = v; this.entity.departmentId = v;
this.entity.departmentName = items.name; this.entity.departmentName = items.name;
}, },
ok()
{
this.$emit("on-ok")
},
l(key) { l(key) {
key = "routing_header_changeorder" + "." + key; key = "routing_header_changeorder" + "." + key;
return this.$t(key); return this.$t(key);
......
...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
this.$http.order.batchstart(this.dataListRetrunNew).then(response => { this.$http.order.batchstart(this.dataListRetrunNew).then(response => {
if (response.success) { if (response.success) {
this.$Message.info("工艺更改单送审成功!"); this.$Message.info("工艺更改单送审成功!");
this.$emit("on-ok")
} else { } else {
this.$Message.error("送审失败!"); this.$Message.error("送审失败!");
} }
......
...@@ -21,15 +21,18 @@ ...@@ -21,15 +21,18 @@
<Modal v-model="modal" :title="title" width="1200" footer-hide scrollable> <Modal v-model="modal" :title="title" width="1200" footer-hide scrollable>
<component :is="detail" :eid="curId" :headid="hid" @on-close="cancel" @on-ok="ok" /> <component :is="detail" :eid="curId" :headid="hid" @on-close="cancel" @on-ok="ok" />
</Modal> </Modal>
<changeSendReview ref="changeSendReview" @on-ok="ok"></changeSendReview>
</div> </div>
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
import Search from "./search"; import Search from "./search";
import changeSendReview from "./changeSendReview.vue";
export default { export default {
name: "list", name: "list",
components: { components: {
Search Search,
changeSendReview
}, },
head: { head: {
title: "工艺变更单", title: "工艺变更单",
...@@ -122,7 +125,7 @@ export default { ...@@ -122,7 +125,7 @@ export default {
key: "creationTime", key: "creationTime",
title: this.l("creationTime"), title: this.l("creationTime"),
hide: true, hide: true,
align: "left", align: "center",
hide: true hide: true
}, },
{ {
...@@ -137,7 +140,7 @@ export default { ...@@ -137,7 +140,7 @@ export default {
key: "lastModificationTime", key: "lastModificationTime",
title: this.l("lastModificationTime"), title: this.l("lastModificationTime"),
hide: true, hide: true,
align: "left", align: "center",
hide: true hide: true
}, },
{ {
...@@ -151,7 +154,7 @@ export default { ...@@ -151,7 +154,7 @@ export default {
{ {
title: "操作", title: "操作",
key: "action", key: "action",
width: 120, width: 150,
align: "left", align: "left",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
...@@ -170,7 +173,7 @@ export default { ...@@ -170,7 +173,7 @@ export default {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row.id) } on: { click: () => this.edit(params.row.id) }
}, },
params.row.status == 1 ? "编辑" : "" params.row.status == 1||params.row.status == 4 ? "编辑" : ""
), ),
h( h(
"op", "op",
...@@ -178,7 +181,15 @@ export default { ...@@ -178,7 +181,15 @@ export default {
attrs: { oprate: "delete" }, attrs: { oprate: "delete" },
on: { click: () => this.remove(params.row.id) } on: { click: () => this.remove(params.row.id) }
}, },
params.row.status == 1 ? "删除" : "" params.row.status == 1||params.row.status == 4 ? "删除" : ""
),
h(
"op",
{
attrs: { oprate: "edit" },
on: { click: () => this.sendReview(params.row) }
},
params.row.status == null||params.row.status == 1 ? "送审" : ""
) )
]); ]);
} }
...@@ -188,7 +199,7 @@ export default { ...@@ -188,7 +199,7 @@ export default {
}, },
mounted() { mounted() {
console.log(this); console.log(this);
this.search() this.search();
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
...@@ -196,6 +207,7 @@ export default { ...@@ -196,6 +207,7 @@ export default {
methods: { methods: {
ok() { ok() {
this.$refs.grid.load(); this.$refs.grid.load();
this.$refs.changeSendReview.modalInfo = false;
this.modal = false; this.modal = false;
this.curId = 0; this.curId = 0;
}, },
...@@ -239,6 +251,18 @@ export default { ...@@ -239,6 +251,18 @@ export default {
this.curId = 0; this.curId = 0;
this.modal = false; this.modal = false;
}, },
sendReview(row) {
let params = {
changeorder_code: row.changeorderCode,
pageindex: 1,
pageSize: 10
};
Api.getpaged1(params).then(res => {
this.$refs.changeSendReview.info.changeInfo = res.result.items[0];
this.$refs.changeSendReview.changeorder_code = row.changeorderCode;
});
this.$refs.changeSendReview.modalInfo = true;
},
l(key) { l(key) {
let vkey = "routing_header_changeorder" + "." + key; let vkey = "routing_header_changeorder" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
......
...@@ -275,7 +275,7 @@ export default { ...@@ -275,7 +275,7 @@ export default {
{ {
title: "操作", title: "操作",
key: "action", key: "action",
width: 320, width: 260,
align: "left", align: "left",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
......
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