12
wwl
2025-01-02 01217cd5e6695c0651554a2355695f0ce60bb67d
src/views/system/comp/index.vue
@@ -193,30 +193,17 @@
                </el-col>
              </el-form-item>
              <el-form-item label="原价" prop="price">
                <el-input
                  v-model="forms.price"
                  placeholder="请输入原价"
                  style="width: 130px"
                />
                <el-input v-model="forms.price" placeholder="请输入原价" style="width: 130px" />
              </el-form-item>
              <el-form-item label="折扣" prop="limits">
                <el-input
                  v-model="forms.limits"
                  placeholder="请输入折扣"
                  style="width: 130px"
                  @change="numberChange"
                />
                <el-input v-model="forms.limits" placeholder="请输入折扣" style="width: 130px" @change="numberChange" />
                <!-- :disabled="isfalse" -->
              </el-form-item>
              <el-form-item label="优惠价" prop="ysPrice">
                <el-input
                  v-model="forms.ysPrice"
                  placeholder="请输入应收"
                  style="width: 120px"
                />
                <el-input v-model="forms.ysPrice" placeholder="请输入应收" style="width: 120px" />
              </el-form-item>
            </el-form>
            <el-row :gutter="10" class="mb8">
@@ -224,8 +211,7 @@
                <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleGroup">保存</el-button>
              </el-col>
              <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singlegg"
                  @click="xiangmuWh">项目维护</el-button>
                <el-button type="primary" icon="el-icon-edit" size="mini" @click="xiangmuWh">项目维护</el-button>
              </el-col>
              <el-col :span="1.5">
                <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singlegg"
@@ -360,7 +346,7 @@
              </el-form-item>
            </el-form>
            <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne"
              height="478"  v-if="isTableVisible" >
              height="478" v-if="isTableVisible">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column label="序号" align="center" prop="newID" width="50px" />
              <el-table-column label="套餐名称/价格/元" align="center" prop="pacName">
@@ -384,28 +370,14 @@
              注释:鼠标左键双击选中行可删除
            </div> -->
            <!--       @row-dblclick="dbclick" -->
            <el-table
              border
              v-loading="loading"
              :data="OnenewpacName"
              :row-class-name="tableRowClassName"
              height="478"
            >
              <el-table-column
                label="项目名称/价格/元"
                align="center"
                prop="proName"
              >
            <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478">
              <el-table-column label="项目名称/价格/元" align="center" prop="proName">
                <template slot-scope="scope">
                  {{ scope.row.proName + "/" + scope.row.proPrice }}
                </template>
              </el-table-column>
              <el-table-column
                label="原价"
                align="center"
                prop="proPrice"
              ></el-table-column>
              <el-table-column label="原价" align="center" prop="proPrice"></el-table-column>
              <el-table-column label="操作" align="center" width="68">
                <template slot-scope="scope">
                  <el-button size="mini" type="text" icon="el-icon-delete"
@@ -432,23 +404,11 @@
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              ref="tre"
              :data="Treedata"
              @selection-change="handleChangesingle"
              height="478"
              style="width: 70%"
            >
            <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle"
              height="478" style="width: 70%">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column label="项目名称" align="center" prop="proName" width="130" />
              <el-table-column
                label="项目价格/元"
                align="center"
                prop="proPrice"
                width="100"
              />
              <el-table-column label="项目价格/元" align="center" prop="proPrice" width="100" />
            </el-table>
          </el-col>
        </el-row>
@@ -771,7 +731,7 @@
    this.getList();
  },
  methods: {
    getList() {
      this.$nextTick(() => {
        this.$refs.inputName.focus();
@@ -779,7 +739,7 @@
        (this.loading = true);
      listComp(this.queryParams).then((response) => {
        this.compList = response.rows;
        response.rows.forEach((item, index) => {
          item.newID =
            (this.queryParams.pageNum - 1) * this.queryParams.pageSize +
@@ -1043,7 +1003,7 @@
      }
      getProjectList().then((response) => {
        this.Treedata = response.data;
      });
    },
@@ -1303,22 +1263,23 @@
      this.OnenewpacName = [];
      this.queryParams.price = 0;
      this.loading = true;
      let id = this.groupList[0].id;
      if (this.groupList[0]) {
        let id = this.groupList[0].id || '';
        getDetails(id).then((res) => {
          this.OnenewpacName = res.data.groupingProList;
          this.OnenewpacName.forEach((item, index) => {
            this.queryParams.price += item.proPrice;
          });
        });
      }
      // console.log(this.groupList[0].id, 9966);
      getconfigKey("sfzstc").then((res) => {
        this.sfzs = res.msg;
      });
      getDetails(id).then((res) => {
        this.OnenewpacName = res.data.groupingProList;
        this.OnenewpacName.forEach((item, index) => {
          this.queryParams.price += item.proPrice;
        });
        // return this.OnenewpacName.forEach((item) => {
        //   this.queryParams.price += item.proPrice;
        // });
      });
      if (this.forms.sex) {
        deptTreeSelect(this.forms.sex).then((response) => {
          // 套餐名称