no message

This commit is contained in:
18188916393
2022-09-01 17:37:55 +08:00
parent 182d4f498b
commit 643d790311
14 changed files with 147 additions and 13 deletions

View File

@@ -101,10 +101,17 @@ export function mandFinish(data) {
export function issued(data) {
return request({
url: 'api/producetask/issued',
url: 'api/producetask/npm',
method: 'put',
data
})
}
export function synchro(data) {
return request({
url: 'api/producetask/synchro',
method: 'put',
data
})
}
export default { add, edit, del, getMaterial, getDevice, getProduceline, getCust, getWorkprocedure, excelImport, getDevice1, copyAdd, sortUpdate, mandFinish, issued }
export default { add, edit, del, getMaterial, getDevice, getProduceline, getCust, getWorkprocedure, excelImport, getDevice1, copyAdd, sortUpdate, mandFinish, issued, synchro }

View File

@@ -124,6 +124,16 @@
>
排序
</el-button>
<el-button
slot="right"
class="filter-item"
type="info"
icon="el-icon-s-comment"
size="mini"
@click="is_sys"
>
同步
</el-button>
</crudOperation>
<!--表单组件-->
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="780px">
@@ -465,6 +475,15 @@ export default {
this.mind_finish = true
})
},
is_sys() {
crudProducetask.synchro({ producetask_id:'' }).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
this.issue = true
this.copy_add = true
this.mind_finish = true
})
},
buttonChange(current) {
if (current !== null) {
this.currentRow = current