Commit 472f5074 by cpa

修改商家端商品查询异常

parent 38f6e49e
import request from '@/router/axios'
export function getMerchantByAccount(parameter) {
return request({
url: '/admin/merchantMallGoods/getMerchantByAccount',
method: 'get',
params:parameter
})
}
export function isUpon(parameter) {
return request({
url: '/admin/merchantMallGoods/batchUpon',
......@@ -31,6 +42,7 @@ export function getGoodsInfo(query) {
params: query
})
}
//
// export function addObj(obj) {
// return request({
......
......@@ -54,13 +54,14 @@
</template>
<script>
import {fetchList,addObj,delObj,isUpon, isNotUpon} from '@/api/mall/merchantMallgoods'
import {fetchList,addObj,delObj,isUpon, isNotUpon,getMerchantByAccount} from '@/api/mall/merchantMallgoods'
import {tableOption} from '@/const/crud/mall/merchantMallgoods'
import {mapGetters} from 'vuex'
export default {
name: 'businessGoods',
data() {
return {
merchantId:'',
goodsEditVue:false,
id:undefined,
searchForm: {},
......@@ -106,19 +107,31 @@
onChangeDone() {
this.refreshChange()
},
// 列表查询
getList(page, params) {
this.tableLoading = true
// 列表查询
getList: function (page, params) {
this.tableLoading = true
// 1.获取当前登陆用户ID
let userInfo= JSON.parse(sessionStorage.getItem("linshenxs-userInfo"))
let account=userInfo.content.username
getMerchantByAccount(
{account: account}
).then(response => {
fetchList(Object.assign({
current: page.currentPage,
size: page.pageSize
}, params, this.searchForm )).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
this.tableLoading = false
current: page.currentPage,
size: page.pageSize,
merchantId:response.data.data.id
}, params, this.searchForm)).then(response => {
this.tableData = response.data.data.records
this.page.total = response.data.data.total
this.tableLoading = false
}).catch(() => {
this.tableLoading=false
this.tableLoading = false
})
}).catch(() => {
this.tableLoading = false
})
},
// 删除
handleDel: function (row, index) {
......
......@@ -197,7 +197,6 @@
// 立即发货-对话框
shipsImmediately(row){
this.form.orderNo=row.orderNo
this.$axios.get("/admin/merchantMallOrder/isNeedMailed",{
params:{orderNo:row.orderNo},
}).then(response => {
......
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