瀏覽代碼

fix:暂存

Tang 2 年之前
父節點
當前提交
4909d9c2be

+ 36 - 26
src/components/audit/auditProgress.vue

@@ -10,32 +10,34 @@
       :confirmStatus="false"
     >
       <el-timeline>
-        <el-timeline-item timestamp="2018/4/12" placement="top" color="#0bbd87">
+        <el-timeline-item
+          v-for="(item, index) in checkLogVos"
+          :timestamp="$methodsTools.onlyForma(item.checkTime)"
+          placement="top"
+          :color="
+            item.checkSign === 1
+              ? '#409EFF'
+              : item.checkStatus === 1
+              ? '#67C23A'
+              : item.checkStatus === -1
+              ? '#F56C6C'
+              : '#e4e4e4'
+          "
+        >
           <el-card>
-            <h4>负责人:会计</h4>
-            <p>审核状态:已通过</p>
-            <p>审核意见:——————</p>
-          </el-card>
-        </el-timeline-item>
-        <el-timeline-item timestamp="2018/4/3" placement="top" color="#0bbd87">
-          <el-card>
-            <h4>负责人:财务</h4>
-            <p>审核状态:待审核</p>
-            <p>审核意见:——————</p>
-          </el-card>
-        </el-timeline-item>
-        <el-timeline-item timestamp="2018/4/2" placement="top">
-          <el-card>
-            <h4>负责人:总经理</h4>
-            <p>审核状态:未通过</p>
-            <p>审核意见:</p>
-          </el-card>
-        </el-timeline-item>
-        <el-timeline-item timestamp="2018/4/2" placement="top">
-          <el-card>
-            <h4>负责人:出纳</h4>
-            <p>审核状态:待支付</p>
-            <p>审核意见:</p>
+            <h4>负责人:{{ item.roleName }}</h4>
+            <p>
+              审核状态:{{
+                item.checkStatus === 0
+                  ? "待审核"
+                  : item.checkStatus === 1
+                  ? "已通过"
+                  : item.checkStatus === -1
+                  ? "未通过"
+                  : ""
+              }}
+            </p>
+            <p>审核意见:{{ item.checkReason }}</p>
           </el-card>
         </el-timeline-item>
       </el-timeline>
@@ -51,6 +53,12 @@ export default {
       type: Boolean,
       default: false,
     },
+    checkLogVos: {
+      type: Array,
+      default: () => {
+        return [];
+      },
+    },
   },
   data() {
     return {
@@ -61,7 +69,9 @@ export default {
   mounted() {},
 
   methods: {
-    init() {},
+    init() {
+      console.log(this.checkLogVos, "checkLogVos");
+    },
     close() {},
     submitForm() {
       this.isShow = false;

+ 59 - 34
src/components/audit/dislogSet.vue

@@ -6,13 +6,15 @@
       :title="ShowStatus() ? '付款审核' : '退款审核'"
       @close="close"
       @submit="submitForm"
-      :confirmName="form.step === 4 ? '确定支付' : '确定'"
+      :confirmName="form.checkType === 2 ? '确定支付' : '确定'"
     >
-      <template v-if="form.step !== 4">
-        <p style="margin-top: 0">下单时间:2023-12-12 16:16:10</p>
-        <p style="margin-top: 0" v-if="ShowStatus()">订单单号:123456789123</p>
+      <template v-if="form.checkType === 1">
+        <p style="margin-top: 0">申请时间:{{ $methodsTools.onlyForma(form.applyTime) }}</p>
+        <p style="margin-top: 0" v-if="ShowStatus()">
+          订单单号:{{ form.orderSn }}
+        </p>
         <p>
-          <span class="color_1890ff">机构名称:广东中正教育科技有限公司</span>
+          <span class="color_1890ff">{{form.applyName}}</span>
           <span v-if="!ShowStatus()">,发起退款申请</span>
         </p>
         <div class="bgc_pink" v-if="ShowStatus()">
@@ -21,29 +23,36 @@
           <p>剩余天数:10</p>
         </div>
         <div class="bgc_pink" v-else>
-          <p>本次退款金额:<span class="color_red">¥252.00</span></p>
-          <p>退款理由:321213561243891423</p>
+          <p>
+            本次退款金额:<span class="color_red">¥{{ form.refundFee }}</span>
+          </p>
+          <p>退款理由:{{ form.refundReason }}</p>
         </div>
-        <el-form :model="form" :rules="rules" ref="form" label-width="100px">
-          <el-form-item prop="data1" label="审核结果:">
-            <el-radio-group v-model="form.data1">
-              <el-radio label="同意" name="1"></el-radio>
-              <el-radio label="拒绝" name="0"></el-radio>
+        <el-form
+          :model="formData"
+          :rules="rules"
+          ref="formData"
+          label-width="100px"
+        >
+          <el-form-item prop="checkResult" label="审核结果:">
+            <el-radio-group v-model="formData.checkResult">
+              <el-radio label="1">同意</el-radio>
+              <el-radio label="-1">拒绝</el-radio>
             </el-radio-group>
           </el-form-item>
-          <el-form-item prop="data2" label="审核意见:">
+          <el-form-item prop="checkReason" label="审核意见:">
             <el-input
               type="textarea"
               placeholder="请输入审核意见"
-              v-model="form.data2"
+              v-model="formData.checkReason"
             ></el-input> </el-form-item
         ></el-form>
         <template slot="slotBtn">
           <el-button @click="auditProgress = true">审核进度</el-button>
         </template>
-        <audit-progress :auditProgress.sync="auditProgress"></audit-progress>
+        <audit-progress :auditProgress.sync="auditProgress" :checkLogVos="form.checkLogVos"></audit-progress>
       </template>
-      <template v-else>
+      <template v-if="form.checkType === 2">
         <em>收款信息:</em>
         <p>开户名称:<em>广东中正教育科技有限公司</em></p>
         <p>开户银行:<em>农业银行燕塘支行</em></p>
@@ -88,22 +97,32 @@ export default {
       type: Boolean,
       default: false,
     },
+    type: {
+      type: Number,
+      default: 0, //1付款  2退款
+    },
+    orderSn: {
+      type: String,
+      default: "",
+    },
   },
   data() {
     return {
       auditProgress: false,
+      formData: {
+        checkResult: "",
+        checkReason: "",
+      },
       form: {
-        type: 1, //1付款2退款
-        step: 4, //1会计2财务3总经理4出纳
-        payType: 1, //1微信支付2其他支付
-        data1: "",
-        data2: "",
+        checkLogVos: []
       },
       rules: {
-        data1: [
+        checkResult: [
           { required: true, message: "请选择审核结果", trigger: "change" },
         ],
-        data2: [{ required: true, message: "请输入审核意见", trigger: "blur" }],
+        checkReason: [
+          { required: true, message: "请输入审核意见", trigger: "blur" },
+        ],
       },
     };
   },
@@ -112,29 +131,29 @@ export default {
 
   methods: {
     ShowStatus() {
-      return this.form.type === 1 ? true : false;
+      return this.type === 1 ? true : false;
     },
     init() {
       this.resetForm();
       if (this.id) {
       }
+      this.$api.systemtoporderrefunddetail(this.orderSn).then((res) => {
+        this.form = res.data;
+      });
     },
     close() {
-      if (this.form.step !== 4) {
-        this.$refs["form"].resetFields();
+      if (this.form.checkType === 1) {
+        this.$refs["formData"].resetFields();
       }
     },
     resetForm() {
-      this.form = {
-        type: 1, //1付款2退款
-        step: 4, //1会计2财务3总经理4出纳
-        payType: 1, //1微信支付2其他支付
-        data1: "",
-        data2: "",
+      this.formData = {
+        checkResult: "",
+        checkReason: "",
       };
     },
     submitForm() {
-      if (this.form.step === 4) {
+      if (this.form.checkType === 2) {
         this.$confirm("确定支付账款吗?", "提示", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -150,8 +169,14 @@ export default {
           })
           .catch(() => {});
       } else {
-        this.$refs["form"].validate((valid) => {
+        this.$refs["formData"].validate((valid) => {
           if (valid) {
+            this.$api
+              .systemtoporderrefundcheck({
+                orderSn: this.orderSn,
+                ...this.formData,
+              })
+              .then((res) => {});
             this.isShow = false;
             this.$emit("search");
           } else {

+ 45 - 0
src/fxApi/orderManageList.js

@@ -24,5 +24,50 @@ export default {
             data
         })
     },
+    //获取订单详细信息
+    systemtoporderid(data) {
+        return request({
+            url: '/system/top/order/' + data,
+            method: 'get',
+        })
+    },
+    //获取订单商品信息
+    systemtopordergoodslist(data) {
+        return request({
+            url: '/system/top/order/goods/list',
+            method: 'get',
+            params: data
+        })
+    },
+    //订单退款审核
+    systemtoporderrefundcheck(data) {
+        return request({
+            url: '/system/top/order/refund/check',
+            method: 'post',
+            data
+        })
+    },
+    //订单退款审核详情
+    systemtoporderrefunddetail(data) {
+        return request({
+            url: '/system/top/order/refund/detail/' + data,
+            method: 'get',
+        })
+    },
+    //获取订单成本设置
+    systemtopordercost(data) {
+        return request({
+            url: '/system/top/order/cost/' + data,
+            method: 'get',
+        })
+    },
+    //批量订单成本修改
+    systemtoporderupdatecost(data) {
+        return request({
+            url: '/system/top/order/update/cost',
+            method: 'post',
+            data
+        })
+    },
     
 }

+ 180 - 32
src/views/financed/components/dislogOrderDetails.vue

@@ -8,8 +8,26 @@
       :isShowFooter="false"
     >
       <div class="head">
-        订单号:<span>1561653316541656313</span> 退款状态:<span>——</span>
-        审核状态:<span>已通过</span>
+        订单号:<span>{{ detailInfo.orderSn }}</span> 退款状态:<span>{{
+          refundStatus(detailInfo.refundStatus)
+        }}</span>
+        <span v-if="orderFrom === 3">审核状态:{{ checkStatus(detailInfo.checkStatus) }}</span>
+        <i v-if="ShowStatus" style="float: right">
+          <el-button
+            type="success"
+            size="small"
+            @click="success"
+            :disabled="orderFrom !== 3"
+            >审核通过</el-button
+          >
+          <el-button
+            type="danger"
+            size="small"
+            @click="error"
+            :disabled="orderFrom !== 3"
+            >审核不通过</el-button
+          >
+        </i>
       </div>
       <div class="mian">
         <el-descriptions class="margin-top" :column="3" border>
@@ -35,6 +53,13 @@
                 ]"
               >
               </el-image>
+              <div v-if="desc.type === 'options'">
+                <template v-for="(i, k) in desc.options">
+                  <span v-if="i.value === detailInfo[desc.key]">
+                    {{ i.label }}
+                  </span>
+                </template>
+              </div>
             </div>
             <div v-else>
               {{ detailInfo[desc.key] }}
@@ -52,7 +77,10 @@
           </el-descriptions-item>
         </el-descriptions>
       </div>
-      <student-details></student-details>
+      <student-details
+        :orderSn="orderSn"
+        :orderFrom="orderFrom"
+      ></student-details>
     </BaseDialog>
   </div>
 </template>
@@ -66,33 +94,71 @@ export default {
       type: Boolean,
       default: false,
     },
-    id: {
+    orderSn: {
       type: String,
-      default: "",
+    },
+    orderFrom: {
+      type: Number,
+    },
+    ShowStatus: {
+      type: Boolean,
+      default: false,
     },
   },
   data() {
     return {
       descList: [
-        { label: "机构名称", key: "123" },
-        { label: "业务员", key: "123" },
-        { label: "业务号", key: "123" },
-        { label: "业务分类", key: "123" },
-        { label: "订单来源", key: "123" },
-        { label: "申请时间", key: "123" },
-        { label: "盈亏(元)", key: "888" },
-        { label: "成本(元)", key: "123" },
-        { label: "合同金额(元)", key: "123" },
-        { label: "已收账款(元)", key: "123" },
-        { label: "申请退款", key: "123" },
-        { label: "已退账款(元)", key: "123" },
-        { label: "未收账款(元)", key: "999" },
+        { label: "机构名称", key: "createOrg" },
+        { label: "业务员", key: "createUsername" },
+        { label: "业务号", key: "createNo" },
+        { label: "业务分类", key: "businessNames" },
+        {
+          label: "订单来源",
+          key: "orderFrom",
+          type: "options",
+          options: [
+            {
+              label: "新系统C端订单",
+              value: 1,
+            },
+            {
+              label: "旧系统C端订单",
+              value: 2,
+            },
+            {
+              label: "旧系统B端订单",
+              value: 3,
+            },
+          ],
+        },
+        { label: "申请时间", key: "orderCost" },
+        { label: "盈亏(元)", key: "orderProfit" },
+        { label: "成本(元)", key: "orderCost" },
+        { label: "合同金额(元)", key: "orderPrice" },
+        { label: "已收账款(元)", key: "orderReceived" },
+        { label: "申请退款", key: "orderRefund" },
+        { label: "已退账款(元)", key: "orderRefunded" },
+        { label: "未收账款(元)", key: "orderUncollected" },
         { label: "实际账款(元)", key: "123" },
-        { label: "下单企业", key: "123" },
+        { label: "下单企业", key: "tenantName" },
         { label: "转账开户名", key: "123" },
         { label: "转账凭证", key: "avatar", type: "image" },
-        { label: "发票状态", key: "123" },
-        { label: "备注", key: "123" },
+        {
+          label: "发票状态",
+          key: "invoiceStatus",
+          type: "options",
+          options: [
+            {
+              label: "未开票",
+              value: 0,
+            },
+            {
+              label: "未开票",
+              value: 0,
+            },
+          ],
+        },
+        { label: "备注", key: "remark" },
         { label: "附件", type: "dowm" },
       ],
       detailInfo: {
@@ -104,28 +170,110 @@ export default {
   mounted() {},
 
   methods: {
+    //退款状态
+    refundStatus(i) {
+      var str = "";
+      switch (i) {
+        case 0:
+          str = "待审核";
+          break;
+        case 1:
+          str = "正常";
+          break;
+        case 2:
+          str = "未退款";
+          break;
+        case 3:
+          str = "已完成";
+          break;
+        case 4:
+          str = "未通过";
+          break;
+
+        default:
+          break;
+      }
+      return str;
+    },
+    //审核状态
+    checkStatus(i) {
+      var str = "";
+      switch (i) {
+        case 0:
+          str = "待审核";
+          break;
+        case 1:
+          str = "已通过";
+          break;
+        case 2:
+          str = "未通过";
+          break;
+        case 3:
+          str = "已撤销";
+          break;
+        default:
+          break;
+      }
+      return str;
+    },
     init() {
       this.getOrderDetail();
     },
-    getOrderDetail() {},
-    close() {
-      this.$refs["form"].resetFields();
+    getOrderDetail() {
+      this.$api.systemtoporderid(this.orderSn).then((res) => {
+        this.detailInfo = res.data;
+      });
     },
+    close() {},
     submit() {},
     submitForm() {
-      this.$refs["form"].validate((valid) => {
-        if (valid) {
-          this.isShow = false;
-          this.$emit("search");
-        } else {
-          return false;
-        }
-      });
+      this.isShow = false;
+      this.$emit("search");
+    },
+    success() {
+      this.$confirm("确定审核通过吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          this.$api
+            .systemtoporderrefundcheck({
+              checkResult: 1,
+              orderSn: this.orderSn,
+            })
+            .then((res) => {
+              this.$message.success("操作成功");
+            });
+        })
+        .catch(() => {});
+    },
+    error() {
+      this.$prompt("确定审核不通过吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        inputPlaceholder: "输入不通过原因",
+      })
+        .then(({ value }) => {
+          this.$api
+            .systemtoporderrefundcheck({
+              checkReason: value || "",
+              checkResult: -1,
+              orderSn: this.orderSn,
+            })
+            .then((res) => {
+              this.$message.success("操作成功");
+            });
+        })
+        .catch(() => {});
     },
   },
   computed: {
     isShow: {
       get() {
+        if (this.dialogVisible) {
+          this.init();
+        }
         return this.dialogVisible;
       },
       set(val) {

+ 121 - 18
src/views/financed/components/studentDetails.vue

@@ -4,16 +4,52 @@
       <el-tab-pane label="学员详情" name="1">
         <div style="margin-bottom: 10px">
           <!-- 搜索框 -->
+          <el-select
+            style="width: 230px; margin-right: 10px"
+            size="small"
+            v-model="formData.studyStatus"
+            clearable
+            placeholder="请选择学习状态"
+          >
+            <el-option
+              v-for="item in studyStatusList"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
+          <el-select
+            style="width: 230px; margin-right: 10px"
+            size="small"
+            v-model="formData.refundStatus"
+            clearable
+            placeholder="请选择退款状态"
+          >
+            <el-option
+              v-for="item in refundStatusList"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
           <el-input
             style="width: 230px; margin-right: 10px"
             size="small"
-            v-model="form.templateName"
-            placeholder="姓名/身份证号"
+            v-model="formData.userName"
+            placeholder="姓名"
           ></el-input>
-          <el-button size="small" type="primary" @click="search(form.goodsId)"
+          <el-input
+            style="width: 230px; margin-right: 10px"
+            size="small"
+            v-model="formData.userCard"
+            placeholder="身份证号"
+          ></el-input>
+          <el-button size="small" type="primary" @click="search"
             >查询</el-button
           >
-          <el-button size="small">重置</el-button>
+          <el-button size="small" @click="search('init')">重置</el-button>
         </div>
         <table-list
           :tableSets="tableSet1"
@@ -51,54 +87,96 @@ import tableList from "@/components/tableList";
 import pagination from "@/components/pagination";
 export default {
   name: "SaasMasterPlatformStudentDetails",
-
+  props: {
+    orderSn: {
+      type: String,
+    },
+    orderFrom: {
+      type: Number,
+    },
+  },
   data() {
     return {
-      form: {},
+      studyStatusList: [
+        {
+          label: "未开始",
+          value: 0,
+        },
+        {
+          label: "学习中",
+          value: 1,
+        },
+        {
+          label: "已结束",
+          value: 2,
+        },
+      ],
+      refundStatusList: [
+        {
+          label: "待审核",
+          value: 0,
+        },
+        {
+          label: "正常",
+          value: 1,
+        },
+        {
+          label: "未退款",
+          value: 2,
+        },
+        {
+          label: "已完成",
+          value: 3,
+        },
+        {
+          label: "未通过",
+          value: 4,
+        },
+      ],
       tableSet1: [
         {
           label: "姓名",
-          prop: "educationName",
+          prop: "userName",
           hidden: true,
         },
         {
           label: "身份证号",
-          prop: "businessName",
+          prop: "userCard",
           hidden: true,
         },
         {
           label: "手机号",
-          prop: "name",
+          prop: "userPhone",
           hidden: true,
         },
         {
           label: "课程",
-          prop: "specNumber",
+          prop: "goodsName",
           hidden: true,
         },
         {
           label: "专业",
-          prop: "specNumber",
+          prop: "majorName",
           hidden: true,
         },
         {
           label: "业务",
-          prop: "specNumber",
+          prop: "businessName",
           hidden: true,
         },
         {
           label: "原价(元)",
-          prop: "specNumber",
+          prop: "goodsPrice",
           hidden: true,
         },
         {
           label: "单价(元)",
-          prop: "specNumber",
+          prop: "goodsRealPrice",
           hidden: true,
         },
         {
           label: "学习状态",
-          prop: "specNumber",
+          prop: "studyStatus",
           hidden: true,
         },
       ],
@@ -161,13 +239,38 @@ export default {
       tabType: "1",
     };
   },
-
+  created() {
+    this.search("init");
+  },
   mounted() {},
 
   methods: {
-    search() {},
+    search(e) {
+      if (e === "init") {
+        this.formData = {
+          pageSize: 10,
+          pageNum: 1,
+          orderSn: this.orderSn,
+          orderFrom: this.orderFrom,
+        };
+      }
+      this.$api[
+        this.tabType === "1"
+          ? "systemtopordergoodslist"
+          : "systemtopordergoodslist"
+      ](this.formData).then((res) => {
+        if (this.tabType === "1") {
+          this.tableData1 = res.rows;
+          this.total = res.total;
+        }
+        if (this.tabType === "2") {
+          this.tableData2 = res.rows;
+          this.total = res.total;
+        }
+      });
+    },
     handleClick(tab) {
-      console.log(tab);
+      this.search("init");
     },
   },
   components: {

+ 26 - 4
src/views/financed/cost/dislogSet.vue

@@ -206,7 +206,7 @@ export default {
       type: Boolean,
       default: false,
     },
-    // 0 新增  1修改  2复制
+    // 0 新增  1修改  2复制  3订单成本设置  4批量设置
     type: {
       type: [String, Number],
       default: 0,
@@ -276,10 +276,22 @@ export default {
   methods: {
     init() {
       this.resetForm();
-      this.tpId && this.getCostDetail();
+      if (this.type === 3) {
+        this.getOrderCostDetail();
+      } else if (this.type === 4) {
+      } else {
+        this.tpId && this.getCostDetail();
+      }
       this.getCompanyList();
       this.getEduList();
     },
+    getOrderCostDetail() {
+      this.$api.systemtopordercost(this.tpId).then((res) => {
+        Object.keys(this.form).map((key) => {
+          this.form[key] = res.data[key];
+        });
+      });
+    },
     getCostDetail() {
       costDetail(this.tpId).then((res) => {
         if (this.type == 2) delete this.form["tpId"];
@@ -361,7 +373,15 @@ export default {
     submitForm() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
-          if (this.type !== 1) {
+          if (this.type === 3 || this.type === 4) {
+            this.$api
+              .systemtoporderupdatecost({
+                costTpVo: this.form,
+                orderSnList:
+                  this.type === 3 ? [this.tpId] : this.tpId?.split(","),
+              })
+              .then(this.cb);
+          } else if (this.type !== 1) {
             addCost(this.form).then(this.cb);
           } else {
             editCost(this.form).then(this.cb);
@@ -402,7 +422,9 @@ export default {
       },
     },
     title() {
-      return ["新增", "修改", "复制"][this.type];
+      return ["新增", "修改", "复制", "订单成本设置", "批量成本设置"][
+        this.type
+      ];
     },
     itemList() {
       return this.form.itemList;

+ 123 - 38
src/views/financed/orderManageList/index.vue

@@ -8,7 +8,9 @@
       @init="init"
     />
     <div style="margin-bottom: 12px">
-      <el-button type="primary" size="small">成本设置</el-button>
+      <el-button type="primary" size="small" @click="editCost"
+        >成本设置</el-button
+      >
       <el-button type="primary" size="small" @click="editRemarks(1)"
         >修改备注</el-button
       >
@@ -39,8 +41,8 @@
     >
       <template slot="orderInfo" slot-scope="props">
         <div>机构名称:{{ props.scope.row["createOrg"] }}</div>
-        <div>业务员:{{ props.scope.row["createNo"] }}</div>
-        <div>业务号:{{ props.scope.row["createSysUserId"] }}</div>
+        <div>业务员:{{ props.scope.row["createUsername"] }}</div>
+        <div>业务号:{{ props.scope.row["createNo"] }}</div>
         <div>订单来源:{{ props.scope.row["orderFrom"] }}</div>
         <div>订单日期:{{ props.scope.row["orderCost"] }}</div>
         <div>订单号:{{ props.scope.row["orderSn"] }}</div>
@@ -66,7 +68,9 @@
       <template slot="statusRoles" slot-scope="props">
         <div>
           {{ refundStatus(props.scope.row["refundStatus"])
-          }}<span style="color: red">(总经理)</span>
+          }}<span style="color: red" v-if="props.scope.row['refundName']"
+            >({{ props.scope.row["refundName"] }})</span
+          >
         </div>
       </template>
       <template slot="type" slot-scope="props">
@@ -75,10 +79,27 @@
         </div>
       </template>
       <template slot="btn" slot-scope="props">
-        <el-button type="text">查看详情</el-button>
-        <el-button type="text">成本设置</el-button>
-        <el-button type="text">订单审核</el-button>
-        <el-button type="text" @click="handelClick">退款审核</el-button>
+        <el-button type="text" @click="openDialog(props.scope.row)"
+          >查看详情</el-button
+        >
+        <el-button type="text" @click="handelClickCost(props.scope.row)"
+          >成本设置</el-button
+        >
+        <el-button
+          type="text"
+          @click="openDialog(props.scope.row, 1)"
+          :disabled="props.scope.row.orderFrom !== 3"
+          >订单审核</el-button
+        >
+        <el-button
+          type="text"
+          @click="handelClick(props.scope.row)"
+          :disabled="
+            props.scope.row.refundStatus !== 0 &&
+            props.scope.row.refundStatus !== 2
+          "
+          >退款审核</el-button
+        >
         <el-button type="text" @click="editRemarks(props.scope.row)"
           >修改备注</el-button
         >
@@ -94,24 +115,48 @@
     <dislog-set
       :dialogVisible.sync="dialogVisible"
       @search="search"
+      :type="2"
+      :orderSn="orderSn"
     ></dislog-set>
     <remarks
       :dialogVisible.sync="remarksVisible"
       @search="search"
       :options="remarksOptions"
     ></remarks>
+    <dislogOrderDetails
+      :dialogVisible.sync="orderDialogVisible"
+      :orderSn="orderSn"
+      :orderFrom="orderFrom"
+      :ShowStatus="ShowStatus"
+    ></dislogOrderDetails>
+    <dislog-set-cost
+      :dialogVisible.sync="dialogVisiblecost"
+      :tpId="tpId"
+      :type="type"
+      @search="search"
+    ></dislog-set-cost>
   </div>
 </template>
 
 <script>
+import dislogSetCost from "../cost/dislogSet.vue";
 import dislogSet from "@/components/audit/dislogSet.vue";
 import remarks from "../components/remarks.vue";
 import searchBoxNew from "@/components/searchBoxNew";
 import tableList from "@/components/tableList";
 import pagination from "@/components/pagination";
+import dislogOrderDetails from "../components/dislogOrderDetails.vue";
 export default {
   name: "orderManageList",
-  components: { searchBoxNew, tableList, pagination, dislogSet, remarks },
+  components: {
+    searchBoxNew,
+    tableList,
+    pagination,
+    dislogSet,
+    remarks,
+    dislogOrderDetails,
+    dislogSetCost,
+  },
   data() {
     return {
       ShowTabList: [
@@ -198,7 +243,7 @@ export default {
       //搜索
       formList: [
         {
-          prop: "name",
+          prop: "roleId",
           placeholder: "角色分类",
           scope: "select",
           options: [
@@ -209,7 +254,7 @@ export default {
           ],
         },
         {
-          prop: "name",
+          prop: "businessFullName",
           placeholder: "业务分类",
           scope: "select",
           options: [
@@ -218,59 +263,61 @@ export default {
           ],
         },
         {
-          prop: "name",
+          prop: "checkStatus",
           placeholder: "审核状态",
           scope: "select",
           options: [
-            { label: "待审核", value: 1 },
-            { label: "已通过", value: 2 },
-            { label: "未通过", value: 3 },
-            { label: "已撤销", value: 4 },
+            { label: "待审核", value: 0 },
+            { label: "已通过", value: 1 },
+            { label: "未通过", value: 2 },
+            { label: "已撤销", value: 3 },
           ],
         },
         {
-          prop: "name",
+          prop: "refundStatusList",
           placeholder: "退款状态",
           scope: "select",
           options: [
-            { label: "待审核", value: 1 },
-            { label: "未通过", value: 2 },
-            { label: "带退款", value: 3 },
-            { label: "已完成", value: 4 },
+            { label: "待审核", value: 0 },
+            { label: "正常", value: 1 },
+            { label: "未退款", value: 2 },
+            { label: "已完成", value: 3 },
+            { label: "未通过", value: 4 },
           ],
         },
         {
-          prop: "name",
+          prop: "creditStatus",
           placeholder: "账款状态",
           scope: "select",
           options: [
             { label: "已结清", value: 1 },
-            { label: "未结清", value: 2 },
+            { label: "未结清", value: 0 },
           ],
         },
         {
-          prop: "name",
+          prop: "invoiceStatus",
           placeholder: "开票状态",
           scope: "select",
           options: [
             { label: "已开票", value: 1 },
-            { label: "未开票", value: 2 },
+            { label: "未开票", value: 0 },
           ],
         },
         {
           placeholder: "时间",
-          prop1: "validityStartTime",
-          prop2: "validityEndTime",
+          prop1: "startTime",
+          prop2: "endTime",
           placeholder1: "开始日期",
           placeholder2: "结束日期",
           scope: "moreDataPicker",
+          Diszing:true
         },
         {
-          prop: "name",
-          placeholder: "机构/订单号/业务号/下单企业",
+          prop: "orderSn",
+          placeholder: "订单号",
         },
         {
-          prop: "name",
+          prop: "userCard",
           placeholder: "身份号",
         },
       ],
@@ -333,7 +380,7 @@ export default {
         },
         {
           label: "下单企业",
-          prop: "tenantName",
+          prop: "orderOrg",
           hidden: true,
         },
         {
@@ -369,9 +416,16 @@ export default {
       total: 0, //一共多少条
       dialogVisible: false,
       remarksVisible: false,
+      orderDialogVisible: false,
       id: "",
       statisticsData: {},
       remarksOptions: [],
+      orderSn: null,
+      orderFrom: null,
+      ShowStatus: false,
+      dialogVisiblecost: false,
+      tpId: "",
+      type: null,
     };
   },
   created() {
@@ -404,6 +458,32 @@ export default {
       }
       return str;
     },
+    editCost() {
+      if (this.$refs.tableList.allCheckData.length === 0) {
+        this.$message.error("请勾选数据");
+        return;
+      }
+      this.dialogVisiblecost = true;
+      this.type = 4;
+      this.tpId = this.$refs.tableList.allCheckData
+        .map((i) => i.orderSn)
+        .toString();
+    },
+    handelClickCost(item) {
+      this.dialogVisiblecost = true;
+      this.type = 3;
+      this.tpId = item.orderSn;
+    },
+    openDialog(data, e) {
+      if (e === 1) {
+        this.ShowStatus = true;
+      } else {
+        this.ShowStatus = false;
+      }
+      this.orderSn = data.orderSn;
+      this.orderFrom = data.orderFrom;
+      this.orderDialogVisible = true;
+    },
     getStatistics() {
       this.$api.systemtoporderstatistics().then((res) => {
         this.statisticsData = res.data || {};
@@ -422,7 +502,8 @@ export default {
         this.remarksVisible = true;
       }
     },
-    handelClick() {
+    handelClick(data) {
+      this.orderSn = data.orderSn;
       this.dialogVisible = true;
     },
     changeStatus(val) {
@@ -458,6 +539,10 @@ export default {
     },
     search(v) {
       this.loading = true;
+      if (this.type === 4) {
+        this.$refs.tableList.clearMoreActive();
+        this.type = null;
+      }
       if (v === 2) {
         this.formData = {
           pageSize: 10,
@@ -465,12 +550,12 @@ export default {
         };
       }
       var data = JSON.parse(JSON.stringify(this.formData));
-      // if (this.formData.classStartTime) {
-      //   data.classStartTime = parseInt(data.classStartTime / 1000);
-      // }
-      // if (this.formData.classEndTime) {
-      //   data.classEndTime = parseInt(data.classEndTime / 1000);
-      // }
+      if (this.formData.startTime) {
+        data.startTime = parseInt(data.startTime / 1000);
+      }
+      if (this.formData.endTime) {
+        data.endTime = parseInt(data.endTime / 1000);
+      }
       this.$api
         .systemtoporderlist(data)
         .then((res) => {