整体调整
22
docs/databases/tables_create.sql
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
CREATE TABLE `app_version` (
|
||||||
|
`id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号',
|
||||||
|
`appName` varchar(100) NOT NULL DEFAULT '汇融云链' COMMENT '应用名称',
|
||||||
|
`versionCode` int(11) NOT NULL DEFAULT '101' COMMENT '版本编码',
|
||||||
|
`versionName` varchar(100) NOT NULL DEFAULT '101' COMMENT '版本号',
|
||||||
|
`downloadUrl` varchar(1024) DEFAULT NULL COMMENT '下载地址',
|
||||||
|
`versionInfo` varchar(1024) DEFAULT NULL COMMENT '版本描述',
|
||||||
|
`isAlpha` int(11) NOT NULL DEFAULT '0' COMMENT '是否内测:0否,1是',
|
||||||
|
`fileName` varchar(1024) DEFAULT NULL COMMENT '文件名',
|
||||||
|
`forceUpdate` int(11) NOT NULL DEFAULT '1' COMMENT '是否强制升级',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
insert into app_version(versionCode,versionName,downloadUrl,versionInfo)
|
||||||
|
values (101,'101','http://mall.yyundong.com/apks/mall-101.apk','初始版本')
|
||||||
|
|
||||||
|
insert into app_version(versionCode,versionName,downloadUrl,versionInfo,fileName)
|
||||||
|
values (1002,'1.0.0.2','http://mall.yyundong.com/apks/mall-1002.apk','BUG修复,功能完善','mall-1002.apk')
|
||||||
|
|
||||||
|
insert into app_version(versionCode,versionName,downloadUrl,versionInfo,fileName)
|
||||||
|
values (1003,'1.0.0.3','http://mall.yyundong.com/apks/mall-1003.apk','登录方式切换的Bug修复;登录及退出后本地缓存数据问题的修复。','mall-1003.apk')
|
||||||
BIN
docs/xiugai/3.1汇惠云链管理测试.zip
Normal file
BIN
docs/xiugai/汇惠云链管理测试问题.zip
Normal file
BIN
docs/xiugai/汇融云链APP问题-20230228.docx
Normal file
BIN
docs/手册/huichuan.apk
Normal file
BIN
docs/手册/logo01.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
docs/手册/xiqu.apk
Normal file
BIN
docs/手册/交付清单.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
docs/手册/惠传01.jpg
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
docs/手册/惠传02.jpg
Normal file
|
After Width: | Height: | Size: 229 KiB |
BIN
docs/手册/惠传03.jpg
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
docs/手册/惠传04.jpg
Normal file
|
After Width: | Height: | Size: 266 KiB |
BIN
docs/手册/戏曲01.jpg
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
docs/手册/戏曲02.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
docs/手册/戏曲03.jpg
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
docs/手册/戏曲04.jpg
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
docs/手册/汇融云链介绍与操作.pptx
Normal file
@@ -42,7 +42,13 @@ public class CmsSubjectController {
|
|||||||
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).select(ConstansValue.sampleSubjectList)));
|
String title = entity.getTitle();
|
||||||
|
if (ValidatorUtils.notEmpty(title)) {
|
||||||
|
entity.setTitle(null);
|
||||||
|
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).like("title", title).select(ConstansValue.sampleSubjectList)));
|
||||||
|
}else {
|
||||||
|
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).select(ConstansValue.sampleSubjectList)));
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("根据条件查询所有专题表列表:%s", e.getMessage(), e);
|
log.error("根据条件查询所有专题表列表:%s", e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ public class AppVersionController {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/versioninfo")
|
@RequestMapping(value = "/versioninfo1")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object appVersion(HttpServletRequest request) {
|
public Object appVersion1(HttpServletRequest request) {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
int versionCode = 1;// 版本编码
|
int versionCode = 1;// 版本编码
|
||||||
String defUrl = "";
|
String defUrl = "";
|
||||||
@@ -217,4 +217,37 @@ public class AppVersionController {
|
|||||||
return new CommonResult().success(appVersionNew);
|
return new CommonResult().success(appVersionNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/versioninfo")
|
||||||
|
@ResponseBody
|
||||||
|
public Object appVersion(HttpServletRequest request) {
|
||||||
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
|
int versionCode = 101;// 版本编码
|
||||||
|
String versionName = "101";// 版本号
|
||||||
|
String downloadUrl = "";// apk下载地址
|
||||||
|
String versionInfo = "";// 版本的更新描述
|
||||||
|
String fileName = "";// apk名称
|
||||||
|
int isAlpha = 0;//是否内测,0否,1是
|
||||||
|
|
||||||
|
AppVersion appVersion = new AppVersion();
|
||||||
|
appVersion.setVersionCode(versionCode);//版本编码
|
||||||
|
appVersion.setVersionName(versionName);//版本号
|
||||||
|
appVersion.setDownloadUrl(downloadUrl); //apk下载地址新
|
||||||
|
appVersion.setVersionInfo(versionInfo);//版本的更新的描述
|
||||||
|
appVersion.setFileName(fileName);//应用名称
|
||||||
|
appVersion.setForceUpdate(false);
|
||||||
|
|
||||||
|
// 查询版本记录未删除及为正式版的版本记录
|
||||||
|
AppVersion av = appVersionService.getAll();
|
||||||
|
if (null != av) {// 如果有正式版的版本记录
|
||||||
|
appVersion.setVersionCode(av.getVersionCode());//版本编码
|
||||||
|
appVersion.setVersionName(av.getVersionName());//版本号
|
||||||
|
appVersion.setDownloadUrl(av.getDownloadUrl()); //apk下载地址新
|
||||||
|
appVersion.setVersionInfo(av.getVersionInfo());//版本的更新的描述
|
||||||
|
appVersion.setFileName(av.getFileName());//应用名称
|
||||||
|
}
|
||||||
|
|
||||||
|
String appVersionNew = JsonUtils.objectToJson(appVersion);
|
||||||
|
|
||||||
|
return new CommonResult().success(appVersionNew);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ public class SingePmsController extends ApiBaseAction {
|
|||||||
@RequestParam(value = "schoolId", required = false) Long schoolId,
|
@RequestParam(value = "schoolId", required = false) Long schoolId,
|
||||||
@RequestParam(value = "productAttributeCategoryId", required = false) Long productAttributeCategoryId,
|
@RequestParam(value = "productAttributeCategoryId", required = false) Long productAttributeCategoryId,
|
||||||
@RequestParam(value = "productCategoryId", required = false) Long productCategoryId,
|
@RequestParam(value = "productCategoryId", required = false) Long productCategoryId,
|
||||||
|
@RequestParam(value = "newStatus", required = false) Integer newStatus,
|
||||||
@RequestParam(value = "recommandStatus", required = false) Integer recommandStatus,
|
@RequestParam(value = "recommandStatus", required = false) Integer recommandStatus,
|
||||||
@RequestParam(value = "brandId", required = false) Long brandId,
|
@RequestParam(value = "brandId", required = false) Long brandId,
|
||||||
@RequestParam(value = "sort", required = false) Integer sort,
|
@RequestParam(value = "sort", required = false) Integer sort,
|
||||||
@@ -366,6 +367,9 @@ public class SingePmsController extends ApiBaseAction {
|
|||||||
if (ValidatorUtils.notEmpty(recommandStatus) && recommandStatus > 0) {
|
if (ValidatorUtils.notEmpty(recommandStatus) && recommandStatus > 0) {
|
||||||
product.setRecommandStatus(1);
|
product.setRecommandStatus(1);
|
||||||
}
|
}
|
||||||
|
if (ValidatorUtils.notEmpty(newStatus) && newStatus > 0) {
|
||||||
|
product.setNewStatus(1);
|
||||||
|
}
|
||||||
if (ValidatorUtils.notEmpty(brandId) && brandId > 0) {
|
if (ValidatorUtils.notEmpty(brandId) && brandId > 0) {
|
||||||
product.setBrandId(brandId);
|
product.setBrandId(brandId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ spring.datasource.druid.stat-view-servlet.login-username=druid
|
|||||||
spring.datasource.druid.stat-view-servlet.login-password=druid
|
spring.datasource.druid.stat-view-servlet.login-password=druid
|
||||||
|
|
||||||
# \u7CFB\u7EDF\u914D\u7F6E
|
# \u7CFB\u7EDF\u914D\u7F6E
|
||||||
mallplus.domain=http://51wangshi.com:8082
|
mallplus.domain=http://mall.yyundong.com/
|
||||||
mallplus.defaultIcon=https://mall.yyundong.com/avatar.png
|
mallplus.defaultIcon=https://mall.yyundong.com/avatar.png
|
||||||
mallplus.name=mallplus-b2b2c
|
mallplus.name=????
|
||||||
mallplus.version=1.1.0
|
mallplus.version=1.1.0
|
||||||
mallplus.company=mallplus technology
|
mallplus.company=????
|
||||||
mallplus.subdomain=mallplus.com
|
mallplus.subdomain=mall.yyundong.com
|
||||||
mallplus.code=123456
|
mallplus.code=123456
|
||||||
mallplus.defaultPassword=123456
|
mallplus.defaultPassword=123456
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ spring.datasource.druid.stat-view-servlet.reset-enable=true
|
|||||||
spring.datasource.druid.stat-view-servlet.login-username=druid
|
spring.datasource.druid.stat-view-servlet.login-username=druid
|
||||||
spring.datasource.druid.stat-view-servlet.login-password=druid
|
spring.datasource.druid.stat-view-servlet.login-password=druid
|
||||||
|
|
||||||
mallplus.domain=http://51wangshi.com:8082
|
mallplus.domain=http://mall.yyundong.com/
|
||||||
mallplus.defaultIcon=https://mall.yyundong.com/avatar.png
|
mallplus.defaultIcon=https://mall.yyundong.com/avatar.png
|
||||||
mallplus.name=mallplus-b2b2c
|
mallplus.name=????
|
||||||
mallplus.version=1.1.0
|
mallplus.version=1.1.0
|
||||||
mallplus.company=mallplus technology
|
mallplus.company=????
|
||||||
mallplus.subdomain=mallplus.com
|
mallplus.subdomain=mall.yyundong.com
|
||||||
mallplus.code=123456
|
mallplus.code=123456
|
||||||
mallplus.defaultPassword=123456
|
mallplus.defaultPassword=123456
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 分类 -->
|
<!-- 分类 -->
|
||||||
<view class="cate-section">
|
<view class="cate-section">
|
||||||
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?isFenxiao=1')">
|
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?productAttributeCategoryId=1005001')">
|
||||||
<image src="/static/nywz_icon.png"></image>
|
<image src="/static/nywz_icon.png"></image>
|
||||||
<text>农业物资</text>
|
<text>农业物资</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?isVip=1')">
|
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?productAttributeCategoryId=1005000')">
|
||||||
<image src="/static/shwz_icon.png"></image>
|
<image src="/static/shwz_icon.png"></image>
|
||||||
<text>生活物资</text>
|
<text>生活物资</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -177,7 +177,7 @@
|
|||||||
|
|
||||||
<!-- 新品推荐 -->
|
<!-- 新品推荐 -->
|
||||||
<view v-if='homeNewProductList && homeNewProductList.length>0' class="f-header m-t"
|
<view v-if='homeNewProductList && homeNewProductList.length>0' class="f-header m-t"
|
||||||
@click="navToTabPage('../../pagesA/product/list')">
|
@click="navToTabPage('../../pagesA/product/list?newStatus=1')">
|
||||||
<image src="/static/temp/h1.png"></image>
|
<image src="/static/temp/h1.png"></image>
|
||||||
<view class="tit-box">
|
<view class="tit-box">
|
||||||
<text class="tit">新品推荐</text>
|
<text class="tit">新品推荐</text>
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 人气推荐 -->
|
<!-- 人气推荐 -->
|
||||||
<view v-if='homeRecommendProductList && homeRecommendProductList.length>0' class="f-header m-t"
|
<view v-if='homeRecommendProductList && homeRecommendProductList.length>0' class="f-header m-t"
|
||||||
@click="navToTabPage('../../pagesA/product/list')">
|
@click="navToTabPage('../../pagesA/product/list?recommandStatus=1')">
|
||||||
<image src="/static/temp/h1.png"></image>
|
<image src="/static/temp/h1.png"></image>
|
||||||
<view class="tit-box">
|
<view class="tit-box">
|
||||||
<text class="tit">人气推荐</text>
|
<text class="tit">人气推荐</text>
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
<!-- 新品上市 -->
|
<!-- 新品上市 -->
|
||||||
|
|
||||||
<!-- <view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list')"> -->
|
<!-- <view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list')"> -->
|
||||||
<view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list?isFenxiao=1')">
|
<view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list')">
|
||||||
<image src="/static/temp/h1.png"></image>
|
<image src="/static/temp/h1.png"></image>
|
||||||
<view class="tit-box">
|
<view class="tit-box">
|
||||||
<text class="tit">商品列表</text>
|
<text class="tit">商品列表</text>
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ export default {
|
|||||||
isFenxiao: 0,
|
isFenxiao: 0,
|
||||||
isVip: 0,
|
isVip: 0,
|
||||||
cid: null,
|
cid: null,
|
||||||
|
newStatus:null,
|
||||||
|
recommandStatus:null,
|
||||||
priceOrder: 0, //1 价格从低到高 2价格从高到低
|
priceOrder: 0, //1 价格从低到高 2价格从高到低
|
||||||
cateList: [],
|
cateList: [],
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
@@ -107,7 +109,8 @@ export default {
|
|||||||
this.cateId = options.sid;
|
this.cateId = options.sid;
|
||||||
this.isVip = options.isVip;
|
this.isVip = options.isVip;
|
||||||
this.isFenxiao = options.isFenxiao;
|
this.isFenxiao = options.isFenxiao;
|
||||||
console.log(options);
|
this.newStatus= options.newStatus;
|
||||||
|
this.recommandStatus= options.recommandStatus;
|
||||||
this.productAttributeCategoryId = options.productAttributeCategoryId;
|
this.productAttributeCategoryId = options.productAttributeCategoryId;
|
||||||
this.loadCateList(options.fid, options.sid);
|
this.loadCateList(options.fid, options.sid);
|
||||||
this.loadData();
|
this.loadData();
|
||||||
@@ -167,8 +170,8 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (this.productAttributeCategoryId) {
|
if (this.productAttributeCategoryId) {
|
||||||
params.productAttributeCategoryId = this.productAttributeCategoryId;
|
params.productAttributeCategoryId = this.productAttributeCategoryId;
|
||||||
}
|
}
|
||||||
if (this.keyword) {
|
if (this.keyword) {
|
||||||
params.keyword = this.keyword;
|
params.keyword = this.keyword;
|
||||||
}
|
}
|
||||||
@@ -178,6 +181,12 @@ export default {
|
|||||||
if (this.isFenxiao) {
|
if (this.isFenxiao) {
|
||||||
params.isFenxiao = 1;
|
params.isFenxiao = 1;
|
||||||
}
|
}
|
||||||
|
if (this.newStatus) {
|
||||||
|
params.newStatus = this.newStatus;
|
||||||
|
}
|
||||||
|
if (this.recommandStatus) {
|
||||||
|
params.recommandStatus = this.recommandStatus;
|
||||||
|
}
|
||||||
|
|
||||||
console.log("params>>>>",params)
|
console.log("params>>>>",params)
|
||||||
|
|
||||||
|
|||||||
@@ -1677,7 +1677,8 @@ hidden: true
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/cms/help',
|
redirect: '/cms/help',
|
||||||
name: 'cms',
|
name: 'cms',
|
||||||
meta: {title: '内容管理', icon: 'home'},
|
// meta: {title: '内容管理', icon: 'home'},
|
||||||
|
meta: {title: '农机服务', icon: 'home'},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'cmsZhaoPin',
|
path: 'cmsZhaoPin',
|
||||||
@@ -1723,12 +1724,13 @@ hidden: true
|
|||||||
path: 'subject',
|
path: 'subject',
|
||||||
name: 'subject',
|
name: 'subject',
|
||||||
component: () => import('@/views/cms/subject/index'),
|
component: () => import('@/views/cms/subject/index'),
|
||||||
meta: {title: '专题列表', icon: 'product-list'}
|
// meta: {title: '专题列表', icon: 'product-list'}
|
||||||
|
meta: {title: '农机资讯', icon: 'product-list'}
|
||||||
}, {
|
}, {
|
||||||
path: 'addSubject',
|
path: 'addSubject',
|
||||||
name: 'addSubject',
|
name: 'addSubject',
|
||||||
component: () => import('@/views/cms/subject/add'),
|
component: () => import('@/views/cms/subject/add'),
|
||||||
meta: {title: '添加专题'},
|
meta: {title: '添加资讯'},
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<el-card class="form-container" shadow="never">
|
<el-card class="form-container" shadow="never">
|
||||||
<el-form :model="subject" :rules="rules" ref="subjectFrom" label-width="150px">
|
<el-form :model="subject" :rules="rules" ref="subjectFrom" label-width="150px">
|
||||||
|
|
||||||
<el-form-item label="分类:" prop="categoryId">
|
<!-- <el-form-item label="分类:" prop="categoryId">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="subject.categoryId"
|
v-model="subject.categoryId"
|
||||||
@change="handlecateChange"
|
@change="handlecateChange"
|
||||||
@@ -14,33 +14,32 @@
|
|||||||
:value="item.value">
|
:value="item.value">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item label="标题:" prop="title">
|
<el-form-item label="标题:" prop="title">
|
||||||
<el-input v-model="subject.title"></el-input>
|
<el-input v-model="subject.title"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="专题主图:" prop="pic">
|
<el-form-item label="主图:" prop="pic">
|
||||||
<single-upload v-model="subject.pic"></single-upload>
|
<single-upload v-model="subject.pic"></single-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="推荐:" prop="recommendStatus">
|
<!-- <el-form-item label="推荐:" prop="recommendStatus">
|
||||||
<el-radio-group v-model="subject.recommendStatus">
|
<el-radio-group v-model="subject.recommendStatus">
|
||||||
<el-radio :label="1">是</el-radio>
|
<el-radio :label="1">是</el-radio>
|
||||||
<el-radio :label="0">否</el-radio>
|
<el-radio :label="0">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
-->
|
||||||
|
|
||||||
<el-form-item label="画册:">
|
<el-form-item label="画册:">
|
||||||
<multi-upload v-model="selectProductPics"></multi-upload>
|
<multi-upload v-model="selectProductPics"></multi-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<!-- <el-form-item label="是否显示:">
|
||||||
<el-form-item label="是否显示:">
|
|
||||||
<el-radio-group v-model="subject.showStatus">
|
<el-radio-group v-model="subject.showStatus">
|
||||||
<el-radio :label="1">是</el-radio>
|
<el-radio :label="1">是</el-radio>
|
||||||
<el-radio :label="0">否</el-radio>
|
<el-radio :label="0">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
|
|
||||||
<el-form-item label="描述:" prop="description">
|
<el-form-item label="描述:" prop="description">
|
||||||
<el-input
|
<el-input
|
||||||
:autoSize="true"
|
:autoSize="true"
|
||||||
@@ -51,9 +50,9 @@
|
|||||||
|
|
||||||
<el-form-item label="内容:" prop="content">
|
<el-form-item label="内容:" prop="content">
|
||||||
<el-tabs v-model="activeHtmlName" type="card">
|
<el-tabs v-model="activeHtmlName" type="card">
|
||||||
<el-tab-pane label="电脑端详情" name="pc">
|
<!-- <el-tab-pane label="电脑端详情" name="pc">
|
||||||
<tinymce :width="595" :height="300" v-model="subject.content"></tinymce>
|
<tinymce :width="595" :height="300" v-model="subject.content"></tinymce>
|
||||||
</el-tab-pane>
|
</el-tab-pane> -->
|
||||||
<el-tab-pane label="移动端详情" name="mobile">
|
<el-tab-pane label="移动端详情" name="mobile">
|
||||||
<tinymce :width="595" :height="300" v-model="subject.content"></tinymce>
|
<tinymce :width="595" :height="300" v-model="subject.content"></tinymce>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
@@ -73,7 +72,9 @@
|
|||||||
import Tinymce from '@/components/Tinymce'
|
import Tinymce from '@/components/Tinymce'
|
||||||
import MultiUpload from '@/components/Upload/multiUpload'
|
import MultiUpload from '@/components/Upload/multiUpload'
|
||||||
const defaultSubject={
|
const defaultSubject={
|
||||||
name: ''
|
title: '',
|
||||||
|
category_id:38,
|
||||||
|
category_name:'农机租赁'
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
name: 'SubjectDetail',
|
name: 'SubjectDetail',
|
||||||
@@ -90,7 +91,7 @@
|
|||||||
categoryName:'',
|
categoryName:'',
|
||||||
albumPics:null,
|
albumPics:null,
|
||||||
cateOptions:null,
|
cateOptions:null,
|
||||||
activeHtmlName: 'pc',
|
activeHtmlName: 'mobile',
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
{required: true, message: '请输入品牌名称', trigger: 'blur'},
|
{required: true, message: '请输入品牌名称', trigger: 'blur'},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<div style="margin-top: 15px">
|
<div style="margin-top: 15px">
|
||||||
<el-form :inline="true" :model="listQuery" size="small" label-width="140px">
|
<el-form :inline="true" :model="listQuery" size="small" label-width="140px">
|
||||||
<el-form-item label="输入搜索:">
|
<el-form-item label="输入搜索:">
|
||||||
<el-input style="width: 203px" v-model="listQuery.keyword" placeholder="品牌名称/关键字"></el-input>
|
<el-input style="width: 203px" v-model="listQuery.title" placeholder="标题/关键字"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -42,19 +42,19 @@
|
|||||||
<el-table-column label="编号" align="center">
|
<el-table-column label="编号" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.id}}</template>
|
<template slot-scope="scope">{{scope.row.id}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="分类" align="center">
|
<!-- <el-table-column label="分类" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.categoryId}}</template>
|
<template slot-scope="scope">{{scope.row.categoryId}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="专题分类名称" align="center">
|
<el-table-column label="专题分类名称" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.categoryName}}</template>
|
<template slot-scope="scope">{{scope.row.categoryName}}</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column label="标题" align="center">
|
<el-table-column label="标题" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.title}}</template>
|
<template slot-scope="scope">{{scope.row.title}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="专题主图" align="center">
|
<el-table-column label="主图" align="center">
|
||||||
<template slot-scope="scope"><img style="height: 80px" :src="scope.row.pic"></template>
|
<template slot-scope="scope"><img style="height: 80px" :src="scope.row.pic"></template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="关联产品数量" align="center">
|
<!-- <el-table-column label="关联产品数量" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.productCount}}</template>
|
<template slot-scope="scope">{{scope.row.productCount}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="推荐" align="center">
|
<el-table-column label="推荐" align="center">
|
||||||
@@ -67,7 +67,6 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="收藏量" align="center">
|
<el-table-column label="收藏量" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.collectCount}}</template>
|
<template slot-scope="scope">{{scope.row.collectCount}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -77,7 +76,6 @@
|
|||||||
<el-table-column label="评论量" align="center">
|
<el-table-column label="评论量" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.commentCount}}</template>
|
<template slot-scope="scope">{{scope.row.commentCount}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="显示状态" align="center">
|
<el-table-column label="显示状态" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
@@ -88,11 +86,9 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="转发数" align="center">
|
<el-table-column label="转发数" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.forwardCount}}</template>
|
<template slot-scope="scope">{{scope.row.forwardCount}}</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
|
|
||||||
<el-table-column label="创建时间" align="center">
|
<el-table-column label="创建时间" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.createTime|formatCreateTime}}</template>
|
<template slot-scope="scope">{{scope.row.createTime|formatCreateTime}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -150,6 +146,7 @@
|
|||||||
operateType: null,
|
operateType: null,
|
||||||
listQuery: {
|
listQuery: {
|
||||||
keyword: null,
|
keyword: null,
|
||||||
|
title: null,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<el-card class="login-form-layout">
|
<el-card class="login-form-layout">
|
||||||
<el-form autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm" label-position="left">
|
<el-form autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm" label-position="left">
|
||||||
<div style="text-align: center"><img src="../../assets/img/logo.png" width="140px"/></div>
|
<div style="text-align: center"><img src="../../assets/img/logo.png" width="140px"/></div>
|
||||||
<h2 class="login-title color-main">汇惠云链管理后台</h2>
|
<h2 class="login-title color-main">汇融云链管理后台</h2>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input name="username" type="text" v-model="loginForm.username" autoComplete="on" placeholder="请输入用户名">
|
<el-input name="username" type="text" v-model="loginForm.username" autoComplete="on" placeholder="请输入用户名">
|
||||||
<span slot="prefix"><svg-icon icon-class="user" class="color-main"></svg-icon></span>
|
<span slot="prefix"><svg-icon icon-class="user" class="color-main"></svg-icon></span>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 50px">
|
<div style="margin-top: 50px">
|
||||||
<el-form :model="value" ref="productAttrForm" label-width="150px" style="width: 720px" size="small">
|
<el-form :model="value" ref="productAttrForm" label-width="150px" style="width: 720px" size="small">
|
||||||
<el-form-item label="属性类型:">
|
<el-form-item label="商品类型:">
|
||||||
<el-select v-model="value.productAttributeCategoryId"
|
<el-select v-model="value.productAttributeCategoryId"
|
||||||
placeholder="请选择属性类型"
|
placeholder="请选择属性类型"
|
||||||
@change="handleProductAttrChange">
|
@change="handleProductAttrChange">
|
||||||
@@ -137,9 +137,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="规格参数:">
|
<el-form-item label="规格参数:">
|
||||||
<el-tabs v-model="activeHtmlName" type="card">
|
<el-tabs v-model="activeHtmlName" type="card">
|
||||||
<el-tab-pane label="电脑端详情" name="pc">
|
<!-- <el-tab-pane label="电脑端详情" name="pc">
|
||||||
<tinymce :width="595" :height="300" v-model="value.detailHtml"></tinymce>
|
<tinymce :width="595" :height="300" v-model="value.detailHtml"></tinymce>
|
||||||
</el-tab-pane>
|
</el-tab-pane> -->
|
||||||
<el-tab-pane label="移动端详情" name="mobile">
|
<el-tab-pane label="移动端详情" name="mobile">
|
||||||
<tinymce :width="595" :height="300" v-model="value.detailMobileHtml"></tinymce>
|
<tinymce :width="595" :height="300" v-model="value.detailMobileHtml"></tinymce>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
//可手动添加的商品属性
|
//可手动添加的商品属性
|
||||||
addProductAttrValue: '',
|
addProductAttrValue: '',
|
||||||
//商品富文本详情激活类型
|
//商品富文本详情激活类型
|
||||||
activeHtmlName: 'pc'
|
activeHtmlName: 'mobile'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -26,20 +26,20 @@
|
|||||||
@nextStep="nextStep"
|
@nextStep="nextStep"
|
||||||
@prevStep="prevStep">
|
@prevStep="prevStep">
|
||||||
</product-attr-detail>
|
</product-attr-detail>
|
||||||
<product-relation-detail
|
<!-- <product-relation-detail
|
||||||
v-show="showStatus[3]"
|
v-show="showStatus[3]"
|
||||||
v-model="productParam"
|
v-model="productParam"
|
||||||
:is-edit="isEdit"
|
:is-edit="isEdit"
|
||||||
@prevStep="prevStep"
|
@prevStep="prevStep"
|
||||||
@finishCommit="finishCommit">
|
@finishCommit="finishCommit">
|
||||||
</product-relation-detail>
|
</product-relation-detail> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import ProductInfoDetail from './ProductInfoDetail';
|
import ProductInfoDetail from './ProductInfoDetail';
|
||||||
import ProductSaleDetail from './ProductSaleDetail';
|
import ProductSaleDetail from './ProductSaleDetail';
|
||||||
import ProductAttrDetail from './ProductAttrDetail';
|
import ProductAttrDetail from './ProductAttrDetail';
|
||||||
import ProductRelationDetail from './ProductRelationDetail';
|
// import ProductRelationDetail from './ProductRelationDetail';
|
||||||
import {createProduct,getProduct,updateProduct} from '@/api/product';
|
import {createProduct,getProduct,updateProduct} from '@/api/product';
|
||||||
|
|
||||||
const defaultProductParam = {
|
const defaultProductParam = {
|
||||||
@@ -113,7 +113,9 @@
|
|||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
name: 'ProductDetail',
|
name: 'ProductDetail',
|
||||||
components: {ProductInfoDetail, ProductSaleDetail, ProductAttrDetail, ProductRelationDetail},
|
components: {ProductInfoDetail, ProductSaleDetail, ProductAttrDetail
|
||||||
|
// , ProductRelationDetail
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
isEdit: {
|
isEdit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -131,6 +133,7 @@
|
|||||||
if(this.isEdit){
|
if(this.isEdit){
|
||||||
getProduct(this.$route.query.id).then(response=>{
|
getProduct(this.$route.query.id).then(response=>{
|
||||||
this.productParam=response.data;
|
this.productParam=response.data;
|
||||||
|
console.log('kkkkk',this.productParam)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<el-form-item label="商品售价:">
|
<el-form-item label="商品售价:">
|
||||||
<el-input v-model="value.price"></el-input>
|
<el-input v-model="value.price"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="市场价:">
|
<el-form-item label="惠农价:">
|
||||||
<el-input v-model="value.originalPrice"></el-input>
|
<el-input v-model="value.originalPrice"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商品库存:">
|
<el-form-item label="商品库存:">
|
||||||
@@ -116,13 +116,12 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select> -->
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
|
||||||
</el-form-item>
|
<!-- <el-form-item label="排序">
|
||||||
|
|
||||||
<el-form-item label="排序">
|
|
||||||
<el-input v-model="value.sort"></el-input>
|
<el-input v-model="value.sort"></el-input>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item style="text-align: center">
|
<el-form-item style="text-align: center">
|
||||||
<el-button type="primary" size="medium" @click="handleNext('productInfoForm')">下一步</el-button>
|
<el-button type="primary" size="medium" @click="handleNext('productInfoForm')">下一步</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -237,7 +236,6 @@ let userRoles = []
|
|||||||
this.handleEditCreated();
|
this.handleEditCreated();
|
||||||
},
|
},
|
||||||
selectProductCateValue: function (newValue) {
|
selectProductCateValue: function (newValue) {
|
||||||
|
|
||||||
if (newValue != null) {
|
if (newValue != null) {
|
||||||
this.value.productCategoryId = newValue[newValue.length-1 >0?newValue.length-1:0];
|
this.value.productCategoryId = newValue[newValue.length-1 >0?newValue.length-1:0];
|
||||||
this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
|
this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
|
||||||
@@ -245,7 +243,6 @@ let userRoles = []
|
|||||||
this.value.productCategoryId = null;
|
this.value.productCategoryId = null;
|
||||||
this.value.productCategoryName=null;
|
this.value.productCategoryName=null;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
selectAreaValue: function (newValue) {
|
selectAreaValue: function (newValue) {
|
||||||
|
|
||||||
@@ -288,11 +285,17 @@ let userRoles = []
|
|||||||
},
|
},
|
||||||
//处理编辑逻辑
|
//处理编辑逻辑
|
||||||
handleEditCreated(){
|
handleEditCreated(){
|
||||||
|
|
||||||
|
console.log(this.value)
|
||||||
|
|
||||||
if(this.value.productCategoryId!=null){
|
if(this.value.productCategoryId!=null){
|
||||||
this.selectProductCateValue.push(this.value.cateParentId);
|
let seleval = []
|
||||||
this.selectProductCateValue.push(this.value.productCategoryId);
|
seleval.push(this.value.cateParentId);
|
||||||
|
seleval.push(this.value.productCategoryId);
|
||||||
|
this.selectProductCateValue = seleval
|
||||||
|
// this.selectProductCateValue.push(this.value.cateParentId);
|
||||||
|
// this.selectProductCateValue.push(this.value.productCategoryId);
|
||||||
}
|
}
|
||||||
console.log(this.selectProductCateValue)
|
|
||||||
if(this.value.areaId!=null){
|
if(this.value.areaId!=null){
|
||||||
getArea(this.value.areaId).then(response => {
|
getArea(this.value.areaId).then(response => {
|
||||||
this.selectAreaValue.push(response.data.pid);
|
this.selectAreaValue.push(response.data.pid);
|
||||||
@@ -334,10 +337,9 @@ let userRoles = []
|
|||||||
|
|
||||||
getCateNameById(id){
|
getCateNameById(id){
|
||||||
let name=null;
|
let name=null;
|
||||||
|
|
||||||
for(let i=0;i<this.productCateOptions.length;i++){
|
for(let i=0;i<this.productCateOptions.length;i++){
|
||||||
for(let j=0;i<this.productCateOptions[i].children.length;j++){
|
for(let j=0;j<this.productCateOptions[i].children.length;j++){
|
||||||
if( this.productCateOptions[i].children[j].value!=undefined && this.productCateOptions[i].children[j].value===id){
|
if( this.productCateOptions[i].children[j].value && this.productCateOptions[i].children[j].value!=undefined && this.productCateOptions[i].children[j].value===id){
|
||||||
name=this.productCateOptions[i].children[j].label;
|
name=this.productCateOptions[i].children[j].label;
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,27 +60,63 @@
|
|||||||
{{ searchxianshitit }}
|
{{ searchxianshitit }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<div v-show="isSearchShow" class="search">
|
<div v-show="isSearchShow" class="search">
|
||||||
<el-form ref="queryParams" :model="queryParams" :inline="true" class="tab-header">
|
<el-form :model="listQuery" :inline="true" class="tab-header">
|
||||||
<el-form-item label="仓库/门店">
|
<el-form-item label="输入搜索:">
|
||||||
<el-input v-model="queryParams.params.orderId" placeholder="" clearable />
|
<el-input style="width: 203px" v-model="listQuery.keyword" placeholder="商品名称"></el-input>
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="起始日期">
|
|
||||||
<el-date-picker v-model="queryParams.params.orderStartDate" type="date" clearable
|
|
||||||
value-format="yyyy-MM-dd" placeholder="选择日期" />
|
|
||||||
<span style="padding: 0 8px">至</span>
|
|
||||||
<el-date-picker v-model="queryParams.params.orderEndDate" type="date" clearable
|
|
||||||
value-format="yyyy-MM-dd" placeholder="选择日期" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="商品名称">
|
|
||||||
<el-input v-model="queryParams.params.supplierName" placeholder="" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="商品编码">
|
|
||||||
<el-input v-model="queryParams.params.supplierName" placeholder="" clearable />
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="商品类型:">
|
||||||
|
<el-select v-model="listQuery.productAttributeCategoryId" placeholder="商品类型" clearable style="width: 160px;">
|
||||||
|
<el-option v-for="item in productAttributeCategoryOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="商品分类:">
|
||||||
|
<el-cascader clearable change-on-select v-model="selectProductCateValue"
|
||||||
|
:options="productCateOptions">
|
||||||
|
</el-cascader>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="商品品牌:">
|
||||||
|
<el-select v-model="listQuery.brandId" placeholder="请选择品牌" clearable>
|
||||||
|
<el-option v-for="item in brandOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="上架状态:">
|
||||||
|
<el-select v-model="listQuery.publishStatus" placeholder="全部" clearable style="width: 120px;">
|
||||||
|
<el-option v-for="item in publishStatusOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="审核状态:">
|
||||||
|
<el-select v-model="listQuery.verifyStatus" placeholder="全部" clearable style="width: 120px;">
|
||||||
|
<el-option v-for="item in verifyStatusOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否新品:">
|
||||||
|
<el-select v-model="listQuery.newStatus" placeholder="全部" clearable style="width: 120px;">
|
||||||
|
<el-option v-for="item in newStatusOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否推荐:">
|
||||||
|
<el-select v-model="listQuery.recommandStatus" placeholder="全部" clearable style="width: 120px;">
|
||||||
|
<el-option v-for="item in recommandStatusOptions" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="btn" style="text-align: center;">
|
<div class="btn" style="text-align: center;">
|
||||||
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button>
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleSearchList()">查询</el-button>
|
||||||
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="handleResetSearch()">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -99,9 +135,9 @@
|
|||||||
<el-tab-pane name="3">
|
<el-tab-pane name="3">
|
||||||
<span slot="label"><i class="el-icon-truck"></i>仓库中</span>
|
<span slot="label"><i class="el-icon-truck"></i>仓库中</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane name="4">
|
<!-- <el-tab-pane name="4">
|
||||||
<span slot="label"><i class="el-icon-truck"></i> 回收站</span>
|
<span slot="label"><i class="el-icon-truck"></i> 回收站</span>
|
||||||
</el-tab-pane>
|
</el-tab-pane> -->
|
||||||
<!-- <el-tab-pane name="5">
|
<!-- <el-tab-pane name="5">
|
||||||
<span slot="label"><i class="el-icon-truck"></i>
|
<span slot="label"><i class="el-icon-truck"></i>
|
||||||
<el-button class="btn-add" @click="handleAddProduct()" size="mini">
|
<el-button class="btn-add" @click="handleAddProduct()" size="mini">
|
||||||
@@ -141,6 +177,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<p>{{scope.row.name}}</p>
|
<p>{{scope.row.name}}</p>
|
||||||
<p>品牌:{{scope.row.brandName}}</p>
|
<p>品牌:{{scope.row.brandName}}</p>
|
||||||
|
<p>类别:{{scope.row.productCategoryName}}</p>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="价格/货号" width="120" align="center">
|
<el-table-column label="价格/货号" width="120" align="center">
|
||||||
@@ -166,7 +203,7 @@
|
|||||||
:active-value="1" :inactive-value="0" v-model="scope.row.recommandStatus">
|
:active-value="1" :inactive-value="0" v-model="scope.row.recommandStatus">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</p>
|
</p>
|
||||||
<p>分销:
|
<!-- <p>分销:
|
||||||
<el-switch @change="handleFenxiaoStatusChange(scope.$index, scope.row)"
|
<el-switch @change="handleFenxiaoStatusChange(scope.$index, scope.row)"
|
||||||
:active-value="1" :inactive-value="0" v-model="scope.row.isFenxiao">
|
:active-value="1" :inactive-value="0" v-model="scope.row.isFenxiao">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
@@ -175,17 +212,17 @@
|
|||||||
<el-switch @change="handleVipStatusChange(scope.$index, scope.row)" :active-value="1"
|
<el-switch @change="handleVipStatusChange(scope.$index, scope.row)" :active-value="1"
|
||||||
:inactive-value="0" v-model="scope.row.isVip">
|
:inactive-value="0" v-model="scope.row.isVip">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</p>
|
</p> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="排序" width="100" align="center">
|
<!-- <el-table-column label="排序" width="100" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.sort}}</template>
|
<template slot-scope="scope">{{scope.row.sort}}</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column label="SKU库存" width="100" align="center">
|
<el-table-column label="库存数" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<p>{{scope.row.stock }}</p>
|
<p>{{scope.row.stock }}</p>
|
||||||
<el-button type="primary" icon="el-icon-edit"
|
<!-- <el-button type="primary" icon="el-icon-edit"
|
||||||
@click="handleShowSkuEditDialog(scope.$index, scope.row)" circle></el-button>
|
@click="handleShowSkuEditDialog(scope.$index, scope.row)" circle></el-button> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="销量" width="100" align="center">
|
<el-table-column label="销量" width="100" align="center">
|
||||||
@@ -203,14 +240,16 @@
|
|||||||
<el-table-column label="操作" width="160" align="center">
|
<el-table-column label="操作" width="160" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<p>
|
<p>
|
||||||
<el-button size="mini" @click="handleDeleteStatus(scope.$index, scope.row)">回收
|
|
||||||
</el-button>
|
|
||||||
<el-button size="mini" @click="handleUpdateProduct(scope.$index, scope.row)">编辑
|
<el-button size="mini" @click="handleUpdateProduct(scope.$index, scope.row)">编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
<!-- <el-button size="mini" @click="handleDeleteStatus(scope.$index, scope.row)">回收
|
||||||
|
</el-button>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<el-button size="mini" @click="handleShowVeriyEditDialog(scope.$index, scope.row)">日志
|
<el-button size="mini" @click="handleShowVeriyEditDialog(scope.$index, scope.row)">日志
|
||||||
</el-button>
|
</el-button> -->
|
||||||
|
|
||||||
<el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除
|
<el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</p>
|
</p>
|
||||||
@@ -317,7 +356,8 @@
|
|||||||
update as updateSkuStockList
|
update as updateSkuStockList
|
||||||
} from '@/api/skuStock'
|
} from '@/api/skuStock'
|
||||||
import {
|
import {
|
||||||
fetchList as fetchProductAttrList
|
fetchList as fetchProductAttrList,
|
||||||
|
fetchAllList as fetchProductAttrAllList
|
||||||
} from '@/api/productAttr'
|
} from '@/api/productAttr'
|
||||||
import {
|
import {
|
||||||
fetchList as fetchBrandList
|
fetchList as fetchBrandList
|
||||||
@@ -325,6 +365,7 @@
|
|||||||
import {
|
import {
|
||||||
fetchListWithChildren
|
fetchListWithChildren
|
||||||
} from '@/api/productCate'
|
} from '@/api/productCate'
|
||||||
|
import {fetchList as fetchProductAttrCateList} from '@/api/productAttrCate'
|
||||||
|
|
||||||
const defaultListQuery = {
|
const defaultListQuery = {
|
||||||
keyword: null,
|
keyword: null,
|
||||||
@@ -335,6 +376,9 @@
|
|||||||
verifyStatus: null,
|
verifyStatus: null,
|
||||||
productSn: null,
|
productSn: null,
|
||||||
productCategoryId: null,
|
productCategoryId: null,
|
||||||
|
productAttributeCategoryId: null,
|
||||||
|
newStatus: null,
|
||||||
|
recommandStatus: null,
|
||||||
brandId: null
|
brandId: null
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
@@ -389,14 +433,14 @@
|
|||||||
label: "取消新品",
|
label: "取消新品",
|
||||||
value: "newOff"
|
value: "newOff"
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: "转移到分类",
|
// label: "转移到分类",
|
||||||
value: "transferCategory"
|
// value: "transferCategory"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: "移入回收站",
|
// label: "移入回收站",
|
||||||
value: "recycle"
|
// value: "recycle"
|
||||||
}
|
// }
|
||||||
],
|
],
|
||||||
tabsName: '1',
|
tabsName: '1',
|
||||||
operateType: null,
|
operateType: null,
|
||||||
@@ -408,6 +452,7 @@
|
|||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
productCateOptions: [],
|
productCateOptions: [],
|
||||||
brandOptions: [],
|
brandOptions: [],
|
||||||
|
productAttributeCategoryOptions: [],
|
||||||
publishStatusOptions: [{
|
publishStatusOptions: [{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '上架'
|
label: '上架'
|
||||||
@@ -422,6 +467,20 @@
|
|||||||
value: 0,
|
value: 0,
|
||||||
label: '未审核'
|
label: '未审核'
|
||||||
}],
|
}],
|
||||||
|
newStatusOptions: [{
|
||||||
|
value: 1,
|
||||||
|
label: '是'
|
||||||
|
}, {
|
||||||
|
value: 0,
|
||||||
|
label: '否'
|
||||||
|
}],
|
||||||
|
recommandStatusOptions: [{
|
||||||
|
value: 1,
|
||||||
|
label: '是'
|
||||||
|
}, {
|
||||||
|
value: 0,
|
||||||
|
label: '否'
|
||||||
|
}],
|
||||||
statusOptions: [{
|
statusOptions: [{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '出售中'
|
label: '出售中'
|
||||||
@@ -431,10 +490,12 @@
|
|||||||
}, {
|
}, {
|
||||||
value: 3,
|
value: 3,
|
||||||
label: '仓库中'
|
label: '仓库中'
|
||||||
}, {
|
}
|
||||||
value: 4,
|
// , {
|
||||||
label: '回收站'
|
// value: 4,
|
||||||
}],
|
// label: '回收站'
|
||||||
|
// },
|
||||||
|
],
|
||||||
btnList: [],
|
btnList: [],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -462,6 +523,7 @@
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.getBrandList();
|
this.getBrandList();
|
||||||
this.getProductCateList();
|
this.getProductCateList();
|
||||||
|
this.getProductAttrCateList();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectProductCateValue: function(newValue) {
|
selectProductCateValue: function(newValue) {
|
||||||
@@ -594,6 +656,16 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getProductAttrCateList() {
|
||||||
|
let param = {pageNum: 1, pageSize: 100};
|
||||||
|
fetchProductAttrCateList().then(response => {
|
||||||
|
let list = response.data.records;
|
||||||
|
this.productAttributeCategoryOptions = [];
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
this.productAttributeCategoryOptions.push({label: list[i].name, value: list[i].id});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
handleShowVeriyEditDialog(index, row) {
|
handleShowVeriyEditDialog(index, row) {
|
||||||
this.vertyProduct.dialogVisible = true;
|
this.vertyProduct.dialogVisible = true;
|
||||||
this.vertyProduct.productId = row.id;
|
this.vertyProduct.productId = row.id;
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
<el-card class="operate-container" shadow="never">
|
<el-card class="operate-container" shadow="never">
|
||||||
<i class="el-icon-tickets" style="margin-top: 5px"></i>
|
<i class="el-icon-tickets" style="margin-top: 5px"></i>
|
||||||
<span style="margin-top: 5px">数据列表</span>
|
<span style="margin-top: 5px">数据列表</span>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
class="btn-add"
|
class="btn-add"
|
||||||
@click="addProductAttrCate()"
|
@click="addProductAttrCate()"
|
||||||
size="mini">
|
size="mini">
|
||||||
添加
|
添加
|
||||||
</el-button>
|
</el-button> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
<div class="table-container">
|
<div class="table-container">
|
||||||
<el-table ref="productAttrCateTable"
|
<el-table ref="productAttrCateTable"
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<el-table-column label="类型名称" align="center">
|
<el-table-column label="类型名称" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.name}}</template>
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="属性数量" width="200" align="center">
|
<!-- <el-table-column label="属性数量" width="200" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.attributeCount==null?0:scope.row.attributeCount}}</template>
|
<template slot-scope="scope">{{scope.row.attributeCount==null?0:scope.row.attributeCount}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="参数数量" width="200" align="center">
|
<el-table-column label="参数数量" width="200" align="center">
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
@click="handleDelete(scope.$index, scope.row)">删除
|
@click="handleDelete(scope.$index, scope.row)">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination-container">
|
<div class="pagination-container">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card class="filter-container" shadow="never">
|
<!-- <el-card class="filter-container" shadow="never">
|
||||||
<div>
|
<div>
|
||||||
<i class="el-icon-search"></i>
|
<i class="el-icon-search"></i>
|
||||||
<span>筛选搜索</span>
|
<span>筛选搜索</span>
|
||||||
@@ -19,16 +19,16 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card> -->
|
||||||
<el-card class="operate-container" shadow="never">
|
<el-card class="operate-container" shadow="never">
|
||||||
<i class="el-icon-tickets"></i>
|
<i class="el-icon-tickets"></i>
|
||||||
<span>数据列表</span>
|
<span>数据列表</span>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
class="btn-add"
|
class="btn-add"
|
||||||
@click="addMemberLevel()"
|
@click="addMemberLevel()"
|
||||||
size="mini">
|
size="mini">
|
||||||
添加
|
添加
|
||||||
</el-button>
|
</el-button> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
<div class="table-container">
|
<div class="table-container">
|
||||||
<el-table ref="memberLevelTable"
|
<el-table ref="memberLevelTable"
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
<el-table-column label="名称" align="center">
|
<el-table-column label="名称" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.name}}</template>
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="成长值" align="center">
|
|
||||||
|
<!-- <el-table-column label="成长值" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.growthPoint}}</template>
|
<template slot-scope="scope">{{scope.row.growthPoint}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="免运费标准" align="center">
|
<el-table-column label="免运费标准" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.freeFreightPoint}}</template>
|
<template slot-scope="scope">{{scope.row.freeFreightPoint}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -81,13 +81,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="成为会员的价格" align="center">
|
<el-table-column label="成为会员的价格" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.price}}</template>
|
<template slot-scope="scope">{{scope.row.price}}</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
|
|
||||||
<el-table-column label="备注" align="center">
|
<el-table-column label="备注" align="center">
|
||||||
<template slot-scope="scope">{{scope.row.note}}</template>
|
<template slot-scope="scope">{{scope.row.note}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
||||||
<el-table-column label="操作" width="200" align="center">
|
<!-- <el-table-column label="操作" width="200" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -99,7 +100,7 @@
|
|||||||
@click="handleDelete(scope.$index, scope.row)">删除
|
@click="handleDelete(scope.$index, scope.row)">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="batch-operate-container">
|
<div class="batch-operate-container">
|
||||||
|
|||||||
14
mallplusui-web-pc/index-kong.html
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset=utf-8>
|
||||||
|
<title>汇融云链</title>
|
||||||
|
<meta name=keywords content=汇融云链>
|
||||||
|
<meta name=description content=汇融云链>
|
||||||
|
<meta http-equiv=X-UA-Compatible content="IE=Edge">
|
||||||
|
<meta name=wap-font-scale content=no>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id=app>汇融云链</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||