Commit 11c572a7 authored by chenfenglei's avatar chenfenglei

商品列表跳转期数列表

parent f8c690e9
...@@ -578,10 +578,7 @@ ...@@ -578,10 +578,7 @@
message:'请先选择用户' message:'请先选择用户'
}) })
}else{ }else{
let goods_id=this.userObj.goods_id; let goods_id=this.selectUserList[0].goods_id;
if(goods_id == undefined){
goods_id=this.userTable[0].goods_id
}
getPeriodsApi({goods_id:goods_id,limit:99999}).then(res=>{ getPeriodsApi({goods_id:goods_id,limit:99999}).then(res=>{
res.list.forEach(i=>{ res.list.forEach(i=>{
i.children = [] i.children = []
......
<template> <template>
<div class="menu"> <div class="menu">
<el-form ref="searchFrom" :model="searchFrom" label-width="120px" inline> <el-form ref="searchFrom" :model="searchFrom" label-width="120px" inline>
<el-form-item label="来源码类别"> <el-form-item label="名字">
<el-input v-model="searchFrom.title"></el-input>
</el-form-item>
<el-form-item label="来源码类别">
<el-select v-model="searchFrom.type_id" placeholder="请选择" @change="getList" clearable> <el-select v-model="searchFrom.type_id" placeholder="请选择" @change="getList" clearable>
<el-option <el-option
v-for="(data,index) in codeType" v-for="(data,index) in codeType"
...@@ -265,6 +268,7 @@ ...@@ -265,6 +268,7 @@
userList: [], userList: [],
searchUserFrom: { searchUserFrom: {
type_id:"", type_id:"",
title:"",
}, },
multipleSelection: [], multipleSelection: [],
noCashUserDialog: { noCashUserDialog: {
...@@ -317,6 +321,9 @@ ...@@ -317,6 +321,9 @@
} }
if(this.searchFrom.type_id){ if(this.searchFrom.type_id){
json.type_id=this.searchFrom.type_id; json.type_id=this.searchFrom.type_id;
}
if(this.searchFrom.title){
json.title=this.searchFrom.title;
} }
getSourceListApi(json).then(res=>{ getSourceListApi(json).then(res=>{
if (res) { if (res) {
......
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