qx
qx
2025-03-25 c6caf8f6717f29458add16427d29ea391ce9a0fb
qx
2个文件已修改
36 ■■■■■ 已修改文件
src/views/sampling/sampling/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sampling/sampling/index.vue
@@ -105,7 +105,7 @@
      </div>
      <div style="width: 50%">
        <!-- v-if="this.rightTabShow" -->
        <el-table v-loading="loading" :data="tableList" @selection-change="handleChange" :span-method="objectSpanMethod"
        <el-table v-if="tableList.length > 0" v-loading="loading" :data="tableList" @selection-change="handleChange" :span-method="objectSpanMethod"
          ref="tab1" :row-class-name="tableRowClassName" border height="520px">
          <el-table-column type="selection" width="40" align="center" />
          <!--  :selectable="selectEnable" -->
src/views/system/tijian/index.vue
@@ -1710,6 +1710,7 @@
        contactPhone: [
          {
            required: true,
            message: "",
            trigger: "blur",
          },
          {
@@ -1765,7 +1766,6 @@
    },
    /** 删除按钮操作 */
    handleDelete1(row) {
      // console.log(row);
      let data = {
        cusCardId: row.cusId,
        proId: row.parentProId,
@@ -1796,7 +1796,6 @@
        .catch(() => {});
    },
    handleManualChange(row) {
      console.log("这是主动出发的");
      this.updateProPrice(row);
    },
    validateDiscount(row) {
@@ -1827,7 +1826,6 @@
        (Math.floor((this.TotalPrice / this.TotalPrice1) * 100) / 100) * 10;
    },
    updateProPrice1(row) {
      console.log("进入了1");
      const ordPrice = new Big(row.ordPrice);
      const discount = new Big(row.discount);
      const result = ordPrice.times(discount.div(10));
@@ -2358,11 +2356,11 @@
              const newYsPrice = new Big(lastItem.nowPrice)
                .plus(diff)
                .toNumber();
              console.log(
                "hhh",
                this.tableData1[this.tableData1.length - 1].nowPrice,
                newYsPrice
              );
              // console.log(
              //   "hhh",
              //   this.tableData1[this.tableData1.length - 1].nowPrice,
              //   newYsPrice
              // );
              this.$set(
                this.tableData1[this.tableData1.length - 1],
                "nowPrice",
@@ -2380,7 +2378,10 @@
    /** 登记提交按钮 */
    submitForm() {
      let _this = this;
      this.$refs["form"].validate((valid) => {
      if(!this.form.cusPhone || !this.form.cusName){
        this.$message.warning("请填写必填项");
      }else{
        this.$refs["form"].validate((valid) => {
        if (valid) {
          // 创建表单数据的副本并去除空格
          const formData = { ...this.form };
@@ -2418,6 +2419,8 @@
          });
        }
      });
      }
    },
    getmailType() {
@@ -3008,6 +3011,11 @@
    Package() {
      this.activeNames = "first";
      if (this.form.cusSex == "男") {
            this.form.cusSex = 0;
          } else  if (this.form.cusSex == "女"){
            _this.form.cusSex = 1;
          }
      let cusSex = this.form.cusSex;
      this.datekey = Date.now();
      //全部套餐
@@ -3622,7 +3630,6 @@
            Price += item.nowPrice || 0; // 累加实收金额
            this.TotalPrice = Price.toFixed(2);
          });
          console.log(this.TotalPrice1, this.TotalPrice);
          // 计算折扣
          this.discount =
            this.TotalPrice1 > 0
@@ -3904,7 +3911,14 @@
    },
    listgetOrder(data) {
      const loading = this.$loading({
                        lock: true,
                        text: '正在加载中,请稍等!',
                        spinner: 'el-icon-loading',
                        background: 'rgba(0, 0, 0, 0.7)'
                    });
      getOrder(data).then((res) => {
        loading.close();
        this.$modal.msgSuccess("提交成功");
        //调接口显示导检单
        const tjNumber = res.msg;