|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
+ <el-tabs v-model="goodsType" @tab-click="onChangeGoodsType">
|
|
|
+ <el-tab-pane v-for="(dict, i) in dict.type.goods_type" :key="i" :label="dict.label" :name="dict.value"></el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
<el-form :model="queryParams" ref="queryForm" @submit.native.prevent :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-form-item prop="orderNo">
|
|
|
<el-input v-model="queryParams.orderNo" placeholder="请输入订单编号" clearable @keyup.enter.native="handleQuery" />
|
|
@@ -17,10 +20,10 @@
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(0)" v-hasPermi="['order:purchaseGoods:add']">普通商品采购</el-button>
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(1)" v-hasPermi="['order:purchaseGoods:add']">材料商品采购</el-button>
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(2)" v-hasPermi="['order:purchaseGoods:add']">生活服务商品采购</el-button>
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(3)" v-hasPermi="['order:purchaseGoods:add']">汽车美容商品采购</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(0)" v-hasPermi="['order:purchaseGoods:add']">普通商品批发</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(1)" v-hasPermi="['order:purchaseGoods:add']">材料商品批发</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(2)" v-hasPermi="['order:purchaseGoods:add']">生活服务商品批发</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" @click="addOrder(3)" v-hasPermi="['order:purchaseGoods:add']">汽车美容商品批发</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
@@ -61,7 +64,7 @@
|
|
|
</Page>
|
|
|
|
|
|
<!--新增-->
|
|
|
- <el-dialog :title="title" :visible.sync="open" size="80%" append-to-body>
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
|
|
|
<el-card class="purchase-dialog">
|
|
|
<el-row :gutter="20" class="purchase-container">
|
|
|
<!-- 左侧分类选择区域 -->
|
|
@@ -84,7 +87,7 @@
|
|
|
<el-col :span="20" class="content-section">
|
|
|
<!-- 上半区:已采购商品列表 -->
|
|
|
<div class="purchased-section">
|
|
|
- <div class="section-title">已采购商品</div>
|
|
|
+ <div class="section-title">已批发商品</div>
|
|
|
<el-table :data="addGoodsList" border stripe>
|
|
|
<!-- <el-table-column label="编号" align="center" prop="goodsSkuStoreId" width="100" /> -->
|
|
|
<el-table-column label="商品名称" align="center" prop="goodsName" min-width="200" />
|
|
@@ -147,7 +150,7 @@
|
|
|
{{formatSpec(scope.row.specValLists)}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="采购价格" align="center" prop="purchasePrice" width="100" />
|
|
|
+ <el-table-column label="批发价格" align="center" prop="purchasePrice" width="100" />
|
|
|
<el-table-column label="平台库存" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span :class="{'low-stock': scope.row.hqStock <= 5}">{{ scope.row.hqStock }}</span>
|
|
@@ -226,7 +229,7 @@
|
|
|
<el-dialog :title="detailTitle" :visible.sync="openDetail" size="80%" append-to-body>
|
|
|
<el-card>
|
|
|
<el-descriptions title="基本信息" v-show="detailView" :column="3" border :label-style="{ 'text-align': 'center' }" :contentStyle="{ 'text-align': 'center' }">
|
|
|
- <el-descriptions-item label="采购来源" span="3">{{ detailView.orgName ? detailView.orgName : '--' }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="批发来源" span="3">{{ detailView.orgName ? detailView.orgName : '--' }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="订单状态">
|
|
|
<dict-tag :options="dict.type.purchase_order_status" :value="detailView.orderStatus" />
|
|
|
</el-descriptions-item>
|
|
@@ -279,7 +282,7 @@ import { getFactoryInfo } from '@/api/system/factory'
|
|
|
import { getStoreInfo } from '@/api/system/store'
|
|
|
export default {
|
|
|
name: 'goodsPurchase',
|
|
|
- dicts: ['purchase_order_status', 'recharge_pay_type'],
|
|
|
+ dicts: ['purchase_order_status', 'recharge_pay_type','goods_type'],
|
|
|
data() {
|
|
|
return {
|
|
|
//
|
|
@@ -399,6 +402,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ onChangeGoodsType() {
|
|
|
+ this.queryParams.goodsType = this.goodsType
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
handleUser() {
|
|
|
this.userInfoVO = this.getUserInfo()
|
|
|
if (this.userInfoVO.userType == '00') {
|
|
@@ -524,7 +531,7 @@ export default {
|
|
|
this.isUserBalance = false
|
|
|
this.getBalance()
|
|
|
this.goodsType = type
|
|
|
- this.title = this.goodsType == '0' ? '商品采购' : '商品采购'
|
|
|
+ this.title = this.goodsType == '0' ? '商品批发' : '商品批发'
|
|
|
this.titleType = this.goodsType == '0' ? '商品分类' : '商品分类'
|
|
|
this.purchaseCountVOList = []
|
|
|
this.addGoodsList = []
|
|
@@ -657,7 +664,7 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
.purchase-dialog {
|
|
|
.purchase-container {
|
|
|
- min-height: 600px;
|
|
|
+ // min-height: 600px;
|
|
|
}
|
|
|
|
|
|
.category-section {
|