feat(global): 移除无用代码

This commit is contained in:
woody 2025-04-29 15:06:18 +08:00
parent 05f7cbb408
commit e9c62d1954
13 changed files with 1250 additions and 1941 deletions

View File

@ -565,22 +565,7 @@ export default {
this.total = res.total
})
},
handleSelectionChange(val) {},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(function() {
return api.exportClassIfy(queryParams)
})
.then((response) => {
this.download(response)
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return 'warning-row'

View File

@ -55,7 +55,7 @@
<div class="divBox">{{ '会员编号' }}</div>
<div class="divBox">{{ '会员姓名' }}</div>
<div class="divBox">{{ '注册等级' }}</div>
<div class="divBox">{{'真实奖衔'}}</div>
<div class="divBox">{{ '真实奖衔' }}</div>
</div>
<div v-for="item in memberList" style="display: flex">
<div class="divBox tops overflow1" :title="item.memberCode">{{ item.memberCode }}</div>
@ -66,15 +66,15 @@
<div />
</div>
<div style="display: flex;padding-bottom: 10px">
<el-radio v-model="table.sendScope" label="2" style="line-height: 40px">{{'订单短信'}}</el-radio>
<el-button size="small" style="background-color: #C8161D;color: #fff;font-size: 14px" @click="$router.push('/configManage/smsRecord/selectOrder')">{{'选择订单'}}</el-button>
<el-radio v-model="table.sendScope" label="2" style="line-height: 40px">{{ '订单短信' }}</el-radio>
<el-button size="small" style="background-color: #C8161D;color: #fff;font-size: 14px" @click="$router.push('/configManage/smsRecord/selectOrder')">{{ '选择订单' }}</el-button>
</div>
<div v-if="orderList!=null && orderList !== undefined && orderList.length> 0 " class="contents">
<div style="display: flex">
<div class="divBox">{{'订单编号'}}</div>
<div class="divBox">{{'产品名称'}}</div>
<div class="divBox">{{'收货人'}}</div>
<div class="divBox" style="width: 220px">{{'二次物流单号'}}</div>
<div class="divBox">{{ '订单编号' }}</div>
<div class="divBox">{{ '产品名称' }}</div>
<div class="divBox">{{ '收货人' }}</div>
<div class="divBox" style="width: 220px">{{ '二次物流单号' }}</div>
<div class="divBox">{{ '物流公司' }}</div>
</div>
<div v-for="item in orderList" style="display: flex">
@ -116,10 +116,10 @@
</el-form-item>
<el-form-item :label="'发送方式'" prop="templateContent">
<div>
<el-radio v-model="table.sendType" label="1">{{'立即发送'}}</el-radio>
<el-radio v-model="table.sendType" label="1">{{ '立即发送' }}</el-radio>
</div>
<div>
<el-radio v-model="table.sendType" label="2">{{'定时发送'}}</el-radio>
<el-radio v-model="table.sendType" label="2">{{ '定时发送' }}</el-radio>
<el-date-picker
v-model="table.sendTime"
type="datetime"
@ -172,7 +172,7 @@
size="small"
@click.native.prevent="selects(scope.row)"
>
{{'选择'}}
{{ '选择' }}
</el-button>
<el-button
v-if="scope.row.selcts==2"
@ -180,7 +180,7 @@
type="text"
size="small"
>
{{'已选择'}}
{{ '已选择' }}
</el-button>
</template>
</el-table-column>
@ -195,7 +195,7 @@
<div style="padding-top: 20px;display: flex;justify-content: center">
<el-button type="text" size="small" class="button-style" @click="handleClose"> {{ '取消' }}</el-button>
<el-button v-preventReClick="3000" type="text" size="small" class="button-style" style="margin-left: 40px;background-color: #C8161D;" @click="submitBtn()">
{{'确认'}}
{{ '确认' }}
</el-button>
</div>
</el-form>
@ -427,10 +427,6 @@ export default {
this.gradeRangList = res.data
})
},
addRules() {
this.types = 1
this.ruleShow = true
},
submit() {
this.ruleSubmit()
},
@ -438,23 +434,6 @@ export default {
//
this.ruleShow = false
},
updateShow(item) {
this.types = 2
//
this.formId = item.roleId
api.roleDetails(item.roleId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
this.table = { 'roleName': res.data.roleName, 'roleSort': res.data.roleSort,
'roleKey': res.data.roleKey, 'status': res.data.status === 0 ? ['正常'] : ['停用'] }
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
},
delRole(item) {
//
this.$confirm('确认要删除该角色吗?', '提示', {
@ -486,20 +465,20 @@ export default {
})
return
}
if(this.memberList==null){
this.memberList=[]
if (this.memberList == null) {
this.memberList = []
}
if(this.orderList==null){
this.orderList=[]
if (this.orderList == null) {
this.orderList = []
}
console.error(this.memberList)
if (datas.sendScope == 1 && this.memberList.length==0) {
if (datas.sendScope == 1 && this.memberList.length == 0) {
Message({
message: '请选择指定会员'
})
return
}
if (datas.sendScope == 2 && this.orderList.length==0) {
if (datas.sendScope == 2 && this.orderList.length == 0) {
Message({
message: '请选择订单短信'
})

View File

@ -19,39 +19,39 @@
<el-col :span="4">
<el-form-item :label="'产品名称'">
<el-input
clearable
v-model="select.productName"
clearable
:placeholder="'请输入'"
></el-input>
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'产品编号'">
<el-input
clearable
v-model="select.productCode"
clearable
:placeholder="'请输入'"
></el-input>
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'追溯编号'">
<el-input
clearable
v-model="select.barCode"
clearable
:placeholder="'请输入'"
></el-input>
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'追溯状态'">
<el-select clearable v-model="select.codeStatus">
<el-select v-model="select.codeStatus" clearable>
<el-option
v-for="item in codeStatusList"
:key="item.val"
:label="item.text"
:value="item.val"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -61,46 +61,42 @@
<el-form-item :label="'打印日期'">
<el-date-picker
v-model="creationTime2"
@change="changeTime2"
value-format="yyyy-MM-dd"
type="daterange"
:range-separator="'至'"
:start-placeholder="'开始日期'"
:end-placeholder="'结束日期'"
>
</el-date-picker>
@change="changeTime2"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="'生成时间'">
<el-date-picker
v-model="creationTime1"
@change="changeTime1"
type="daterange"
value-format="yyyy-MM-dd"
:range-separator="'至'"
:start-placeholder="'开始日期'"
:end-placeholder="'结束日期'"
>
</el-date-picker>
@change="changeTime1"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'追溯批次'">
<el-input
clearable
v-model="select.batch"
clearable
:placeholder="'请输入'"
></el-input>
/>
</el-form-item>
</el-col>
<el-col :span="4" style="margin-left: 30px">
<el-button class="my_search" @click="getDataList">
{{ '搜索' }}</el-button
>
{{ '搜索' }}</el-button>
<el-button class="my_reset" @click="reset">
{{ '重置' }}</el-button
>
{{ '重置' }}</el-button>
</el-col>
</el-row>
</el-form>
@ -111,12 +107,13 @@
</div> -->
<div class="maintop">
<div class="mainbtn">
<el-button size="small" @click="handleExport" class="exportBtn">
{{ '导出' }}</el-button
>
<el-button size="small" @click="handleExportDetail" class="exportBtn"
>导出明细</el-button
>
<el-button size="small" class="exportBtn" @click="handleExport">
{{ '导出' }}</el-button>
<el-button
size="small"
class="exportBtn"
@click="handleExportDetail"
>导出明细</el-button>
</div>
</div>
<div class="maintable">
@ -128,21 +125,18 @@
:row-class-name="tableRowClassName"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="productCode"
:label="'产品编号'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="productName"
:label="'产品名称'"
>
</el-table-column>
<el-table-column align="center" prop="barCode" :label="'追溯编号'">
</el-table-column>
/>
<el-table-column align="center" prop="barCode" :label="'追溯编号'" />
<el-table-column
align="center"
prop="codeStatus"
@ -150,8 +144,8 @@
>
<template slot-scope="scope">
<div
v-if="scope.row.codeStatus == item.val"
v-for="item in codeStatusList"
v-if="scope.row.codeStatus == item.val"
:key="item.val"
>
{{ item.text }}
@ -162,20 +156,17 @@
align="center"
prop="batch"
:label="'追溯批次'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="printTime"
:label="'打印日期'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="creationTime"
:label="'生成时间'"
>
</el-table-column>
/>
</el-table>
</div>
</div>
@ -190,37 +181,37 @@
</template>
<script>
import topBar from "@/components/topBar";
import * as api from "@/api/configManage.js";
import { accountSave, accountUpdate } from "@/api/configManage";
import { getToken } from "@/utils/auth";
import { specialArea } from "@/api/configManage";
import topBar from '@/components/topBar'
import * as api from '@/api/configManage.js'
import { accountSave, accountUpdate } from '@/api/configManage'
import { getToken } from '@/utils/auth'
import { specialArea } from '@/api/configManage'
export default {
name: "ProductList",
name: 'ProductList',
components: {
topBar,
topBar
},
filters: {
isAgree(val) {
if (!val) {
return '允许';
return '允许'
} else {
return '禁止';
return '禁止'
}
},
}
},
data() {
return {
//
isActive: false,
select: { pkBarCode: "" },
select: { pkBarCode: '' },
//
queryParams: {
pageNum: 1,
pageSize: 50,
pageSize: 50
},
addOrEdit: "",
addOrEdit: '',
total: 0,
tableData: [],
@ -228,173 +219,143 @@ export default {
codeStatusList: [
{
text: '已生成',
val: 1,
val: 1
},
{
text: '会员级',
val: 2,
val: 2
},
{
text: '会员级',
val: 3,
},
val: 3
}
],
form: {},
creationTime1: [],
creationTime2: [],
isCopy: false,
selPkId: "",
selPkId: '',
//
presaleList: [],
//
//
gyList: [],
//
//
hierarchyList: [],
//
areaList: [],
};
areaList: []
}
},
mounted() {
this.select.pkBarCode = this.$route.query.id;
this.select.pkBarCodeId = this.$route.query.id;
this.select.pkBarCode = this.$route.query.id
this.select.pkBarCodeId = this.$route.query.id
//
this.getDataList();
this.getDataList()
},
methods: {
reset() {
this.select = {
pkBarCode: this.$route.query.id,
pkBarCodeId: this.$route.query.id,
};
this.creationTime1 = [];
this.creationTime2 = [];
this.getDataList();
pkBarCodeId: this.$route.query.id
}
this.creationTime1 = []
this.creationTime2 = []
this.getDataList()
},
changeTime1(val) {
this.select.startDate = val[0];
this.select.endDate = val[1];
this.select.startDate = val[0]
this.select.endDate = val[1]
},
changeTime2(val) {
this.select.startDatePrint = val[0];
this.select.endDatePrint = val[1];
this.select.startDatePrint = val[0]
this.select.endDatePrint = val[1]
},
//
changeActive() {
this.isActive = !this.isActive;
this.isActive = !this.isActive
},
/** 导出按钮操作 */
handleExport() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: "warning",
type: 'warning'
}).then((_) => {
this.download(
"/system/manage/bar-code-items/printTxm",
'/system/manage/bar-code-items/printTxm',
Object.assign({}, this.queryParams, this.select),
`${'条形码明细'}${new Date().getTime()}.pdf`
);
)
// api.printTxm(Object.assign({}, this.queryParams, this.select)).then(res=>{
// console.log('%c [ res ]-267', 'font-size:13px; background:#9fe869; color:#e3ffad;', res)
// })
});
})
},
handleExportDetail() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: "warning",
type: 'warning'
}).then((_) => {
this.download(
"/system/manage/bar-code-items/export",
'/system/manage/bar-code-items/export',
Object.assign({}, this.queryParams, this.select),
`${'条形码明细'}${new Date().getTime()}.xlsx`
);
)
// api.printTxm(Object.assign({}, this.queryParams, this.select)).then(res=>{
// console.log('%c [ res ]-267', 'font-size:13px; background:#9fe869; color:#e3ffad;', res)
// })
});
},
//
handleDelete(id) {
this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: "warning",
}).then(() => {
api.waresDel(id).then((res) => {
//
this.getDataList();
});
});
})
},
openDig() {
this.$router.push({
path: "/goodsManage/goodsRelease/jcsz",
});
path: '/goodsManage/goodsRelease/jcsz'
})
},
// 01,2
toChecked(id, index) {
this.$router.push({
path: "/goodsManage/goodsList/goodsEdit/jcsz",
path: '/goodsManage/goodsList/goodsEdit/jcsz',
query: {
id: id,
methods: index,
},
});
},
upEdit(id, index) {
api
.waresMove({
waresId: id,
waresMoveType: index,
})
.then((res) => {
this.getDataList();
});
},
topEdit(id) {
api
.waresTop({
waresId: id,
})
.then((res) => {
this.getDataList();
});
methods: index
}
})
},
//
getDataList() {
api
.bd_bar_codeItem(Object.assign({}, this.queryParams, this.select))
.then((res) => {
this.tableData = res.rows;
this.total = res.total;
});
this.tableData = res.rows
this.total = res.total
})
},
toCopy() {
this.toChecked(this.selPkId, 2);
this.toChecked(this.selPkId, 2)
},
handleSelectionChange(val) {
this.selPkId = val[0].pkWares;
this.selPkId = val[0].pkWares
if (val.length > 1) {
this.isCopy = true;
this.isCopy = true
} else {
this.isCopy = false;
this.isCopy = false
}
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style scoped lang="scss">
::v-deep .el-table .warning-row {

View File

@ -40,7 +40,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="'详细地址'" prop="pkAwards">
<el-form-item :label="'详细地址'" prop="pkAwards">
<el-cascader
v-model="queryParams.changeAreaList"
style="width: 100%"
@ -68,8 +68,8 @@
<div class="main">
<div class="maintop">
<div class="mainbtn">
<el-button size="small" @click="handleImport" style="background-color: #008077" class="thebtn1"> {{ '导入' }}</el-button>
<el-button size="small" @click="importTemplate" style="background-color: #009B58" class="thebtn1"> {{ '下载模板' }}</el-button>
<el-button size="small" style="background-color: #008077" class="thebtn1" @click="handleImport"> {{ '导入' }}</el-button>
<el-button size="small" style="background-color: #009B58" class="thebtn1" @click="importTemplate"> {{ '下载模板' }}</el-button>
</div>
</div>
<div class="maintable">
@ -92,62 +92,13 @@
<el-table-column align="center" prop="recProvinceVal" :label="'省'" />
<el-table-column align="center" prop="recCityVal" :label="'市'" />
<el-table-column align="center" prop="recCountyVal" :label="'区/县'" />
<el-table-column align="center" prop="recAddress" :label="'详细地址'" />
<el-table-column align="center" prop="recAddress" :label="'详细地址'" />
<el-table-column align="center" prop="logisticsCode" :label="'二次物流单号'" />
<el-table-column align="center" prop="logisticsCompany" label="二次物流公司" />
</el-table>
</div>
</div>
<el-dialog
:title="'添加'"
:visible.sync="ruleShow"
width="50%"
center
:close-on-click-modal="false"
:before-close="handleClose"
>
<el-form ref="forms" :rules="rules" :model="table" label-width="80px">
<el-form-item :label="'角色姓名'" prop="roleName">
<el-input
v-model="table.roleName"
clearable
:placeholder="'请输入'"
/>
</el-form-item>
<el-form-item :label="'显示排序'" prop="roleSort">
<el-input
v-model="table.roleSort"
type="number"
clearable
:placeholder="'请输入'"
/>
</el-form-item>
<el-form-item :label="'权限字符'" prop="roleKey">
<el-input
v-model="table.roleKey"
clearable
:placeholder="'请输入'"
/>
</el-form-item>
<el-form-item :label="'状态'" prop="status">
<el-checkbox-group v-model="table.status" @change="statusChange">
<el-checkbox
v-for="(item, index) in statusList"
:key="index"
:label="item.name"
name="type"
/>
</el-checkbox-group>
</el-form-item>
<div style="padding-top: 100px;display: flex;justify-content: center">
<el-button type="text" size="small" class="button-style" @click="handleClose"> {{ '取消' }}</el-button>
<el-button v-preventReClick="3000" type="text" size="small" class="button-style" style="margin-left: 40px;background-color: #48B2FD;" @click="submitBtn()">
{{ '确认' }}
</el-button>
</div>
</el-form>
</el-dialog>
<pagination
v-show="total > 0"
:total="total"
@ -188,23 +139,25 @@
:auto-upload="false"
drag
>
<i class="el-icon-upload"></i>
<i class="el-icon-upload" />
<div class="el-upload__text">
{{'将文件拖到此处,或'}}
<em>{{'点击上传'}}</em>
{{ '将文件拖到此处,或' }}
<em>{{ '点击上传' }}</em>
</div>
<div class="el-upload__tip" slot="tip">
<el-link type="info" style="font-size: 12px" @click="importTemplate"
> {{ '下载模板' }}</el-link
>
<div slot="tip" class="el-upload__tip">
<el-link
type="info"
style="font-size: 12px"
@click="importTemplate"
> {{ '下载模板' }}</el-link>
</div>
<div class="el-upload__tip" style="color: red" slot="tip">
{{'提示仅允许导入“xls”或“xlsx”格式文件'}}
<div slot="tip" class="el-upload__tip" style="color: red">
{{ '提示仅允许导入“xls”或“xlsx”格式文件' }}
</div>
</el-upload>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFileForm">{{'确认'}}</el-button>
<el-button @click="upload.open = false">{{'取消'}}</el-button>
<el-button type="primary" @click="submitFileForm">{{ '确认' }}</el-button>
<el-button @click="upload.open = false">{{ '取消' }}</el-button>
</div>
</el-dialog>
</div>
@ -218,7 +171,7 @@ import { getgradeRanglist, getAwardsListChiose } from '@/api/level'
import * as api from '@/api/sms'
import { Message } from 'element-ui'
import { deleteAgreement } from '@/api/configManage'
import {getToken} from "@/utils/auth";
import { getToken } from '@/utils/auth'
export default {
name: 'Qxpz',
components: {
@ -289,19 +242,19 @@ export default {
//
open: false,
//
title: "",
title: '',
//
isUploading: false,
//
updateSupport: 0,
//
headers: { Authorization: "Bearer " + getToken() },
headers: { Authorization: 'Bearer ' + getToken() },
//
url:
process.env.VUE_APP_BASE_API +
"/sale/manage/order/order-select-import",
'/sale/manage/order/order-select-import'
},
changeMemberTable: [],
changeMemberTable: []
}
},
created() {
@ -312,44 +265,44 @@ export default {
methods: {
/** 导入按钮操作 */
handleImport() {
this.upload.title = "选择订单导入";
this.upload.open = true;
this.upload.title = '选择订单导入'
this.upload.open = true
},
//
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
this.upload.isUploading = true
},
//
handleFileSuccess(response, file, fileList) {
var fileName = response.fileName;
if (fileName != undefined && fileName != "") {
var fileName = response.fileName
if (fileName != undefined && fileName != '') {
}
if (response.code == 200) {
this.changeMemberTable = response.data;
this.changeMemberTable = response.data
}
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.upload.open = false
this.upload.isUploading = false
this.$refs.upload.clearFiles()
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true })
// this.getList();
},
//
handleExceed() {
this.upload.isUploading = false;
this.msgInfo('仅可上传一个文件哦');
this.upload.isUploading = false
this.msgInfo('仅可上传一个文件哦')
},
//
submitFileForm() {
this.$refs.upload.submit();
this.$refs.upload.submit()
},
//
//
importTemplate() {
this.download(
"/sale/manage/order/order-select-template",
'/sale/manage/order/order-select-template',
{},
`${'选择订单'}-${new Date().getTime()}.xlsx`
);
)
},
handleChange1(res) {
this.queryParams.recProvince = res[0]
@ -386,10 +339,7 @@ export default {
this.gradeRangList = res.data
})
},
addRules() {
this.types = 1
this.ruleShow = true
},
submit() {
const section = this.$refs.multipleTable.selection
if (section.length == 0) {
@ -401,131 +351,11 @@ export default {
localStorage.setItem('orderList', JSON.stringify(section))
this.$router.push('/configManage/smsRecord/addSms?status=1&state=1')
},
submitBtn() {
//
this.ruleSubmit()
},
updateShow(item) {
this.types = 2
//
this.formId = item.roleId
api.roleDetails(item.roleId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
this.table = { 'roleName': res.data.roleName, 'roleSort': res.data.roleSort,
'roleKey': res.data.roleKey, 'status': res.data.status === 0 ? ['正常'] : ['停用'] }
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
},
delRole(item) {
//
this.$confirm('确认要删除该角色吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
api.delRole(item.roleId).then((res) => {
if (res.code === 200) {
Message({
message: '删除成功',
type: 'success'
})
this.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
})
},
ruleSubmit() {
const datas = this.table
const that = this
this.$refs['forms'].validate(valid => {
if (!valid) {
return false
} else {
if (this.types === 1) {
if (datas.status[0] === '正常') {
datas.status = ''
datas.status = 0
} else if (datas.status[0] === '停用') {
datas.status = ''
datas.status = 1
}
api.addRole(datas).then((res) => {
if (res.code === 200) {
Message({
message: '添加成功',
type: 'success'
})
that.ruleShow = false
that.table = { 'roleName': '', 'roleSort': '', 'roleKey': '', 'status': ['正常'] }
that.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
}
if (this.types === 2) {
if (datas.status[0] === '正常') {
datas.status = ''
datas.status = 0
} else if (datas.status[0] === '停用') {
datas.status = ''
datas.status = 1
}
datas.roleId = this.formId
api.putRole(datas).then((res) => {
if (res.code === 200) {
Message({
message: '修改成功',
type: 'success'
})
that.ruleShow = false
that.table = { 'roleName': '', 'roleSort': '', 'roleKey': '', 'status': ['正常'] }
that.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
}
}
})
},
statusChange(value) {
if (this.table.status.length > 1) {
this.table.status.splice(0, 1)
}
},
handleClose() {
this.ruleShow = false
this.table = { 'ruleName': '', 'sort': '', 'ruleStr': '', 'status': ['正常'] }
},
changeBox(row) {
console.error(row)
},
addFrom() {
},
addRule() {
},
changeTime(value) {
// this.queryParams.creationTime = value[0]
// this.queryParams.endCreationTime = value[1]
},
handleChangeMunu(value) {
console.log('🌈', value[value.length - 1])
this.queryParams.menuId = value[value.length - 1]

View File

@ -73,13 +73,13 @@
<div class="main">
<div class="maintop">
<div class="mainbtn">
<el-button @click="exports" style="background-color: #FFAD41" class="thebtn1"> {{ '导出' }}</el-button>
<el-button style="background-color: #FFAD41" class="thebtn1" @click="exports"> {{ '导出' }}</el-button>
</div>
</div>
<div class="maintable">
<el-table
:data="tableData"
v-loading="loading"
:data="tableData"
height="690px"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
@ -93,7 +93,7 @@
<el-table-column align="center" prop="templateCode" :label="'短信编号'" />
<el-table-column align="center" prop="templateName" :label="'短信标题'" />
<el-table-column align="center" :show-overflow-tooltip="true" prop="content" label="短信内容" />
<el-table-column align="center" prop="sendStatusVal" :label="'发送方式'"/>
<el-table-column align="center" prop="sendStatusVal" :label="'发送方式'" />
<el-table-column align="center" prop="sendTypeVal" :label="'发送状态'" />
<el-table-column align="center" prop="modifiedTime" :label="'发送时间'" />
</el-table>
@ -223,7 +223,7 @@ export default {
statusList1: [{ 'name': '未发送', 'id': '0' }, { 'name': '已发送', 'id': '1' }],
menuOptions: [],
tableData: [],
loading:false,
loading: false,
total: 0,
types: '',
formId: ''
@ -235,7 +235,7 @@ export default {
methods: {
exports() {
this.download(
"/sms/manage/sms-record/export",
'/sms/manage/sms-record/export',
{ ...this.queryParams },
`发送记录-${new Date().getTime()}.xlsx`
)
@ -248,23 +248,7 @@ export default {
//
this.ruleSubmit()
},
updateShow(item) {
this.types = 2
//
this.formId = item.roleId
api.roleDetails(item.roleId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
this.table = { 'roleName': res.data.roleName, 'roleSort': res.data.roleSort,
'roleKey': res.data.roleKey, 'status': res.data.status === 0 ? ['正常'] : ['停用'] }
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
},
delRole(item) {
//
this.$confirm('确认要删除该角色吗?', '提示', {

View File

@ -56,13 +56,13 @@
style="background-color: #48B2FD"
class="thebtn1"
@click="$router.push('/configManage/smsRecord/smsTemplateAdd');"
>{{'添加'}}</el-button>
>{{ '添加' }}</el-button>
</div>
</div>
<div class="maintable">
<el-table
:data="tableData"
v-loading="loading"
:data="tableData"
height="730px"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
@ -97,7 +97,7 @@
style="color: #6962F6"
@click="$router.push('/configManage/smsRecord/smsTemplateAdd?pkId='+scope.row.pkId);"
>
{{'修改'}}
{{ '修改' }}
</el-button>
</template>
</el-table-column>
@ -225,7 +225,7 @@ export default {
statusList: [{ 'name': '允许', 'id': '0' }, { 'name': '禁止', 'id': '1' }],
menuOptions: [],
tableData: [],
loading:false,
loading: false,
total: 0,
types: '',
formId: ''
@ -263,23 +263,7 @@ export default {
//
this.ruleSubmit()
},
updateShow(item) {
this.types = 2
//
this.formId = item.roleId
api.roleDetails(item.roleId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
this.table = { 'roleName': res.data.roleName, 'roleSort': res.data.roleSort,
'roleKey': res.data.roleKey, 'status': res.data.status === 0 ? ['正常'] : ['停用'] }
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
},
delRole(item) {
//
this.$confirm('确认要删除该角色吗?', '提示', {

View File

@ -10,13 +10,12 @@
<div v-for="(item,index) in tableData" :key="index" class="lists">
<div class="time">
<div class="border-bottom">{{ item.monthTime }}</div>
<div v-for="items in item.noticeList" class="div-box" @click="clickHref(items.pkId)">
<div v-for="items in item.noticeList" :key="items.pkId" class="div-box" @click="clickHref(items.pkId)">
<div class="title">
<div style="font-weight: 600">{{ items.title }}</div>
<div class="overflow1" style="font-size: 14px;color: #333;margin-top: 10px;font-weight: inherit" v-html="items.content" />
</div>
<div class="time-s">{{ items.creationTime }}</div>
</div>
</div>
</div>
@ -25,14 +24,8 @@
</template>
<script>
import { getcountryAllList } from '@/api/exchangerate'
import topBar from '@/components/topBar'
import { getbdmenuList, getPubenumsList } from '@/api/system'
import { getgradeRanglist, getAwardsListChiose } from '@/api/level'
import * as apis from '@/api/financialCase.js'
import { Message } from 'element-ui'
import * as api from '@/api/translate'
import { getNoticeList } from '@/api/translate'
export default {
name: 'Notice',
@ -63,244 +56,13 @@ export default {
}
})
},
//
handleExport() {
this.download(
'/system/manage/user/export',
{ ...this.params },
`${'系统管理员'}${new Date().getTime()}.xlsx`
)
},
addRules() {
this.types = 1
this.ruleShow = true
},
submitBtn() {
//
this.ruleSubmit()
},
updateShow(item) {
this.types = 2
//
this.userId = item.userId
api.userDetails(item.userId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
this.table = { 'userName': res.data.userName, 'nickName': res.data.nickName,
'password': '', 'phonenumber': res.data.phonenumber,
'sms': res.data.sms == 0 ? '启用' : '停用', 'status': res.data.status == 0 ? '启用' : '停用',
'roleIdList': res.data.roleIdList, 'vertexIdList': res.data.vertexIdList,
'countryIdList': res.data.countryIdList, 'authority': res.data.authority == 0 ? '启用' : '停用',
'pkDept': res.data.pkDept
}
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
},
delRole(item) {
//
this.$confirm('确认要删除该管理员吗', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
api.delUser(item.userId).then((res) => {
if (res.code === 200) {
Message({
message: '删除成功',
type: 'success'
})
this.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
})
},
deppClone(obj) {
const _obj = JSON.stringify(obj)
const _obj1 = JSON.parse(_obj)
return _obj1
},
ruleSubmit() {
const datas = this.table
const that = this
this.$refs['forms'].validate(valid => {
if (!valid) {
return false
} else {
if (this.types === 1) {
api.addUser(datas).then((res) => {
if (res.code === 200) {
Message({
message: '添加成功',
type: 'success'
})
that.ruleShow = false
that.table = { 'userName': '', 'nickName': '', 'password': '', 'phonenumber': '',
'sms': '', 'authority': '', 'status': '', 'roleIdList': [], 'vertexIdList': [],
'countryIdList': '',
'pkDept': ''
}
that.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
}
if (this.types === 2) {
const datas1 = this.deppClone(datas)
if (datas.sms === '启用') {
datas1.sms = ''
datas1.sms = 0
} else if (datas.sms === '停用') {
datas1.sms = ''
datas1.sms = 1
}
if (datas1.authority === '启用') {
datas1.authority = ''
datas1.authority = 0
} else if (datas.authority === '停用') {
datas1.authority = ''
datas1.authority = 1
}
if (datas1.status === '启用') {
datas1.status = ''
datas1.status = 0
} else if (datas.status === '停用') {
datas1.status = ''
datas1.status = 1
}
datas1.userId = this.userId
api.putUser(datas1).then((res) => {
if (res.code === 200) {
Message({
message: '修改成功',
type: 'success'
})
that.ruleShow = false
that.table = { 'userName': '', 'nickName': '', 'password': '', 'phonenumber': '',
'sms': '', 'authority': '', 'status': '', 'roleIdList': [], 'vertexIdList': [],
'countryIdList': '',
'pkDept': ''
}
that.research()
} else {
Message({
message: res.msg,
type: 'error'
})
}
})
}
}
})
},
statusChange(value) {
if (this.table.status.length > 1) {
this.table.status.splice(0, 1)
}
},
handleClose() {
this.ruleShow = false
this.table = {
'userName': '', 'nickName': '', 'password': '', 'phonenumber': '',
'sms': '', 'authority': '', 'status': '', 'roleIdList': [], 'vertexIdList': [],
'countryIdList': '',
'pkDept': ''
}
},
changeBox(row) {
console.error(row)
},
addFrom() {
},
addRule() {
},
changeTime(value) {
// this.queryParams.creationTime = value[0]
// this.queryParams.endCreationTime = value[1]
},
handleChangeMunu(value) {
console.log('🌈', value[value.length - 1])
this.queryParams.menuId = value[value.length - 1]
},
//
getPubenumsList() {
getPubenumsList().then((res) => {
this.menuOptions = res.data
})
},
//
getgradeRanglist() {
getgradeRanglist().then((res) => {
this.gradeRangList = res.data
})
},
//
getAwardsListChiose() {
getAwardsListChiose().then((res) => {
this.awardsList = res.rows
})
},
async getUserId(data) {
return this.$store.state.user.user.userId
},
async research(data) {
api.getNoticeList().then((res) => {
console.error(res)
this.tableData = res.rows
this.total = res.total
})
},
reChongzhi() {
this.queryParams = {
pageNum: 1,
pageSize: 50,
userName: '', //
roleString: '', //
status: '', //
startDate: '', //
endDate: [] //
}
this.research()
},
handleSelectionChange(val) {
this.multipleSelection = val
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
// if (columnIndex === 0) {
// if (rowIndex % 2 === 0) {
// return {
// rowspan: 2,
// colspan: 1,
// };
// } else {
// return {
// rowspan: 0,
// colspan: 0,
// };
// }
// }
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return 'success-row'
}
return ''
}
}
}
@ -321,9 +83,7 @@ export default {
padding: 15px 20px 10px 20px;
display: flex;
justify-content: space-between;
//margin: 0 20px;
border-bottom: 1px solid rgba(0,0,0,0.1);
//line-height: 24px;
}
.lists{
width: 100%;
@ -341,34 +101,9 @@ export default {
.time{
color: #000;
font-size: 18px;
//font-weight: 600;
width: 100%;
}
.name{
color: #333;
font-size: 18px;
font-weight: bold;
flex: 1;
margin-left: 10px;
}
.style3{
background: rgba(0,155,88,0.3)!important;
color: #009B58!important;
}
.style2{
background: rgba(58,58,58,0.3)!important;
color: #3F3F3F!important;
}
.style1{
width: 44px;
height: 22px;
background: rgba(255,134,134,0.3);
border-radius: 4px 4px 4px 4px;
line-height: 22px;
text-align: center;
color: #C42525;
font-size: 14px;
}
.box{
box-shadow: 0px 2px 20px 0px rgba(238,238,238,0.5);
border-radius: 10px 10px 10px 10px;
@ -378,113 +113,16 @@ export default {
}
.lists{
padding: 20px 0 0 0;
//border-bottom:1px solid rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
cursor: pointer;
}
::v-deep .el-dialog__title{
font-weight: bold;
}
.button-style{
width: 209px;
height: 48px;
background: #CCCCCC;
border-radius: 5px 5px 5px 5px;
opacity: 1;
line-height: 48px;
padding: 0!important;
color: #fff;
font-size: 18px;
}
::v-deep .el-dialog__header{
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.button-s{
padding: 0 2px!important;
}
::v-deep .el-button{
padding: 10px 20px;
}
::v-deep .el-date-editor .el-range__close-icon{
margin-top: -10px;
}
::v-deep .el-date-editor .el-range-separator{
margin-top: -10px;
}
::v-deep .el-date-editor .el-range__icon{
margin-top: -10px;
}
::v-deep .el-input__inner{
//height:28px;
//line-height: 28px;
}
::v-deep .el-form-item{
margin-bottom: 15px;
}
::v-deep .el-form-item__label{
color: #333;
font-weight: inherit;
}
::v-deep .el-row {
margin-top: 20px;
}
::v-deep .el-table .warning-row {
background: #f9f9f9;
}
::v-deep .el-table .success-row {
background: #ffffff;
}
::v-deep .el-table thead {
color: #000000;
}
.openClose {
margin-top: 10px;
margin-right: 10px;
color: #666666;
text-align: center;
}
.page {
padding: 20px;
background: #f9f9f9;
font-size: 14px;
overflow-y: auto;
//margin-bottom: 100px;
.thetopbox {
background: #ffffff;
border-radius: 8px;
padding-bottom: 10px;
.searchbox {
display: flex;
align-items: center;
.searchtitle {
margin-right: 10px;
}
.searchbtn {
background: #08143f;
color: #ffffff;
}
}
}
.main {
margin-top: 20px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
.maintop {
display: flex;
padding: 10px 20px;
justify-content: space-between;
align-items: center;
.mainbtn {
.thebtn1 {
color: #ffffff;
background: rgba(67, 145, 253, 1);
}
}
}
}
}
</style>

View File

@ -167,17 +167,17 @@
<div class="maintop">
<div class="mainbtn">
<el-button
v-hasButtons="['dealerSh']"
size="small"
style="background: #48b2fd"
v-hasButtons="['dealerSh']"
class="thebtn1"
@click="check"
>{{'审核'}}</el-button>
>{{ '审核' }}</el-button>
<el-button
v-hasButtons="['dealerExport']"
size="small"
style="background: #ffad41; color: #fff"
class="thebtn3"
v-hasButtons="['dealerExport']"
@click="exports()"
> {{ '导出' }}</el-button>
</div>
@ -207,9 +207,9 @@
<div class="itemTrading">
<el-table
ref="multipleTable"
v-loading="loading"
:data="tableData.censusSummaryList"
style="width: 100%"
v-loading="loading"
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
:summary-method="getSummaries"
@ -249,27 +249,30 @@
:label="'隶属团队'"
/>
<el-table-column align="center"
prop="licenseName"
width="150"
:label="'营业执照名称'">
</el-table-column>
<el-table-column align="center"
prop="creditCode"
width="150"
:label="'统一社会信用代码'">
</el-table-column>
<el-table-column align="center"
prop="legalName"
width="120"
:label="'法人姓名'">
</el-table-column>
<el-table-column align="center"
width="180"
prop="licenseAddress"
:label="'营业执照注册地址'">
</el-table-column>
<el-table-column
align="center"
prop="licenseName"
width="150"
:label="'营业执照名称'"
/>
<el-table-column
align="center"
prop="creditCode"
width="150"
:label="'统一社会信用代码'"
/>
<el-table-column
align="center"
prop="legalName"
width="120"
:label="'法人姓名'"
/>
<el-table-column
align="center"
width="180"
prop="licenseAddress"
:label="'营业执照注册地址'"
/>
<el-table-column
align="center"
@ -291,30 +294,30 @@
<template slot-scope="scope">
<el-button
v-if="scope.row.approveStatus == 2 || scope.row.approveStatus == 4"
v-hasButtons="['dealerFq']"
class="button_s"
type="text"
size="small"
style="color: #48b2fd"
@click="hrefs(scope.row)"
v-hasButtons="['dealerFq']"
>
发起签呈
</el-button>
<el-button
v-if="scope.row.approveStatus == 2 || scope.row.approveStatus == 4"
v-hasButtons="['dealerBh']"
class="button_s"
type="text"
size="small"
style="color: #C8161D"
v-hasButtons="['dealerBh']"
@click="reject(scope.row.storeCode)"
>
{{ '驳回' }}
</el-button>
<el-button
v-hasButtons="['dealerDetail']"
class="button_s"
type="text"
v-hasButtons="['dealerDetail']"
size="small"
style="color: #009b58"
@click="details(scope.row.storeCode)"
@ -322,10 +325,10 @@
资质认证
</el-button>
<el-button
v-if="scope.row.approveStatus == 5"
v-if="scope.row.approveStatus == 5"
v-hasButtons="['dealerUp']"
class="button_s"
type="text"
v-hasButtons="['dealerUp']"
size="small"
style="color: #C8161D"
@click="details(scope.row.storeCode,1)"
@ -370,10 +373,10 @@ import { getcountryAllList } from '@/api/exchangerate'
import { bonusSource } from '@/api/bonus'
import * as del from '@/api/delivery'
import { getAwardsListChiose } from '@/api/level'
import {dealerList, dealerReject, markerSpace} from '@/api/settle.js'
import { dealerList, dealerReject, markerSpace } from '@/api/settle.js'
import { Message } from 'element-ui'
import Editor from '@/components/Editor/index.vue'
import {isLocals} from "@/utils/numberToCurrency";
import { isLocals } from '@/utils/numberToCurrency'
export default {
name: 'Bzpz',
components: {
@ -381,11 +384,11 @@ export default {
topBar
},
filters: {
isAgree(val) {
isAgree(val) {
if (!val) {
return '允许';
return '允许'
} else {
return '禁止';
return '禁止'
}
}
},
@ -406,7 +409,7 @@ export default {
},
isActive: false,
typeList: [
{
{
value: 2,
label: '待审核'
},
@ -426,12 +429,12 @@ export default {
digList: [
{
value: 0,
label: '允许',
label: '允许'
},
{
value: 1,
label: '禁止',
},
label: '禁止'
}
],
menuList: [
{
@ -529,7 +532,7 @@ export default {
creationTime2: [],
creationTime3: [],
select: {
approveStatus:2,
approveStatus: 2
},
//
queryParams: {
@ -539,7 +542,7 @@ export default {
addOrEdit: '',
total: 0,
dialogVisible: false,
loading:false,
loading: false,
tableData: {
censusSummaryList: []
},
@ -594,12 +597,12 @@ export default {
methods: {
//
confirmSubmit() {
if(this.relContent.length == 0){
if (this.relContent.length == 0) {
this.$message({
message: '请输入驳回信息',
type: 'warning'
})
return false
message: '请输入驳回信息',
type: 'warning'
})
return false
}
api.dealerReject({ 'storeCode': this.storeCode, 'rejectStr': this.relContent }).then((res) => {
if (res.code == '200') {
@ -645,16 +648,16 @@ export default {
path: 'JxsQc',
query: {
data: JSON.stringify([row]),
approvalBusiness: 143,
},
approvalBusiness: 143
}
})
},
// details(code) {
// this.$router.push('/information/dealer/detail?code=' + code)
// },
details(code,index) {
index = index||0
this.$router.push('/information/dealer/detail?code=' + code+'&index='+index)
details(code, index) {
index = index || 0
this.$router.push('/information/dealer/detail?code=' + code + '&index=' + index)
},
exports() {
this.download(
@ -704,8 +707,8 @@ export default {
api.vertexList().then((res) => {
this.verList = res.data
})
//
api.certificate_status().then((res) => {
//
api.certificate_status().then((res) => {
this.cerList = res.data
})
//
@ -822,22 +825,6 @@ export default {
this.total = res.total
})
},
handleSelectionChange(val) {},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams
this.$confirm( '是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(function() {
return api.exportClassIfy(queryParams)
})
.then((response) => {
this.download(response)
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return 'warning-row'

View File

@ -2,63 +2,63 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="form_all">
<el-form ref="select" :model="select" label-width="auto">
<el-row :gutter="10">
<el-col :span="4">
<el-form-item label="会员编号">
<el-input clearable v-model="select.memberCode"></el-input>
<el-input v-model="select.memberCode" clearable />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="结算等级">
<el-select
v-model="select.pkGrade"
clearable
:placeholder="'请选择'"
v-model="select.pkGrade"
>
<el-option
v-for="item in gradeRangList"
:key="item.pkId"
:label="item.gradeName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="当月奖衔">
<el-select
v-model="select.pkAwards"
clearable
:placeholder="'请选择'"
v-model="select.pkAwards"
>
<el-option
v-for="item in awardsList"
:key="item.pkId"
:label="item.awardsName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="隶属体系">
<el-select
v-model="select.pkVertex"
clearable
:placeholder="'请选择'"
v-model="select.pkVertex"
>
<el-option
v-for="item in vertexList"
:key="item.pkId"
:label="item.vertexName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -67,20 +67,18 @@
<el-date-picker
v-model="select.cjsj"
type="daterange"
@change="changeTime1"
range-separator="——"
:start-placeholder="'开始时间'"
:end-placeholder="'结束日期'"
value-format="yyyy-MM-dd"
:unlink-panels="true"
>
</el-date-picker>
@change="changeTime1"
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-button type="primary" @click="getList">
{{ '搜索' }}</el-button
>
{{ '搜索' }}</el-button>
<el-button type="" @click="reset"> {{ '重置' }}</el-button>
</el-col>
</el-row>
@ -89,26 +87,25 @@
<div class="maintop">
<div class="mainbtn">
<el-button
size="small"
v-hasButtons="['memberFindExport']"
size="small"
class="thebtn2"
@click="handleExport"
>
{{ '导出' }}</el-button
>
{{ '导出' }}</el-button>
</div>
</div>
<div class="maintable">
<el-table
:data="tableData"
v-loading="loading"
:data="tableData"
style="width: 100%"
height="700px"
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column type="selection" width="55" />
<el-table-column align="center" prop="memberCode" label="会员编号" />
<el-table-column align="center" prop="memberName" label="会员姓名" />
<el-table-column align="center" prop="phone" label="联系方式" />
@ -153,127 +150,122 @@
</template>
<script>
import topBar from "@/components/topBar";
import { getgradeRanglist, getAwardsListChiose } from "@/api/level";
import { getvertexValue } from "@/api/member";
import * as api from "@/api/member";
import topBar from '@/components/topBar'
import { getgradeRanglist, getAwardsListChiose } from '@/api/level'
import { getvertexValue } from '@/api/member'
import * as api from '@/api/member'
export default {
name: "Bzpz",
name: 'Bzpz',
components: {
topBar,
topBar
},
data() {
const now = new Date();
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0);
const now = new Date()
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1)
const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0)
return {
moren: "memberFind",
moren: 'memberFind',
topList: [
{
name: "会员奖衔查询",
path: "memberFind",
},
name: '会员奖衔查询',
path: 'memberFind'
}
],
select: {
cjsj: [this.formatDate(startOfMonth), this.formatDate(endOfMonth)],
startDate: this.formatDate(startOfMonth),
endDate: this.formatDate(endOfMonth),
endDate: this.formatDate(endOfMonth)
},
//
queryParams: {
pageNum: 1,
pageSize: 50,
pageSize: 50
},
awardsList: [], //
vertexList: [], //
gradeRangList: [], //
awardsList: [], //
vertexList: [], //
gradeRangList: [], //
total: 0,
tableData: [],
loading: false,
};
loading: false
}
},
mounted() {
//
this.getList();
this.getvertexValue();
this.getAwardsListChiose();
this.getgradeRanglist();
this.getList()
this.getvertexValue()
this.getAwardsListChiose()
this.getgradeRanglist()
},
methods: {
//
//
getgradeRanglist() {
getgradeRanglist().then((res) => {
this.gradeRangList = res.data;
});
this.gradeRangList = res.data
})
},
//
//
getvertexValue() {
getvertexValue().then((res) => {
this.vertexList = res.data;
});
this.vertexList = res.data
})
},
//
//
getAwardsListChiose() {
getAwardsListChiose().then((res) => {
this.awardsList = res.rows;
});
this.awardsList = res.rows
})
},
changeTime1(val) {
this.select.startDate = val ? val[0] : "";
this.select.endDate = val ? val[1] : "";
},
getData() {
api.getEnableStatus().then((res) => {
this.getStatusList = res.data;
});
this.select.startDate = val ? val[0] : ''
this.select.endDate = val ? val[1] : ''
},
formatDate(date) {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
return `${year}-${month}-${day}`;
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
return `${year}-${month}-${day}`
},
getList() {
this.loading = true;
this.loading = true
api
.member_awards(Object.assign({}, this.queryParams, this.select))
.then((res) => {
this.tableData = res.rows;
this.total = res.total;
this.loading = false;
});
this.tableData = res.rows
this.total = res.total
this.loading = false
})
},
//
//
handleExport() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: "warning",
type: 'warning'
}).then((_) => {
this.download(
"/member/manager/member/member_awards_query_export",
'/member/manager/member/member_awards_query_export',
Object.assign({}, this.queryParams, this.select),
`会员奖衔${new Date().getTime()}.xlsx`
);
});
)
})
},
reset() {
this.select = {};
this.getList();
this.select = {}
this.getList()
},
handleSelectionChange(val) {},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style scoped lang="scss">
::v-deep .el-table .warning-row {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -17,11 +17,9 @@
<el-col :span="4">
<div class="searchbox">
<el-button class="my_search" @click="research">
{{ '搜索' }}</el-button
>
{{ '搜索' }}</el-button>
<el-button class="my_reset" @click="reChongzhi">
{{ '重置' }}</el-button
>
{{ '重置' }}</el-button>
</div>
</el-col>
</el-row>
@ -31,18 +29,17 @@
<div class="maintop">
<div class="mainbtn">
<el-button
v-hasButtons="['WaresBonusAdd']"
size="small"
class="addBtn"
v-hasButtons="['WaresBonusAdd']"
@click="addRules"
>{{ '添加' }}</el-button
>
>{{ '添加' }}</el-button>
</div>
</div>
<div class="maintable">
<el-table
:data="tableData"
v-loading="loading"
:data="tableData"
height="730px"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
@ -104,21 +101,21 @@
<el-table-column align="center" :label="'操作'" width="150">
<template slot-scope="scope">
<el-button
v-hasButtons="['WaresBonusEdit']"
class="colors"
type="text"
size="small"
style="color: #ffad41"
v-hasButtons="['WaresBonusEdit']"
@click.native.prevent="updateShow(scope.row)"
>
{{ '修改' }}
</el-button>
<el-button
v-hasButtons="['WaresBonusDel']"
class="colors"
type="text"
size="small"
style="color: #c73030"
v-hasButtons="['WaresBonusDel']"
@click.native.prevent="delRole(scope.row)"
>
{{ '删除' }}
@ -139,172 +136,124 @@
</template>
<script>
import topBar from "@/components/topBar";
import * as api from "@/api/specialBusiness.js";
import { Message } from "element-ui";
import topBar from '@/components/topBar'
import * as api from '@/api/specialBusiness.js'
import { Message } from 'element-ui'
export default {
name: "Qxpz",
name: 'Qxpz',
components: {
topBar,
topBar
},
data() {
return {
title: '添加',
modifiedTime: [],
modifiedTime1: [],
forms: "",
forms: '',
rules: {
memberCode: [
{ required: true, message: '请输入', trigger: "blur" },
{ required: true, message: '请输入', trigger: 'blur' }
],
expandRatio: [
{ required: true, message: '请输入', trigger: "blur" },
{ required: true, message: '请输入', trigger: 'blur' }
],
coachGeneration: [
{ required: true, message: '请输入', trigger: "blur" },
{ required: true, message: '请输入', trigger: 'blur' }
],
startDate: [
{ required: true, message: '请选择', trigger: "change" },
{ required: true, message: '请选择', trigger: 'change' }
],
endDate: [
{ required: true, message: '请选择', trigger: "change" },
],
{ required: true, message: '请选择', trigger: 'change' }
]
},
table: {},
ruleShow: false,
moren: "waresBonus",
moren: 'waresBonus',
topList: [
{
name: "特殊品奖金分配",
path: "waresBonus",
},
name: '特殊品奖金分配',
path: 'waresBonus'
}
],
queryParams: {
pageNum: 1,
pageSize: 50,
pageSize: 50
},
tableData: [],
loading: false,
total: 0,
};
total: 0
}
},
created() {
this.research();
this.research()
},
methods: {
addRules() {
this.$router.push({
path: "WaresBonusRules",
path: 'WaresBonusRules'
// query: {
// allData: JSON.stringify(this.tableData),
// },
});
})
},
updateShow(item) {
this.$router.push({
path: "WaresBonusRules",
path: 'WaresBonusRules',
query: {
allData: JSON.stringify(item),
isEdit: 1,
},
});
isEdit: 1
}
})
},
delRole(item) {
let pkId = item.pkId;
const pkId = item.pkId
this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: "warning",
type: 'warning'
}).then(() => {
api.waresBonusDel(pkId).then((res) => {
if (res.code === 200) {
Message({
message: res.msg,
type: "success",
});
this.research();
type: 'success'
})
this.research()
}
});
});
},
ruleSubmit() {
this.$refs["forms"].validate((valid) => {
if (!valid) {
return false;
} else {
if (this.types == 1) {
api.kValueAdd(this.table).then((res) => {
if (res.code == 200) {
Message({
message: res.msg,
type: "success",
});
this.ruleShow = false;
this.$refs["forms"].clearValidate();
this.$refs["forms"].resetFields();
this.research();
}
});
}
if (this.types == 2) {
api.kValueUp(this.table).then((res) => {
if (res.code == 200) {
Message({
message: res.msg,
type: "success",
});
this.ruleShow = false;
this.$refs["forms"].clearValidate();
this.$refs["forms"].resetFields();
this.research();
}
});
}
}
});
},
handleClose() {
this.ruleShow = false;
this.table = {};
},
changeTime(val) {
this.queryParams.beginStartDate = val ? val[0] : "";
this.queryParams.endStartDate = val ? val[1] : "";
},
changeTime1(val) {
this.queryParams.beginEndDate = val ? val[0] : "";
this.queryParams.endEndDate = val ? val[1] : "";
})
})
},
research() {
this.loading = true;
this.loading = true
api.waresBonusQuery(this.queryParams).then((res) => {
this.loading = false;
this.tableData = res.rows;
this.total = res.total;
});
this.loading = false
this.tableData = res.rows
this.total = res.total
})
},
reChongzhi() {
this.queryParams = {
pageNum: 1,
pageSize: 50,
};
this.modifiedTime = [];
this.modifiedTime1 = [];
this.research();
pageSize: 50
}
this.modifiedTime = []
this.modifiedTime1 = []
this.research()
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.multipleSelection = val
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .inlineTable thead {

View File

@ -3,7 +3,7 @@
<topBar v-if="topList.length > 0" :top-list="topList" :moren="moren" />
<div class="main">
<div class="tit">{{ $t("商品配置") }}</div>
<div class="xian"></div>
<div class="xian" />
<div class="table">
<!-- 批量操作 -->
<table>
@ -49,21 +49,21 @@
<div class="tableFlex">
<div class="tableFlex_i">
<el-input
v-model="plcz.assAchieve"
:placeholder="$t('分配EV')"
size="medium"
v-model="plcz.assAchieve"
:disabled="lookOver"
></el-input>
/>
</div>
<div class="tableFlex_i">
<el-input
v-model="plcz.algebra"
:placeholder="$t('代数')"
size="medium"
v-model="plcz.algebra"
:disabled="lookOver"
></el-input>
/>
</div>
<div class="tableAdd"></div>
<div class="tableAdd" />
</div>
</th>
<th colspan="2" style="padding-bottom: 0">
@ -72,15 +72,13 @@
<el-button
type="primary"
:disabled="lookOver"
@click="toPlcz"
size="mini"
>{{ '批量操作' }}</el-button
>
@click="toPlcz"
>{{ '批量操作' }}</el-button>
</div>
<div class="tableFlex_i">
<el-button size="mini" :disabled="lookOver" @click="reset">
{{ '重置' }}</el-button
>
{{ '重置' }}</el-button>
</div>
</div>
</th>
@ -100,10 +98,10 @@
<div class="tableFlex">
<div class="tableFlex_i">{{ $t("分配EV") }}</div>
<div class="tableFlex_i">{{ $t("代数") }}</div>
<div class="tableAdd"></div>
<div class="tableAdd" />
</div>
</td>
<td colspan="4" style="border: 0"></td>
<td colspan="4" style="border: 0" />
</tr>
<tr v-for="(item, index) in recommendUpgradeList" :key="index">
<!-- <td colspan="2" style="border: 0"></td> -->
@ -111,78 +109,78 @@
<div class="tableFlex">
<div class="tableFlex_i">
<el-input
:placeholder="$t('商品')"
v-model="item.waresName"
:placeholder="$t('商品')"
:disabled="lookOver"
@focus="getProduct(index, cndex)"
></el-input>
/>
</div>
<div class="tableFlex_i">
<el-input
v-model="item.orderAssAchieve"
:placeholder="$t('分配总EV')"
size="medium"
v-model="item.orderAssAchieve"
:disabled="true"
></el-input>
/>
</div>
<div class="tableFlex_i">
<el-input
v-model="item.totalAlgebra"
:placeholder="$t('分配代数')"
size="medium"
v-model="item.totalAlgebra"
:disabled="lookOver"
></el-input>
/>
</div>
</div>
</td>
<td colspan="8" style="padding-bottom: 0">
<div
class="tableFlex"
v-for="(ctem, cndex) in item.waresBonusItemsParamList"
:key="cndex"
class="tableFlex"
>
<div class="tableFlex_i">
<el-input
:placeholder="$t('分配EV')"
v-model="ctem.assAchieve"
:placeholder="$t('分配EV')"
type="number"
:step="0.01"
@input="updateEVSum(item)"
></el-input>
/>
</div>
<div class="tableFlex_i">
<el-input
:placeholder="$t('代数')"
v-model="ctem.algebra"
></el-input>
:placeholder="$t('代数')"
/>
</div>
<div class="tableAdd">
<img
src="@/assets/images/iconpop.png"
@click="reduceProduct(index, cndex)"
alt=""
/>
@click="reduceProduct(index, cndex)"
>
<img
v-if="cndex == item.waresBonusItemsParamList.length - 1"
src="@/assets/images/iconadd.png"
@click="addProduct(index, cndex)"
alt=""
/>
@click="addProduct(index, cndex)"
>
</div>
</div>
<div
class="tableAddPro"
v-show="item.waresBonusItemsParamList.length == 0"
class="tableAddPro"
>
{{ $t("添加") }}
<img
src="@/assets/images/iconadd.png"
@click="addProduct(index, cndex)"
alt=""
/>
@click="addProduct(index, cndex)"
>
</div>
</td>
<td colspan="4" style="border: 0"></td>
<td colspan="4" style="border: 0" />
</tr>
<!-- <tr v-if="recommendUpgradeList.length > 0">
<td colspan="2"></td>
@ -226,68 +224,25 @@
</el-row>
<div style="height: 10px"></div> -->
<el-table
:data="dialogList"
ref="multipleTable"
:data="dialogList"
style="width: 100%"
@select-all="onSelectAll"
@select="selected"
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
@select-all="onSelectAll"
@select="selected"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="waresName"
:label="$t('商品名称')"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="waresCode"
:label="$t('商品编号')"
>
</el-table-column>
<!-- <el-table-column
align="center"
prop="productName"
:label="'规格'"
>
<template slot-scope="scope">
<div
class="blueCor"
v-show="
scope.row.selSkuNameList == '' ||
scope.row.selSkuNameList == undefined
"
@click="selSku(scope.row.pkId, scope.$index)"
>
{{ '选择规格' }}
</div>
<div
class="blueCor"
v-show="
scope.row.selSkuNameList != '' &&
scope.row.selSkuNameList != undefined
"
@click="selSku(scope.row.pkId, scope.$index)"
>
{{ scope.row.selSkuNameList }}
</div>
</template>
</el-table-column> -->
<!-- <el-table-column
align="center"
prop="productName"
:label="'商品数量'"
>
<template slot-scope="scope">
<el-input-number
size="mini"
v-model="scope.row.quantity"
:min="1"
></el-input-number>
</template>
</el-table-column> -->
/>
</el-table>
</div>
<pagination
@ -315,18 +270,17 @@
<div>
<el-form>
<el-form-item
:label="item.typeName"
v-for="(item, index) in skuList"
:key="index"
:label="item.typeName"
>
<el-radio-group v-model="item.pkProductSku">
<el-radio
v-for="(ctem, cndex) in item.specsList"
@change="getCheckBox(item.pkId, item.specsName)"
:key="ctem.pkId"
:label="ctem.pkId"
>{{ ctem.specsName }}</el-radio
>
@change="getCheckBox(item.pkId, item.specsName)"
>{{ ctem.specsName }}</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
@ -340,32 +294,30 @@
</el-dialog>
</div>
<div class="footer">
<el-button size="small" @click="goback()" class="cancelBtn">
{{ '取消' }}</el-button
>
<el-button size="small" @click="submit()" class="sureBtn">
{{ '确认' }}</el-button
>
<el-button size="small" class="cancelBtn" @click="goback()">
{{ '取消' }}</el-button>
<el-button size="small" class="sureBtn" @click="submit()">
{{ '确认' }}</el-button>
</div>
</div>
</template>
<script>
import * as api from "@/api/specialBusiness.js";
import topBar from "@/components/topBar";
import ImageUpload from "@/components/ImageUpload";
import { Message } from "element-ui";
import * as api from '@/api/specialBusiness.js'
import topBar from '@/components/topBar'
import ImageUpload from '@/components/ImageUpload'
import { Message } from 'element-ui'
export default {
name: "WaresBonusRules",
name: 'WaresBonusRules',
components: {
ImageUpload,
topBar,
topBar
},
props: {
lookOver: {
type: Boolean,
default: false,
},
default: false
}
},
data() {
return {
@ -373,35 +325,35 @@ export default {
ggVisible: false,
queryParams: {
pageNum: 1,
pageSize: 50,
pageSize: 50
},
total: 0,
allData: [], //
areaList: [], //
isArea: "",
allData: [], //
areaList: [], //
isArea: '',
plcz: {},
select: {}, //
dialogList: [], //
selectData: [], //
skuList: [], //
gradeList: [], //
selSkuList: "",
selSkuNameList: "",
selIndex: "",
showCndex: "",
showIndex: "",
select: {}, //
dialogList: [], //
selectData: [], //
skuList: [], //
gradeList: [], //
selSkuList: '',
selSkuNameList: '',
selIndex: '',
showCndex: '',
showIndex: '',
pageData: {},
recommendUpgradeList: [],
allGoods: [],
moren: "WaresBonusRules",
moren: 'WaresBonusRules',
topList: [
{
name: "特殊品奖金分配",
path: "WaresBonusRules",
},
name: '特殊品奖金分配',
path: 'WaresBonusRules'
}
],
isEdit: "",
};
isEdit: ''
}
},
// computed: {
// calculateTotalEV() {
@ -417,123 +369,123 @@ export default {
deep: true,
handler() {
this.recommendUpgradeList.forEach((item) => {
this.updateEVSum(item);
});
},
},
this.updateEVSum(item)
})
}
}
},
mounted() {
// this.getData();
this.addNewGoods();
this.addNewGoods()
if (this.$route.query.isEdit) {
this.isEdit = this.$route.query.isEdit;
this.isEdit = this.$route.query.isEdit
}
if (this.$route.query.allData) {
const allData = JSON.parse(this.$route.query.allData);
this.recommendUpgradeList = [allData];
const allData = JSON.parse(this.$route.query.allData)
this.recommendUpgradeList = [allData]
this.recommendUpgradeList.forEach((item) => {
if (item.bdWaresBonusItemsList) {
this.$set(
item,
"waresBonusItemsParamList",
'waresBonusItemsParamList',
JSON.parse(JSON.stringify(item.bdWaresBonusItemsList))
);
)
}
});
})
}
},
methods: {
goback() {
this.$router.go(-1);
this.$router.go(-1)
},
updateEVSum(item) {
const currentTotal = item.waresBonusItemsParamList.reduce(
(sum, ctem) => sum + Number(ctem.assAchieve || 0),
0
);
item.orderAssAchieve = currentTotal;
)
item.orderAssAchieve = currentTotal
},
getPage(allData) {
this.recommendUpgradeList = allData;
console.log("🌈allData", allData);
this.recommendUpgradeList = allData
console.log('🌈allData', allData)
},
sureSku() {
this.$set(this.dialogList[this.selIndex], "selSkuList", this.selSkuList);
this.$set(this.dialogList[this.selIndex], 'selSkuList', this.selSkuList)
this.$set(
this.dialogList[this.selIndex],
"selSkuNameList",
'selSkuNameList',
this.selSkuNameList
);
this.ggVisible = false;
)
this.ggVisible = false
},
sureProduct() {
console.log(this.selectData, "waresName");
console.log(this.selectData, 'waresName')
if (this.selectData.length == 0) {
this.$message({
message: '请选择产品',
type: "warning",
});
return false;
type: 'warning'
})
return false
} else {
this.recommendUpgradeList[this.showIndex].pkWares =
this.selectData.pkId;
this.selectData.pkId
this.recommendUpgradeList[this.showIndex].waresName =
this.selectData.waresName;
this.selectData.waresName
this.recommendUpgradeList[this.showIndex].waresCode =
this.selectData.waresCode;
this.handleClose();
this.$forceUpdate();
this.selectData.waresCode
this.handleClose()
this.$forceUpdate()
}
},
toPlcz() {
this.recommendUpgradeList.forEach((stem) => {
stem.waresBonusItemsParamList.forEach((ctem) => {
ctem.assAchieve = this.plcz.assAchieve;
ctem.algebra = this.plcz.algebra;
});
});
ctem.assAchieve = this.plcz.assAchieve
ctem.algebra = this.plcz.algebra
})
})
},
reset() {
this.plcz = {};
this.plcz = {}
},
getCheckBox() {
let arr1 = [],
arr2 = [];
const arr1 = []
const arr2 = []
this.skuList.forEach((item) => {
item.specsList.forEach((ctem) => {
if (ctem.pkId == item.pkProductSku) {
arr1.push(ctem.pkId);
arr2.push(ctem.specsName);
arr1.push(ctem.pkId)
arr2.push(ctem.specsName)
}
});
});
this.selSkuList = arr1.join(",");
this.selSkuNameList = arr2.join(",");
})
})
this.selSkuList = arr1.join(',')
this.selSkuNameList = arr2.join(',')
},
setArea(val) {
this.isArea = val;
this.isArea = val
},
handleClose() {
this.selectData = [];
this.dialogVisible = false;
this.selectData = []
this.dialogVisible = false
},
handleCloseGg() {
this.ggVisible = false;
this.ggVisible = false
},
getProduct(index, cndex) {
this.showIndex = index;
this.showCndex = cndex;
this.getDataList();
this.dialogVisible = true;
this.showIndex = index
this.showCndex = cndex
this.getDataList()
this.dialogVisible = true
},
addProduct(index, sndex) {
if (!this.lookOver) {
this.recommendUpgradeList[index].waresBonusItemsParamList.push({
assAchieve: "",
algebra: "",
});
assAchieve: '',
algebra: ''
})
}
},
reduceProduct(index, cndex) {
@ -541,120 +493,100 @@ export default {
this.recommendUpgradeList[index].waresBonusItemsParamList.splice(
cndex,
1
);
)
}
},
reduceNewGoods() {
this.recommendUpgradeList.splice(this.recommendUpgradeList.length - 1, 1);
this.recommendUpgradeList.splice(this.recommendUpgradeList.length - 1, 1)
},
addNewGoods() {
this.recommendUpgradeList.push({
orderAssAchieve: "",
totalAlgebra: "",
pkWares: "",
orderAssAchieve: '',
totalAlgebra: '',
pkWares: '',
waresBonusItemsParamList: [
{
assAchieve: "",
algebra: "",
},
],
});
assAchieve: '',
algebra: ''
}
]
})
},
selSku(pkId, index) {
this.selIndex = index;
api
.getProductSpecs({
pkProduct: pkId,
})
.then((res) => {
let arr1 = [],
arr2 = [];
res.data.forEach((item) => {
item.pkProductSku = item.specsList[0].pkId;
arr1.push(item.specsList[0].pkId);
arr2.push(item.specsList[0].specsName);
});
this.selSkuList = arr1.join(",");
this.selSkuNameList = arr2.join(",");
this.skuList = res.data;
this.ggVisible = true;
});
},
getDataList() {
api
.waresBonusEvQuery(Object.assign(this.queryParams, this.select))
.then((res) => {
res.rows.forEach((item) => {
item.quantity = 1;
});
this.dialogList = res.rows;
this.total = res.total;
});
item.quantity = 1
})
this.dialogList = res.rows
this.total = res.total
})
},
submit() {
// let obj = Object.assign({}, this.pageData, {
// waresConfigParam: this.allData,
// });
let obj = this.recommendUpgradeList[0];
const obj = this.recommendUpgradeList[0]
console.log(
"%c [ obj ]-445",
"font-size:13px; background:#6f1b1a; color:#b35f5e;",
'%c [ obj ]-445',
'font-size:13px; background:#6f1b1a; color:#b35f5e;',
obj
);
)
if (this.isEdit == 1) {
api.waresBonusUdate(obj).then((res) => {
if (res.code == 200) {
Message({
message: res.msg,
type: "success",
});
type: 'success'
})
this.$router.push({
path: "waresBonus",
});
path: 'waresBonus'
})
}
});
})
} else {
api.waresBonusInsert(obj).then((res) => {
if (res.code == 200) {
Message({
message: res.msg,
type: "success",
});
type: 'success'
})
this.$router.push({
path: "waresBonus",
});
path: 'waresBonus'
})
}
});
})
}
},
onSelectAll() {
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.clearSelection()
},
selected(selection, row) {
//
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.clearSelection()
//
//
if (selection.length == 0) return;
this.$refs.multipleTable.toggleRowSelection(row, true);
this.selectData = row;
if (selection.length == 0) return
this.$refs.multipleTable.toggleRowSelection(row, true)
this.selectData = row
},
//
selectionChange(val) {
//
this.selectData = val;
this.selectData = val
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>