Commit c58d13ab by zhangxw

修改

1 parent 4231d886
...@@ -292,7 +292,10 @@ export default { ...@@ -292,7 +292,10 @@ export default {
}, },
// 工资明细 // 工资明细
handleSalaryDetail(row) { handleSalaryDetail(row) {
this.detailRow = row this.detailRow = {
...row,
...this.queryData
}
this.handleSalaryDetailsColseDialog() this.handleSalaryDetailsColseDialog()
}, },
handleSalaryDetailsColseDialog() { handleSalaryDetailsColseDialog() {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<span>{{ subItem.staffName || '-' }} | </span> <span>{{ subItem.staffName || '-' }} | </span>
<span>{{ filterStr(subItem.sceneType, staffSceneLabelList) || '-' }} | </span> <span>{{ filterStr(subItem.sceneType, staffSceneLabelList) || '-' }} | </span>
<span>产值贡献{{ isEmpty(subItem.orderTotalPrice) ? '-' : `¥${subItem.orderTotalPrice}` }} | </span> <span>产值贡献{{ isEmpty(subItem.orderTotalPrice) ? '-' : `¥${subItem.orderTotalPrice}` }} | </span>
<span>{{ filterStr(subItem.jobType, staffLevelList) || '-' }} | </span> <span>{{ filterStr(subItem.jobType, staffLevelList, detailRow.hireType) || '-' }} | </span>
<span>周期渗透率{{ !isEmpty(subItem.penetrationRate) ? `${subItem.penetrationRate}%` : '-'}} | </span> <span>周期渗透率{{ !isEmpty(subItem.penetrationRate) ? `${subItem.penetrationRate}%` : '-'}} | </span>
<span>提成系数{{ !isEmpty(subItem.calculateValue) ? `${subItem.calculateValue}%` : '-'}}</span> <span>提成系数{{ !isEmpty(subItem.calculateValue) ? `${subItem.calculateValue}%` : '-'}}</span>
</div> </div>
...@@ -160,14 +160,16 @@ export default { ...@@ -160,14 +160,16 @@ export default {
}, },
getSalaryDetail() { getSalaryDetail() {
getSalaryDetailApi({ id: this.detailRow.id }).then(res => { getSalaryDetailApi({ id: this.detailRow.id }).then(res => {
const detailArray = res?.detailList && Object.keys(res?.detailList)?.map(key => { if (res) {
return { const detailArray = res?.detailList && Object.keys(res?.detailList)?.map(key => {
key: key, return {
data: res?.detailList[key] key: key,
} data: res?.detailList[key]
}) }
res.detailArray = detailArray })
this.activeName = detailArray?.length ? '0' : '' res.detailArray = detailArray
this.activeName = detailArray?.length ? '0' : ''
}
this.detailInfo = res || {} this.detailInfo = res || {}
}) })
} }
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
this.baseData.staffList.forEach(item => { this.baseData.staffList.forEach(item => {
if (item.staffPhone === val) { if (item.staffPhone === val) {
this.$set(this.expenseForm, 'staffPhone', item.staffPhone) this.$set(this.expenseForm, 'staffPhone', item.staffPhone)
this.$set(this.expenseForm, 'jobTypeStr', filterStr(item.jobType, staffLevelList)) this.$set(this.expenseForm, 'jobTypeStr', filterStr(item.jobType, staffLevelList, item.hireType))
this.$set(this.expenseForm, 'merchantName', item.merchantName) this.$set(this.expenseForm, 'merchantName', item.merchantName)
this.$set(this.expenseForm, 'staffName', item.staffName) this.$set(this.expenseForm, 'staffName', item.staffName)
this.$set(this.expenseForm, 'jobType', item.jobType) this.$set(this.expenseForm, 'jobType', item.jobType)
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
@select="handleChange" @select="handleChange"
@select-all="handleAll"> @select-all="handleAll">
<el-table-column type="selection" <el-table-column type="selection"
:selectable="selectable"
width="55" width="55"
align="center" /> align="center" />
<el-table-column prop="upgradeGoodsName" label="商品名称" align="center"> <el-table-column prop="upgradeGoodsName" label="商品名称" align="center">
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
height="464px"> height="464px">
<el-table-column prop="upgradeGoodsName" label="商品名称" align="center"> <el-table-column prop="upgradeGoodsName" label="商品名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.upgradeGoodsName }}</span> <span :class="{'gray': scope.row.merchantGoodsStatus != 1}">{{ scope.row.upgradeGoodsName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="删除" align="center" width="50px"> <el-table-column label="删除" align="center" width="50px">
...@@ -98,23 +97,19 @@ export default { ...@@ -98,23 +97,19 @@ export default {
mounted() { mounted() {
this.selectedData = deepClone(this.addGoodsRow?.goodsData) this.selectedData = deepClone(this.addGoodsRow?.goodsData)
console.log(this.selectedData)
this.getSelectingList() this.getSelectingList()
}, },
methods: { methods: {
selectable(row) {
// 每个服务项目code只能选中一个 按等级和年限区分
if (row.status == 1) {
return true
} else {
return false
}
},
recoverySelection() { recoverySelection() {
var exitIds = this.selectedData.map((item) => item.merchantGoodsCode) var exitIds = this.selectedData.map((item) => item.merchantGoodsCode)
this.selectingData.forEach((item) => { this.selectingData.forEach((item) => {
exitIds.includes(item.merchantGoodsCode) && if (exitIds.includes(item.merchantGoodsCode)) {
this.$refs.seletingTable.toggleRowSelection(item, true) this.$nextTick(() => {
this.$refs.seletingTable.toggleRowSelection(item, true)
})
}
}) })
}, },
getSelectingList() { getSelectingList() {
...@@ -161,7 +156,9 @@ export default { ...@@ -161,7 +156,9 @@ export default {
(item) => item.merchantGoodsCode !== row.merchantGoodsCode (item) => item.merchantGoodsCode !== row.merchantGoodsCode
) )
const obj = this.selectingData.find((v) => v.merchantGoodsCode == row.merchantGoodsCode) const obj = this.selectingData.find((v) => v.merchantGoodsCode == row.merchantGoodsCode)
this.$refs.seletingTable.toggleRowSelection(obj) this.$nextTick(() => {
this.$refs.seletingTable.toggleRowSelection(obj)
})
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val this.currentPage = val
...@@ -189,6 +186,9 @@ export default { ...@@ -189,6 +186,9 @@ export default {
display: flex; display: flex;
.tableBox { .tableBox {
flex: 1; flex: 1;
.gray{
color: #66666642;
}
} }
} }
.service-store .appliedGoods .el-table .cell, .service-store .appliedGoods .el-table .cell,
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
}, },
// 选择职级后将列表顺序排序 // 选择职级后将列表顺序排序
handleSelect() { handleSelect() {
// this.infoData.campusList?.sort((a, b) => a.jobType - b.jobType) this.infoData.campusList?.sort((a, b) => a.jobType - b.jobType)
}, },
validateCustomForm() { validateCustomForm() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
getIncentivePoolDetailApi({ id: this.detailRow.id }).then(res => { getIncentivePoolDetailApi({ id: this.detailRow.id }).then(res => {
if (res) { if (res) {
res.commissionMonthStr = res?.commissionMonth ? res?.commissionMonth.split('-')[1] : '-' res.commissionMonthStr = res?.commissionMonth ? res?.commissionMonth.split('-')[1] : '-'
res.jobTypeStr = filterStr(res?.jobType, staffLevelList) res.jobTypeStr = filterStr(res?.jobType, staffLevelList, res?.hireType)
} }
this.detailInfo = res || {} this.detailInfo = res || {}
}) })
......
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
prop: 'jobType', prop: 'jobType',
width: 120, width: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
return filterStr(cellValue.jobType, this.baseData.jobTypeList) return filterStr(cellValue.jobType, this.baseData.jobTypeList, cellValue.hireType)
} }
}, { }, {
label: '门店', label: '门店',
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
label: '职级', label: '职级',
prop: 'jobType', prop: 'jobType',
formatter: (cellValue) => { formatter: (cellValue) => {
return filterStr(cellValue.jobType, this.baseData.jobTypeList) return filterStr(cellValue.jobType, this.baseData.jobTypeList, cellValue.hireType)
} }
}, { }, {
label: '支出时间', label: '支出时间',
......
...@@ -166,6 +166,13 @@ export default { ...@@ -166,6 +166,13 @@ export default {
}) })
return true return true
} }
if (selectedData?.length > 20) {
return this.$message({
message: '关联门店最多20个',
type: 'warning',
showClose: true
})
}
selectedData.forEach(item => { selectedData.forEach(item => {
if (!item.goodsData?.length) item.goodsData = [] if (!item.goodsData?.length) item.goodsData = []
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!