su
su1124
2024-04-26 00212ed8e808fc7b76c04389224e65f27f074fb2
src/views/system/indrefund/index.vue
@@ -32,21 +32,22 @@
            <el-table v-loading="loading" :data="tableList" @selection-change="handleSelect" border max-height="720px"
                :row-style="changRed">
                <el-table-column type="selection" width="55" align="center" />
                <el-table-column label="姓名" align="center" prop="customer.cusName" width="90px" />
                <el-table-column label="手机号" align="center" prop="customer.cusPhone" width="110px"
                    :show-overflow-tooltip="true"></el-table-column>
                <el-table-column label="订单流水号" align="center" prop="waterId" width="194px" />
                <el-table-column label="体检项目" align="center" prop="tjProName" width="120px" :show-overflow-tooltip="true" />
                <el-table-column label="应收金额" align="center" prop="copeWith" width="90px" />
                <el-table-column label="实收金额" align="center" prop="paidIn" width="80px" />
                <el-table-column label="付款类型" align="center" prop="payType" width="80px">
                <el-table-column label="姓名" align="center" prop="customer.cusName"  />
                <el-table-column label="手机号" align="center" prop="customer.cusPhone"
                    ></el-table-column>
                    <!-- :show-overflow-tooltip="true" -->
                <el-table-column label="订单流水号" align="center" prop="waterId"  />
                <el-table-column label="体检项目" align="center" prop="tjProName" />
                <el-table-column label="应收金额" align="center" prop="copeWith"  />
                <el-table-column label="实收金额" align="center" prop="paidIn"  />
                <el-table-column label="付款类型" align="center" prop="payType">
                    <template slot-scope="scope">
                        <dict-tag :options="dict.type.dict_pay_type" :value="scope.row.payType" />
                    </template>
                </el-table-column>
                <el-table-column label="收费员" align="center" prop="updateBy" width="100px" />
                <el-table-column label="收退时间" align="center" prop="updateTime" width="160px" />
                <el-table-column fixed="right" label="操作" align="center" class-name="small-padding " width="100px"
                <el-table-column label="收费员" align="center" prop="updateBy"  />
                <el-table-column label="收退时间" align="center" prop="updateTime"  />
                <el-table-column fixed="right" label="操作" align="center" class-name="small-padding"
                    v-if="queryParams.type == '4'">
                    <template slot-scope="scope">
                        <el-button size="mini" type="text" @click="handlerefund(scope.row)"
@@ -107,6 +108,17 @@
    name: "Examcharge",
    data() {
        let checkPhoneNum = (rule, value, callback) => {
         console.log( value)
      let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
      if (value == "" && value == undefined && !value) {
        return callback('');
      }  else if(value != undefined && value != ""){
        return callback();
      }else if (!patter.test(value)) {
        return callback('');
      }
    };
        return {
            tjNumbers: "",
            // 遮罩层
@@ -174,12 +186,12 @@
            },
            // 表单校验
            rules: {
                name: [{ required: true, message: "", trigger: "change" }],
                name: [{ required: true, validator: checkPhoneNum,  trigger: "change" }],
                tjPro: [
                    { required: true, message: "", trigger: "change" },
                    { required: true, validator: checkPhoneNum,  trigger: "change" },
                ],
                type: [
                    { required: true, message: "", trigger: "blur" },
                    { required: true, validator: checkPhoneNum,  trigger: "blur" },
                ],
            },
        };
@@ -235,18 +247,18 @@
        },//清除定时器,以避免内存泄露。
        getList() {
            getTjPrice().then(res => {
                if (res.data) {
                    const r = /^\+?[0-9][0-9]*$/; //正整数(可以0打头)
                    if (r.test(res.data)) {
                        this.form.ys = res.data + ".00";
                    } else {
                        this.form.ys = res.data
                    }
            // getTjPrice().then(res => {
            //     if (res.data) {
            //         const r = /^\+?[0-9][0-9]*$/; //正整数(可以0打头)
            //         if (r.test(res.data)) {
            //             this.form.ys = res.data + ".00";
            //         } else {
            //             this.form.ys = res.data
            //         }
                    this.form.ss = this.form.ys
                }
            })
            //         this.form.ss = this.form.ys
            //     }
            // })
            getInfo(this.queryParams).then((response) => {
                this.hospName = response.hospName;
            });