yangfeng
2023-07-19 23d80c1b64f23ede237ab8e89ebc2ee2aaf43f26
src/views/sales/masterOrder/index.vue
@@ -59,7 +59,7 @@
      },
      showSummary: {
        show: true,
        sumProp: ["contractAmount"],
        sumProp: ["money"],
        mergeNumber: 5
      }
    }
@@ -73,13 +73,13 @@
      this.tableList = {
        tableInfomation: [],
        tableColumn: [
          { label: "单据编号", prop: "documentNumber", min: 120 }, // 单据编号
          { label: "客户名称", prop: "customName", min: 120 }, // 客户名称
          { label: "服务开始时间", prop: "serviceStartTime", min: 90 }, // 服务开始时间
          { label: "服务截止时间", prop: "serviceDeadline" }, // 服务截止时间
          { label: "合同金额", prop: "contractAmount", min: 100 }, // 合同金额
          { label: "负责人", prop: "owner" }, // 负责人
          { label: "审批状态", prop: "approvalStatus" } // 审批状态
          { label: "单据编号", prop: "number", min: 100 }, // 单据编号
          { label: "客户名称", prop: "client_id", min: 120 }, // 客户名称
          { label: "服务开始时间", prop: "start_time", min: 90 }, // 服务开始时间
          { label: "服务截止时间", prop: "end_time" }, // 服务截止时间
          { label: "合同金额", prop: "money" }, // 合同金额
          { label: "负责人", prop: "member_id" } // 负责人
          // { label: "审批状态", prop: "approvalStatus" } // 审批状态
        ]
      }
      this.searchOptions = []
@@ -120,28 +120,14 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {
        customName: "",
        documentNumber: "AC6521",
        owner: "",
        serviceStartTime: "",
        serviceDeadline: "",
        contractAmount: ""
      }
      this.editConfig.infomation = {}
    },
    // 编辑
    handleClick(row) {
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = {
        customName: "",
        documentNumber: "AC6521",
        owner: "",
        serviceStartTime: "",
        serviceDeadline: "",
        contractAmount: ""
      }
      this.editConfig.infomation = { ...row }
    }
  }
}