|
@@ -14,9 +14,9 @@
|
|
<Option value="-3">全部</Option>
|
|
<Option value="-3">全部</Option>
|
|
<Option value="0">待审核</Option>
|
|
<Option value="0">待审核</Option>
|
|
<Option value="1">通过</Option>
|
|
<Option value="1">通过</Option>
|
|
- <Option value="2">部分完成</Option>
|
|
|
|
- <Option value="3">完成</Option>
|
|
|
|
<Option value="-1">拒绝</Option>
|
|
<Option value="-1">拒绝</Option>
|
|
|
|
+ <Option value="2">部分上架</Option>
|
|
|
|
+ <Option value="3">已上架</Option>
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
</Form>
|
|
</Form>
|
|
@@ -25,24 +25,15 @@
|
|
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<Button v-auth="['marketing-store_seckill-create']" type="primary" @click="add" class="mr10">创建入库单</Button>
|
|
<Button v-auth="['marketing-store_seckill-create']" type="primary" @click="add" class="mr10">创建入库单</Button>
|
|
- <!-- 积分商品-表格 -->
|
|
|
|
<Table :columns="columns1" :data="tableList" :loading="loading" highlight-row no-userFrom-text="暂无数据"
|
|
<Table :columns="columns1" :data="tableList" :loading="loading" highlight-row no-userFrom-text="暂无数据"
|
|
no-filtered-userFrom-text="暂无筛选结果" class="ivu-mt">
|
|
no-filtered-userFrom-text="暂无筛选结果" class="ivu-mt">
|
|
- <template slot-scope="{ row, index }" slot="passageway">
|
|
|
|
- <span> {{ row.bin_number.slice(0,2) }}</span>
|
|
|
|
- </template>
|
|
|
|
- <template slot-scope="{ row, index }" slot="control">
|
|
|
|
- <span> {{ row.bin_number.slice(2,3) }}</span>
|
|
|
|
- </template>
|
|
|
|
- <template slot-scope="{ row, index }" slot="layer">
|
|
|
|
- <span> {{ row.bin_number.slice(3,4) }}</span>
|
|
|
|
- </template>
|
|
|
|
- <template slot-scope="{ row, index }" slot="number">
|
|
|
|
- <span> {{ row.bin_number.slice(4) }}</span>
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="info">
|
|
|
|
+ <div>{{row.info[0].product_name}}</div>
|
|
|
|
+ <div v-if="row.info.length >1">{{row.info[1].product_name}}</div>
|
|
|
|
+ <div v-if="row.info.length >2">{{row.info[2].product_name}}</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row, index }" slot="cuser">
|
|
<template slot-scope="{ row, index }" slot="cuser">
|
|
<div>名称:{{row.cuser.staff_name}}</div>
|
|
<div>名称:{{row.cuser.staff_name}}</div>
|
|
- <!-- <div>管理员ID:{{row.cuser.admin_id}}</div> -->
|
|
|
|
<div>ID:{{row.cuser.id}}</div>
|
|
<div>ID:{{row.cuser.id}}</div>
|
|
<div>手机:{{row.cuser.phone}}</div>
|
|
<div>手机:{{row.cuser.phone}}</div>
|
|
</template>
|
|
</template>
|
|
@@ -54,41 +45,31 @@
|
|
<div>名称:{{row.ware.title}}</div>
|
|
<div>名称:{{row.ware.title}}</div>
|
|
<div>ID:{{row.ware.id}}</div>
|
|
<div>ID:{{row.ware.id}}</div>
|
|
<div>手机:{{row.ware.phone}}</div>
|
|
<div>手机:{{row.ware.phone}}</div>
|
|
- <!-- <div>地址:{{row.ware.detailed_address}}</div> -->
|
|
|
|
- </template>
|
|
|
|
- <template slot-scope="{ row, index }" slot="tware">
|
|
|
|
- <div>名称:{{row.tware.title}}</div>
|
|
|
|
- <div>ID:{{row.tware.id}}</div>
|
|
|
|
- <div>手机:{{row.tware.phone}}</div>
|
|
|
|
- <!-- <div>地址:{{row.tware.detailed_address}}</div> -->
|
|
|
|
|
|
+ <div>地址:{{row.ware.detailed_address}}</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row, index }" slot="store">
|
|
<template slot-scope="{ row, index }" slot="store">
|
|
<div>名称:{{row.store.name}}</div>
|
|
<div>名称:{{row.store.name}}</div>
|
|
<div>ID:{{row.store.id}}</div>
|
|
<div>ID:{{row.store.id}}</div>
|
|
<div>手机:{{row.store.phone}}</div>
|
|
<div>手机:{{row.store.phone}}</div>
|
|
- <!-- <div>地址:{{row.store.detailed_address}}</div> -->
|
|
|
|
- </template>
|
|
|
|
- <template slot-scope="{ row, index }" slot="tstore">
|
|
|
|
- <div>名称:{{row.tstore.name}}</div>
|
|
|
|
- <div>ID:{{row.tstore.id}}</div>
|
|
|
|
- <div>手机:{{row.tstore.phone}}</div>
|
|
|
|
- <!-- <div>地址:{{row.tstore.detailed_address}}</div> -->
|
|
|
|
|
|
+ <div>地址:{{row.store.detailed_address}}</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row, index }" slot="status">
|
|
<template slot-scope="{ row, index }" slot="status">
|
|
<Tag color="default" v-if="row.status == 0">待审核</Tag>
|
|
<Tag color="default" v-if="row.status == 0">待审核</Tag>
|
|
<Tag color="primary" v-if="row.status == 1">通过</Tag>
|
|
<Tag color="primary" v-if="row.status == 1">通过</Tag>
|
|
- <Tag color="success" v-if="row.status == 3">完成</Tag>
|
|
|
|
<Tag color="error" v-if="row.status == -1">拒绝</Tag>
|
|
<Tag color="error" v-if="row.status == -1">拒绝</Tag>
|
|
- <Tag color="warning" v-if="row.status == 2">部分完成</Tag>
|
|
|
|
|
|
+ <Tag color="success" v-if="row.status == 2">部分上架</Tag>
|
|
|
|
+ <Tag color="warning" v-if="row.status == 3">已上架</Tag>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row, index }" slot="create_time">
|
|
<template slot-scope="{ row, index }" slot="create_time">
|
|
<div>{{row.create_time | formatDate}}</div>
|
|
<div>{{row.create_time | formatDate}}</div>
|
|
</template>
|
|
</template>
|
|
- <!-- <template slot-scope="{ row, index }" slot="action">
|
|
|
|
- <a @click="edit(row)">编辑</a>
|
|
|
|
- <Divider type="vertical" />
|
|
|
|
- <a @click="del(row, '删除仓位', index)">删除</a>
|
|
|
|
- </template> -->
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="action">
|
|
|
|
+ <a v-if="row.status == 0" @click="auditing(row, index)">审核</a>
|
|
|
|
+ <Divider v-if="row.status == 0" type="vertical" />
|
|
|
|
+ <a @click="info(row, index)">详情</a>
|
|
|
|
+ <Divider v-if="row.status == 3" type="vertical" />
|
|
|
|
+ <a v-if="row.status == 3" @click="del(row, index)">删除</a>
|
|
|
|
+ </template>
|
|
</Table>
|
|
</Table>
|
|
<div class="acea-row row-right page">
|
|
<div class="acea-row row-right page">
|
|
<Page :total="tableFrom.total" :current="tableFrom.page" show-elevator show-total @on-change="pageChange"
|
|
<Page :total="tableFrom.total" :current="tableFrom.page" show-elevator show-total @on-change="pageChange"
|
|
@@ -128,37 +109,47 @@
|
|
{
|
|
{
|
|
title: "入库单号",
|
|
title: "入库单号",
|
|
key: "in_order_id",
|
|
key: "in_order_id",
|
|
- minWidth: 200,
|
|
|
|
|
|
+ minWidth: 160,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "入库商品",
|
|
|
|
+ slot: "info",
|
|
|
|
+ minWidth: 180,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "创建人",
|
|
title: "创建人",
|
|
slot: "cuser",
|
|
slot: "cuser",
|
|
- minWidth: 200,
|
|
|
|
|
|
+ minWidth: 150,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "审核人",
|
|
|
|
+ slot: "auser",
|
|
|
|
+ minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "仓库",
|
|
title: "仓库",
|
|
slot: "ware",
|
|
slot: "ware",
|
|
- minWidth: 100,
|
|
|
|
|
|
+ minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "总数量",
|
|
title: "总数量",
|
|
key: "total_num",
|
|
key: "total_num",
|
|
- minWidth: 90,
|
|
|
|
|
|
+ minWidth: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "总价格",
|
|
title: "总价格",
|
|
key: "total_price",
|
|
key: "total_price",
|
|
- minWidth: 90,
|
|
|
|
|
|
+ minWidth: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "审核状态",
|
|
title: "审核状态",
|
|
slot: "status",
|
|
slot: "status",
|
|
- minWidth: 200,
|
|
|
|
|
|
+ minWidth: 120,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "创建时间",
|
|
title: "创建时间",
|
|
slot: "create_time",
|
|
slot: "create_time",
|
|
- minWidth: 90,
|
|
|
|
|
|
+ minWidth: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "操作",
|
|
title: "操作",
|
|
@@ -210,52 +201,15 @@
|
|
this.tableFrom.page = 1;
|
|
this.tableFrom.page = 1;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- // 添加
|
|
|
|
|
|
+ // 添加入库单
|
|
add() {
|
|
add() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: this.roterPre + "/erp/add_inList?id=0"
|
|
path: this.roterPre + "/erp/add_inList?id=0"
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- addMore() {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: this.roterPre + "/marketing/store_integral/add_store_integral",
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- orderList(row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: this.roterPre + "/marketing/store_integral/order_list",
|
|
|
|
- query: {
|
|
|
|
- product_id: row.id,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 导出
|
|
|
|
- exports() {
|
|
|
|
- let formValidate = this.tableFrom;
|
|
|
|
- let data = {
|
|
|
|
- start_status: formValidate.start_status,
|
|
|
|
- status: formValidate.status,
|
|
|
|
- store_name: formValidate.store_name,
|
|
|
|
- };
|
|
|
|
- storeSeckillApi(data)
|
|
|
|
- .then((res) => {
|
|
|
|
- location.href = res.data[0];
|
|
|
|
- })
|
|
|
|
- .catch((res) => {
|
|
|
|
- this.$Message.error(res.msg);
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 编辑
|
|
|
|
- edit(row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: this.roterPre + "/erp/add_position?id=" + row.id
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 一键复制
|
|
|
|
- copy(row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: this.roterPre + "/marketing/store_integral/create/" + row.id + "/1",
|
|
|
|
- });
|
|
|
|
|
|
+ // 详情
|
|
|
|
+ info(row) {
|
|
|
|
+
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
del(row, tit, num) {
|
|
del(row, tit, num) {
|