|
|
@ -173,7 +173,7 @@ |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item > |
|
|
<el-form-item > |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(521)"><a href="#">供应商分类</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(521)"><a href="#">供应商分类</a></span> |
|
|
<el-input v-model="searchData.supplierGroup" style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="currentSupplier.supplierGroup" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
@ -198,25 +198,25 @@ |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(522)"><a href="#">税率编号</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(522)"><a href="#">税率编号</a></span> |
|
|
<el-input v-model="searchData.tax" style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="currentSupplier.taxCode" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(523)"><a href="#">付款条款</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(523)"><a href="#">付款条款</a></span> |
|
|
<el-input v-model="searchData.paymentTerm" style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="currentSupplier.paymentTerm" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(524)"><a href="#">交货条款</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(524)"><a href="#">交货条款</a></span> |
|
|
<el-input v-model="searchData.deliveryTerm" style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="currentSupplier.deliveryTerm" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item > |
|
|
<el-form-item > |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(513)"><a herf="#">货币</a></span> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(513)"><a herf="#">货币</a></span> |
|
|
<el-input v-model="searchData.currency" style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="currentSupplier.currency" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -379,7 +379,7 @@ export default { |
|
|
active: '', |
|
|
active: '', |
|
|
supplierGroup:'', |
|
|
supplierGroup:'', |
|
|
currency:'', |
|
|
currency:'', |
|
|
tax:'', |
|
|
|
|
|
|
|
|
taxCode:'', |
|
|
paymentTerm:'', |
|
|
paymentTerm:'', |
|
|
deliveryTerm:'', |
|
|
deliveryTerm:'', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
@ -440,7 +440,7 @@ export default { |
|
|
columnProp: 'groupDesc', |
|
|
columnProp: 'groupDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'left', |
|
|
align: 'left', |
|
|
columnLabel: '供应商分组', |
|
|
|
|
|
|
|
|
columnLabel: '供应商分类', |
|
|
columnWidth: '100', |
|
|
columnWidth: '100', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
@ -1068,7 +1068,38 @@ export default { |
|
|
// 供应商对话框相关 |
|
|
// 供应商对话框相关 |
|
|
supplierDialogVisible: false, |
|
|
supplierDialogVisible: false, |
|
|
isAdd: true, |
|
|
isAdd: true, |
|
|
currentSupplier: {}, |
|
|
|
|
|
|
|
|
currentSupplier: { |
|
|
|
|
|
supplierNo: '', |
|
|
|
|
|
supplierName: '', |
|
|
|
|
|
supplierDocType: '', |
|
|
|
|
|
active: '', |
|
|
|
|
|
supplierGroup:'', |
|
|
|
|
|
abc: '', |
|
|
|
|
|
sourcingstaff: '', |
|
|
|
|
|
currency:'', |
|
|
|
|
|
taxCode:'', |
|
|
|
|
|
paymentTerm:'', |
|
|
|
|
|
deliveryTerm:'', |
|
|
|
|
|
contract:'', |
|
|
|
|
|
phoneNo: '', |
|
|
|
|
|
phoneNo2:'', |
|
|
|
|
|
phoneNo3:'', |
|
|
|
|
|
email: '', |
|
|
|
|
|
email2:'', |
|
|
|
|
|
faxNo: '', |
|
|
|
|
|
otherContact1:'', |
|
|
|
|
|
otherContact2:'', |
|
|
|
|
|
otherContact3:'', |
|
|
|
|
|
bankName:'', |
|
|
|
|
|
bankAccount:'', |
|
|
|
|
|
address: '', |
|
|
|
|
|
createDate: '', |
|
|
|
|
|
createBy: '', |
|
|
|
|
|
updateDate: '', |
|
|
|
|
|
updateBy: '', |
|
|
|
|
|
memo:'', |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
}, |
|
|
supplierRules: { |
|
|
supplierRules: { |
|
|
site: [ |
|
|
site: [ |
|
|
{ required: true, message: 'Site is required', trigger: 'blur' } |
|
|
{ required: true, message: 'Site is required', trigger: 'blur' } |
|
|
@ -1105,19 +1136,19 @@ export default { |
|
|
strVal = this.searchData.supplierNo |
|
|
strVal = this.searchData.supplierNo |
|
|
} |
|
|
} |
|
|
if (val === 521) { |
|
|
if (val === 521) { |
|
|
strVal = this.searchData.supplierGroup |
|
|
|
|
|
|
|
|
strVal = this.currentSupplier.supplierGroup |
|
|
} |
|
|
} |
|
|
if (val === 513){ |
|
|
if (val === 513){ |
|
|
strVal = this.searchData.currency |
|
|
|
|
|
|
|
|
strVal = this.currentSupplier.currency |
|
|
} |
|
|
} |
|
|
if (val === 522){ |
|
|
if (val === 522){ |
|
|
strVal = this.searchData.tax |
|
|
|
|
|
|
|
|
strVal = this.currentSupplier.taxCode |
|
|
} |
|
|
} |
|
|
if (val === 523){ |
|
|
if (val === 523){ |
|
|
strVal = this.searchData.paymentTerm |
|
|
|
|
|
|
|
|
strVal = this.currentSupplier.paymentTerm |
|
|
} |
|
|
} |
|
|
if (val === 524){ |
|
|
if (val === 524){ |
|
|
strVal = this.searchData.deliveryTerm |
|
|
|
|
|
|
|
|
strVal = this.currentSupplier.deliveryTerm |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
this.$refs.baseList.init(val, strVal) |
|
|
@ -1130,19 +1161,19 @@ export default { |
|
|
this.searchData.supplierNo = val.supplier_no |
|
|
this.searchData.supplierNo = val.supplier_no |
|
|
} |
|
|
} |
|
|
if(this.tagNo == 513){ |
|
|
if(this.tagNo == 513){ |
|
|
this.searchData.currency = val.Currency |
|
|
|
|
|
|
|
|
this.currentSupplier.currency = val.Currency |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 521) { |
|
|
if (this.tagNo === 521) { |
|
|
this.searchData.supplierGroup = val.supplier_group |
|
|
|
|
|
|
|
|
this.currentSupplier.supplierGroup = val.supplier_group |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 522) { |
|
|
if (this.tagNo === 522) { |
|
|
this.searchData.tax = val.TaxCode |
|
|
|
|
|
|
|
|
this.currentSupplier.taxCode = val.TaxCode |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 523) { |
|
|
if (this.tagNo === 523) { |
|
|
this.searchData.paymentTerm = val.PaymentTermID |
|
|
|
|
|
|
|
|
this.currentSupplier.paymentTerm = val.PaymentTermID |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 524) { |
|
|
if (this.tagNo === 524) { |
|
|
this.searchData.deliveryTerm = val.DeliveryTermID |
|
|
|
|
|
|
|
|
this.currentSupplier.deliveryTerm = val.DeliveryTermID |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
getMainData () { |
|
|
getMainData () { |
|
|
@ -1279,8 +1310,37 @@ export default { |
|
|
addSupplier() { |
|
|
addSupplier() { |
|
|
this.isAdd = true |
|
|
this.isAdd = true |
|
|
this.currentSupplier = { |
|
|
this.currentSupplier = { |
|
|
|
|
|
supplierNo: '', |
|
|
|
|
|
supplierName: '', |
|
|
|
|
|
supplierDocType: '', |
|
|
|
|
|
active: 'Y', |
|
|
|
|
|
supplierGroup:'', |
|
|
|
|
|
abc: '', |
|
|
|
|
|
buyer: '', |
|
|
|
|
|
sourcingstaff: '', |
|
|
|
|
|
currency:'', |
|
|
|
|
|
taxCode:'', |
|
|
|
|
|
paymentTerm:'', |
|
|
|
|
|
deliveryTerm:'', |
|
|
|
|
|
contract:'', |
|
|
|
|
|
phoneNo: '', |
|
|
|
|
|
phoneNo2:'', |
|
|
|
|
|
phoneNo3:'', |
|
|
|
|
|
email: '', |
|
|
|
|
|
email2:'', |
|
|
|
|
|
faxNo: '', |
|
|
|
|
|
otherContact1:'', |
|
|
|
|
|
otherContact2:'', |
|
|
|
|
|
otherContact3:'', |
|
|
|
|
|
bankName:'', |
|
|
|
|
|
bankAccount:'', |
|
|
|
|
|
address: '', |
|
|
|
|
|
createDate: '', |
|
|
|
|
|
createBy: '', |
|
|
|
|
|
updateDate: '', |
|
|
|
|
|
updateBy: '', |
|
|
|
|
|
memo:'', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
active: 'Y' // 默认激活 |
|
|
|
|
|
} |
|
|
} |
|
|
this.supplierDialogVisible = true |
|
|
this.supplierDialogVisible = true |
|
|
}, |
|
|
}, |
|
|
|