|
@@ -113,6 +113,18 @@
|
|
|
</el-row>
|
|
|
|
|
|
<el-row style="margin-top:10px">
|
|
|
+ <el-col :span="6" style="margin-right:10px">
|
|
|
+ <search-customer
|
|
|
+ :value="parmValue.customer_code"
|
|
|
+ :size="'mini'"
|
|
|
+ :names="companyName"
|
|
|
+ :placeholder="'企业客户'"
|
|
|
+ :disabled="false"
|
|
|
+ :is-detail="true"
|
|
|
+ @searchChange="customer_code_change"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+
|
|
|
<el-col :span="6" style="width: 400px;">
|
|
|
<el-input
|
|
|
clearable
|
|
@@ -254,6 +266,7 @@ export default {
|
|
|
isDetail: false,
|
|
|
modelId: 0,
|
|
|
parmValue: {
|
|
|
+ customer_code:[],
|
|
|
returnCode: "", //销售退货code
|
|
|
orderCode: "", //销售订单code
|
|
|
company_name: "",
|
|
@@ -317,6 +330,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ customer_code_change(e) {
|
|
|
+ if (e && e.code) {
|
|
|
+ this.parmValue.customer_code = [e.code];
|
|
|
+ } else {
|
|
|
+ this.parmValue.customer_code = [];
|
|
|
+ }
|
|
|
+ this.searchList();
|
|
|
+ },
|
|
|
handleExport(){
|
|
|
if(this.select_list.length === 0){
|
|
|
this.$message.warning('请选择一条退货单');
|
|
@@ -479,6 +500,7 @@ export default {
|
|
|
|
|
|
const res = await asyncRequest.list({
|
|
|
...model,
|
|
|
+ customer_code: Array.isArray(this.parmValue.customer_code) ? this.parmValue.customer_code[0] : this.parmValue.customer_code,
|
|
|
needRela: true
|
|
|
});
|
|
|
|