Commit 897c388f authored by renjintao's avatar renjintao

工艺克隆 、工时提交 bug

parent 9f452c28
......@@ -69,7 +69,7 @@
</p>
</Card>
<a class="gs_card gs_add" @click="addItem" v-show="this.waitHours != 0">
<a class="gs_card gs_add" @click="addItem" v-show="this.waitHours != 0&&topInfoShow.subWorkHourStatus!=1">
<Icon type="ios-add" style="vertical-align: middle" />
</a>
</div>
......@@ -299,6 +299,7 @@ export default {
}).then((res) => {
if (res.success) {
this.$Message.success("已提交");
this.Initload();
this.laodHorse();
} else {
this.$Message.error("提交失败...");
......
......@@ -280,11 +280,11 @@ export default {
},
// 克隆工艺
getcloneData() {
let parmese = {
headerId: this.eid,
code: this.entity.code,
};
Api.getCloneHeader(parmese)
// let parmese = {
// headerId: this.eid,
// code: this.entity.code,
// };
Api.getCloneHeader(this.entity)
.then((r) => {
if (r.success) {
this.$Message.success("克隆成功");
......@@ -328,9 +328,10 @@ export default {
}).then((r) => {
this.entity = r.result;
this.entity.isEffect = parseInt(r.result.isEffect);
this.entity.id = 0;
this.getCodNumber();
//this.entity.id = 0;
});
this.getCodNumber();
},
getCodNumber() {
Api.getCodeNumber({
......
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