This commit is contained in:
曹辉 2023-04-03 16:12:34 +08:00
parent 7d585b9902
commit 63acd6ed0d
3 changed files with 43 additions and 7 deletions

View File

@ -227,11 +227,11 @@ export default {
res.data.disablingCondition == 'NOT_DISABLED' ? res.data.disablingCondition = '未失能' : ''
if (row.orderStatus == 'EVALUATED') {
if (res.data) {
if (res.data[0].evaluateSatisfaction == 'COMMONLY') {
if (res.data.evaluateSatisfaction == 'COMMONLY') {
this.query.evaluateSatisfaction = '一般'
} else if (res.data[0].evaluateSatisfaction == 'SATISFIED') {
} else if (res.data.evaluateSatisfaction == 'SATISFIED') {
this.query.evaluateSatisfaction = '满意'
} else if (res.data[0].evaluateSatisfaction == 'DISSATISFIED') {
} else if (res.data.evaluateSatisfaction == 'DISSATISFIED') {
this.query.evaluateSatisfaction = '不满意'
}
this.loading = false

View File

@ -309,9 +309,9 @@
<el-table
ref="nurseStationItemPrices"
:data="form.nurseStationItemPrices"
style="margin-top: 20px; width: 900px"
style="margin-top: 20px; width: 1050px"
>
<el-table-column property="serveDurationUnit" label="服务时长和单位" align="center">
<el-table-column property="serveDurationUnit" label="服务时长和单位" align="center" width="120">
<template slot-scope="scope">
<el-input v-model="scope.row.serveDurationUnit" maxlength="6"></el-input>
</template>
@ -320,7 +320,7 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.price"
placeholder="小数点后两位(元)"
placeholder="最多小数点后两位(元)"
type="number"
min="0"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 6) { value = value.slice(0, 6) }"
@ -332,7 +332,33 @@
<el-input v-model="scope.row.description" maxlength="300"></el-input>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<el-table-column property="description" label="佣金金额" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.commissionAmount"
maxlength="300"
placeholder="最多小数点后两位(元)"
@input="commissionAmountinput(scope.row)"
type="number"
min="0"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 6) { value = value.slice(0, 6) }"
></el-input>
</template>
</el-table-column>
<el-table-column property="description" label="佣金比例(%)" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.commissionRate"
maxlength="300"
@input="commissionRateoninput(scope.row)"
placeholder="最多小数点后两位(%)"
type="number"
min="0"
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 6) { value = value.slice(0, 6) }"
></el-input>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="100">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="addnurseStationItemPrices">新增</el-button>
<el-button size="mini" type="text" @click="delnurseStationItemPrices(scope.row)">删除</el-button>

View File

@ -197,6 +197,16 @@ export default {
this.classifylistInfo();
},
methods: {
commissionAmountinput(e) {
if (e.commissionRate) {
e.commissionAmount = ''
}
},
commissionRateoninput(e) {
if (e.commissionAmount) {
e.commissionRate = ''
}
},
//点击上架
upwhetherShelf(row) {
let shelfStatus = null