rev:半成品盘点
This commit is contained in:
@@ -106,6 +106,17 @@
|
||||
>
|
||||
盘点出库
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
:disabled="add_flag"
|
||||
@click="extManage"
|
||||
>
|
||||
强制确认
|
||||
</el-button>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@@ -406,6 +417,39 @@ export default {
|
||||
}
|
||||
check.checkOut(this.nowrow).then(res => {
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
check.getCheckDtl({ 'check_id': this.form.check_id }).then(res => {
|
||||
this.tableData = res
|
||||
// 将明细变成不可编辑
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
const row = this.tableData[i]
|
||||
this.$set(row, 'edit', false)
|
||||
if (row.status > '04') {
|
||||
row.edit = true
|
||||
}
|
||||
this.tableData.splice(i, 1, row)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
extManage() {
|
||||
if (this.nowrow === null) {
|
||||
this.crud.notify('请先选中一条已存在的库存明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
check.extManage(this.nowrow).then(res => {
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
check.getCheckDtl({ 'check_id': this.form.check_id }).then(res => {
|
||||
this.tableData = res
|
||||
// 将明细变成不可编辑
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
const row = this.tableData[i]
|
||||
this.$set(row, 'edit', false)
|
||||
if (row.status > '04') {
|
||||
row.edit = true
|
||||
}
|
||||
this.tableData.splice(i, 1, row)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
saveCheck() {
|
||||
|
||||
@@ -127,6 +127,14 @@ export function checkOut(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function extManage(data) {
|
||||
return request({
|
||||
url: '/api/bcp/checkHr/extManage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
add,
|
||||
edit,
|
||||
@@ -141,5 +149,6 @@ export default {
|
||||
process0,
|
||||
issueTask,
|
||||
getOutBillDis,
|
||||
process1
|
||||
process1,
|
||||
extManage
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ export default {
|
||||
if (current !== null) {
|
||||
this.currentRow = current
|
||||
this.downdtl_flag = false
|
||||
if (current.status === '10' || current.status === '30' || current.status === '99') {
|
||||
if (current.status === '10' || current.status === '30') {
|
||||
this.check_flag = false
|
||||
} else {
|
||||
this.check_flag = true
|
||||
|
||||
Reference in New Issue
Block a user