"use strict";
const common_vendor = require("../../../../common/vendor.js");
if (!Array) {
  const _easycom_qiun_data_charts2 = common_vendor.resolveComponent("qiun-data-charts");
  _easycom_qiun_data_charts2();
}
const _easycom_qiun_data_charts = () => "../../../../uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.js";
if (!Math) {
  (_easycom_qiun_data_charts + ChartCard)();
}
const ChartCard = () => "../../../../components/chartCard.js";
const _sfc_main = {
  __name: "acceptanceData",
  setup(__props) {
    const opts = common_vendor.ref({
      color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
      padding: [15, 15, 0, 15],
      enableScroll: false,
      legend: { fontSize: 10 },
      xAxis: {
        disableGrid: true
      },
      yAxis: {
        disabled: false,
        disableGrid: false,
        splitNumber: 5,
        gridType: "dash",
        dashLength: 4,
        gridColor: "#CCCCCC",
        padding: 10,
        showTitle: true,
        data: [
          {
            position: "right",
            min: 0,
            max: 100,
            title: "百分比"
          },
          {
            position: "left",
            title: "数量",
            textAlign: "left"
          }
        ]
      },
      extra: {
        mix: {
          column: {
            width: 20,
            seriesGap: 8
          }
        }
      }
    });
    const chartData = common_vendor.ref({});
    const chartData1 = common_vendor.ref({});
    const handleTap = (e) => {
      common_vendor.index.__f__("log", "at pages/index/board/qms/acceptanceData.vue:64", e);
    };
    common_vendor.onReady(() => {
      let res = {
        categories: ["关键工序验收", "特殊工程验收", "隐藏工程验收"],
        series: [
          {
            name: "合格率",
            type: "line",
            style: "curve",
            color: "#ffe200",
            disableLegend: true,
            data: [70, 50, 85]
          },
          {
            name: "验收数",
            index: 1,
            type: "column",
            data: [40, 55, 110]
          },
          {
            name: "合格数",
            index: 1,
            type: "column",
            data: [50, 20, 75]
          }
        ]
      };
      chartData.value = JSON.parse(JSON.stringify(res));
      let res1 = {
        categories: ["单位工程", "分部工程", "分项工程"],
        series: [
          {
            name: "合格率",
            type: "line",
            style: "curve",
            color: "#ffe200",
            disableLegend: true,
            data: [70, 50, 85]
          },
          {
            name: "验收数",
            index: 1,
            type: "column",
            data: [40, 55, 110]
          },
          {
            name: "合格数",
            index: 1,
            type: "column",
            data: [50, 20, 75]
          }
        ]
      };
      chartData1.value = JSON.parse(JSON.stringify(res1));
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(handleTap, "4b"),
        b: common_vendor.p({
          type: "mix",
          opts: opts.value,
          chartData: chartData.value
        }),
        c: common_vendor.o(handleTap, "a0"),
        d: common_vendor.p({
          type: "mix",
          opts: opts.value,
          chartData: chartData.value
        }),
        e: common_vendor.p({
          margin: "30rpx 0 0 0",
          title: "质量验收数据"
        })
      };
    };
  }
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/board/qms/acceptanceData.js.map
