Browse Source

项目治疗时长设置

pull/1/head
kuaileWu 2 weeks ago
parent
commit
61d09a88a4
  1. 2
      src/components/BatchProject.vue
  2. 9
      src/views/HosInformation.vue

2
src/components/BatchProject.vue

@ -17,7 +17,7 @@
</GuipFormItem>
<GuipFormItem class=" form-special" label="录入项目">
<GuipTextarea slot="formDom" v-model="form.project_contents" prop="project_contents" :rules="[{ required: true, message: '请填写项目信息', trigger: 'blur' }]" width="100%" height="262px"
autosize :placeholder="'例如:\n推拿 168\n针灸 100'" />
autosize :placeholder="'例如:\n推拿(项目名称) 168(项目价格) 30(项目治疗时长(单位:分钟),没有时长时该项填写0) \n针灸 100 0'" />
</GuipFormItem>
</el-form>
</div>

9
src/views/HosInformation.vue

@ -195,6 +195,11 @@
<GuipInput width="90%" v-model="scope.row.price" @change="changePrice(scope.row)" />
</template>
</el-table-column>
<el-table-column prop="price" label="治疗时长(分钟)" min-width="155">
<template slot-scope="scope">
<GuipInput width="90%" v-model="scope.row.treat_time" @change="changeTreatTime(scope.row)" />
</template>
</el-table-column>
<el-table-column prop="classify_id" label="分组" min-width="155">
<template slot-scope="scope">
<GuipSelect width="90%" v-model="scope.row.classify_id"
@ -697,6 +702,10 @@ export default {
changePrice(row) {
this.editorProjectInfo({ price: row.price, project_id: row.id })
},
//
changeTreatTime(row) {
this.editorProjectInfo({ treat_time: row.treat_time, project_id: row.id })
},
//
changeClassify(row) {
this.editorProjectInfo({ classify_id: row.classify_id, project_id: row.id })

Loading…
Cancel
Save