商品列表:
订单重置销量 新增筛选字段剩余库存和在售库存
This commit is contained in:
parent
4327e6805d
commit
3475baedd6
@ -45,6 +45,14 @@
|
||||
style="width: 250px;"
|
||||
@change="handleChoose()">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div class="row">
|
||||
<span>剩余库存≠:</span>
|
||||
<el-input v-model="form.neq_stock" @keyup.enter.native="handleChoose" placeholder="剩余库存" clearable></el-input>
|
||||
</div>
|
||||
<div class="row">
|
||||
<span>在售库存≠:</span>
|
||||
<el-input v-model="form.neq_sale_stock" @keyup.enter.native="handleChoose" placeholder="在售库存" clearable></el-input>
|
||||
</div>
|
||||
<div class="row">
|
||||
<el-button type="primary" @click="handleChoose()" icon="el-icon-search">筛选</el-button>
|
||||
@ -59,6 +67,7 @@
|
||||
<div>
|
||||
<span>全部商品(共{{ total }}条)</span>
|
||||
<div class="btn">
|
||||
<el-button @click="resetOrderCount" icon="el-icon-refresh">订单重置</el-button>
|
||||
<el-button type="primary" @click="petchEditStock" icon="el-icon-edit" :disabled="!chooseList.length">批量更新在售库存</el-button>
|
||||
<el-button type="primary" v-if="is_admin" @click="addNewgoods" icon="el-icon-plus">新增商品</el-button>
|
||||
<el-button type="primary" plain v-if="is_admin" @click="handleImport" icon="el-icon-upload2">在售库存导入</el-button>
|
||||
@ -290,8 +299,8 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import { goods_types, Brand_goods_types } from '@/api/rankingData.js'
|
||||
import { goods, update, singleUpdate, getStockNum, updateSaleStock, goodsSkuExport } from '@/api/goods'
|
||||
import { goods_types } from '@/api/rankingData.js'
|
||||
import { goods, update, singleUpdate, getStockNum, updateSaleStock } from '@/api/goods'
|
||||
import { orderRest } from "@/api/shop"
|
||||
import Treeselect from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
@ -333,6 +342,8 @@
|
||||
],
|
||||
form: {
|
||||
external_sku_id: '',
|
||||
neq_stock: '',
|
||||
neq_sale_stock: '',
|
||||
goods_title: '', // 商品名称
|
||||
type_id: null, // 商品种类id
|
||||
brand_id: '', // 商品品牌id
|
||||
@ -490,13 +501,14 @@
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
orderRest().then((res) => {
|
||||
console.log(res)
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: res.data.message
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
},
|
||||
// 点击上新
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user