Browse Source

完善厂商管理增加付款通路编码

zhanglei
yunuo970428 3 years ago
parent
commit
147d786e07
  1. 11
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue
  2. 1
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue
  3. 37
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/relation/changshangBankInfo.vue

11
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue

@ -50,7 +50,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="supplierType"> <el-form-item prop="supplierType">
<el-select v-model="temp.supplierType" class="addinputw" placeholder="" @change="getSupplierType"> <el-select v-model="temp.supplierType" class="addinputw" placeholder="" @change="getSupplierType">
<el-option v-for="item in supplierType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> <el-option v-for="item in supplierType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" :disabled="item.dictValue === '挂车厂' || item.dictValue === '上装厂' || item.dictValue === '外采供应商'"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -330,6 +330,7 @@
<el-table-column prop="currency" width="130px" label="币种" align="center"/> <el-table-column prop="currency" width="130px" label="币种" align="center"/>
<el-table-column prop="remarks" width="240px" label="描述" align="center"/> <el-table-column prop="remarks" width="240px" label="描述" align="center"/>
<el-table-column prop="actualPay" width="240px" label="厂家销售通路" align="center"/> <el-table-column prop="actualPay" width="240px" label="厂家销售通路" align="center"/>
<el-table-column prop="paymentAccessNoValue" width="240px" label="付款通路编码" align="center"/>
</el-table> </el-table>
</el-form> </el-form>
</div> </div>
@ -903,7 +904,9 @@ export default {
currency: info.currency, currency: info.currency,
remarks: info.remarks, remarks: info.remarks,
actualPay: info.actualPay, actualPay: info.actualPay,
actualPayKey: info.actualPayKey actualPayKey: info.actualPayKey,
paymentAccessNoValue: info.paymentAccessNoValue,
paymentAccessNoKey: info.paymentAccessNoValue
}) })
console.log('ADD开户行info', info, index) console.log('ADD开户行info', info, index)
return return
@ -924,7 +927,9 @@ export default {
currency: info.currency, currency: info.currency,
remarks: info.remarks, remarks: info.remarks,
actualPay: info.actualPay, actualPay: info.actualPay,
actualPayKey: info.actualPayKey actualPayKey: info.actualPayKey,
paymentAccessNoValue: info.paymentAccessNoValue,
paymentAccessNoKey: info.paymentAccessNoValue
} }
return return
} }

1
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue

@ -311,6 +311,7 @@
<el-table-column prop="currency" width="130px" label="币种" align="center"/> <el-table-column prop="currency" width="130px" label="币种" align="center"/>
<el-table-column prop="remarks" width="240px" label="描述" align="center"/> <el-table-column prop="remarks" width="240px" label="描述" align="center"/>
<el-table-column prop="actualPay" width="240px" label="厂家销售通路" align="center"/> <el-table-column prop="actualPay" width="240px" label="厂家销售通路" align="center"/>
<el-table-column prop="paymentAccessNoValue" width="240px" label="付款通路编码" align="center"/>
</el-table> </el-table>
</el-form> </el-form>
</div> </div>

37
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/relation/changshangBankInfo.vue

@ -123,6 +123,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="4">
<span>付款通路编码</span>
</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="bankInfo.paymentAccessNoValue" class="addinputw" placeholder="" @change="paymentAccessNoChange">
<el-option v-for="item in paymentAccessNo_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" />
</el-row>
</el-form> </el-form>
</div> </div>
@ -141,6 +154,7 @@ export default {
dialogStatus: '', dialogStatus: '',
receiptBank_list: [], receiptBank_list: [],
actualPay_list: [], actualPay_list: [],
paymentAccessNo_list: [],
bankInfo: { bankInfo: {
country: '中国', country: '中国',
dueBankValue: '', dueBankValue: '',
@ -154,7 +168,9 @@ export default {
currency: '人民币', currency: '人民币',
remarks: '', remarks: '',
actualPay: '', actualPay: '',
actualPayKey: '' actualPayKey: '',
paymentAccessNoKey: '',
paymentAccessNoValue: ''
}, },
rules: { rules: {
manufacturerName: [{ manufacturerName: [{
@ -177,6 +193,11 @@ export default {
this.actualPay_list = res.data this.actualPay_list = res.data
} }
}) })
typeValues({ type: 'payChannel' }).then((res) => {
if (res.success) {
this.paymentAccessNo_list = res.data
}
})
}, },
receiptBankChange(val) { receiptBankChange(val) {
if (val) { if (val) {
@ -190,6 +211,12 @@ export default {
this.bankInfo.actualPayKey = choosetItem[0].dictKey this.bankInfo.actualPayKey = choosetItem[0].dictKey
} }
}, },
paymentAccessNoChange(value) {
if (value) {
const choosetItem = this.paymentAccessNo_list.filter((item) => item.dictValue === value)
this.bankInfo.paymentAccessNoKey = choosetItem[0].dictKey
}
},
showAdd() { showAdd() {
this.bankInfo = { this.bankInfo = {
country: '中国', country: '中国',
@ -204,7 +231,9 @@ export default {
currency: '人民币', currency: '人民币',
remarks: '', remarks: '',
actualPay: '', actualPay: '',
actualPayKey: '' actualPayKey: '',
paymentAccessNoKey: '',
paymentAccessNoValue: ''
} }
this.bankInfo_index = '' this.bankInfo_index = ''
this.dialogStatus = 'add' this.dialogStatus = 'add'
@ -248,7 +277,9 @@ export default {
swiftCode: '', swiftCode: '',
currency: '人民币', currency: '人民币',
remarks: '', remarks: '',
actualPay: '' actualPay: '',
paymentAccessNoKey: '',
paymentAccessNoValue: ''
} }
this.bankInfo_index = '' this.bankInfo_index = ''
this.$emit('doback') this.$emit('doback')

Loading…
Cancel
Save