123
wwl
2025-01-08 1e20b2b6fa36181a16cf09e54aa8eb0d13cf303e
src/views/system/package/index.vue
@@ -432,6 +432,22 @@
            style="width: 150px"
          />
        </el-form-item>
        <el-form-item label="体检类别" prop="tjCategory">
          <el-select
            v-model="form.tjCategory"
            placeholder="请选择体检类别"
            style="width: 150px"
            filterable
            clearable
          >
            <el-option
              v-for="dict in dict.type.dict_tjtype"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <div v-if="!isCollapsed" style="display: flex">
          <div>
@@ -499,8 +515,8 @@
        </el-table-column>
      </el-table> -->
      <el-row :gutter="20">
        <el-col :span="7">
      <el-row :gutter="11">
        <el-col :span="11">
          <div
            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
          >
@@ -525,7 +541,7 @@
            </el-tree>
          </div>
        </el-col>
        <el-col :span="6">
       <!--  <el-col :span="6">
          <div
            style="text-align: center; margin-bottom: 10px; margin-top: 10px"
          >
@@ -547,27 +563,27 @@
            >
            </el-tree>
          </div>
        </el-col>
        </el-col> -->
        <el-col :span="11">
          <div class="grid-content bg-purple">
            <div
              style="text-align: center; margin-bottom: 10px; margin-top: 10px"
              style="text-align: center; margin-bottom: 10px; margin-top: 10px; margin-left: 16%;"
            >
              已选项目列表
            </div>
            <el-table
              :data="DataList"
              border
              style="width: 100%"
              style="width: 80%; margin-left: 18%;"
              height="400"
              :span-method="objectSpanMethod"
            >
              <el-table-column prop="propinName" label="检查项目">
              <el-table-column prop="propinName" label="检查项目" >
              </el-table-column>
              <el-table-column prop="proPrice" label="原价" width="56px">
              <el-table-column prop="proPrice" label="原价" align="center" >
              </el-table-column>
              <el-table-column prop="proName" label="明细项目" width="260px">
              </el-table-column>
              <!-- <el-table-column prop="proName" label="明细项目" width="260px">
              </el-table-column> -->
              <!-- <el-table-column
                label="操作"
@@ -587,7 +603,7 @@
                </template> 
              </el-table-column>-->
            </el-table>
            <div>合计:{{ pics }}元</div>
            <h3 style="font-weight: 600">合计:{{ pics }}元</h3>
          </div>
        </el-col>
      </el-row>
@@ -640,7 +656,7 @@
import { Message } from "element-ui";
export default {
  name: "Package",
  dicts: ["sys_normal_disable", "sys_yes_no"],
  dicts: ["sys_normal_disable", "sys_yes_no", "dict_tjtype"],
  components: { Packages },
  data() {
    let checkPhoneNum = (rule, value, callback) => {
@@ -765,7 +781,12 @@
    },
    filterNode(value, data) {
      if (!value) return true;
      return data.proName.indexOf(value) !== -1;
      // return data.proName.indexOf(value) !== -1;
      if(data.proName.indexOf(value) !== -1){
        return data.proName.indexOf(value) !== -1;
      }else{
        return data.proEngName.indexOf(value) !== -1;
      }
    },
    /** 查询体检套餐列表 */
    getList() {
@@ -935,6 +956,7 @@
        this.form.keywords = this.form.keywords.slice(0, -1);
        this.form.keywords = this.form.keywords.split(",");
        this.DataList = [];
        // this.pics = 0;
        this.checkedkey = [];
        this.checkedListkey = [];
        this.getDataList();
@@ -1077,15 +1099,14 @@
                    item2.disabled = true;
                    this.checkedListkey.push(item2.proId);
                    this.DataList.push(item2);
                    this.pics = 0;
                    if (this.DataList.length != 0) {
                      this.DataList.forEach((item) => {
                        this.pics += item.proPrice;
                        if (item.proParentId == item1.proId) {
                          item.propinName = item1.proName;
                          item.propinPrice = item1.proPrice;
                        }
                      });
                      this.pics = 0;
                      this.DataList.forEach((item) => {
                        this.pics += item.proPrice;
                      });
@@ -1108,6 +1129,7 @@
                item.propinName = this.Treedata[0].proName;
                item.propinPrice = this.Treedata[0].proPrice;
              });
              this.pics = 0;
              this.DataList.forEach((item) => {
                this.pics += item.proPrice;
              });