Commit 66fca4e1 by chenwq

定金收款账号

1 parent cd1f4454
...@@ -171,6 +171,16 @@ const getLiveListApi = params => { ...@@ -171,6 +171,16 @@ const getLiveListApi = params => {
sign: true sign: true
}) })
} }
/**定金收款账户下拉列表 */
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */ /**数据看板员工排名 */
const getRankListApi = params => { const getRankListApi = params => {
...@@ -202,4 +212,4 @@ const getDataBoardApi = params => { ...@@ -202,4 +212,4 @@ const getDataBoardApi = params => {
sign: true sign: true
}) })
} }
export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi } export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getPayListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
...@@ -45,6 +45,10 @@ export default { ...@@ -45,6 +45,10 @@ export default {
selectedProInfo: { selectedProInfo: {
type: Object, type: Object,
default: () => { } default: () => { }
},
propSearch: {
type: Object,
default: () => { }
} }
}, },
...@@ -62,7 +66,8 @@ export default { ...@@ -62,7 +66,8 @@ export default {
goodsStatus: 1, goodsStatus: 1,
goodsSource: 1, goodsSource: 1,
pageNum: 1, pageNum: 1,
pageSize: 100000 pageSize: 100000,
...this.propSearch
} }
var that = this var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => { this.$apis.common.getMerchantGoodsListApi(params).then(res => {
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
<GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat"> <GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat">
<crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat> <crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat>
</GLDialog> </GLDialog>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :propSearch="{ deliveryType: 1 }" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div> </div>
</div> </div>
</template> </template>
...@@ -451,6 +451,7 @@ export default { ...@@ -451,6 +451,7 @@ export default {
reservationInstallContactsName: '', reservationInstallContactsName: '',
reservationInstallContactsPhone: '', reservationInstallContactsPhone: '',
targetStock: '', targetStock: '',
paymentAccountId: '',
// 战报内容配置 // 战报内容配置
activityActionReport: { activityActionReport: {
produceReportSummary: '', produceReportSummary: '',
...@@ -539,7 +540,8 @@ export default { ...@@ -539,7 +540,8 @@ export default {
], ],
activityBigImg: [{ required: true, message: '请选择活动大图', trigger: 'change' }], activityBigImg: [{ required: true, message: '请选择活动大图', trigger: 'change' }],
activityDetail: [{ required: true, message: '请输入活动详情', trigger: 'change' }], activityDetail: [{ required: true, message: '请输入活动详情', trigger: 'change' }],
forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }] forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }],
paymentAccountId: [{ required: true, message: '请选择定金收款账户', trigger: 'change' }]
}, },
// 表单设置 // 表单设置
formDescribeCheckList: [ formDescribeCheckList: [
...@@ -1079,6 +1081,15 @@ export default { ...@@ -1079,6 +1081,15 @@ export default {
label: '直播配置', label: '直播配置',
name: 'live', name: 'live',
addHtml: 'live' addHtml: 'live'
},
{
label: '定金收款账户',
name: 'paymentAccountId',
type: 'select',
tips: '定金收款账户只包含定金需要支付的目标账户',
optionId: 'id',
optionLabel: 'accountName',
optionList: []
} }
], ],
//直播配置 //直播配置
...@@ -1159,7 +1170,7 @@ export default { ...@@ -1159,7 +1170,7 @@ export default {
this.getLiveList() this.getLiveList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : '' this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList()
var id = this.routeInfo.id var id = this.routeInfo.id
var detailDisableList = ['editFormData'] var detailDisableList = ['editFormData']
if (id) { if (id) {
...@@ -1174,6 +1185,7 @@ export default { ...@@ -1174,6 +1185,7 @@ export default {
true true
) )
}) })
this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true)
} }
} }
}, },
...@@ -1765,6 +1777,7 @@ export default { ...@@ -1765,6 +1777,7 @@ export default {
if (this.editForm.activityActionReport.noteTouchConversionRate) { if (this.editForm.activityActionReport.noteTouchConversionRate) {
this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2) this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2)
} }
this.getPayList()
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
...@@ -2085,6 +2098,16 @@ export default { ...@@ -2085,6 +2098,16 @@ export default {
this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff
}) })
}, },
// 定金收款账户
getPayList() {
this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = res
this.editForm.paymentAccountId = this.editForm.paymentAccountId || res.find(item => item.id == 1).id
this.$nextTick(() => {
this.editStatus = false
})
})
}
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!