import request from "@/utils/request";
export const stgljsd_list = (data = {}) =>
  request({
    url: "/khfw/kcbkb/weeksheet",
    data,
  });
export const kc_detail = (data = {}) =>
  request({
    url: "/khfw/kcbkb/detail_mix",
    data: {
      kkbk_id: data.kkbk_id,
    },
  });

export const zt_edit = (data = {}) =>
  request({
    url: "/khfw/kcbkb_qd/edit",
    data: {
      issubmit: "1",
      kkq_id: data.kkq_id,
      khfw_kcbkb_qd: {
        kkq_zt: data.kkq_zt,
      },
    },
  });

//分配教师
export const fpjs = (data = {}) =>
  request({
    url: "/khfw/tdkgl/add",

    data: {
      issubmit: "1",
      send: "1",
      //  ktdk_id: data.ktdk_id,
      khfw_tdkgl: {
        ktdk_sqr: data.ktdk_sqr,
        ktdk_sqr_user_id: data.ktdk_sqr_user_id,
        ktdk_sqsj: data.ktdk_sqsj,
        ktdk_dkjs: data.ktdk_dkjs,
        ktdk_dkjs_user_id: data.ktdk_dkjs_user_id,
        kkbk_id: data.kkbk_id,
        kkb_id: data.kkb_id,
        kkb_name: data.kkb_name,
        kkbk_starttime: data.kkbk_starttime,
        kkbk_endtime: data.kkbk_endtime,
        ktdk_kcdd: data.ktdk_kcdd,
        ktdk_shzt: "2",
        ktdk_sszt: data.ktdk_sszt,
      },
    },
  });
//教师列表
export const fpjs_list = (data = {}) =>
  request({
    url:
      window.GLOBAL_CONFIG.uc + "/index.php?mod=school&action=main&do=teachers",
    data: {
      sm_id: data.sm_id,
      grade: data.grade,
      subject_id: data.subject_id,
      cm_id: data.cm_id,
      ex: data.ex,
    },
  });
