|
@@ -25,7 +25,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_phone.base_price" type="digit" :border="true" placeholder="请输入金额" />
|
|
|
|
|
|
+ <u-input v-model="form.is_phone.base_price" type="number" :border="true" placeholder="请输入金额" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 步进价格 -->
|
|
<!-- 步进价格 -->
|
|
@@ -37,7 +37,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_phone.step_price" type="digit" :border="true" placeholder="请输入金额" />
|
|
|
|
|
|
+ <u-input v-model="form.is_phone.step_price" type="number" :border="true" placeholder="请输入金额" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 服务时间 -->
|
|
<!-- 服务时间 -->
|
|
@@ -92,7 +92,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_phone.person" type="digit" :border="true" placeholder="请输入人次" />
|
|
|
|
|
|
+ <u-input v-model="form.is_phone.person" type="number" :border="true" placeholder="请输入人次" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -115,7 +115,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_chat.base_price" type="digit" :border="true" placeholder="请输入金额" />
|
|
|
|
|
|
+ <u-input v-model="form.is_chat.base_price" type="number" :border="true" placeholder="请输入金额" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 服务时间 -->
|
|
<!-- 服务时间 -->
|
|
@@ -167,7 +167,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_chat.person" type="digit" :border="true" placeholder="请输入人次" />
|
|
|
|
|
|
+ <u-input v-model="form.is_chat.person" type="number" :border="true" placeholder="请输入人次" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -193,7 +193,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<!-- 右 -->
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-input v-model="form.is_appoint.hospitalList[hospitalcurrent].appoint_price" type="digit" :border="true"
|
|
|
|
|
|
+ <u-input v-model="form.is_appoint.hospitalList[hospitalcurrent].appoint_price" type="number" :border="true"
|
|
placeholder="请输入金额" />
|
|
placeholder="请输入金额" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -1172,10 +1172,11 @@
|
|
break;
|
|
break;
|
|
case 2: //门诊的保存
|
|
case 2: //门诊的保存
|
|
if (that.showList[2].flag) {
|
|
if (that.showList[2].flag) {
|
|
- that.form.is_appoint.hospitalList.forEach(item => {
|
|
|
|
- console.log(item)
|
|
|
|
|
|
+
|
|
|
|
+ let item = that.form.is_appoint.hospitalList[this.hospitalcurrent]
|
|
|
|
+ console.log("item",item.appoint_price == '')
|
|
//基础价格
|
|
//基础价格
|
|
- if (item.appoint_price == "") {
|
|
|
|
|
|
+ if (item.appoint_price == '') {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '请填写' + item.name + '的基础价格,否则无法保存',
|
|
title: '请填写' + item.name + '的基础价格,否则无法保存',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
@@ -1231,7 +1232,7 @@
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
this.setMenData()
|
|
this.setMenData()
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -1377,7 +1378,7 @@
|
|
let that = this;
|
|
let that = this;
|
|
let forms = JSON.parse(JSON.stringify(that.form));
|
|
let forms = JSON.parse(JSON.stringify(that.form));
|
|
let newMenList = [];
|
|
let newMenList = [];
|
|
- for (let i = 0; i < forms.is_appoint.hospitalList.length; i++) {
|
|
|
|
|
|
+ let i = this.hospitalcurrent
|
|
newMenList.push({
|
|
newMenList.push({
|
|
"base_price": forms.is_appoint.hospitalList[i].appoint_price,
|
|
"base_price": forms.is_appoint.hospitalList[i].appoint_price,
|
|
"service_times": forms.is_appoint.hospitalList[i].service_times,
|
|
"service_times": forms.is_appoint.hospitalList[i].service_times,
|
|
@@ -1394,7 +1395,7 @@
|
|
"show_days": forms.is_appoint.hospitalList[i].show_days,
|
|
"show_days": forms.is_appoint.hospitalList[i].show_days,
|
|
"org_id": forms.is_appoint.hospitalList[i].id,
|
|
"org_id": forms.is_appoint.hospitalList[i].id,
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+
|
|
console.log("保存门诊shez",newMenList)
|
|
console.log("保存门诊shez",newMenList)
|
|
let a = ({'is_appoint':newMenList})
|
|
let a = ({'is_appoint':newMenList})
|
|
if(typeof a == 'object'){
|
|
if(typeof a == 'object'){
|