|
|
|
@ -5,7 +5,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24" style=""> |
|
|
|
<el-form-item > |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(1100)"><a herf="#">供应商编码</a></span> |
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(1100)"><a href="#">供应商编码</a></span> |
|
|
|
<el-input v-model="searchData.supplierNo" style="width: 130px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'供应商名称:'"> |
|
|
|
@ -139,11 +139,6 @@ |
|
|
|
class="supplier-form"> |
|
|
|
<div class="form-section"> |
|
|
|
<el-row :gutter="24"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="工厂Site" prop="site"> |
|
|
|
<el-input v-model="currentSupplier.site" :disabled="!isAdd"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="供应商编码" prop="supplierNo"> |
|
|
|
<el-input v-model="currentSupplier.supplierNo" :disabled="!isAdd"></el-input> |
|
|
|
@ -155,11 +150,18 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="供应商分组" prop="supplierGroup"> |
|
|
|
<el-select v-model="currentSupplier.supplierGroup" placeholder="选择供应商分组" style="width: 100%"> |
|
|
|
<el-option label="战略" value="战略"></el-option> |
|
|
|
<el-option label="重要" value="重要"></el-option> |
|
|
|
<el-option label="普通" value="普通"></el-option> |
|
|
|
<el-form-item label="供应商分组" prop="supplierDocType"> |
|
|
|
<el-select v-model="currentSupplier.supplierDocType" placeholder="选择供应商分组" style="width: 100%"> |
|
|
|
<el-option label="Group1" value="Group1"></el-option> |
|
|
|
<el-option label="Group2" value="Group2"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="在用"> |
|
|
|
<el-select v-model="currentSupplier.active" placeholder="是否在用" style="width: 100%"> |
|
|
|
<el-option label="Yes" value="Y"></el-option> |
|
|
|
<el-option label="No" value="N"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -169,8 +171,9 @@ |
|
|
|
<div class="form-section"> |
|
|
|
<el-row :gutter="24"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="供应商分类"> |
|
|
|
<el-input v-model="currentSupplier.supplierDocType"></el-input> |
|
|
|
<el-form-item > |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
@ -193,23 +196,27 @@ |
|
|
|
<div class="form-section"> |
|
|
|
<el-row :gutter="24"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="税率编号"> |
|
|
|
<el-input v-model="currentSupplier.taxCode"></el-input> |
|
|
|
<el-form-item> |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="付款条款"> |
|
|
|
<el-input v-model="currentSupplier.paymentTerm"></el-input> |
|
|
|
<el-form-item> |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="交货条款"> |
|
|
|
<el-input v-model="currentSupplier.deliveryTerm"></el-input> |
|
|
|
<el-form-item> |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="货币"> |
|
|
|
<el-input v-model="currentSupplier.currency"></el-input> |
|
|
|
<el-form-item > |
|
|
|
<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-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -296,14 +303,6 @@ |
|
|
|
<el-input v-model="currentSupplier.address"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="在用"> |
|
|
|
<el-select v-model="currentSupplier.active" placeholder="是否在用" style="width: 100%"> |
|
|
|
<el-option label="Yes" value="Y"></el-option> |
|
|
|
<el-option label="No" value="N"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -378,6 +377,11 @@ export default { |
|
|
|
supplierNo: '', |
|
|
|
supplierName: '', |
|
|
|
active: '', |
|
|
|
supplierGroup:'', |
|
|
|
currency:'', |
|
|
|
tax:'', |
|
|
|
paymentTerm:'', |
|
|
|
deliveryTerm:'', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
@ -433,7 +437,7 @@ export default { |
|
|
|
serialNumber: '811001Table1SupplierGroup', |
|
|
|
tableId: '811001Table1', |
|
|
|
tableName: '供应商信息', |
|
|
|
columnProp: 'groupDisplay', |
|
|
|
columnProp: 'groupDesc', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'left', |
|
|
|
columnLabel: '供应商分组', |
|
|
|
@ -1100,6 +1104,22 @@ export default { |
|
|
|
if (val === 1100) { |
|
|
|
strVal = this.searchData.supplierNo |
|
|
|
} |
|
|
|
if (val === 521) { |
|
|
|
strVal = this.searchData.supplierGroup |
|
|
|
} |
|
|
|
if (val === 513){ |
|
|
|
strVal = this.searchData.currency |
|
|
|
} |
|
|
|
if (val === 522){ |
|
|
|
strVal = this.searchData.tax |
|
|
|
} |
|
|
|
if (val === 523){ |
|
|
|
strVal = this.searchData.paymentTerm |
|
|
|
} |
|
|
|
if (val === 524){ |
|
|
|
strVal = this.searchData.deliveryTerm |
|
|
|
} |
|
|
|
|
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -1109,6 +1129,21 @@ export default { |
|
|
|
if (this.tagNo === 1100) { |
|
|
|
this.searchData.supplierNo = val.supplier_no |
|
|
|
} |
|
|
|
if(this.tagNo == 513){ |
|
|
|
this.searchData.currency = val.Currency |
|
|
|
} |
|
|
|
if (this.tagNo === 521) { |
|
|
|
this.searchData.supplierGroup = val.supplier_group |
|
|
|
} |
|
|
|
if (this.tagNo === 522) { |
|
|
|
this.searchData.tax = val.TaxCode |
|
|
|
} |
|
|
|
if (this.tagNo === 523) { |
|
|
|
this.searchData.paymentTerm = val.PaymentTermID |
|
|
|
} |
|
|
|
if (this.tagNo === 524) { |
|
|
|
this.searchData.deliveryTerm = val.DeliveryTermID |
|
|
|
} |
|
|
|
}, |
|
|
|
getMainData () { |
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
@ -1365,11 +1400,11 @@ export default { |
|
|
|
|
|
|
|
/* 表单分组样式 */ |
|
|
|
.form-section { |
|
|
|
margin-bottom: 20px; |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.form-section:last-child { |
|
|
|
margin-bottom: 15px; |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
/* 输入框样式 */ |
|
|
|
@ -1389,9 +1424,9 @@ export default { |
|
|
|
/* 对话框底部按钮居中 */ |
|
|
|
.dialog-footer-center { |
|
|
|
text-align: center; |
|
|
|
padding: 20px 0 10px 0; |
|
|
|
padding: 15px 0 5px 0; |
|
|
|
border-top: 1px solid #E4E7ED; |
|
|
|
margin-top: 25px; |
|
|
|
margin-top: 15px; |
|
|
|
} |
|
|
|
|
|
|
|
.dialog-footer-center .el-button { |
|
|
|
|