|
|
@ -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="厂商名称"> |
|
|
|
<el-form-item :label="(manufacturerType === 1 ? '厂商' : '经销商') + '名称'"> |
|
|
|
<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="厂商ID" class="ml"> |
|
|
|
<el-form-item :label="(manufacturerType === 1 ? '厂商' : '经销商') + '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,10 @@ |
|
|
|
<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="厂商类型"> |
|
|
|
<el-form-item label="厂商类型" v-if="manufacturerType === 1"> |
|
|
|
<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"> |
|
|
|
<el-form-item label="技术支持时间" :class="{ 'ml': manufacturerType === 1 }"> |
|
|
|
<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> |
|
|
@ -56,6 +56,8 @@ |
|
|
|
}}</el-radio> |
|
|
|
}}</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="type === '2'"> |
|
|
|
<template v-if="type === '2'"> |
|
|
|
<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" |
|
|
@ -71,22 +73,11 @@ |
|
|
|
:minRow="5"></el-input> |
|
|
|
:minRow="5"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
<template v-if="manufacturerType === 2"> |
|
|
|
<template v-if="manufacturerType === 2"> |
|
|
|
<div class="h1">授权厂商</div> |
|
|
|
<div class="h1">授权厂商</div> |
|
|
|
<el-form-item label="厂商名称"> |
|
|
|
<authorized /> |
|
|
|
<el-input v-model="authorized.name"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
<el-form-item label="选择品牌"> |
|
|
|
|
|
|
|
<el-checkbox-group v-model="authorized.brands"> |
|
|
|
|
|
|
|
<el-checkbox v-for="item in 4" :label="item" :key="item">品牌{{ item }}</el-checkbox> |
|
|
|
|
|
|
|
</el-checkbox-group> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
<el-form-item label="授权书"> |
|
|
|
|
|
|
|
<img src="http://www.dummyimage.com/100x100" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" :offset="1"> |
|
|
|
<el-col :span="5" :offset="1"> |
|
|
@ -102,9 +93,10 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import userAvatar from "@/views/system/user/profile/userAvatar"; |
|
|
|
import userAvatar from "@/views/system/user/profile/userAvatar"; |
|
|
|
|
|
|
|
import Authorized from "./authorized" |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'Base', |
|
|
|
name: 'Base', |
|
|
|
components: { userAvatar }, |
|
|
|
components: { userAvatar, Authorized }, |
|
|
|
dicts: ['manufacturer_type_1', 'audit_status'], |
|
|
|
dicts: ['manufacturer_type_1', 'audit_status'], |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -125,11 +117,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
status: '0', |
|
|
|
status: '0', |
|
|
|
audit: undefined |
|
|
|
audit: undefined |
|
|
|
}, |
|
|
|
|
|
|
|
authorized: { |
|
|
|
|
|
|
|
name: '厂商名称', |
|
|
|
|
|
|
|
brands: [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|