|
@@ -67,7 +67,7 @@
|
|
|
|
|
|
<view class="font-title">服务价格(<text class="activeColor">{{ serviceKeys.threeKeyname ||
|
|
|
serviceKeys.itemKeyname ||
|
|
|
- serviceKeys.classKeyname }}</text>)</view>
|
|
|
+ serviceKeys.classKeyname }}</text>){{ serviceKeys.price }}</view>
|
|
|
<view class="service-list price-box">
|
|
|
<up-input v-model="serviceKeys.price"
|
|
|
:placeholder="min_max_price.minPrice && min_max_price.maxPrice ? `${min_max_price.minPrice}-${min_max_price.maxPrice}` : '请设置服务价格'"
|
|
@@ -114,7 +114,7 @@ import FontTitle from "@/pages_home/components/font-title/index.vue";
|
|
|
import CustForm from "@/pages_home/components/cust-form/index";
|
|
|
import UpdataImgs from "@/pages_home/components/updata-imgs/index.vue";
|
|
|
import { column } from "./data";
|
|
|
-import { add, getVolunteerInfo,updateInfo } from "@/api/volunteer";
|
|
|
+import { add, getVolunteerInfo, updateInfo } from "@/api/volunteer";
|
|
|
import { computed } from 'vue';
|
|
|
import { getTreeList } from '@/api/volunteer'
|
|
|
|
|
@@ -357,17 +357,7 @@ function submitForm() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- const parmas = {
|
|
|
- serviceCategory: data.value.key,
|
|
|
- ...file_url,
|
|
|
- businessManagementId: serviceKeys.threeKey || serviceKeys.itemKey || serviceKeys.classKey,
|
|
|
- businessPrice: serviceKeys.price,
|
|
|
- businessDuration: Number(serviceKeys.time),
|
|
|
- businessUnit: serviceKeys.businessUnit,
|
|
|
- minQuantity: Number(serviceKeys.minQuantity),
|
|
|
- businessDescribe: serviceKeys.businessDescribe,
|
|
|
-
|
|
|
- };
|
|
|
+ let parmas = {};
|
|
|
for (const key in res) {
|
|
|
parmas[key] = key == 'sex' ? sex_status[res[key]] : res[key];
|
|
|
if (key === 'businessManagementIdkey') {
|
|
@@ -379,10 +369,22 @@ function submitForm() {
|
|
|
parmas[key] = Number(res[key])
|
|
|
}
|
|
|
}
|
|
|
+ parmas = {
|
|
|
+ ...parmas,
|
|
|
+ serviceCategory: data.value.key,
|
|
|
+ ...file_url,
|
|
|
+ businessManagementId: serviceKeys.threeKey || serviceKeys.itemKey || serviceKeys.classKey,
|
|
|
+ businessPrice: serviceKeys.price,
|
|
|
+ businessDuration: Number(serviceKeys.time),
|
|
|
+ businessUnit: serviceKeys.businessUnit,
|
|
|
+ minQuantity: Number(serviceKeys.minQuantity),
|
|
|
+ businessDescribe: serviceKeys.businessDescribe,
|
|
|
+ }
|
|
|
|
|
|
- console.log('提交', parmas);
|
|
|
-
|
|
|
- const btnSubmit = isAdd.value ? add:updateInfo;
|
|
|
+ console.log('提交', parmas,serviceKeys.price);
|
|
|
+ // return;
|
|
|
+ const btnSubmit = isAdd.value ? add : updateInfo;
|
|
|
+
|
|
|
// 提交接口,注册人员
|
|
|
const submit_res = await btnSubmit(parmas);
|
|
|
if (submit_res.code == 200) {
|
|
@@ -505,21 +507,20 @@ function servesInit() {
|
|
|
const row = handlerList(serviceOptions.value, obj.itemKey)
|
|
|
serviceItems2.value = row.children;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ handlerList(serviceOptions.value, serviceKeys.itemKey)
|
|
|
+
|
|
|
Object.assign(serviceKeys, {
|
|
|
time: details.value.businessDuration,//时间
|
|
|
price: details.value.businessPrice,//价格
|
|
|
...obj,
|
|
|
- businessPrice: details.value.price,
|
|
|
- businessDuration: details.value.time,
|
|
|
businessUnit: details.value.businessUnit,
|
|
|
minQuantity: details.value.minQuantity,
|
|
|
businessDescribe: details.value.businessDescribe,
|
|
|
})
|
|
|
|
|
|
|
|
|
- handlerList(serviceOptions.value, serviceKeys.itemKey)
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
async function getRegister() {
|
|
|
|