Commit 472f5074 by cpa

修改商家端商品查询异常

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