物料页面修改
This commit is contained in:
@@ -24,4 +24,12 @@ export function edit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
||||
export function synchro(data) {
|
||||
return request({
|
||||
url: 'api/mdMeMaterial/synchro',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, synchro }
|
||||
|
||||
@@ -6,10 +6,22 @@
|
||||
<!-- 搜索 -->
|
||||
<label class="el-form-item-label" />
|
||||
<el-input v-model="query.name" clearable placeholder="输入名称或编码" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
|
||||
|
||||
<rrOperation :crud="crud" />
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission" />
|
||||
<crudOperation :permission="permission" >
|
||||
<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="550px">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="110px">
|
||||
@@ -116,6 +128,7 @@ import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import crudProducetask from '@/api/wms/pdm/producetask'
|
||||
|
||||
const defaultForm = {
|
||||
material_id: null,
|
||||
@@ -246,7 +259,13 @@ export default {
|
||||
},
|
||||
handleChange(value) {
|
||||
console.log(value)
|
||||
}
|
||||
},
|
||||
is_sys() {
|
||||
crudMdMeMaterial.synchro({ producetask_id:'' }).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -467,7 +467,8 @@ export default {
|
||||
})
|
||||
},
|
||||
is_sue() {
|
||||
crudProducetask.issued({ producetask_id: this.currentRow.producetask_id }).then(res => {
|
||||
debugger
|
||||
crudProducetask.issued({ producetask_id: this.currentRow.producetask_id, device_id: this.currentRow.device_id }).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
this.issue = true
|
||||
|
||||
Reference in New Issue
Block a user