|
|
@ -6,10 +6,10 @@ |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-col :span="18"> |
|
|
|
<div class="w240"> |
|
|
|
<div class="w240"> |
|
|
|
<el-form-item :label="(manufacturerType === 1 ? '厂商' : '经销商') + '名称'"> |
|
|
|
<el-form-item :label="`${$route.meta.manufacturer.desc}名称`"> |
|
|
|
<el-input v-model="form.name"></el-input> |
|
|
|
<el-input v-model="form.name"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="(manufacturerType === 1 ? '厂商' : '经销商') + 'ID'" class="ml"> |
|
|
|
<el-form-item :label="`${$route.meta.manufacturer.desc}ID`" class="ml"> |
|
|
|
<el-input v-model="form.id"></el-input> |
|
|
|
<el-input v-model="form.id"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
@ -19,10 +19,11 @@ |
|
|
|
<el-form-item label="负责人电话" class="ml"> |
|
|
|
<el-form-item label="负责人电话" class="ml"> |
|
|
|
<el-input v-model="form.phone"></el-input> |
|
|
|
<el-input v-model="form.phone"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="厂商类型" v-if="manufacturerType === 1"> |
|
|
|
<el-form-item :label="$route.meta.manufacturer.desc + '类型'" |
|
|
|
|
|
|
|
v-if="$route.meta.manufacturer.subType !== '2'"> |
|
|
|
<el-select v-model="form.type"></el-select> |
|
|
|
<el-select v-model="form.type"></el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="技术支持时间" :class="{ 'ml': manufacturerType === 1 }"> |
|
|
|
<el-form-item label="技术支持时间" :class="{ 'ml': $route.meta.manufacturer.subType !== '2' }"> |
|
|
|
<el-date-picker v-model="form.dateRange" value-format="yyyy-MM-dd" type="daterange" |
|
|
|
<el-date-picker v-model="form.dateRange" value-format="yyyy-MM-dd" type="daterange" |
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -32,7 +33,7 @@ |
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-form-item label="厂商地址"> |
|
|
|
<el-form-item :label="$route.meta.manufacturer.desc + '地址'"> |
|
|
|
<el-select v-model="form.address.province" placeholder="请选择"> |
|
|
|
<el-select v-model="form.address.province" placeholder="请选择"> |
|
|
|
|
|
|
|
|
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
@ -56,9 +57,21 @@ |
|
|
|
}}</el-radio> |
|
|
|
}}</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
|
|
|
|
<template v-if="$route.meta.manufacturer.type === '3'"> |
|
|
|
|
|
|
|
<el-form-item label="是否平台自营"> |
|
|
|
|
|
|
|
<el-radio v-model="form.isPlatformOwned" :key="item.value" |
|
|
|
|
|
|
|
v-for="item in dict.type.sys_yes_no" :label="item.value">{{ |
|
|
|
|
|
|
|
item.label |
|
|
|
|
|
|
|
}}</el-radio> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="$route.meta.manufacturer.subType === '1'"> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="type === '2'"> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<template> |
|
|
|
<el-form-item label="审核"> |
|
|
|
<el-form-item label="审核"> |
|
|
|
<el-radio v-model="form.audit" :key="item.value" v-for="item in dict.type.audit_status" |
|
|
|
<el-radio v-model="form.audit" :key="item.value" v-for="item in dict.type.audit_status" |
|
|
|
:label="item.value">{{ |
|
|
|
:label="item.value">{{ |
|
|
@ -72,19 +85,42 @@ |
|
|
|
<el-input :autosize="{ minRows: 5 }" type="textarea" placeholder="拒绝原因" |
|
|
|
<el-input :autosize="{ minRows: 5 }" type="textarea" placeholder="拒绝原因" |
|
|
|
:minRow="5"></el-input> |
|
|
|
:minRow="5"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-if="manufacturerType === 2"> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="$route.meta.manufacturer.type === '2'"> |
|
|
|
<div class="h1">授权厂商</div> |
|
|
|
<div class="h1">授权厂商</div> |
|
|
|
<authorized /> |
|
|
|
<authorized /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template |
|
|
|
|
|
|
|
v-else-if="$route.meta.manufacturer.type === '3' && $route.meta.manufacturer.subType === '1'"> |
|
|
|
|
|
|
|
<el-divider /> |
|
|
|
|
|
|
|
<el-row class="price"> |
|
|
|
|
|
|
|
<el-col :span="5"> |
|
|
|
|
|
|
|
<div class="label">总订单交易额(元)</div> |
|
|
|
|
|
|
|
<div class="value">12333.00</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
<user-avatar :circle="false" show-bottom-label /> |
|
|
|
<div class="label">提现支出(元)</div> |
|
|
|
|
|
|
|
<div class="value">12333.00</div> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
|
|
|
|
<div class="label">本月订单交易额(元)</div> |
|
|
|
|
|
|
|
<div class="value">12333.00</div> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
|
|
|
|
<div class="label">本月提现支出(元)</div> |
|
|
|
|
|
|
|
<div class="value">12333.00</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<div v-if="type === '2'" style="text-align:center"> |
|
|
|
</template> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
|
|
|
|
<user-avatar :circle="false" show-bottom-label title="logo" /> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<div v-if="$route.meta.manufacturer.subType === '2'" style="text-align:center"> |
|
|
|
<el-button type="primary" @click="$modal.msgSuccess('保存成功'); $emit('close')">保存</el-button> |
|
|
|
<el-button type="primary" @click="$modal.msgSuccess('保存成功'); $emit('close')">保存</el-button> |
|
|
|
<el-button @click="$emit('close')">关闭</el-button> |
|
|
|
<el-button @click="$emit('close')">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -97,7 +133,7 @@ import Authorized from "./authorized" |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'Base', |
|
|
|
name: 'Base', |
|
|
|
components: { userAvatar, Authorized }, |
|
|
|
components: { userAvatar, Authorized }, |
|
|
|
dicts: ['manufacturer_type_1', 'audit_status'], |
|
|
|
dicts: ['manufacturer_type_1', 'audit_status', 'sys_yes_no'], |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
width: 100, |
|
|
|
width: 100, |
|
|
@ -116,23 +152,38 @@ export default { |
|
|
|
address: '光明路128号' |
|
|
|
address: '光明路128号' |
|
|
|
}, |
|
|
|
}, |
|
|
|
status: '0', |
|
|
|
status: '0', |
|
|
|
|
|
|
|
isPlatformOwned: 'Y', |
|
|
|
audit: undefined |
|
|
|
audit: undefined |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
|
|
|
|
// 1:列表,2:审核 |
|
|
|
|
|
|
|
type() { |
|
|
|
|
|
|
|
return this.$route.fullPath.split('/').at(-1) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 1:厂商,2:经销商 |
|
|
|
|
|
|
|
manufacturerType() { |
|
|
|
|
|
|
|
return this.$route.fullPath.includes('manufacturer') ? 1 : 2 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
.price { |
|
|
|
|
|
|
|
&>div { |
|
|
|
|
|
|
|
background-color: #EFEFEF; |
|
|
|
|
|
|
|
padding: 20px 10px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&>div { |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&>.label { |
|
|
|
|
|
|
|
color: rgba(16, 16, 16, 1); |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
font-family: SourceHanSansSC-regular; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&>.value { |
|
|
|
|
|
|
|
margin-top: 10px; |
|
|
|
|
|
|
|
color: rgba(51, 51, 51, 1); |
|
|
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
|
|
font-family: SourceHanSansSC-regular; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.w240 { |
|
|
|
.w240 { |
|
|
|
|
|
|
|
|
|
|
|
.el-input, |
|
|
|
.el-input, |
|
|
|