Commit aaaf5c4f authored by dragondean@qq.com's avatar dragondean@qq.com

修复报价单佣金申请参数错误,打开后立即查询未读数

parent cfdb8007
......@@ -87,10 +87,10 @@ export default {
}
},
created() {
setInterval(() => {
this.$store.dispatch('getNotMessage');
this.$store.dispatch('getToDoList');
}, 10000)
this.updateMessage()
setInterval(() => {
this.updateMessage()
}, 10000)
},
components: {
Breadcrumb,
......@@ -139,7 +139,10 @@ export default {
}
},
methods: {
updateMessage(){
this.$store.dispatch('getNotMessage');
this.$store.dispatch('getToDoList');
},
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
},
......
......@@ -96,7 +96,7 @@ import { getProductTypeList } from '@/api/ecw/productType'
import WorkFlow from '@/components/WorkFlow'
import {getDarkReturnCommission} from '@/api/ecw/customerCommission'
import {cancelProcessInstance} from '@/api/bpm/processInstance'
const TYPE = 3
export default {
name: "Commossion",
props: {
......@@ -128,7 +128,7 @@ export default {
productTypeList:[],
ccIdArr: [],
form: {
type: 2
type: TYPE
},
rules:{
commissionType : {required: true, message: '请选择佣金类型'},
......@@ -197,14 +197,14 @@ export default {
createOfferSpecial(Object.assign({
clearanceFreight: this.form.orgClearanceFreight,
seaFreight: this.form.orgSeaFreight
}, this.form, {type: 2})).then(res => {
}, this.form, {type: TYPE})).then(res => {
this.$message.success(this.$t('提交成功'))
this.$emit('success')
})
})
},
getOfferSpecial(){
getOfferSpecial(this.offerProd.offerProdId, {type: 2}).then(r => {
getOfferSpecial(this.offerProd.offerProdId, {type: TYPE}).then(r => {
this.form = r.data
})
},
......@@ -225,7 +225,7 @@ export default {
productAttr: this.offerProd.prodAttrIds.split(',').filter(item => item && item != ''),
productType: this.offerProd.productType,
transportId: this.offer.transportId,
type: 2, // 暗佣
type: 2,
}).then(res => {
this.darkCommission = res.data?.darkCommission
})
......
......@@ -78,7 +78,7 @@ import { getCurrencyList } from '@/api/ecw/currency'
import { getProductType } from '@/api/ecw/productType'
import {cancelProcessInstance} from '@/api/bpm/processInstance'
import WorkFlow from '@/components/WorkFlow'
console.log({cancelProcessInstance})
export default {
name: "OrderSpecialDiscount",
props: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment