diff --git a/src/api/operation/commission/index.js b/src/api/operation/commission/index.js
index 9dfe181..ff698c3 100644
--- a/src/api/operation/commission/index.js
+++ b/src/api/operation/commission/index.js
@@ -74,7 +74,7 @@ export function findIndustryCom(params) {
})
}
-// 根据业委会主键id查询业委会信息
+// 修改业委会信息
export function updateIndustryCom(params) {
return httpService({
url: `/user/industryCommittee/update`,
diff --git a/src/api/shop/goods/index.js b/src/api/shop/goods/index.js
index 671055d..aea1bd3 100644
--- a/src/api/shop/goods/index.js
+++ b/src/api/shop/goods/index.js
@@ -117,4 +117,50 @@ export function settingPoints(params) {
method: 'post',
data: params,
})
+}
+
+//自营
+//自营商品列表
+export function selfGoodsList(params) {
+ return httpService({
+ url: `/user/shop/selfGoodsList`,
+ method: 'get',
+ params: params,
+ })
+}
+
+//自营商品推送
+export function selfGoodsPush(params) {
+ return httpService({
+ url: `/user/shop/selfGoodsPush`,
+ method: 'post',
+ data: params,
+ })
+}
+
+//自营商品批量推送
+export function selfGoodsMultiPush(params) {
+ return httpService({
+ url: `/user/shop/selfGoodsBatchPush`,
+ method: 'post',
+ data: params,
+ })
+}
+
+//自营商品-查询所有商品类型(级联)
+export function findAllGoodsCategory(params) {
+ return httpService({
+ url: `/user/shopCategory/findAllGoodsCategory`,
+ method: 'get',
+ params: params,
+ })
+}
+
+//自营商品-自营商品推送
+export function selfItemPush(params) {
+ return httpService({
+ url: `/user/shop/selfGoodsPush`,
+ method: 'post',
+ data: params,
+ })
}
\ No newline at end of file
diff --git a/src/components/searchForm/index.vue b/src/components/searchForm/index.vue
index 80f80cf..8e06750 100644
--- a/src/components/searchForm/index.vue
+++ b/src/components/searchForm/index.vue
@@ -25,7 +25,7 @@
+ 重置
diff --git a/src/router/shop.js b/src/router/shop.js
index 26e6511..fc43df7 100644
--- a/src/router/shop.js
+++ b/src/router/shop.js
@@ -25,6 +25,14 @@ export default [
component: resolve => require(['@/views/Shop/GoodsManage/_goodsList'], resolve),
meta: {title: '商品列表'},
},
+ {
+ path: '/GoodsManage/SelfGoodsList',
+ name: "SelfGoodsList",
+ title: "自营商品列表",
+ hide: false,
+ component: resolve => require(['@/views/Shop/GoodsManage/_selfGoodsList'], resolve),
+ meta: {title: '自营商品列表'},
+ },
{
path: '/GoodsManage/PointGoods',
name: "PointGoods",
diff --git a/src/utils/util.js b/src/utils/util.js
index 363e5e8..027635e 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -16,7 +16,7 @@ export default {
Vue.prototype.$buildingUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importBuildingExcel'
// 静态地址
Vue.prototype.$ImgUrl = (src) => {
- return process.env.VUE_APP_STATIC + store.getters.getCommunityCode + '/' + src
+ return process.env.VUE_APP_URL + store.getters.getCommunityCode + '/' + src
}
// 时间格式化
Vue.prototype.formatDate = (time, fmt) => {
diff --git a/src/views/Basic/Employee/depend/form.vue b/src/views/Basic/Employee/depend/form.vue
index 1d54f58..b71fc9e 100644
--- a/src/views/Basic/Employee/depend/form.vue
+++ b/src/views/Basic/Employee/depend/form.vue
@@ -341,7 +341,6 @@ export default {
this.fileList =[]
},
async handlePreview(file) {
- console.log(file);
if(file.name.indexOf('pdf')!==-1){
if(file.response){
window.open(this.$ImgUrl(file.response.data))
diff --git a/src/views/Basic/Employee/index.vue b/src/views/Basic/Employee/index.vue
index 2ead3c9..dee93e6 100644
--- a/src/views/Basic/Employee/index.vue
+++ b/src/views/Basic/Employee/index.vue
@@ -62,10 +62,13 @@
新增员工
批量导入
+
+ 模版下载
+
批量操作
@@ -204,6 +207,12 @@
提交
+
+ 以下为导入失败的用户
+
+ {{item}}
+
+
diff --git a/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue b/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
index 5b5fa6b..9b46617 100644
--- a/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
+++ b/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
@@ -32,6 +32,9 @@
:headers="uploadHeaders" @change="changeFile">
批量导入
+
+ 模版下载
+
@@ -239,6 +242,12 @@
+
+ 以下为导入失败的用户
+
+ {{item}}
+
+
@@ -310,7 +319,10 @@ export default {
// 上传
uploadHeaders: {
"manage-login-token": store.getters.getToken,
- }
+ },
+ //上传对话框
+ uploadVisible: false,
+ uploadResult: [],
};
},
mounted() {
@@ -460,10 +472,22 @@ export default {
//上传
changeFile(data) {
if(data.file.status == "done") {
- this.$message.success('操作成功');
- this.getData();
+ if(data.file.response.success == false) {
+ this.$message.error(data.file.response.msg);
+ } else {
+ this.$message.success('操作成功');
+ if(data.file.response.data) {
+ this.uploadResult = data.file.response.data;
+ this.uploadVisible = true;
+ }
+ this.getData();
+ }
}
},
+ //模版下载
+ modelDownload() {
+ window.open('https://saas.kaidalai.cn/excelModel/住户导入模版.xlsx');
+ }
},
computed: {
// 是否选择selection
diff --git a/src/views/Basic/EstateInfo/_houseManage/index.vue b/src/views/Basic/EstateInfo/_houseManage/index.vue
index 9bde90a..9849bd4 100644
--- a/src/views/Basic/EstateInfo/_houseManage/index.vue
+++ b/src/views/Basic/EstateInfo/_houseManage/index.vue
@@ -26,6 +26,9 @@
:headers="uploadHeaders" @change="changeFile">
批量导入
+
+ 模版下载
+
房屋配置
@@ -176,6 +179,12 @@
+
+ 以下为导入失败的用户
+
+ {{item}}
+
+
@@ -236,6 +245,9 @@ export default {
uploadHeaders: {
"manage-login-token": store.getters.getToken,
},
+ //上传对话框
+ uploadVisible: false,
+ uploadResult: [],
fileList: []
};
},
@@ -401,10 +413,22 @@ export default {
//上传
changeFile(data) {
if(data.file.status == "done") {
- this.$message.success('操作成功');
- this.getData();
+ if(data.file.response.success == false) {
+ this.$message.error(data.file.response.msg);
+ } else {
+ this.$message.success('操作成功');
+ if(data.file.response.data) {
+ this.uploadResult = data.file.response.data;
+ this.uploadVisible = true;
+ }
+ this.getData();
+ }
}
},
+ //模版下载
+ modelDownload() {
+ window.open('https://saas.kaidalai.cn/excelModel/房屋导入模版.xlsx');
+ }
},
computed: {
// 是否选择selection
diff --git a/src/views/Basic/WorkOrder/addWorkOrder.vue b/src/views/Basic/WorkOrder/addWorkOrder.vue
index 8be4588..29a2eaa 100644
--- a/src/views/Basic/WorkOrder/addWorkOrder.vue
+++ b/src/views/Basic/WorkOrder/addWorkOrder.vue
@@ -223,13 +223,13 @@ export default {
this.previewVisible = false;
},
//选择房屋后的回调
- getAppName(val) {
- this.form.applicantId = undefined;
- findTenantByEstateId({estateId: val}).then(res => {
- let data = res.data;
- this.applicantIds = data;
- })
- },
+ // getAppName(val) {
+ // this.form.applicantId = undefined;
+ // findTenantByEstateId({estateId: val}).then(res => {
+ // let data = res.data;
+ // this.applicantIds = data;
+ // })
+ // },
//选择物业后的回调
getDepartmentName(val) {
findToUser({pageNum: 1,size: 10000,positionId: val[2]}).then(res => {
diff --git a/src/views/Basic/WorkOrder/transDrawer.vue b/src/views/Basic/WorkOrder/transDrawer.vue
index 52adec8..0ffb878 100644
--- a/src/views/Basic/WorkOrder/transDrawer.vue
+++ b/src/views/Basic/WorkOrder/transDrawer.vue
@@ -44,7 +44,7 @@
@@ -142,7 +142,6 @@ export default {
},
onSubmit() {
this.form.manageWorkOrderId = this.assignId;
- console.log(this.form);
designate(this.form).then(res => {
if(res.code === 200){
this.$message.success(res.msg)
diff --git a/src/views/FromPlatform/index.vue b/src/views/FromPlatform/index.vue
new file mode 100644
index 0000000..724b8e6
--- /dev/null
+++ b/src/views/FromPlatform/index.vue
@@ -0,0 +1,13 @@
+
+ test
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Operation/Facility/_facilityInfo/index.vue b/src/views/Operation/Facility/_facilityInfo/index.vue
index be7699e..282ba22 100644
--- a/src/views/Operation/Facility/_facilityInfo/index.vue
+++ b/src/views/Operation/Facility/_facilityInfo/index.vue
@@ -363,6 +363,7 @@ export default {
}
}
this.addForm.docUrls = arr;
+
if(this.mode == 1) {
let obj = Object.assign(this.addForm,{type: this.form.type})
addFacilityInfo(obj).then(res => {
diff --git a/src/views/Shop/GoodsManage/_selfGoodsList/depend/config.js b/src/views/Shop/GoodsManage/_selfGoodsList/depend/config.js
new file mode 100644
index 0000000..80bb332
--- /dev/null
+++ b/src/views/Shop/GoodsManage/_selfGoodsList/depend/config.js
@@ -0,0 +1,100 @@
+export const columns = [
+ {
+ title: "商品状态",
+ width: "7%",
+ dataIndex: "status",
+ customRender: function (status) {
+ switch (status) {
+ case 2: return '已下架'
+ case 1: return '上架中'
+ default: break;
+ }
+ }
+ },
+ {
+ title: "推送状态",
+ width: "7%",
+ dataIndex: "appShopPush",
+ customRender: function (appShopPush) {
+ switch (appShopPush) {
+ case false: return '未推送'
+ case true: return '已推送'
+ default: break;
+ }
+ }
+ },
+ {
+ title: "编号",
+ width: "16%",
+ dataIndex: "code",
+ },
+ {
+ title: "商品图片",
+ width: "7%",
+ dataIndex: "imgList",
+ scopedSlots: { customRender: "mainPhoto"}
+ },
+ {
+ title: "商品名称",
+ width: "10%",
+ dataIndex: "name",
+ },
+ {
+ title: "商品类型",
+ width: "12%",
+ dataIndex: "categoryNamePath",
+ },
+ {
+ title: "库存",
+ width: "6%",
+ dataIndex: "stock",
+ },
+ {
+ title: "销量",
+ width: "6%",
+ dataIndex: "salesVolume",
+ },
+ {
+ title: "更新时间",
+ width: "10%",
+ dataIndex: "updatedAt",
+ },
+ {
+ title: "操作",
+ dataIndex: "action",
+ key: "action",
+ width: "250",
+ fixed: "right",
+ scopedSlots: { customRender: "action" },
+ },
+]
+export const formItem = [
+ {
+ type: 'input',
+ label:'sku编码',
+ prop:'skuId',
+ placeholder:'请输入'
+ },
+ {
+ type: 'input',
+ label:'商品名称',
+ prop:'skuName',
+ placeholder:'请输入'
+ },
+ // {
+ // type: 'select',
+ // label:'上架状态',
+ // prop:'status',
+ // placeholder:'请选择',
+ // option:[{ id: false,name:'下架'},{ id: true,name:'上架'}],
+ // },
+]
+export const pagination = {
+ current: 1,
+ total: 0,
+ pageSize: 10,
+ showTotal: (total) => `共 ${total} 条`,
+ pageSizeOptions: ['10','50','100','200'],
+ showSizeChanger: true,
+ showQuickJumper: true,
+}
\ No newline at end of file
diff --git a/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.js b/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.js
new file mode 100644
index 0000000..fcbb431
--- /dev/null
+++ b/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.js
@@ -0,0 +1,34 @@
+export const form = {
+ id:undefined,
+ //是否默认配置
+ defaultSkuName: true,
+ defaultShopName: true,
+ defaultVendorName: true,
+ defaultBrandName: true,
+ defaultCategoryName: true,
+ //
+ skuName:undefined,
+ shopId:undefined,
+ vendorId:undefined,
+ brandId:undefined,
+ categoryFirstId:undefined,
+ categorySecondId:undefined,
+ categoryThirdId:undefined,
+ sellPrice:undefined,
+ discountPrice:undefined,
+}
+export const rules = {
+ // skuName:[{required:true,message:'请输入',trigger:'blur'}],
+ // shopId:[{required:true,message:'请选择',trigger:'change'}],
+ // status:[{required:true,message:'请选择',trigger:'change'}],
+ // vendorId:[{required:true,message:'请选择',trigger:'change'}],
+ // brandId: [{ required: true, message: '请选择', trigger: 'change' }],
+ sellPrice:[{required:true,message:'请输入',trigger:'blur'}],
+ discountPrice:[{required:true,message:'请输入',trigger:'blur'}],
+}
+export const options = {
+ cate:[],
+ shop: [],
+ vendor: [],
+ brand: [],
+}
diff --git a/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.vue b/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.vue
new file mode 100644
index 0000000..6295960
--- /dev/null
+++ b/src/views/Shop/GoodsManage/_selfGoodsList/depend/form.vue
@@ -0,0 +1,181 @@
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Shop/GoodsManage/_selfGoodsList/index.vue b/src/views/Shop/GoodsManage/_selfGoodsList/index.vue
new file mode 100644
index 0000000..03c38e1
--- /dev/null
+++ b/src/views/Shop/GoodsManage/_selfGoodsList/index.vue
@@ -0,0 +1,273 @@
+
+
+
+ 商品管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上架
+ 下架
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查 询
+ 重 置
+
+
+
+
+
+
+
+
+
+
+ 推送
+
+
+
+
+
+
+
+
+
+
+ 批量推送
+
+ 批量操作
+
+
+
+ {{ `已选择 ${selectedRowKeys.length} 条` }}
+
+
+
+
+
+
+
+
+
+