提交 3e41075f 编写于 作者: vino's avatar vino

修改数据回显

上级 d4de6f5f
...@@ -532,6 +532,9 @@ export default { ...@@ -532,6 +532,9 @@ export default {
}, },
setPrice(row, batchUpdatePriceFlag){ setPrice(row, batchUpdatePriceFlag){
if(this.$refs.setPriceForm) {
this.$refs.setPriceForm.resetFields()
}
this.batchUpdatePriceFlag = batchUpdatePriceFlag; this.batchUpdatePriceFlag = batchUpdatePriceFlag;
// this.setPriceVisible = true // this.setPriceVisible = true
this.setAddVisible = true; this.setAddVisible = true;
...@@ -586,9 +589,6 @@ export default { ...@@ -586,9 +589,6 @@ export default {
vm.model.imgPrice2 = vm.priceNum(row.imgPrice); vm.model.imgPrice2 = vm.priceNum(row.imgPrice);
} }
// if(this.$refs.setPriceForm) {
// this.$refs.setPriceForm.resetFields()
// }
// this.getProfit(row); // this.getProfit(row);
}, },
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<el-table-column prop="serviceName" label="服务名称" min-width="100" align="left"></el-table-column> <el-table-column prop="serviceName" label="服务名称" min-width="100" align="left"></el-table-column>
<el-table-column prop="doctorName" label="服务医生" min-width="120" align="left"></el-table-column> <el-table-column prop="doctorName" label="服务医生" min-width="120" align="left"></el-table-column>
<el-table-column prop="mobilePhone" label="联系电话" min-width="120" align="left"></el-table-column> <el-table-column prop="mobilePhone" label="联系电话" min-width="120" align="left"></el-table-column>
<el-table-column prop="price" label="价格(元)" min-width="60" align="left"> <el-table-column prop="price" label="价格(元)" min-width="80" align="left">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.price | rounding}}</span> <span>{{scope.row.price | rounding}}</span>
</template> </template>
...@@ -226,10 +226,10 @@ export default { ...@@ -226,10 +226,10 @@ export default {
totalRows: 0, totalRows: 0,
setPriceRules: { setPriceRules: {
price: [ price: [
{required: true, message: "请输入", trigger: 'blur'} {required: true, message: "请输入问诊价格", trigger: 'blur'}
], ],
commissionType: [ commissionType: [
{required: true, message: "请输入", trigger: 'blur'} {required: true, message: "请选择接诊服务费结算方式", trigger: 'blur'}
] ]
}, },
liveBack: false, liveBack: false,
...@@ -356,7 +356,7 @@ export default { ...@@ -356,7 +356,7 @@ export default {
} }
if(this.setPriceForm.commissionType == 2 && this.setPriceForm.commissionPrice2 == undefined ){ if(this.setPriceForm.commissionType == 2 && this.setPriceForm.commissionPrice2 == undefined ){
this.$message({ this.$message({
message: '请输入固定分佣', message: '请输入固定分佣金额',
type: "warning" type: "warning"
}); });
return; return;
...@@ -611,6 +611,9 @@ export default { ...@@ -611,6 +611,9 @@ export default {
}) })
}, },
setPrice(row, batchUpdatePriceFlag){ setPrice(row, batchUpdatePriceFlag){
if(this.$refs.setPriceForm) {
this.$refs.setPriceForm.resetFields()
}
this.batchUpdatePriceFlag = batchUpdatePriceFlag; this.batchUpdatePriceFlag = batchUpdatePriceFlag;
this.setPriceForm.doctorId = row.doctorId; this.setPriceForm.doctorId = row.doctorId;
this.setPriceForm.serviceType = row.serviceType; this.setPriceForm.serviceType = row.serviceType;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册