|
|
|
|
@ -194,35 +194,38 @@ export default {
|
|
|
|
|
['follow_by_merchant','el-icon-s-comment'],
|
|
|
|
|
['accept_by_merchant','el-icon-s-promotion'],
|
|
|
|
|
['return_by_merchant','el-icon-refresh-left'],
|
|
|
|
|
['confirm_by_merchant','el-icon-check'],
|
|
|
|
|
// ['confirm_by_merchant','el-icon-check'],
|
|
|
|
|
['mark_cancel_by_merchant','el-icon-circle-close'],
|
|
|
|
|
['finish_by_merchant','el-icon-edit-outline']
|
|
|
|
|
])
|
|
|
|
|
let btns = []
|
|
|
|
|
if(typeof row?.merchant_actions == 'object'){
|
|
|
|
|
for(let key in row.merchant_actions){
|
|
|
|
|
btns.push(
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon={map.get(key)}
|
|
|
|
|
plain
|
|
|
|
|
style={
|
|
|
|
|
{
|
|
|
|
|
'margin':'0 6px 4px 0'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
on={
|
|
|
|
|
{
|
|
|
|
|
['click']:e => {
|
|
|
|
|
_this.$refs['operate'].form.item_id = row.id
|
|
|
|
|
_this.$refs['operate'].form.action = key
|
|
|
|
|
_this.$refs['operate'].isShow = true
|
|
|
|
|
console.log(key)
|
|
|
|
|
if(key!="confirm_by_merchant"){
|
|
|
|
|
btns.push(
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon={map.get(key)}
|
|
|
|
|
plain
|
|
|
|
|
style={
|
|
|
|
|
{
|
|
|
|
|
'margin':'0 6px 4px 0'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}>{row.merchant_actions[key]}</el-button>
|
|
|
|
|
)
|
|
|
|
|
on={
|
|
|
|
|
{
|
|
|
|
|
['click']:e => {
|
|
|
|
|
_this.$refs['operate'].form.item_id = row.id
|
|
|
|
|
_this.$refs['operate'].form.action = key
|
|
|
|
|
_this.$refs['operate'].isShow = true
|
|
|
|
|
console.log(key)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}>{row.merchant_actions[key]}</el-button>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
btns.push(
|
|
|
|
|
|