Commit 744115f9 authored by renjintao's avatar renjintao

分卡

parent ca12b62f
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
} }
}, },
getCodes(e) { getCodes(e) {
let url = `${routeUrl}/orderproductcode/getbyorderid` let url = `${PlanUrl}/orderproductcode/getbyorderid`
if (this.eid) { if (this.eid) {
this.$api.get(url, { id: this.eid }).then((r) => { this.$api.get(url, { id: this.eid }).then((r) => {
if (r.success) { if (r.success) {
......
import Api from '@/plugins/request' import Api from '@/plugins/request'
export default { export default {
index: `${routeUrl}/orderaudit/pagedmonitormesorders`, index: `${PlanUrl}/orderaudit/pagedmonitormesorders`,
record: `${routeUrl}/orderpause/paged`, record: `${PlanUrl}/orderpause/paged`,
paged(params) { paged(params) {
return Api.post(`${routeUrl}/orderaudit/pagedmonitormesorders`, params); return Api.post(`${PlanUrl}/orderaudit/pagedmonitormesorders`, params);
}, },
pagedRecord(params) { pagedRecord(params) {
return Api.post(`${routeUrl}/orderpause/paged`, params); return Api.post(`${PlanUrl}/orderpause/paged`, params);
}, },
start(params) { start(params) {
return Api.post(`${routeUrl}/orderpause/start`, params); return Api.post(`${PlanUrl}/orderpause/start`, params);
}, },
create(params) { create(params) {
return Api.post(`${routeUrl}/orderpause/create`, params); return Api.post(`${PlanUrl}/orderpause/create`, params);
}, },
get(params) { get(params) {
return Api.get(`${routeUrl}/orderpause/get`, params); return Api.get(`${PlanUrl}/orderpause/get`, params);
}, },
info(params) {//工单信息 info(params) {//工单信息
return Api.post(`${routeUrl}/dispatch/orderdispatchsummary`, params); return Api.post(`${PlanUrl}/dispatch/orderdispatchsummary`, params);
}, },
// getplantdepartments(params) {// 组织为”车间“的部门 // getplantdepartments(params) {// 组织为”车间“的部门
// return Api.get(`${systemUrl}/department/getplantdepartments`, params); // return Api.get(`${systemUrl}/department/getplantdepartments`, params);
......
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
"op", "op",
{ {
props: { oprate: "edit", title: "分卡" }, props: { oprate: "edit", title: "分卡" },
style: params.row.status == 5 ? "" : "display:none", // style: params.row.status == 5 ? "" : "display:none",
on: { click: () => this.split(params.row) } on: { click: () => this.split(params.row) }
}, },
"分卡" "分卡"
......
import Api from '@/plugins/request' import Api from '@/plugins/request'
export default { export default {
index: `${routeUrl}/mesorder/pagedcompletedorders1`, index: `${PlanUrl}/mesorder/pagedcompletedorders1`,
paged(params) { paged(params) {
return Api.post(`${routeUrl}/mesorder/pagedcompletedorders1`, params); //已开具和未开具列表 return Api.post(`${PlanUrl}/mesorder/pagedcompletedorders1`, params); //已开具和未开具列表
}, },
ordercertificate(params) { ordercertificate(params) {
return Api.post(`${certificateUrl}/productcertificate/ordercertificatesummary`, params); //查看所有合格证列表 return Api.post(`${certificateUrl}/productcertificate/ordercertificatesummary`, params); //查看所有合格证列表
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
return Api.post(`${certificateUrl}/productcertificate/createcertianditems`, params); //产品合格证保存 return Api.post(`${certificateUrl}/productcertificate/createcertianditems`, params); //产品合格证保存
}, },
get(params) { get(params) {
return Api.get(`${routeUrl}/orderproductcode/getbyorderid`, params); //根据订单id返回产品编号 return Api.get(`${PlanUrl}/orderproductcode/getbyorderid`, params); //根据订单id返回产品编号
}, },
getCertificate(params) { getCertificate(params) {
return Api.get(`${certificateUrl}/productcertificate/certificate`, params); //单个合格证详情 return Api.get(`${certificateUrl}/productcertificate/certificate`, params); //单个合格证详情
......
...@@ -190,6 +190,8 @@ export default { ...@@ -190,6 +190,8 @@ export default {
this.$refs.form.validate(v => { this.$refs.form.validate(v => {
if (v) { if (v) {
this.disabled = true; this.disabled = true;
this.entity.handlingOpinions=this.entity.handlingOpinionsId
Api.create(this.entity) Api.create(this.entity)
.then(r => { .then(r => {
this.disabled = false; this.disabled = false;
......
...@@ -74,7 +74,8 @@ export default { ...@@ -74,7 +74,8 @@ export default {
title: this.l("proposeUserName"), title: this.l("proposeUserName"),
align: "left", align: "left",
high: true, high: true,
type: "user" type: "user",
width: 140,
}, },
{ {
key: "technicalName", key: "technicalName",
...@@ -90,24 +91,26 @@ export default { ...@@ -90,24 +91,26 @@ export default {
easy: true, easy: true,
high: true high: true
}, },
{ // {
key: "checkPerson", // key: "checkPerson",
title: this.l("checkPerson"), // title: this.l("checkPerson"),
align: "left", // align: "left",
high: true, // high: true,
type:'user' // type:'user'
}, // },
{ {
key: "quantity", key: "quantity",
title: this.l("quantity"), title: this.l("quantity"),
align: "right", align: "right",
high: true high: true,
width: 100,
}, },
{ {
key: "status", key: "status",
title: this.l("status"), title: this.l("status"),
align: "center", align: "center",
high: true, high: true,
width: 100,
code: "unProduct.repairstatus" code: "unProduct.repairstatus"
}, },
{ {
...@@ -143,8 +146,8 @@ export default { ...@@ -143,8 +146,8 @@ export default {
{ {
title: "操作", title: "操作",
key: "action", key: "action",
width: 140, width: 120,
align: "center", align: "left",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
h( h(
...@@ -162,7 +165,7 @@ export default { ...@@ -162,7 +165,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?"编辑":''
), ),
h( h(
"op", "op",
...@@ -170,7 +173,7 @@ export default { ...@@ -170,7 +173,7 @@ 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?"删除":""
) )
]); ]);
} }
......
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