Commit bca4fd93 authored by 张伯涛's avatar 张伯涛

修改

parent 4aeb8878
......@@ -91,12 +91,18 @@ export default {
visible: {
type: Boolean,
default: false
},
// 区分是哪个模块点击进来的
companyType: {
type: String,
default: undefined
}
},
data() {
return {
companyName: '',
companyCode: '',
saveCompanyCode: '',
dataList: [],
total: 0,
page: 1,
......@@ -155,8 +161,16 @@ export default {
/** dialog确定按钮*/
determine() {
if (this.companyName) {
this.$emit('getValue', this.companyName, this.companyCode)
this.$emit('funClose', false)
if (this.companyType === '0' && this.saveCompanyCode === this.companyCode) {
this.$message({
type: 'warning',
message: '该往来单位已选择'
})
} else {
this.saveCompanyCode = this.companyCode
this.$emit('getValue', this.companyName, this.companyCode)
this.$emit('funClose', false)
}
} else {
this.$message({
type: 'warning',
......
......@@ -2488,6 +2488,7 @@
<!-- //往来单位弹窗-->
<CompanyDialog
ref="companyQueryList"
:company-type="companyType"
:visible.sync="companyDialogVisible"
@funClose="companyCloseVisible"
@getValue="handleCompanygetName"
......
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