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 @@ ...@@ -14174,12 +14174,13 @@
} }
}, },
"word-edit": { "word-edit": {
"version": "1.2.7", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.2.7.tgz", "resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.0.tgz",
"integrity": "sha512-rPWcrKZEE+skTp2YtPywn5Ke9InyMhUF0Tv1CkQeiHN11m+zD0qedRgxS7NINdu27/CYwzohCKONSnvcd6D1DA==", "integrity": "sha512-Lchu6c/bBGTSP1/8G+S+iux2v4sMQ5VdmUuTBYumU6rFTdPfak3fhjLy11oHLb2mExUyxc3bY/o3eXDilIU4+w==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"dayjs": "^1.11.10",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.4.9", "glsx-common": "^1.4.9",
"vue": "^2.6.11", "vue": "^2.6.11",
...@@ -14187,6 +14188,11 @@ ...@@ -14187,6 +14188,11 @@
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
}, },
"dependencies": { "dependencies": {
"dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
},
"glsx-common": { "glsx-common": {
"version": "1.4.9", "version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"moment": "^2.29.4", "moment": "^2.29.4",
"vod-js-sdk-v6": "^1.6.2", "vod-js-sdk-v6": "^1.6.2",
"wangeditor": "^4.7.15", "wangeditor": "^4.7.15",
"word-edit": "^1.2.7" "word-edit": "^1.3.0"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -112,6 +112,16 @@ const bulgeActivity = params => { ...@@ -112,6 +112,16 @@ const bulgeActivity = params => {
sign: true 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 => { const templatePage = params => {
params.method = `${path}template.page.search` params.method = `${path}template.page.search`
...@@ -198,5 +208,6 @@ export default { ...@@ -198,5 +208,6 @@ export default {
crowdfundingActivity, crowdfundingActivity,
bulgeActivity, bulgeActivity,
findMerchantListByPage, findMerchantListByPage,
channelPreview channelPreview,
activityQuestionnaireForm
} }
...@@ -134,6 +134,14 @@ export default { ...@@ -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() { handleMutiSelectConfirm() {
if (!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
...@@ -141,10 +149,7 @@ export default { ...@@ -141,10 +149,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1, groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品' $title: '新建商品'
} }
this.$router.push({ this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
path: '/productGroup/editProduct',
query: params
})
return true return true
} }
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName] var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
this.fnCallBack = true this.fnCallBack = true
// console.log(res) // console.log(res)
this.productList = res.list this.productList = res.list
this.productList.forEach(function (item) { this.productList.forEach(function(item) {
item.retailPrice = (item.retailPrice / 100).toFixed(2) item.retailPrice = (item.retailPrice / 100).toFixed(2)
}) })
this.recoverySelected() this.recoverySelected()
...@@ -112,6 +112,14 @@ export default { ...@@ -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() { handleMutiSelectConfirm() {
if (!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
...@@ -119,10 +127,7 @@ export default { ...@@ -119,10 +127,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1, groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品' $title: '新建商品'
} }
this.$router.push({ this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
path: '/productGroup/editProduct',
query: params
})
return true return true
} }
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName] var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
...@@ -44,11 +44,11 @@ export default { ...@@ -44,11 +44,11 @@ export default {
}, },
selectedProInfo: { selectedProInfo: {
type: Object, type: Object,
default: () => { } default: () => {}
}, },
propSearch: { propSearch: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
}, },
...@@ -74,13 +74,13 @@ export default { ...@@ -74,13 +74,13 @@ export default {
// console.log(res) // console.log(res)
this.fnCallBack = true this.fnCallBack = true
this.productList = res.list this.productList = res.list
this.productList.forEach(function (item) { this.productList.forEach(function(item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) { 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 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 return a.stock - b.stock
}) })
let minRatilPrice = retailPriceList[0].retailPrice / 100 let minRatilPrice = retailPriceList[0].retailPrice / 100
...@@ -101,6 +101,14 @@ export default { ...@@ -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() { handleSingleSelectConfirm() {
if (!this.productList.length) { if (!this.productList.length) {
var params = { var params = {
...@@ -108,10 +116,7 @@ export default { ...@@ -108,10 +116,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1, groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品' $title: '新建商品'
} }
this.$router.push({ this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
path: '/productGroup/editProduct',
query: params
})
return true return true
} }
if (!this.infoId) { if (!this.infoId) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 15:04:56 * @Date: 2023-09-14 15:04:56
* @LastEditors: yangming yangming@didihu.com.cn * @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 * @FilePath: \scrm-micro-tools\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
......
...@@ -202,6 +202,14 @@ export default { ...@@ -202,6 +202,14 @@ export default {
if (rankResetBtn) rankResetBtn.style.display = 'none' if (rankResetBtn) rankResetBtn.style.display = 'none'
}, },
methods: { 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) { getDetail(obj, count) {
if (!count) return if (!count) return
if (obj.key.toLowerCase().includes('order')) { if (obj.key.toLowerCase().includes('order')) {
...@@ -212,13 +220,7 @@ export default { ...@@ -212,13 +220,7 @@ export default {
createdEndDateStr: this.searchForm.statDate createdEndDateStr: this.searchForm.statDate
} }
: {} : {}
this.$history.push({ this.$history.push(`/store/activityOrder/index?${this.getPath({ activityId: this.activityId, ...timeParams })}`)
path: '/store/activityOrder/index',
query: {
activityId: this.activityId,
...timeParams
}
})
return return
} }
this.browseObj = obj this.browseObj = obj
......
...@@ -201,7 +201,6 @@ export default { ...@@ -201,7 +201,6 @@ export default {
// activityStatus: 2, // activityStatus: 2,
activityStatusList: [1, 2], activityStatusList: [1, 2],
currentPage: 1 currentPage: 1
} }
}, },
{ {
...@@ -218,6 +217,16 @@ export default { ...@@ -218,6 +217,16 @@ export default {
params: { params: {
merchantId: this.$globalState.session.merchantId 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!