|
@@ -1,40 +1,44 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-button type="primary" size="small" :disabled="disabled" @click="addBtn">添 加</el-button>
|
|
|
- <el-drawer append-to-body size="80%" title="产品清单" :visible.sync="drawer">
|
|
|
- <el-input size="small" style="width:200px;margin-bottom:10px;margin-left:10px" v-model="params.content.where.condition" placeholder="输入搜索内容" @clear="getProductList(params.content.pageNumber = 1)" @keyup.native.enter="getProductList(params.content.pageNumber = 1)" clearable></el-input>
|
|
|
- <Table ref="table" id="itemclassid" v-model="itemno" :layout="tablecols" :data="productList" :custom="true" height="500px" @upDateData="upDateData">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <div v-if="scope.column.columnname == 'attinfos'">
|
|
|
- <previewImage
|
|
|
- v-if="scope.column.data.attinfos[0]"
|
|
|
- style="width:80px;height:80px;margin-top:0px"
|
|
|
- class="image"
|
|
|
- :image="scope.column.data.attinfos[0]"
|
|
|
- :list="scope.column.data.attinfos"
|
|
|
- :deletebtn="false"
|
|
|
- ></previewImage>
|
|
|
+ <el-drawer append-to-body size="80%" :with-header="false" :visible.sync="drawer">
|
|
|
+ <div class="container">
|
|
|
+ <p class="normal-title normal-margin">产品类别</p>
|
|
|
+ <el-input size="small" style="width:200px;margin-bottom:10px" v-model="params.content.where.condition" placeholder="输入搜索内容" @clear="getProductList(params.content.pageNumber = 1)" @keyup.native.enter="getProductList(params.content.pageNumber = 1)" clearable></el-input>
|
|
|
+ <Table ref="table" id="itemclassid" v-model="itemno" :layout="tablecols" :data="productList" :custom="true" height="500px" @upDateData="upDateData">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <div v-if="scope.column.columnname == 'attinfos'">
|
|
|
+ <previewImage
|
|
|
+ v-if="scope.column.data.attinfos[0]"
|
|
|
+ style="width:38px;height:38px;margin:0px"
|
|
|
+ class="image"
|
|
|
+ :image="scope.column.data.attinfos[0]"
|
|
|
+ :list="scope.column.data.attinfos"
|
|
|
+ :deletebtn="false"
|
|
|
+ ></previewImage>
|
|
|
+ </div>
|
|
|
+ <div v-else-if="scope.column.columnname == 'brand'">
|
|
|
+ {{scope.column.data[scope.column.columnname][0] ? scope.column.data[scope.column.columnname][0].brandname : '--'}}
|
|
|
+ </div>
|
|
|
+ <div v-else>{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
+ <span v-if="!scope.column.data[scope.column.columnname]">--</span>
|
|
|
+ </template>
|
|
|
+ </Table>
|
|
|
+ <div class="container normal-panel" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ style="text-align:right"
|
|
|
+ background
|
|
|
+ small
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="params.content.pageNumber"
|
|
|
+ :page-sizes="[20, 50, 100, 200]"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
</div>
|
|
|
- <div v-else-if="scope.column.columnname == 'brand'">
|
|
|
- {{scope.column.data[scope.column.columnname][0] ? scope.column.data[scope.column.columnname][0].brandname : '--'}}
|
|
|
- </div>
|
|
|
- <div v-else>{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
- <span v-if="!scope.column.data[scope.column.columnname]">--</span>
|
|
|
- </template>
|
|
|
- </Table>
|
|
|
- <div class="container normal-panel" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- style="text-align:right"
|
|
|
- background
|
|
|
- small
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="params.content.pageNumber"
|
|
|
- :page-sizes="[20, 50, 100, 200]"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="fixed__btn__panel">
|
|
|
<el-button size="small" @click="drawer = false">取 消</el-button>
|
|
|
<el-button type="primary" size="small" @click="onSumit">确 定</el-button>
|
|
@@ -81,7 +85,7 @@ export default {
|
|
|
watch:{
|
|
|
},
|
|
|
created () {
|
|
|
- this.tablecols = this.tool.tabelCol(this.$route.name)['productClassTable'].tablecols
|
|
|
+ this.tablecols = this.tool.tabelCol(this.$route.name)['productClassTable'].tablecols.splice(0,2)
|
|
|
},
|
|
|
methods: {
|
|
|
addBtn () {
|
|
@@ -101,7 +105,7 @@ export default {
|
|
|
return {
|
|
|
"sa_contract_itemsaleclassid": 0,
|
|
|
"itemclassid": item.itemclassid,
|
|
|
- "discountrate": '1'
|
|
|
+ "discountrate": '100'
|
|
|
}
|
|
|
})
|
|
|
|