Commit cdcacbe3 by 前端

Merge branch 'v3.21.0' into 'master'

V3.21.0

See merge request !15
2 parents 3e59d1dc 5c6c4008
......@@ -14174,12 +14174,13 @@
}
},
"word-edit": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.2.7.tgz",
"integrity": "sha512-rPWcrKZEE+skTp2YtPywn5Ke9InyMhUF0Tv1CkQeiHN11m+zD0qedRgxS7NINdu27/CYwzohCKONSnvcd6D1DA==",
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.0.tgz",
"integrity": "sha512-Lchu6c/bBGTSP1/8G+S+iux2v4sMQ5VdmUuTBYumU6rFTdPfak3fhjLy11oHLb2mExUyxc3bY/o3eXDilIU4+w==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
"dayjs": "^1.11.10",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
......@@ -14187,6 +14188,11 @@
"vuedraggable": "^2.24.3"
},
"dependencies": {
"dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
},
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
......
......@@ -18,7 +18,7 @@
"moment": "^2.29.4",
"vod-js-sdk-v6": "^1.6.2",
"wangeditor": "^4.7.15",
"word-edit": "^1.2.7"
"word-edit": "^1.3.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......
......@@ -112,6 +112,16 @@ const bulgeActivity = params => {
sign: true
})
}
//膨胀金活动
const activityQuestionnaireForm = params => {
params.method = 'marketing.api.activityQuestionnaireForm.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
......@@ -198,5 +208,6 @@ export default {
crowdfundingActivity,
bulgeActivity,
findMerchantListByPage,
channelPreview
channelPreview,
activityQuestionnaireForm
}
......@@ -134,6 +134,14 @@ export default {
})
}
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleMutiSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -141,10 +149,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
......@@ -99,7 +99,7 @@ export default {
this.fnCallBack = true
// console.log(res)
this.productList = res.list
this.productList.forEach(function (item) {
this.productList.forEach(function(item) {
item.retailPrice = (item.retailPrice / 100).toFixed(2)
})
this.recoverySelected()
......@@ -112,6 +112,14 @@ export default {
})
}
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleMutiSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -119,10 +127,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
......@@ -44,11 +44,11 @@ export default {
},
selectedProInfo: {
type: Object,
default: () => { }
default: () => {}
},
propSearch: {
type: Object,
default: () => { }
default: () => {}
}
},
......@@ -74,13 +74,13 @@ export default {
// console.log(res)
this.fnCallBack = true
this.productList = res.list
this.productList.forEach(function (item) {
this.productList.forEach(function(item) {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function (a, b) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) {
return a.retailPrice - b.retailPrice
})
let stockeList = item.specificationDetailList.sort(function (a, b) {
let stockeList = item.specificationDetailList.sort(function(a, b) {
return a.stock - b.stock
})
let minRatilPrice = retailPriceList[0].retailPrice / 100
......@@ -101,6 +101,14 @@ export default {
})
})
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleSingleSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -108,10 +116,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
if (!this.infoId) {
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 15:04:56
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-13 10:33:27
* @LastEditTime: 2023-10-23 18:51:08
* @FilePath: \scrm-micro-tools\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
......@@ -202,6 +202,14 @@ export default {
if (rankResetBtn) rankResetBtn.style.display = 'none'
},
methods: {
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
getDetail(obj, count) {
if (!count) return
if (obj.key.toLowerCase().includes('order')) {
......@@ -212,13 +220,7 @@ export default {
createdEndDateStr: this.searchForm.statDate
}
: {}
this.$history.push({
path: '/store/activityOrder/index',
query: {
activityId: this.activityId,
...timeParams
}
})
this.$history.push(`/store/activityOrder/index?${this.getPath({ activityId: this.activityId, ...timeParams })}`)
return
}
this.browseObj = obj
......
......@@ -201,7 +201,6 @@ export default {
// activityStatus: 2,
activityStatusList: [1, 2],
currentPage: 1
}
},
{
......@@ -218,6 +217,16 @@ export default {
params: {
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '问卷调查',
itemValue: 7,
itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: {
merchantId: this.$globalState.session.merchantId,
statuses: [0, 1]
}
}
]
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!