Commit eb4c582c authored by 15008242619's avatar 15008242619 Committed by jingnan

退库单退库

parent f5df9180
<template>
<div>
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data="{ selectData,selectionRows }"
:lay-config="{ typeName: 'InStorageBack', layKey: 'InStorageBackApplyList' }"
@backApply="backApply"
@selectionChange="selectionChange"
/>
<dee-dialog
title="发起退库申请"
:dialog-visible="dialogVisible"
>
<div>确认提交吗?</div>
<el-button @click="confirm">确 定</el-button>
<el-button @click="cancle">取 消</el-button>
</dee-dialog>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
name: 'backApply',
componentName: '退库申请',
components: { },
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
dialogVisible: false,
selectionRows: []
}
},
methods: {
backApply() {
this.dialogVisible = true
},
confirm() {
let isTkdBack = 0
this.selectionRows.forEach(item => {
if (item.remarks !== '退库单退库'){
isTkdBack++
}
})
if (isTkdBack === 0) {
// post('').then()
this.$utils.showMessageSuccess('提交成功')
} else if (isTkdBack === this.selectionRows.length) {
this.$utils.showMessageSuccess('提交成功')
} else {
this.$utils.showMessageWarning('退库原因为退库单退库的不能与其他退库类型一起提交')
}
console.log(this.selectionRows)
},
cancle() {
this.dialogVisible = false
},
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style></style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment