This commit is contained in:
parent
d808d777a5
commit
be9f9b3521
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
<a-button type="primary" @click="pageComplete">完成布产</a-button>
|
||||
|
||||
<a-button type="primary" @click="pageCopy">改模</a-button>
|
||||
|
||||
<a-button @click="back">关闭</a-button>
|
||||
|
||||
</div>
|
||||
|
|
@ -106,6 +108,8 @@ export default {
|
|||
var pageData = {
|
||||
|
||||
|
||||
editPageUrl: "/Mold/MoldProductionOrderUpdate/",
|
||||
|
||||
options_production_type: options_production_type,
|
||||
options_is_complete: options_is_complete,
|
||||
options_is_send: options_is_send,
|
||||
|
|
@ -849,8 +853,39 @@ export default {
|
|||
this.back();
|
||||
},
|
||||
|
||||
pageCopy(){
|
||||
let dataId = this.getDataId();
|
||||
if (!dataId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
let sendCopy = () => {
|
||||
this.$mk.post({
|
||||
url: `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/change`,
|
||||
loading: '操作中...',
|
||||
data: {
|
||||
id: this.getDataId_BigInt()
|
||||
},
|
||||
useBigInt: true
|
||||
}).then(a => {
|
||||
if (a.code == "200") {
|
||||
this.$mk.success("操作成功");
|
||||
this.$openPage(this.editPageUrl + a.data.id);
|
||||
}
|
||||
else {
|
||||
this.$mk.error(a.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
this.$mk.confirm('您确定要改模布产吗?').then(type => {
|
||||
if (type == 'confirm') {
|
||||
sendCopy("");
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
pageComplete() {
|
||||
let dataId = this.getDataId();
|
||||
if (!dataId) {
|
||||
|
|
|
|||
|
|
@ -227,6 +227,8 @@ export default {
|
|||
|
||||
{ title: '模具图片', slots: { default: 'column4' }, width: 90 },
|
||||
|
||||
{ field: 'change_production_detail', formatter: 'formatRef', params: { dataType: "object", textField: "code" }, sortable: false, title: '改模前布产号', width: 120 },
|
||||
|
||||
{ slots: { content: 'column3' }, type: "expand", width: 100, title: '进度明细', showHeaderOverflow: true },
|
||||
{ field: 'progress', minWidth: 150, cellRender: { name: 'progress' }, title: '总进度', showHeaderOverflow: true },
|
||||
// { slots: { default: 'column2' },width: 200, title: '进度明细', showHeaderOverflow: true },
|
||||
|
|
|
|||
Loading…
Reference in New Issue