md
This commit is contained in:
parent
60c3a44c22
commit
1ad1771ea8
@ -17,6 +17,16 @@ export function listSimpleEmisMonthpayAccount(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function listAllSimple(query) {
|
||||||
|
return request({
|
||||||
|
url: '/emis/emisMonthpayAccount/listAllSimple',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 查询月结账户表详细
|
// 查询月结账户表详细
|
||||||
export function getEmisMonthpayAccount(id) {
|
export function getEmisMonthpayAccount(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
125
src/views/emis/EmisBaseTools/AllMonthpayAccountPicker.vue
Normal file
125
src/views/emis/EmisBaseTools/AllMonthpayAccountPicker.vue
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<template>
|
||||||
|
<el-select
|
||||||
|
:loading="loading"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
v-model="svalue"
|
||||||
|
:placeholder="placeholder"
|
||||||
|
:filter-method="dataFilter"
|
||||||
|
style="width: 100%;"
|
||||||
|
:disabled="disabled"
|
||||||
|
@change="onChange">
|
||||||
|
<el-option v-for="item in optionItems" :key="item.custNo" :label="item.custName" :value="item.custNo" ></el-option>
|
||||||
|
</el-select>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { listAllSimple } from "@/api/emis/emisMonthpayAccount";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "AllMonthpayAccountPicker",
|
||||||
|
props: {
|
||||||
|
value: {
|
||||||
|
type: [String, Number],
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
sideCode: {
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
payee: {
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
salesmen: {
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
postCode:{
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
isInitiated:{
|
||||||
|
type: [Boolean,String],
|
||||||
|
required: false,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
|
placeholder:{
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
disabled:{
|
||||||
|
type: [Boolean,String],
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading:false,
|
||||||
|
bakOptionItems:[],
|
||||||
|
optionItems: [],
|
||||||
|
svalue: this.value,
|
||||||
|
optionDefault:null,
|
||||||
|
dataMap:new Map(),
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
value(newVal) {
|
||||||
|
this.svalue = newVal;
|
||||||
|
},
|
||||||
|
svalue(newVal, oldVal) {
|
||||||
|
// this.$emit("input", this.svalue);
|
||||||
|
},
|
||||||
|
postCode(newVal){
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.initData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onChange() {
|
||||||
|
this.$emit("input", this.svalue);
|
||||||
|
let itemData =null;
|
||||||
|
this.optionItems.forEach(item=>{
|
||||||
|
if(item.custNo === this.svalue){
|
||||||
|
itemData = item;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.$emit("onChange",itemData);
|
||||||
|
this.optionItems = this.bakOptionItems;
|
||||||
|
},
|
||||||
|
|
||||||
|
initData() {
|
||||||
|
this.loading = true;
|
||||||
|
let queryParams = {
|
||||||
|
pageNumber:1,
|
||||||
|
pageSize:1300,
|
||||||
|
payee:this.payee,
|
||||||
|
salesmen:this.salesmen
|
||||||
|
};
|
||||||
|
this.bakOptionItems=[];
|
||||||
|
this.optionItems=[];
|
||||||
|
listAllSimple(queryParams).then(response => {
|
||||||
|
this.loading = false;
|
||||||
|
this.bakOptionItems = response.rows;
|
||||||
|
this.optionItems =this.bakOptionItems;
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
dataFilter(val) {
|
||||||
|
this.optionDefault = val
|
||||||
|
|
||||||
|
if (val) {
|
||||||
|
let searchVal = val.toLowerCase();
|
||||||
|
this.optionItems = this.bakOptionItems.filter(item => {
|
||||||
|
if (item.custNo.indexOf(searchVal) != -1 || item.custName.toLowerCase().indexOf(searchVal) != -1 ) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.optionItems = this.bakOptionItems;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -119,7 +119,8 @@
|
|||||||
<span slot="label">
|
<span slot="label">
|
||||||
<span style="color: red">缴款客户</span>
|
<span style="color: red">缴款客户</span>
|
||||||
</span>
|
</span>
|
||||||
<EmisMonthpayAccountPicker v-model="form.payManCode" @onChange="onMonthpayAccountSelect"></EmisMonthpayAccountPicker>
|
|
||||||
|
<AllMonthpayAccountPicker v-model="form.payManCode" @onChange="onMonthpayAccountSelect"></AllMonthpayAccountPicker>
|
||||||
<!-- <CustomerSimplePicker v-model="form.customerCode" @onChange="onCustomerSelect" ></CustomerSimplePicker> -->
|
<!-- <CustomerSimplePicker v-model="form.customerCode" @onChange="onCustomerSelect" ></CustomerSimplePicker> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -389,7 +390,7 @@ import { getInfoBySettleBillNo} from "@/api/emis/emisSettleBill";
|
|||||||
import {listEmisSettleSubBill,listHasPayMap} from "@/api/emis/emisSettleSubBill";
|
import {listEmisSettleSubBill,listHasPayMap} from "@/api/emis/emisSettleSubBill";
|
||||||
|
|
||||||
import { listEmisSettlePayRecord, getEmisSettlePayRecord, delEmisSettlePayRecord, addEmisSettlePayRecord, updateEmisSettlePayRecord } from "@/api/emis/emisSettlePayRecord";
|
import { listEmisSettlePayRecord, getEmisSettlePayRecord, delEmisSettlePayRecord, addEmisSettlePayRecord, updateEmisSettlePayRecord } from "@/api/emis/emisSettlePayRecord";
|
||||||
import EmisMonthpayAccountPicker from '@/views/emis/EmisBaseTools/EmisMonthpayAccountPicker.vue';
|
import AllMonthpayAccountPicker from '@/views/emis/EmisBaseTools/AllMonthpayAccountPicker.vue';
|
||||||
import PayeePicker from '@/views/emis/EmisBaseTools/PayeePicker.vue';
|
import PayeePicker from '@/views/emis/EmisBaseTools/PayeePicker.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -405,7 +406,7 @@ export default {
|
|||||||
type:Array
|
type:Array
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { EmisMonthpayAccountPicker,PayeePicker },
|
components: { AllMonthpayAccountPicker,PayeePicker },
|
||||||
dicts: ['emis_settlebill_pay_type'],
|
dicts: ['emis_settlebill_pay_type'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user