add:成品报废审核
This commit is contained in:
@@ -80,6 +80,19 @@
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="warning"
|
||||
:permission="permission"
|
||||
:disabled="work_flag"
|
||||
:loading="loading_button"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@click="onSubmit"
|
||||
>
|
||||
提交
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
@@ -259,6 +272,16 @@ export default {
|
||||
checkboxT(row) {
|
||||
return row.bill_status !== '99'
|
||||
},
|
||||
onSubmit() {
|
||||
this.loading_button = true
|
||||
productscrap.onSubmit(this.currentRow).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.loading_button = false
|
||||
}).catch(() => {
|
||||
this.loading_button = false
|
||||
})
|
||||
},
|
||||
auditPass() {
|
||||
this.loading_button = true
|
||||
productscrap.auditPass(this.currentRow).then(res => {
|
||||
|
||||
@@ -52,4 +52,11 @@ export function auditOut(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, getOutBillDtl, auditPass, auditOut }
|
||||
export function onSubmit(data) {
|
||||
return request({
|
||||
url: '/api/productscrap/onSubmit',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, getOutBillDtl, auditPass, auditOut, onSubmit }
|
||||
|
||||
Reference in New Issue
Block a user