|
|
@ -3,30 +3,33 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>品牌详情</div> |
|
|
|
<div> |
|
|
|
<!-- <el-button type="primary" size="small" @click="handleCreate()">保存</el-button> --> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listconadd"> |
|
|
|
<el-form ref="dataForm" :model="templook" label-position="right" label-width="190px" class="forminfo" :rules="rules"> |
|
|
|
<el-form ref="dataForm" :model="templook" class="forminfo" :rules="rules"> |
|
|
|
<div class="title">品牌信息</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="trightb">品牌编码:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandCode }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">品牌名称:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandName }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">品牌编码</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandCode }}</el-col> |
|
|
|
<el-col :span="4" class="trightb">品牌名称</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandName }}</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="trightb">品牌类型:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandTypeValue }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">是否有效:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.isValidityValue }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">品牌简称</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandShortName }}</el-col> |
|
|
|
<el-col :span="4" class="trightb">品牌类型</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.brandTypeValue }}</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="trightb">厂商名称:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.manufacturerName }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">使用组织:</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.useOrgName }} </el-col> |
|
|
|
<el-col :span="4" class="trightb">厂商名称</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.manufacturerName }}</el-col> |
|
|
|
<el-col :span="4" class="trightb">是否有效</el-col> |
|
|
|
<el-col :span="8" class="tleft"> {{ templook.isValidityValue }}</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="trightb">使用组织</el-col> |
|
|
|
<el-col :span="20" class="tleft"> {{ templook.useOrgName }}</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
@ -34,121 +37,44 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import { details } from '@/api/jichuxinxi/brandManagement' |
|
|
|
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils"; |
|
|
|
// import { findButtonByUserId } from '@/api/sys/permission' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'PinpaiAdd', |
|
|
|
// components: { }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// --按钮菜单------- |
|
|
|
menuState: { |
|
|
|
add: false, // 添加 |
|
|
|
edit: false, // 编辑 |
|
|
|
delete: false, // 删除 |
|
|
|
view: false, // 查看 |
|
|
|
audit: false, // 审核 |
|
|
|
input: false, // 导入 |
|
|
|
output: false, // 导出 |
|
|
|
upload: false, // 同步 |
|
|
|
release: false, // 下发 |
|
|
|
}, |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
temp: {}, // 添加和修改 |
|
|
|
templook: {}, // 查看实体 |
|
|
|
textMap: { |
|
|
|
update: '修改', |
|
|
|
create: '创建', |
|
|
|
}, |
|
|
|
dialogFormVisible: false, // 添加修改对话框状态 |
|
|
|
dialogFormShowVisible: false, // 查看对话框默认关闭状态 |
|
|
|
dialogStatus: '', // 对话框状态 |
|
|
|
fenzuOptions: [], |
|
|
|
rules: { |
|
|
|
title: [{ required: true, message: '请填写', trigger: 'blur' }], |
|
|
|
qc: [{ required: true, message: '请填写全称', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
tempDate: {}, |
|
|
|
// ------------------------------------ |
|
|
|
rules: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'id', |
|
|
|
'roles', |
|
|
|
'rolesIds', |
|
|
|
'departmentId', |
|
|
|
'departmentCode', |
|
|
|
]), |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// this.tempDate.sid = this.$route.query.sid |
|
|
|
// console.log(33333333333, this.tempDate.sid) |
|
|
|
// // 初始化变量 |
|
|
|
// this.init() |
|
|
|
// // 加载列表 |
|
|
|
// this.handleCheck() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
// 根据当前用户. 加载当前页面的按钮权限 |
|
|
|
// findButtonByUserId(this.$route.path).then(response => { |
|
|
|
// if ( |
|
|
|
// response.code === 20000 && |
|
|
|
// response.data && |
|
|
|
// response.data.length > 0 |
|
|
|
// ) { |
|
|
|
// this.menuState = ConvertMenuState(response.data) // 处理各按钮显示状态 |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
// indexMethod(index) { |
|
|
|
// var pagestart = (this.listQuery.pageNumber - 1) * this.listQuery.pageSize |
|
|
|
// var pageindex = index + 1 + pagestart |
|
|
|
// return pageindex |
|
|
|
// }, |
|
|
|
|
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 返回 |
|
|
|
handleReturn() { |
|
|
|
this.temp = {} |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
|
|
|
|
|
// 添加前数据初始化 |
|
|
|
resetTemp() { |
|
|
|
this.temp = { |
|
|
|
jc: '', // false string |
|
|
|
organizationId: '', // false string |
|
|
|
qc: '', // false string |
|
|
|
remark: '', // false |
|
|
|
string: '', // |
|
|
|
state: '', // 状态 |
|
|
|
} |
|
|
|
}, |
|
|
|
// 打开查看 |
|
|
|
showInfo(sid) { |
|
|
|
this.FormLoading = true |
|
|
|
details(sid).then((response) => { |
|
|
|
console.log('查询', response) |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
if (response.success) { |
|
|
|
this.templook = response.data |
|
|
|
console.log('查询1', this.templook) |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '失败', |
|
|
|
message: '查询失败', |
|
|
|
type: 'error', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|