diff --git a/merchant-web-master/src/utils/request.js b/merchant-web-master/src/utils/request.js index 41532bb..4bbd9d1 100644 --- a/merchant-web-master/src/utils/request.js +++ b/merchant-web-master/src/utils/request.js @@ -20,8 +20,8 @@ if (host == '172.16.61.48' || host == '172.16.61.49:5173') { }else if( host == 'localhost:9528' || host == '8.130.38.56:8027' || host == 'localhost:9529'){ // 其他情况的默认值 // PREFIX = 'http://8.130.38.56:8027/business-server'; - // PREFIX = 'https://jy.scjysm.asia:18086/merchant-business'; - PREFIX = 'http://192.168.2.193:9004'; + PREFIX = 'https://jy.scjysm.asia:18086/merchant-business'; + // PREFIX = 'http://192.168.2.193:9004'; }else{ // PREFIX = '/merchant-business'; // PREFIX = 'http://8.130.38.56:9004'; diff --git a/merchant-web-master/src/views/comprehensive/Lcinquiry/index.vue b/merchant-web-master/src/views/comprehensive/Lcinquiry/index.vue index e59f480..565a2ec 100644 --- a/merchant-web-master/src/views/comprehensive/Lcinquiry/index.vue +++ b/merchant-web-master/src/views/comprehensive/Lcinquiry/index.vue @@ -3,7 +3,7 @@
-
物资变动查询
+
@@ -63,10 +63,10 @@
-
显示第1到第10条记录
+ + layout="total,prev, pager,next" :total="total " + @current-change="handleCurrentChange" />
@@ -80,7 +80,7 @@ export default { data() { return { - total: 1, + total: 0, pageSize: 10, currentPage: 1, formParams: { @@ -91,7 +91,7 @@ export default { formInline: { searchType: '1', search: '', // 搜索字段 - state: '', + state: '3', // afterState: '', // 售后状态 0-无售后 1-售后中 2-售后成功 3-售后关闭 dates: [], // 下单时间数组 page: 1, @@ -111,14 +111,14 @@ const res = await orderGetAll(this.formInline) const Orderlist = await materialChangeInquiry(res.data.list) this.tableData = Orderlist.data this.total = this.tableData.length -console.log(Orderlist.data) + }, async search(){ this.formInline.dates = this.formParams.dates - const res = await orderGetAll(this.formInline) const Orderlist = await materialChangeInquiry(res.data.list) this.tableData = Orderlist.data + this.total = this.tableData.length }, clear(){ this.formInline.dates = [] diff --git a/merchant-web-master/src/views/comprehensive/dAddress/index.vue b/merchant-web-master/src/views/comprehensive/dAddress/index.vue index d79a382..570053d 100644 --- a/merchant-web-master/src/views/comprehensive/dAddress/index.vue +++ b/merchant-web-master/src/views/comprehensive/dAddress/index.vue @@ -2,7 +2,6 @@
-
收货地统计
@@ -27,14 +26,11 @@
-
-
-
收货地地域分布图
-
-
-
-
收货地占比图
-
+
+ +
+
收货地成交图
+
@@ -87,7 +83,7 @@ export default { data() { return { - total: 1, + total: 0, flag:false, pageSize: 10, currentPage: 1, @@ -120,16 +116,17 @@ const res = await orderGetAll(this.formInline) const Orderlist = await deliveryAddressStatistics(res.data.list) this.tableData = Orderlist.data - this.total = this.tableData.length - this.echar1() + this.total = Orderlist.data.length + this.echar1(Orderlist.data) }, async search(){ this.formInline.dates = this.formParams.dates - const res = await orderGetAll(this.formInline) const Orderlist = await deliveryAddressStatistics(res.data.list) this.tableData = Orderlist.data + this.total = Orderlist.data.length + this.echar1(Orderlist.data) }, clear(){ this.formInline.dates = [] @@ -142,6 +139,10 @@ async search(){ echar1(diameter) { let Dom = this.$refs.container1 let myChart = echarts.init(Dom); + let processedData = diameter.map(item => ({ + name: item.address, + value: item.refundAmount + })) // 指定图表的配置项和数据 const option = { @@ -179,13 +180,7 @@ async search(){ fontSize: 20 } }, - data: [ - { value: 60, name: 'Visit' }, - { value: 40, name: 'Inquiry' }, - { value: 20, name: 'Order' }, - { value: 80, name: 'Click' }, - { value: 100, name: 'Show' } - ] + data: processedData } ] }; diff --git a/merchant-web-master/src/views/comprehensive/pEranking/index.vue b/merchant-web-master/src/views/comprehensive/pEranking/index.vue index 2cdcfca..f22a2fd 100644 --- a/merchant-web-master/src/views/comprehensive/pEranking/index.vue +++ b/merchant-web-master/src/views/comprehensive/pEranking/index.vue @@ -3,7 +3,7 @@
-
商品入库统计
+
@@ -51,16 +51,8 @@ {{scope.row.cereShopComments[0].shopName}} - - - - - - + + - + @@ -72,10 +72,10 @@
-
显示第1到第10条记录
+ + layout="total,prev, pager,next" :total="total " + @current-change="handleCurrentChange" />
@@ -90,7 +90,7 @@ export default { data() { return { - total: 1, + total: 0, pageSize: 10, currentPage: 1, formParams: { @@ -123,14 +123,14 @@ async getAll(){ const res = await orderGetAll(this.formInline) const Orderlist = await salesRanking(res.data.list) this.tableData = Orderlist.data - +this.total = Orderlist.data.length }, async search(){ this.formInline.dates = this.formParams.dates const res = await orderGetAll(this.formInline) const Orderlist = await salesRanking(res.data.list) this.tableData = Orderlist.data - console.log(Orderlist.data) + this.total = Orderlist.data.length }, clear(){ this.formParams.dates =[] diff --git a/merchant-web-master/src/views/stockControl/inventory/index.vue b/merchant-web-master/src/views/stockControl/inventory/index.vue index 3c5999a..e975f78 100644 --- a/merchant-web-master/src/views/stockControl/inventory/index.vue +++ b/merchant-web-master/src/views/stockControl/inventory/index.vue @@ -83,6 +83,12 @@ + + + @@ -146,6 +153,78 @@ :message="parentMessage" /> + + + + + + 折扣 + 指定价格 + + +
+ + + + + + + + + + + +
规格售价 + {{ item }} +
+ {{ item.value }} + + {{ item.price }} + + {{ mode==1?'折':'元' }} +
+
+ 清除所有旧会员价 +
+ + 取 消 + 确 定 + +
+ + + + + + + + + + + + + + + + + 取 消 + 确 定 + +
@@ -164,7 +243,8 @@ import { setProductMember, productExport, getBrandList, - chFen + chFen, + getClassifyUpdate } from '@/api/commodity' export default { components: { @@ -197,11 +277,19 @@ export default { commId: 0, brandList: [], zuheNum:0, - teble_sel:false, + parentMessage: '这是父组件传递给子组件的消息', canst:'' ,//组合商品ID index:1, - dengji:[] + dengji:[], + vipPriceVisible: false, + mode: 1, + productData: [], + gradeList: [], + teble_sel:false, + rukuShow:false, + dengjiMsg:'', + shopId:'' } }, computed: { @@ -454,8 +542,95 @@ export default { }, //入库登记 rukdengji(){ - this.teble_sel = true - this.index = 1 + this.rukuShow = true + + }, + // 设置会员价 + setVipPrice(row) { + var _ = this + this.productId = row.productId + getProductMembers({ productId: row.productId }).then(res => { + if (res.code === '') { + _.productData = res.data + if (_.productData && _.productData.length > 0) { + _.gradeList = [] + const _memberPrices = _.productData[0].memberPrices + _memberPrices.forEach(function(item, i) { + _.gradeList.push(item.memberLevelName) + }) + _.mode = _.productData[0].mode ? _.productData[0].mode : 1 + _.vipPriceVisible = true + } + } + }) + }, + // 设置会员价提交 + vipPriceSubmit() { + for (let i = 0; i < this.productData.length; i++) { + this.productData[i].mode = this.mode + for (let j = 0; j < this.productData[i].memberPrices.length; j++) { + this.productData[i].memberPrices[j].mode = this.mode + var _price = this.productData[i].memberPrices[j].price + if (!_price) { + this.$message({ + type: 'warning', + message: '会员价格不能为空!' + }) + return false + } else if (this.productData[i].mode === 1) { + if (_price <= 0 || _price >= 10) { + this.$message({ + type: 'warning', + message: '会员折数必须大于0小于10!' + }) + return false + } + } else if (this.productData[i].mode === 2) { + if (_price > this.productData[i].price) { + this.$message({ + type: 'warning', + message: '会员价格不能大于原价!' + }) + return false + } + } + } + } + setProductMember({ productId: this.productId, members: this.productData }).then(res => { + if (res.code === '') { + this.$message({ + type: 'success', + message: '设置成功!' + }) + this.getAll(this.formInline) + this.vipPriceVisible = false + } + }) + }, + // 清空会员价 + clearProductMember() { + console.log(this.productData, 'this.productData') + this.$confirm('该商品所有旧设置的会员价将被清除, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + clearProductMember({ productId: this.productId }).then(res => { + if (res.code === '') { + this.productData.map(item => { + item.memberPrices.map(itemChild => { + itemChild.price = null + }) + }) + this.$message.success('清除成功') + // this.vipPriceVisible = false + } + }) + }) + }, + async rukuCheck(){ + await getClassifyUpdate({productId:this.shopId,registrationStatus:this.dengjiMsg}) + this.$message.success('保存成功') } } } diff --git a/yanshouban/src/utils/request.js b/yanshouban/src/utils/request.js index 95cd009..3bffb11 100644 --- a/yanshouban/src/utils/request.js +++ b/yanshouban/src/utils/request.js @@ -21,9 +21,9 @@ if (host == '172.16.61.48' || host == '172.16.61.49:5173' || host =='172.16.61.1 // PREFIX = 'http://172.16.61.48/meserver/admin-server'; // PREFIX = 'http://8.130.38.56:9003'; // PREFIX = 'http://8.130.38.56:8019/admin-server'; - PREFIX = 'http://192.168.2.193:9003'; + // PREFIX = 'http://192.168.2.193:9003'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server'; - // PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; + PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server' diff --git a/yanshouban/src/views/ads/fangAudit/bianform.vue b/yanshouban/src/views/ads/fangAudit/bianform.vue index c986db1..59923f5 100644 --- a/yanshouban/src/views/ads/fangAudit/bianform.vue +++ b/yanshouban/src/views/ads/fangAudit/bianform.vue @@ -66,7 +66,7 @@
-
{{ruleForm.attachmentInfo.name}}
+ {{ruleForm.attachmentInfo.name}} -
@@ -274,7 +274,7 @@ @@ -354,7 +354,7 @@
- + -->
@@ -506,10 +506,11 @@ multipleSelection:[], const fileMsg = { name:file.name, - url:response.data, + url:response.data.url, } // 将文件地址存储在 uploadedFiles 数组中 - this.fileData.push(fileMsg); + this.fileData.push(fileMsg) + }, handleRemove(file, fileList) { this.fileData = [] diff --git a/yanshouban/src/views/ads/fangli/bianform.vue b/yanshouban/src/views/ads/fangli/bianform.vue index be63e81..a6b504b 100644 --- a/yanshouban/src/views/ads/fangli/bianform.vue +++ b/yanshouban/src/views/ads/fangli/bianform.vue @@ -79,10 +79,9 @@ :auto-upload="true" v-if="steat"> +点击上传 - -
{{ruleForm.attachmentInfo.name}}
- +{{ruleForm.attachmentInfo.name}} +
@@ -363,7 +362,7 @@ guihuaDate:[], const fileMsg = { name:file.name, - url: response.data, + url: response.data.url, } // 将文件地址存储在 uploadedFiles 数组中 this.fileData.push(fileMsg); diff --git a/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue b/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue index c7f2335..e2bbbc9 100644 --- a/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue +++ b/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue @@ -57,8 +57,7 @@ {{scope.$index + 1 }} - - +