Commit 0b285799 authored by renjintao's avatar renjintao

setupTime 更改单送审

parent b6b8616b
......@@ -1218,7 +1218,7 @@ export default {
resourceType: '首选资源',
resourceCode: '首选资源',
runtime: '排产单件工时',
setupTime: '准备工时',
setupTime: '排产准结工时',
transportTime: '转运工时',
checkTime: '检验工时',
checkFlag: '检验标识',
......@@ -1235,7 +1235,7 @@ export default {
outsideTime: '外协工期',
performanceHours: '绩效工时',
isImportantResources: '关重资源',
schedulingWorkingHours: '排产准结工时',
schedulingWorkingHours: '*排产准结工时',
realWorkingHours: '实作准结工时',
realRuntime: '实作单件工时',
performanceWorkingHours: '绩效准结工时',
......
......@@ -109,8 +109,8 @@
</FormItem>
</Col>-->
<Col :span="12">
<FormItem :label="l('schedulingWorkingHours')" prop="schedulingWorkingHours">
<InputTime v-model="entity.schedulingWorkingHours" />
<FormItem :label="l('setupTime')" prop="setupTime">
<InputTime v-model="entity.setupTime" />
</FormItem>
</Col>
<Col :span="12">
......@@ -192,7 +192,7 @@ export default {
isImportant: null,
outsideTime: 0,
isImportantResources: null,
schedulingWorkingHours: 0,
setupTime: 0,
realWorkingHours: 0,
realRuntime: 0,
isParticipateIntime: null,
......
......@@ -14,7 +14,7 @@
<!-- <Filed :span="12" :name="l('isImportantResources')">
<state code="Process.state" :value="entity.isImportantResources" type="text"></state>
</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('realRuntime')"><OutputTime :value="entity.realRuntime"></OutputTime></Filed>
<Filed :span="12" :name="l('realWorkingHours')"><OutputTime :value="entity.realWorkingHours"></OutputTime></Filed>
......
......@@ -109,8 +109,8 @@
</FormItem>
</Col>-->
<Col :span="12">
<FormItem :label="l('schedulingWorkingHours')" prop="schedulingWorkingHours">
<InputTime v-model="entity.schedulingWorkingHours" />
<FormItem :label="l('setupTime')" prop="setupTime">
<InputTime v-model="entity.setupTime" />
</FormItem>
</Col>
<Col :span="12">
......
......@@ -105,8 +105,8 @@ export default {
// },
{
key: "schedulingWorkingHours",
title: this.l("schedulingWorkingHours"),
key: "setupTime",
title: this.l("setupTime"),
align: "right",
type: "outputTime",
},
......
......@@ -127,7 +127,7 @@
</Col>
</Row>
</Form>
<changeSendReview ref="changeSendReview"></changeSendReview>
<changeSendReview ref="changeSendReview" @on-ok="ok"></changeSendReview>
</div>
</template>
<script>
......@@ -204,9 +204,7 @@ export default {
this.disabled = true;
this.entity.handlingOpinions = this.entity.handlingOpinionsId;
this.entity.routingHeaderId = this.headid;
if (!this.checked) {
this.entity.status = 1;
}
this.entity.status = 1;
Api.create(this.entity)
.then(r => {
this.disabled = false;
......@@ -293,6 +291,10 @@ export default {
this.entity.departmentId = v;
this.entity.departmentName = items.name;
},
ok()
{
this.$emit("on-ok")
},
l(key) {
key = "routing_header_changeorder" + "." + key;
return this.$t(key);
......
......@@ -87,6 +87,7 @@ export default {
this.$http.order.batchstart(this.dataListRetrunNew).then(response => {
if (response.success) {
this.$Message.info("工艺更改单送审成功!");
this.$emit("on-ok")
} else {
this.$Message.error("送审失败!");
}
......
......@@ -21,15 +21,18 @@
<Modal v-model="modal" :title="title" width="1200" footer-hide scrollable>
<component :is="detail" :eid="curId" :headid="hid" @on-close="cancel" @on-ok="ok" />
</Modal>
<changeSendReview ref="changeSendReview" @on-ok="ok"></changeSendReview>
</div>
</template>
<script>
import Api from "./api";
import Search from "./search";
import changeSendReview from "./changeSendReview.vue";
export default {
name: "list",
components: {
Search
Search,
changeSendReview
},
head: {
title: "工艺变更单",
......@@ -122,7 +125,7 @@ export default {
key: "creationTime",
title: this.l("creationTime"),
hide: true,
align: "left",
align: "center",
hide: true
},
{
......@@ -137,7 +140,7 @@ export default {
key: "lastModificationTime",
title: this.l("lastModificationTime"),
hide: true,
align: "left",
align: "center",
hide: true
},
{
......@@ -151,7 +154,7 @@ export default {
{
title: "操作",
key: "action",
width: 120,
width: 150,
align: "left",
render: (h, params) => {
return h("div", { class: "action" }, [
......@@ -179,6 +182,14 @@ export default {
on: { click: () => this.remove(params.row.id) }
},
params.row.status == 1 ? "删除" : ""
),
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 {
},
mounted() {
console.log(this);
this.search()
this.search();
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
......@@ -196,6 +207,7 @@ export default {
methods: {
ok() {
this.$refs.grid.load();
this.$refs.changeSendReview.modalInfo = false;
this.modal = false;
this.curId = 0;
},
......@@ -239,6 +251,18 @@ export default {
this.curId = 0;
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) {
let vkey = "routing_header_changeorder" + "." + key;
return this.$t(vkey) || key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment