厂商管理-待审核-审核

master
panqihua 2 years ago
parent bd640d345c
commit 6f3c44bce6
  1. 13
      src/views/platform/manufacturer/detail.vue
  2. 2
      src/views/platform/manufacturer/detail_table.vue
  3. 78
      src/views/platform/manufacturer/index.vue

@ -4,7 +4,7 @@
<el-tab-pane label="基本信息" name="base"> <el-tab-pane label="基本信息" name="base">
<div class="sub-title">锁定</div> <div class="sub-title">锁定</div>
<div class="h1">基本信息</div> <div class="h1">基本信息</div>
<el-form :inline="true" label-width="100px" label-position="left"> <el-form :inline="true" :label-width="width + 'px'" label-position="left">
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<div class="w240"> <div class="w240">
@ -59,6 +59,13 @@
item.label item.label
}}</el-radio> }}</el-radio>
</el-form-item> </el-form-item>
<br />
<el-form-item :style="{
marginLeft: `${width}px`
}" v-if="type === '2'">
<el-input :autosize="{ minRows: 5 }" type="textarea" placeholder="拒绝原因"
:minRow="5"></el-input>
</el-form-item>
</el-col> </el-col>
<el-col :span="5" :offset="1"> <el-col :span="5" :offset="1">
<user-avatar :circle="false" show-bottom-label /> <user-avatar :circle="false" show-bottom-label />
@ -84,10 +91,12 @@ export default {
components: { userAvatar, DetailTable }, components: { userAvatar, DetailTable },
dicts: ['manufacturer_type_1'], dicts: ['manufacturer_type_1'],
props: { props: {
open: false open: false,
type: String
}, },
data() { data() {
return { return {
width: 100,
activeName: 'base', activeName: 'base',
form: { form: {
dateRange: '', dateRange: '',

@ -28,7 +28,7 @@
export default { export default {
name: 'DetailTable', name: 'DetailTable',
props: { props: {
type: Number type: String
}, },
data() { data() {
return { return {

@ -31,10 +31,12 @@
</el-form-item> </el-form-item>
<br /> <br />
<el-form-item> <el-form-item v-if="type === 1">
<el-button>批量锁定</el-button> <el-button>批量锁定</el-button>
<el-button>批量开启</el-button> <el-button>批量开启</el-button>
</el-form-item>
<el-form-item v-else>
<el-button>批量审核</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -57,49 +59,76 @@
<el-table-column align="center" label="联系电话"> <el-table-column align="center" label="联系电话">
18888888888 18888888888
</el-table-column> </el-table-column>
<el-table-column align="center" label="经销商"> <template v-if="type === '1'">
125 <el-table-column align="center" label="经销商">
</el-table-column> 125
<el-table-column align="center" label="直营门店"> </el-table-column>
1 <el-table-column align="center" label="直营门店">
</el-table-column> 1
<el-table-column align="center" label="商品数量"> </el-table-column>
1125 <el-table-column align="center" label="商品数量">
</el-table-column> 1125
<el-table-column align="center" label="技术支持时间"> </el-table-column>
2022-12-31 12:31 <el-table-column align="center" label="技术支持时间">
</el-table-column> 2022-12-31 12:31
<el-table-column align="center" label="存储到期时间"> </el-table-column>
2022-12-31 12:31 <el-table-column align="center" label="存储到期时间">
</el-table-column> 2022-12-31 12:31
</el-table-column>
</template>
<template v-else>
<el-table-column align="center" label="申请时间">
2022-12-31 12:31
</el-table-column>
</template>
<el-table-column align="center" label="状态"> <el-table-column align="center" label="状态">
正常 正常
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作"> <el-table-column align="center" label="操作">
<el-button type="text" @click="open = true">详情</el-button> <el-button type="text" @click="dialog.detail = true">详情</el-button>
<el-button type="text">锁定</el-button> <el-button type="text">锁定</el-button>
<el-button type="text" v-if="type === '2'" @click="dialog.audit = true">审核</el-button>
</el-table-column> </el-table-column>
</el-table> </el-table>
<detail :open="open" @close="open = false" /> <detail :open="dialog.detail" @close="dialog.detail = false" :type="type" />
<el-dialog :visible.sync="dialog.audit" title="审核">
<el-form :label-width="width + 'px'">
<el-form-item label="审核">
<el-radio v-model="audit" :label="item.value" v-for="item in dict.type.audit_status"
:key="item.value">{{
item.label
}}</el-radio>
</el-form-item>
<el-form-item>
<el-input :autosize="{ minRows: 5 }" type="textarea" placeholder="拒绝原因" :minRow="5"></el-input>
</el-form-item>
</el-form>
</el-dialog>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> :limit.sync="queryParams.pageSize" @pagination="getList" />
</div> </div>
</template> </template>
<script> <script>
import { type } from "os";
import Detail from "./detail" import Detail from "./detail"
export default { export default {
name: "Index", name: "Index",
dicts: ['manufacturer_type'], dicts: ['manufacturer_type', 'audit_status'],
components: { Detail }, components: { Detail },
data() { data() {
return { return {
open: false, width: 100,
dialog: {
detail: false,
audit: false
},
dataList: [{}], dataList: [{}],
// //
total: 1, total: 1,
audit: '0',
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -112,6 +141,11 @@ export default {
getList() { getList() {
} }
},
computed: {
type() {
return this.$route.fullPath.split('/').at(-1)
}
} }
} }
</script> </script>

Loading…
Cancel
Save