Browse Source

品牌管理增加品牌简称字段

zhanglei
yunuo970428 3 years ago
parent
commit
69fc978b74
  1. 27
      anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue
  2. 120
      anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiInfo.vue

27
anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue

@ -25,6 +25,12 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="brandShortName">
<span slot="label">品牌简称</span>
<el-input v-model="temp.brandShortName" maxlength="125" placeholder="" class="addinputw" clearable />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="brandType">
<span slot="label">品牌类型</span>
@ -33,26 +39,27 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="isValidity">
<span slot="label">是否有效</span>
<el-select v-model="temp.isValidity" class="addinputw" placeholder="请选择是否有效">
<el-option v-for="(item,index) in isValiditys" :key="index" :label="item.dictValue" :value="item.sid" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="manufacturerSid">
<span slot="label">厂商名称</span>
<el-select v-model="temp.manufacturerSid" class="addinputw" filterable placeholder="请选择厂商名称">
<el-option v-for="item in supplierType" :key="item.sid" :label="item.manufacturerName"
:value="item.sid" />
<el-option v-for="item in supplierType" :key="item.sid" :label="item.manufacturerName" :value="item.sid" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="isValidity">
<span slot="label">是否有效</span>
<el-select v-model="temp.isValidity" class="addinputw" placeholder="请选择是否有效">
<el-option v-for="(item,index) in isValiditys" :key="index" :label="item.dictValue" :value="item.sid" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item prop="useOrg">
<span slot="label">使用组织</span>
<el-select v-model="useOrgValue" multiple placeholder="请选择" filterable clearable class="addinputw"

120
anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiInfo.vue

@ -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>

Loading…
Cancel
Save