fix: 系统优化

This commit is contained in:
2023-05-19 17:45:22 +08:00
parent 1ab3878fe2
commit 2bcc3197cc
14 changed files with 233 additions and 34 deletions

View File

@@ -69,7 +69,7 @@
>
<el-option
v-for="item in dict.ST_INV_TYPE_MV"
:disabled="item.value === '21'"
:disabled="item.value === '21' || item.value === '31'"
:key="item.value"
:label="item.label"
:value="item.value"

View File

@@ -73,4 +73,11 @@ export function getBoxIvt(data) {
data
})
}
export default { add, edit, del, getOutBillDtl,getStructIvt,confirm,getInvTypes,handdown, getBoxIvt }
export function checkReturn() {
return request({
url: '/api/handmovestor/checkReturn',
method: 'post'
})
}
export default { add, edit, del, getOutBillDtl,getStructIvt,confirm,getInvTypes,handdown, getBoxIvt, checkReturn }

View File

@@ -140,6 +140,17 @@
>
强制确认
</el-button>
<el-button
slot="right"
class="filter-item"
type="warning"
icon="el-icon-check"
size="mini"
:loading="checkReturnLoading"
@click="checkReturn"
>
盘点回库
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table
@@ -231,7 +242,8 @@ export default {
mstrow: {},
loadingConfirm: false,
currentRow: null,
storlist: []
storlist: [],
checkReturnLoading: false
}
},
mounted: function() {
@@ -331,6 +343,16 @@ export default {
this.onSelectAll()
this.crud.toQuery()
this.handleCurrentChange(null)
},
checkReturn() {
this.checkReturnLoading = true
handmovestor.checkReturn().then(res => {
this.crud.toQuery()
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.checkReturnLoading = false
}).catch(() => {
this.checkReturnLoading = false
})
}
}
}