Commit 8b6c4794 authored by chenwei's avatar chenwei

feat: 收款单客户名称多选

parent 5aca8b1a
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<el-input style="max-width: 188px" v-model="queryParams.receiptNo" :placeholder="$t('请输入收款单号')" clearable @keyup.enter.native="handleQuery" /> <el-input style="max-width: 188px" v-model="queryParams.receiptNo" :placeholder="$t('请输入收款单号')" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('客户名称')"> <el-form-item :label="$t('客户名称')">
<customer-selector multiple v-model="queryParams.customerIdList" clearable /> <el-select multiple :remote-method="customerDropDownFn" remote clearable filterable v-model="queryParams.customerIdList" :placeholder="$t('请输入关键词')">
<el-option v-for="(item, index) in customeList" :key="item.id" :value="item.id" :label="item.name"> </el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('状态')"> <el-form-item :label="$t('状态')">
<dict-selector multiple :type="DICT_TYPE.ECW_RECEIPT_STATE" v-model="queryParams.stateList" clearable /> <dict-selector multiple :type="DICT_TYPE.ECW_RECEIPT_STATE" v-model="queryParams.stateList" clearable />
...@@ -254,6 +256,8 @@ ...@@ -254,6 +256,8 @@
</template> </template>
<script> <script>
import { customerDropDownList } from "@/api/ecw/customerCommissionInfo"
import { getCustomerList } from "@/api/ecw/customer"
import { listSimpleUsers } from "@/api/system/user" import { listSimpleUsers } from "@/api/system/user"
import { DICT_TYPE } from "@/utils/dict" import { DICT_TYPE } from "@/utils/dict"
import CustomerSelector from "@/components/CustomerSelector" import CustomerSelector from "@/components/CustomerSelector"
...@@ -320,11 +324,12 @@ export default { ...@@ -320,11 +324,12 @@ export default {
dateType: [], dateType: [],
loading: "", loading: "",
params: {}, params: {},
customeList: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
page: 1, page: 1,
rows: 20, rows: 20,
customerIdList: null, customerIdList: [],
stateList: null, stateList: null,
salesmanIdList: [], salesmanIdList: [],
numberNo: null, numberNo: null,
...@@ -373,13 +378,16 @@ export default { ...@@ -373,13 +378,16 @@ export default {
} }
}, },
activated() { activated() {
this.customerDropDownFn()
const orderNo = this.$route.query.orderNo || "" const orderNo = this.$route.query.orderNo || ""
if (orderNo) { if (orderNo) {
this.queryParams.numberNo = orderNo this.queryParams.numberNo = orderNo
} }
this.getList() this.getList()
}, },
computed: {},
created() { created() {
this.customerDropDownFn()
//获取汇率 lanbm 2024-06-06 add //获取汇率 lanbm 2024-06-06 add
getCurrencyPage(this.params).then((res) => (this.currencyList = res.data.list)) getCurrencyPage(this.params).then((res) => (this.currencyList = res.data.list))
...@@ -392,6 +400,13 @@ export default { ...@@ -392,6 +400,13 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
customerDropDownFn(val) {
customerDropDownList({ pageNo: 1, pageSize: 200, searchKey: val }).then((res) => {
if (res.code === 0) {
this.customeList = res.data.list
}
})
},
continueUpload() { continueUpload() {
this.$message.success(this.$t("正在提交,请稍后。")) this.$message.success(this.$t("正在提交,请稍后。"))
this.$refs.upload.handleStart(this.fileCopy.raw) this.$refs.upload.handleStart(this.fileCopy.raw)
......
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