add:盘点出库
This commit is contained in:
@@ -95,6 +95,17 @@
|
||||
>
|
||||
下发任务
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
:disabled="add_flag"
|
||||
@click="checkOut"
|
||||
>
|
||||
盘点出库
|
||||
</el-button>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@@ -124,7 +135,8 @@
|
||||
<el-table-column prop="base_qty" label="重量/数量" :formatter="crud.formatNum0" align="center" />
|
||||
<el-table-column prop="qty_unit_name" label="计量单位" align="center" />
|
||||
<el-table-column prop="check_result" label="是否异常" align="center" :formatter="check_resultFormat" />
|
||||
<el-table-column prop="status" label="状态" align="center" :formatter="bill_statusFormat" />
|
||||
<el-table-column prop="status" label="单据状态" align="center" :formatter="bill_statusFormat" />
|
||||
<el-table-column prop="remark" label="备注" align="center" show-overflow-tooltip width="150"/>
|
||||
</el-table>
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -156,7 +168,7 @@ export default {
|
||||
type: Object
|
||||
}
|
||||
},
|
||||
dicts: ['CHECK_BILL_STATUS', 'ST_INV_CK_TYPE', 'CHECK_DTL_STATUS', 'check_result'],
|
||||
dicts: ['CHECK_BILL_STATUS', 'ST_INV_CK_TYPE', 'CHECK_DTL_STATUS', 'check_result_hr'],
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
@@ -301,7 +313,7 @@ export default {
|
||||
return this.dict.label.CHECK_DTL_STATUS[row.status]
|
||||
},
|
||||
check_resultFormat(row, column) {
|
||||
return this.dict.label.check_result[row.check_result]
|
||||
return this.dict.label.check_result_hr[row.check_result]
|
||||
},
|
||||
addrow() {
|
||||
if (this.nowrow === null) {
|
||||
@@ -387,6 +399,15 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
checkOut() {
|
||||
if (this.nowrow === null) {
|
||||
this.crud.notify('请先选中一条已存在的库存明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
check.checkOut(this.nowrow).then(res => {
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
})
|
||||
},
|
||||
saveCheck() {
|
||||
if (this.tableData.length === 0) {
|
||||
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
|
||||
@@ -119,10 +119,19 @@ export function issueTask(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function checkOut(data) {
|
||||
return request({
|
||||
url: '/api/bcp/checkHr/checkOut',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
add,
|
||||
edit,
|
||||
del,
|
||||
checkOut,
|
||||
getCheckDtl,
|
||||
getStructIvt,
|
||||
getOutBillDtl2,
|
||||
|
||||
@@ -263,7 +263,7 @@ export default {
|
||||
if (current !== null) {
|
||||
this.currentRow = current
|
||||
this.downdtl_flag = false
|
||||
if (current.status === '10' || current.status === '30') {
|
||||
if (current.status === '10' || current.status === '30' || current.status === '99') {
|
||||
this.check_flag = false
|
||||
} else {
|
||||
this.check_flag = true
|
||||
|
||||
Reference in New Issue
Block a user