songxingwei 2 years ago
parent
commit
d1138d5b7b

+ 0 - 1097
application/admin/controller/ChildProject.php

@@ -1,1097 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller;
-
-use library\Controller;
-use library\tools\Data;
-use think\Db;
-
-/**
- * 子项目管理
- * Class User
- * @package app\admin\controller
- */
-class ChildProject extends Controller
-{
-
-    /**
-     * 指定当前数据表
-     * @var string
-     */
-    public $table = 'system_child_project';
-    public $table3 = 'system_child_project_analysis';
-
-    /**
-     * 建安成本管理
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->getcategoryids(1);
-        $this->title = '建安成本管理';
-        $category_id = $this->request->get('category_id');
-        $query = $this->_query($this->table)
-            ->like('project_name,design_life,decorate_standard,other_parameters')
-            ->equal('structure_type,building_fortification_intensity,seismic_grade,base_type,template')
-            ->fieldBetween('construction_layer','construction_layer_start,construction_layer_end')
-            ->fieldBetween('upper_number','upper_number_start,upper_number_end')
-            ->fieldBetween('underground','underground_start,underground_end')
-            ->fieldBetween('underground_layer','underground_layer_start,underground_layer_end')
-            ->fieldBetween('first_layer_high','first_layer_high_start,first_layer_high_end')
-            ->fieldBetween('standard_height','standard_height_start,standard_height_end')
-            ->fieldBetween('construction_area','construction_area_start,construction_area_end')
-            ->fieldBetween('ground_floor_area','ground_floor_area_start,ground_floor_area_end')
-            ->fieldBetween('underground_floor_area','underground_floor_area_start,underground_floor_area_end')
-            ->fieldBetween('building_floor_area','building_floor_area_start,building_floor_area_end')
-            ->fieldBetween('steel_benefit_area','steel_benefit_area_start,steel_benefit_area_end')
-            ->fieldBetween('wood_area','wood_area_start,wood_area_end')
-            ->fieldBetween('available_area','available_area_start,available_area_end')
-            ->fieldBetween('number','number_start,number_end')
-            ->fieldBetween('basement_floor_area','basement_floor_area_start,basement_floor_area_end')
-            ->fieldBetween('building_height','building_height_start,building_height_end');
-
-        $query->when($category_id,function ($query) use ($category_id){
-            $query->whereIn('category_id',$this->getcategoryids($category_id));
-        });
-
-        $query->dateBetween('login_at,create_at')
-            ->where(['is_deleted' => '0'])
-            ->order('id desc')
-            ->page();
-    }
-
-    //获取分类下面所有分类ID
-    public function getcategoryids($category_id){
-        $three = [];
-        $two = Db::name('system_goods_cate')
-            ->where('pid',$category_id)
-            ->where('is_deleted',0)
-            ->column('id');
-        if ($two){
-            $three = Db::name('system_goods_cate')
-                ->whereIn('pid',$two)
-                ->where('is_deleted',0)
-                ->column('id');
-        }
-        $categorys = array_merge($two,$three);
-        array_push($categorys,$category_id);
-        return $categorys;
-    }
-
-    /**
-     * 列表数据处理
-     * @param array $data
-     */
-    protected function _index_page_filter(&$data)
-    {
-        foreach ($data as &$vo) {
-            $vo['main_project_name'] = Db::name('system_main_project')->where('id',$vo['main_project_id'])->value('project_name');
-            $vo['category_name'] = Db::name('system_goods_cate')->where('id',$vo['category_id'])->value('title');
-        }
-        $menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
-        $this->menus = Data::arr2table(array_merge([['id' => '', 'pid' => '-1', 'title' => '--全部--']],$menus ));
-        $template = Db::name('system_template')->where('is_del',1)->field('id,title')->select();
-        $this->template = array_merge([['id' => '', 'title' => '--全部--']],$template );
-    }
-
-
-    /**
-     * 创建子项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function add()
-    {
-        $this->title = '创建子项目';
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 编辑子项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function edit()
-    {
-        $this->title = '编辑子项目';
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 子项目详情
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function projectinfo()
-    {
-        $this->_form($this->table, 'info');
-    }
-
-    /**
-     * 表单数据处理
-     * @param array $data
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    public function _form_filter(&$data)
-    {
-        if ($this->request->isPost()) {
-
-        } else {
-
-            if (!empty($data)){
-                $data['category_name'] = Db::name('system_goods_cate')->where('id',$data['category_id'])->value('title');
-            }
-            $this->main_list = Db::name('system_main_project')->where('is_deleted',0)->all();
-
-            $menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
-            $this->menus = Data::arr2table($menus);
-
-            $template = Db::name('system_template')->where('is_del',1)->field('id,title')->select();
-            $this->template = array_merge([['id' => '', 'title' => '--全部--']],$template );
-        }
-    }
-
-    /**
-     * 处理成功回调
-     */
-    public function _form_result($result,$data){
-        if ($result) {
-            $this->success('成功',url('/#/admin/child_project/index'));
-        }
-    }
-
-    /**
-     * 删除子项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function remove()
-    {
-        $this->_save($this->table, ['is_deleted' => '1']);
-        //$this->_delete($this->table);
-    }
-
-    /**
-     * 导入子项目数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function import()
-    {
-        $get = $this->request->get();
-        $import_path = $_SERVER['DOCUMENT_ROOT'].'/'.$get['path'];
-        $project_id = $get['project_id'];
-        $num = 5;
-        try {
-            $objReader =\PHPExcel_IOFactory::createReader('Excel2007');
-            $objExcel = $objReader->load($import_path);
-
-            $list = $objExcel->getActiveSheet()->toArray();
-            if (!isset($list[2][15]) || !$list[2][15]){
-                $this->error('失败');
-            }
-            if (isset($list[2][16])){
-                $this->error('失败');
-            }
-            Db::name($this->table3)->where('project_id',$project_id)->delete();
-            Db::name($this->table)->where('id',$project_id)->update(['url'=>$get['url']]);
-            $result = 0;
-            foreach ($list as $k=>$v){
-                if($k>=$num-1){
-                    if(array_filter($v)){
-                        $data=[];
-                        foreach ($v as $kk=>$vv){
-                            $data[IntToChr($kk)]=trim($vv);
-                        }
-                        $date['project_id'] = $project_id;
-                        $date['number'] = $data['A'];
-                        $date['cost_project'] = $data['B'];
-                        $date['area_calculating_aperture'] = $data['C'];
-                        $date['single_party_cost'] = $data['D'];
-                        $date['single_party_cost1'] = str_replace(',','',$data['D']);
-                        $date['total_price_included'] = $data['E'];
-                        $date['total_price_included1'] = str_replace(',','',$data['E']);
-                        $date['single_party_cost_excluding'] = $data['F'];
-                        $date['single_party_cost_excluding1'] = str_replace(',','',$data['F']);
-                        $date['total_price_included_excluding'] = $data['G'];
-                        $date['total_price_included_excluding1'] = str_replace(',','',$data['G']);
-
-                        $date['single_party_cost_tax'] = $data['H'];
-                        $date['single_party_cost_tax1'] = str_replace(',','',$data['H']);
-                        $date['single_party_cost_no_tax'] = $data['I'];
-                        $date['single_party_cost_no_tax1'] = str_replace(',','',$data['I']);
-
-                        $date['quantities'] = $data['J'];
-                        $date['quantities1'] = str_replace(',','',$data['J']);
-                        $date['calculating_unit'] = $data['K'];
-                        $date['unilateral_content'] = $data['L'];
-                        $date['unilateral_content1'] = str_replace(',','',$data['L']);
-                        $date['unilateral_content_excluding'] = $data['M'];
-                        $date['unilateral_content_excluding1'] = str_replace(',','',$data['M']);
-
-                        $date['saleable_single_party_tax'] = $data['N'];
-                        $date['saleable_single_party_tax1'] = str_replace(',','',$data['N']);
-
-                        $date['saleable_single_party_no_tax'] = $data['O'];
-                        $date['saleable_single_party_no_tax1'] = str_replace(',','',$data['O']);
-
-                        $date['note'] = $data['P'];
-                        $date['create_at'] = date('Y-m-d H:i:s');
-
-                        $numbers = explode('.',$data['A']);
-                        if (count($numbers)>1){
-                            array_pop($numbers); //去掉数组最后一组元素
-                            $number = implode('.',$numbers);
-                            $date['pid'] = Db::name($this->table3)->where('project_id',$project_id)->where('number',$number)->value('id');
-                            $date['pname'] = Db::name($this->table3)->where('project_id',$project_id)->where('number',$number)->value('cost_project');
-                        }else{
-                            $date['pid'] = 0;
-                            $date['pname'] = '';
-                        }
-                        if (Db::table($this->table3)->insertGetId($date)){
-                            $result = 1;
-                        }else{
-                            $result = 0;
-                            break;
-                        }
-                    }
-                }
-            }
-            if ($result==1){
-                $this->success('成功');
-            }else{
-                $this->error('失败');
-            }
-        } catch (\think\exception\ValidateException $e) {
-            $this->error($e->getMessage());
-
-        }
-    }
-
-
-    /**
-     * 查看数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function look()
-    {
-        $id = $this->app->request->get('id');
-        $this->title = '查看';
-        $list = Db::name($this->table3)->where('project_id',$id)->order('id asc')->select();
-        $this->assign('list',$list);
-        $this->fetch();
-    }
-
-    /**
-     * 下载数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function down()
-    {
-
-    }
-
-    /**
-     * 数据对比
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function contrast()
-    {
-        set_time_limit(0);
-        $this->title = '数据对比';
-        $ids = $this->request->get('ids');
-        $this->assign('ids',$ids);
-//        $query = $this->_query($this->table3);
-//        $query->whereIn('project_id',$ids)
-//            ->group('cost_project')
-//            ->order('id asc')
-//            ->field('id,pid,number,cost_project')
-//            ->page();
-
-        $list = Db::name($this->table3)->whereIn('project_id',$ids)
-            ->group('cost_project')
-            ->order('id asc')
-            ->field('id,pid,pname,number,cost_project')
-            ->select();
-        $list = $this->deal_list($ids,$list);
-
-        $list = $this->get_attr($list);
-
-        $this->assign('list',$list);
-        $this->fetch();
-    }
-
-
-    public function get_attr($a,$pid=''){
-        $tree = array();                                //每次都声明一个新数组用来放子元素
-        foreach($a as $v){
-            if($v['pname'] == $pid){                      //匹配子记录
-                $v['children'] = $this->get_attr($a,$v['cost_project']); //递归获取子记录
-                $tree[] = $v;                           //将记录存入新数组
-            }
-        }
-        return $tree;                                  //返回新数组
-    }
-
-
-    //列表处理
-    public function deal_list($ids,$list){
-        foreach ($list as &$v){
-            $where = [];
-            $where[] = ['project_id','in',$ids];
-            $where[] = ['cost_project','eq', $v['cost_project']];
-            //---建面单方成本(元/m2)(含税)---//
-            //参考区间
-            $single_party_cost_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost','neq','')
-                ->min('single_party_cost1');
-            $single_party_cost_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost','neq','')
-                ->max('single_party_cost1');
-            $v['single_party_cost_interval'] = $single_party_cost_interval_start.'-'.$single_party_cost_interval_end;
-            //算数平均值
-            $single_party_cost_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost','neq','')
-                ->sum('single_party_cost1');
-            $single_party_cost_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost','neq','')
-                ->count();
-            $v['single_party_cost_arithmetic_mean'] = ($single_party_cost_arithmetic_mean_all==0 || $single_party_cost_arithmetic_mean_count==0) ? 0 : $single_party_cost_arithmetic_mean_all/$single_party_cost_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_valid_sample_size'] = $single_party_cost_arithmetic_mean_count;
-
-
-            //---总价(万元)(含税)---//
-            //参考区间
-            $total_price_included_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included','neq','')
-                ->min('total_price_included1');
-            $total_price_included_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included','neq','')
-                ->max('total_price_included1');
-            $v['total_price_included_interval'] = $total_price_included_interval_start.'-'.$total_price_included_interval_end;
-            //算数平均值
-            $total_price_included_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included','neq','')
-                ->sum('total_price_included1');
-            $total_price_included_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included','neq','')
-                ->count();
-            $v['total_price_included_arithmetic_mean'] = ($total_price_included_arithmetic_mean_all==0 || $total_price_included_arithmetic_mean_count==0) ? 0 : $total_price_included_arithmetic_mean_all/$total_price_included_arithmetic_mean_count;
-            //有效样本量
-            $v['total_price_included_valid_sample_size'] = $total_price_included_arithmetic_mean_count;
-
-            //---建面单方成本(元/m2)(不含税)---//
-            //参考区间
-            $single_party_cost_excluding_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_excluding','neq','')
-                ->min('single_party_cost_excluding1');
-            $single_party_cost_excluding_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_excluding','neq','')
-                ->max('single_party_cost_excluding1');
-            $v['single_party_cost_excluding_interval'] = $single_party_cost_excluding_interval_start.'-'.$single_party_cost_excluding_interval_end;
-            //算数平均值
-            $single_party_cost_excluding_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_excluding','neq','')
-                ->sum('single_party_cost_excluding1');
-            $single_party_cost_excluding_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_excluding','neq','')
-                ->count();
-            $v['single_party_cost_excluding_arithmetic_mean'] = ($single_party_cost_excluding_arithmetic_mean_all==0 || $single_party_cost_excluding_arithmetic_mean_count==0) ? 0 : $single_party_cost_excluding_arithmetic_mean_all/$single_party_cost_excluding_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_excluding_valid_sample_size'] = $single_party_cost_excluding_arithmetic_mean_count;
-
-
-            //---总价(万元)(不含税)---//
-            //参考区间
-            $total_price_included_excluding_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included_excluding','neq','')
-                ->min('total_price_included_excluding1');
-            $total_price_included_excluding_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included_excluding','neq','')
-                ->max('total_price_included_excluding1');
-            $v['total_price_included_excluding_interval'] = $total_price_included_excluding_interval_start.'-'.$total_price_included_excluding_interval_end;
-            //算数平均值
-            $total_price_included_excluding_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included_excluding','neq','')
-                ->sum('total_price_included_excluding1');
-            $total_price_included_excluding_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('total_price_included_excluding','neq','')
-                ->count();
-            $v['total_price_included_excluding_arithmetic_mean'] = ($total_price_included_excluding_arithmetic_mean_all==0 || $total_price_included_excluding_arithmetic_mean_count==0) ? 0 : $total_price_included_excluding_arithmetic_mean_all/$total_price_included_excluding_arithmetic_mean_count;
-            //有效样本量
-            $v['total_price_included_excluding_valid_sample_size'] = $total_price_included_excluding_arithmetic_mean_count;
-
-
-            //---可售单方成本(元/m2)(含税)---//
-            //参考区间
-            $single_party_cost_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->min('single_party_cost_tax1');
-            $single_party_cost_tax_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->max('single_party_cost_tax1');
-            $v['single_party_cost_tax_interval'] = $single_party_cost_tax_interval_start.'-'.$single_party_cost_tax_tax_interval_end;
-            //算数平均值
-            $single_party_cost_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->sum('single_party_cost_tax1');
-            $single_party_cost_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->count();
-            $v['single_party_cost_tax_arithmetic_mean'] = ($single_party_cost_tax_arithmetic_mean_all==0 || $single_party_cost_tax_arithmetic_mean_count==0) ? 0 : $single_party_cost_tax_arithmetic_mean_all/$single_party_cost_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_tax_valid_sample_size'] = $single_party_cost_tax_arithmetic_mean_count;
-
-            //---可售单方成本(元/m2)(不含税)---//
-            //参考区间
-            $single_party_cost_no_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->min('single_party_cost_no_tax1');
-            $single_party_cost_no_tax_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->max('single_party_cost_no_tax1');
-            $v['single_party_cost_no_tax_interval'] = $single_party_cost_no_tax_interval_start.'-'.$single_party_cost_no_tax_tax_interval_end;
-            //算数平均值
-            $single_party_cost_no_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->sum('single_party_cost_no_tax1');
-            $single_party_cost_no_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->count();
-            $v['single_party_cost_no_tax_arithmetic_mean'] = ($single_party_cost_no_tax_arithmetic_mean_all==0 || $single_party_cost_no_tax_arithmetic_mean_count==0) ? 0 : $single_party_cost_no_tax_arithmetic_mean_all/$single_party_cost_no_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_no_tax_valid_sample_size'] = $single_party_cost_no_tax_arithmetic_mean_count;
-
-
-
-            //---工程量---//
-            //参考区间
-            $quantities_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('quantities','neq','')
-                ->min('quantities1');
-            $quantities_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('quantities','neq','')
-                ->max('quantities1');
-            $v['quantities_interval'] = $quantities_interval_start.'-'.$quantities_interval_end;
-            //算数平均值
-            $quantities_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('quantities','neq','')
-                ->sum('quantities1');
-            $quantities_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('quantities','neq','')
-                ->count();
-            $v['quantities_arithmetic_mean'] = ($quantities_arithmetic_mean_all==0 || $quantities_arithmetic_mean_count==0) ? 0 : $quantities_arithmetic_mean_all/$quantities_arithmetic_mean_count;
-            //有效样本量
-            $v['quantities_valid_sample_size'] = $quantities_arithmetic_mean_count;
-
-            //---单方含量(含税)---//
-            //参考区间
-            $unilateral_content_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content','neq','')
-                ->min('unilateral_content1');
-            $unilateral_content_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content','neq','')
-                ->max('unilateral_content1');
-            $v['unilateral_content_interval'] = $unilateral_content_interval_start.'-'.$unilateral_content_interval_end;
-            //算数平均值
-            $unilateral_content_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content','neq','')
-                ->sum('unilateral_content1');
-            $unilateral_content_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content','neq','')
-                ->count();
-            $v['unilateral_content_arithmetic_mean'] = ($unilateral_content_arithmetic_mean_all==0 || $unilateral_content_arithmetic_mean_count==0) ? 0 : $unilateral_content_arithmetic_mean_all/$unilateral_content_arithmetic_mean_count;
-            //有效样本量
-            $v['unilateral_content_valid_sample_size'] = $unilateral_content_arithmetic_mean_count;
-
-            //---单方含量(不含税)---//
-            //参考区间
-            $unilateral_content_excluding_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content_excluding','neq','')
-                ->min('unilateral_content_excluding1');
-            $unilateral_content_excluding_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content_excluding','neq','')
-                ->max('unilateral_content_excluding1');
-            $v['unilateral_content_excluding_excluding_interval'] = $unilateral_content_excluding_interval_start.'-'.$unilateral_content_excluding_interval_end;
-            //算数平均值
-            $unilateral_content_excluding_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content_excluding','neq','')
-                ->sum('unilateral_content_excluding1');
-            $unilateral_content_excluding_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_content_excluding','neq','')
-                ->count();
-            $v['unilateral_content_excluding_arithmetic_mean'] = ($unilateral_content_excluding_arithmetic_mean_all==0 || $unilateral_content_excluding_arithmetic_mean_count==0) ? 0 : $unilateral_content_excluding_arithmetic_mean_all/$unilateral_content_excluding_arithmetic_mean_count;
-            //有效样本量
-            $v['unilateral_content_excluding_valid_sample_size'] = $unilateral_content_excluding_arithmetic_mean_count;
-
-            //---可售单方含量(含税)---//
-            //参考区间
-            $saleable_single_party_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_tax','neq','')
-                ->min('saleable_single_party_tax1');
-            $saleable_single_party_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_tax','neq','')
-                ->max('saleable_single_party_tax1');
-            $v['saleable_single_party_tax_interval'] = $saleable_single_party_tax_interval_start.'-'.$saleable_single_party_tax_interval_end;
-            //算数平均值
-            $saleable_single_party_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_tax','neq','')
-                ->sum('saleable_single_party_tax1');
-            $saleable_single_party_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_tax','neq','')
-                ->count();
-            $v['saleable_single_party_tax_arithmetic_mean'] = ($saleable_single_party_tax_arithmetic_mean_all==0 || $saleable_single_party_tax_arithmetic_mean_count==0) ? 0 : $saleable_single_party_tax_arithmetic_mean_all/$saleable_single_party_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['saleable_single_party_tax_valid_sample_size'] = $saleable_single_party_tax_arithmetic_mean_count;
-
-            //---可售单方含量(不含税)---//
-            //参考区间
-            $saleable_single_party_no_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_no_tax','neq','')
-                ->min('saleable_single_party_no_tax1');
-            $saleable_single_party_no_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_no_tax','neq','')
-                ->max('saleable_single_party_no_tax1');
-            $v['saleable_single_party_no_tax_interval'] = $saleable_single_party_no_tax_interval_start.'-'.$saleable_single_party_no_tax_interval_end;
-            //算数平均值
-            $saleable_single_party_no_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_no_tax','neq','')
-                ->sum('saleable_single_party_no_tax1');
-            $saleable_single_party_no_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('saleable_single_party_no_tax','neq','')
-                ->count();
-            $v['saleable_single_party_no_tax_arithmetic_mean'] = ($saleable_single_party_no_tax_arithmetic_mean_all==0 || $saleable_single_party_no_tax_arithmetic_mean_count==0) ? 0 : $saleable_single_party_no_tax_arithmetic_mean_all/$saleable_single_party_no_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['saleable_single_party_no_tax_valid_sample_size'] = $saleable_single_party_no_tax_arithmetic_mean_count;
-        }
-        return $list;
-    }
-
-    /**
-     * 列表数据处理
-     * @param array $data
-     */
-    protected function _contrast_page_filter(&$data)
-    {
-        $ids = $this->request->get('ids');
-        $data = $this->deal_list($ids,$data);
-    }
-
-
-    /**
-     * 对比数据导出
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function download()
-    {
-        $ids = $this->request->get('ids');
-        $list = Db::name($this->table3)->whereIn('project_id',$ids)
-            ->group('cost_project')
-            ->order('id asc')
-            ->field('id,pid,number,cost_project')
-            ->select();
-        $list = $this->deal_list($ids,$list);
-
-        $objPHPExcel = new \PHPExcel();//实例化phpexcel
-        $filename = '数据分析情况';
-        $indexKey = array(
-            'number',
-            'cost_project',
-            'single_party_cost_interval',
-            'single_party_cost_arithmetic_mean',
-            'single_party_cost_valid_sample_size',
-            'total_price_included_interval',
-            'total_price_included_arithmetic_mean',
-            'total_price_included_valid_sample_size',
-            'single_party_cost_excluding_interval',
-            'single_party_cost_excluding_arithmetic_mean',
-            'single_party_cost_excluding_valid_sample_size',
-            'total_price_included_excluding_interval',
-            'total_price_included_excluding_arithmetic_mean',
-            'total_price_included_excluding_valid_sample_size',
-
-            'single_party_cost_tax_interval',
-            'single_party_cost_tax_arithmetic_mean',
-            'single_party_cost_tax_valid_sample_size',
-
-            'single_party_cost_no_tax_interval',
-            'single_party_cost_no_tax_arithmetic_mean',
-            'single_party_cost_no_tax_valid_sample_size',
-
-            'quantities_interval',
-            'quantities_arithmetic_mean',
-            'quantities_valid_sample_size',
-            'unilateral_content_interval',
-            'unilateral_content_arithmetic_mean',
-            'unilateral_content_valid_sample_size',
-            'unilateral_content_excluding_excluding_interval',
-            'unilateral_content_excluding_arithmetic_mean',
-            'unilateral_content_excluding_valid_sample_size',
-
-            'saleable_single_party_tax_interval',
-            'saleable_single_party_tax_arithmetic_mean',
-            'saleable_single_party_tax_valid_sample_size',
-
-            'saleable_single_party_no_tax_interval',
-            'saleable_single_party_no_tax_arithmetic_mean',
-            'saleable_single_party_no_tax_valid_sample_size',
-        );
-        $header_arr = array('A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z','AA','AB','AC','AD','AE','AF','AG','AH','AI');
-        $styleThinBlackBorderOutline = array(
-            'borders' => array(
-                'allborders' => array( //设置全部边框
-                    'style' => \PHPExcel_Style_Border::BORDER_THIN //粗的是thick
-                ),
-
-            ),
-        );
-        $count = count($list)+3;
-        $objPHPExcel->getActiveSheet()->getStyle( 'A1:AI'.$count)->applyFromArray($styleThinBlackBorderOutline);
-        $objPHPExcel -> getActiveSheet() -> getColumnDimension(\PHPExcel_Cell::stringFromColumnIndex(0)) -> setAutoSize(true);
-        //接下来就是写数据到表格里面去
-        $objActSheet = $objPHPExcel->getActiveSheet();
-        $objPHPExcel->getActiveSheet()->mergeCells('A1:AI1');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('A1', '数据分析结果');
-        $objPHPExcel->getActiveSheet()->getStyle('A1')->getFont()->setSize(16); //第一行字体大小
-        $objPHPExcel->getActiveSheet()->getStyle('A1')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('A2:A3');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('A2', '序号');
-        $objPHPExcel->getActiveSheet()->getStyle('A2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('B2:B3');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('B2', '成本项目');
-        $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('C2:E2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('C2', '建面单方成本(元/m2)(含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('C2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('F2:H2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('F2', '总价(万元)(含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('F2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('I2:K2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('I2', '建面单方成本(元/m2)(不含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('I2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('L2:N2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('L2', '总价(万元)(不含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('L2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('O2:Q2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('O2', '可售单方成本(元/m2)(含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('O2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('R2:T2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('R2', '可售单方成本(元/m2)(不含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('R2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('U2:W2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('U2', '工程量');
-        $objPHPExcel->getActiveSheet()->getStyle('U2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('X2:Z2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('X2', '建面单方含量');
-        $objPHPExcel->getActiveSheet()->getStyle('X2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('AA2:AC2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('AA2', '可售单方含量');
-        $objPHPExcel->getActiveSheet()->getStyle('AA2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('AD2:AF2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('AD2', '预留指标1');
-        $objPHPExcel->getActiveSheet()->getStyle('AD2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('AG2:AI2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('AG2', '预留指标2');
-        $objPHPExcel->getActiveSheet()->getStyle('AG2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-
-        $objPHPExcel->getActiveSheet()->setCellValue('C3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('D3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('E3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('F3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('G3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('H3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('I3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('J3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('K3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('L3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('M3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('N3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('O3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('P3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('Q3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('R3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('S3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('T3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('U3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('V3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('W3', '有效样本量');
-
-        $objPHPExcel->getActiveSheet()->setCellValue('X3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('Y3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('Z3', '有效样本量');
-
-        $objPHPExcel->getActiveSheet()->setCellValue('AA3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('AB3', '算数平均值');
-        $objPHPExcel->getActiveSheet()->setCellValue('AC3', '有效样本量');
-
-        $objPHPExcel->getActiveSheet()->setCellValue('AD3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('AE3', '算数平均值');
-        $objPHPExcel->getActiveSheet()->setCellValue('AF3', '有效样本量');
-
-        $objPHPExcel->getActiveSheet()->setCellValue('AG3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('AH3', '算数平均值');
-        $objPHPExcel->getActiveSheet()->setCellValue('AI3', '有效样本量');
-        $startRow = 4;
-        foreach ($list as &$row) {
-            foreach ($indexKey as $key => $value){
-                //这里是设置单元格的内容
-                $objActSheet->setCellValue($header_arr[$key].$startRow,$row[$value]);
-            }
-            $startRow++;
-        }
-
-        // 下载这个表格,在浏览器输出
-        header('Content-Disposition: attachment;filename="'.$filename.'.xlsx"');//下载下来的表格名
-        header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
-        $PHPWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, "Excel2007");//创建生成的格式
-        $PHPWriter->save('php://output');
-
-    }
-
-    /**
-     * 对比数据查看
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function see()
-    {
-        $this->title = '对比数据查看';
-        $subjects = $this->request->get('subjects');
-        $ids = $this->request->get('ids');
-        $this->assign('subjects',$subjects);
-        $this->assign('ids',$ids);
-
-        $list = Db::name($this->table3)
-            ->whereIn('project_id',$ids)
-            ->where('cost_project','neq',$subjects)
-            ->where('single_party_cost','neq','')
-            ->orderRand()
-            ->field('id,pid,number,cost_project')
-            ->limit(15)
-            ->select();
-
-        $where[] = ['project_id','in',$ids];
-        foreach ($list as &$v){
-            $v['single_party_cost_min'] = Db::name($this->table3)
-                ->where($where)
-                ->where('cost_project',$v['cost_project'])
-                ->where('single_party_cost','neq','')
-                ->min('single_party_cost1');
-            $v['single_party_cost_max'] = Db::name($this->table3)
-                ->where('cost_project',$v['cost_project'])
-                ->where($where)
-                ->where('single_party_cost','neq','')
-                ->max('single_party_cost1');
-        }
-        $this->assign('list',$list);
-
-
-        $this->fetch();
-    }
-
-    /**
-     * 获取详情
-     * @auth fale
-     */
-    public function get_see_info(){
-        $subjects = $this->request->get('subjects');
-        $ids = $this->request->get('ids');
-        $field = $this->request->get('field');
-        $array['cost_project'] = $subjects;
-        $where[] = ['project_id','in',$ids];
-        $where[] = ['cost_project','eq', $subjects];
-
-        $min = Db::name($this->table3)
-            ->where($where)
-            ->where($field,'neq','')
-            ->min($field.'1');
-        $max = Db::name($this->table3)
-            ->where($where)
-            ->where($field,'neq','')
-            ->max($field.'1');
-
-//        $interval = $this->interval($min,$max);
-        if ($min==$max){
-            $interval = $this->interval($min,$max,1);
-        }else{
-            $interval = $this->interval($min,$max);
-        }
-        $array['field']['title'] = $interval;
-        $array['field']['value'] = $this->interval_count($interval,$where,$field);
-
-        $project_ids = Db::name($this->table3)->whereIn('project_id',$ids)->where('cost_project',$subjects)->column('project_id');
-        $arr = [];
-        foreach ($project_ids as &$v){
-            $a['project_name'] = Db::name($this->table)->where('id',$v)->value('project_name');
-            $value = Db::name($this->table3)->where('project_id',$v)->where('cost_project',$subjects)->value($field);
-            $a['value'] = $value;
-            $a['note'] = Db::name($this->table3)->where('project_id',$v)->where('cost_project',$subjects)->value('note');
-            if ($value){
-                array_push($arr,$a);
-            }
-
-        }
-        $array['right'] = $arr;
-
-
-        $this->success('成功',$array);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-//        //---建面单方成本(元/m2)(含税)---//
-//        //参考区间
-//        $single_party_cost_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_party_cost','neq','')
-//            ->min('single_party_cost1');
-//        $single_party_cost_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_party_cost','neq','')
-//            ->max('single_party_cost1');
-//        $single_party_cost_interval = $this->interval($single_party_cost_min,$single_party_cost_max);
-//        $array['single_party_cost']['title'] = $single_party_cost_interval;
-//        $array['single_party_cost']['value'] = $this->interval_count($single_party_cost_interval,$where,'single_party_cost');
-//        //---总价(万元)(含税)---//
-//        //参考区间
-//        $total_price_included_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_price_included','neq','')
-//            ->min('total_price_included1');
-//        $total_price_included_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_price_included','neq','')
-//            ->max('total_price_included1');
-//        $total_price_included_interval = $this->interval($total_price_included_min,$total_price_included_max);
-//        $array['total_price_included']['title'] = $total_price_included_interval;
-//        $array['total_price_included']['value'] = $this->interval_count($total_price_included_interval,$where,'total_price_included');
-//        //---建面单方成本(元/m2)(不含税)---//
-//        //参考区间
-//        $single_party_cost_excluding_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_party_cost_excluding','neq','')
-//            ->min('single_party_cost_excluding1');
-//        $single_party_cost_excluding_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_party_cost_excluding','neq','')
-//            ->max('single_party_cost_excluding1');
-//        $single_party_cost_excluding_interval = $this->interval($single_party_cost_excluding_min,$single_party_cost_excluding_max);
-//        $array['single_party_cost_excluding']['title'] = $single_party_cost_excluding_interval;
-//        $array['single_party_cost_excluding']['value'] = $this->interval_count($single_party_cost_excluding_interval,$where,'single_party_cost_excluding');
-//
-//        //---总价(万元)(不含税)---//
-//        //参考区间
-//        $total_price_included_excluding_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_price_included_excluding','neq','')
-//            ->min('total_price_included_excluding1');
-//        $total_price_included_excluding_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_price_included_excluding','neq','')
-//            ->max('total_price_included_excluding1');
-//        $total_price_included_excluding_interval = $this->interval($total_price_included_excluding_min,$total_price_included_excluding_max);
-//        $array['total_price_included_excluding']['title'] = $total_price_included_excluding_interval;
-//        $array['total_price_included_excluding']['value'] = $this->interval_count($total_price_included_excluding_interval,$where,'total_price_included_excluding');
-//
-//        //---工程量---//
-//        //参考区间
-//        $quantities_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('quantities','neq','')
-//            ->min('quantities1');
-//        $quantities_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('quantities','neq','')
-//            ->max('quantities1');
-//        $quantities_interval = $this->interval($quantities_min,$quantities_max);
-//        $array['quantities']['title'] = $quantities_interval;
-//        $array['quantities']['value'] = $this->interval_count($quantities_interval,$where,'quantities');
-//
-//        //---单方含量(含税)---//
-//        //参考区间
-//        $unilateral_content_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_content','neq','')
-//            ->min('unilateral_content1');
-//        $unilateral_content_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_content','neq','')
-//            ->max('unilateral_content1');
-//        $unilateral_content_interval = $this->interval($unilateral_content_min,$unilateral_content_max);
-//        $array['unilateral_content']['title'] = $unilateral_content_interval;
-//        $array['unilateral_content']['value'] = $this->interval_count($unilateral_content_interval,$where,'unilateral_content');
-//
-//        //---单方含量(不含税)---//
-//        //参考区间
-//        $unilateral_content_excluding_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_content_excluding','neq','')
-//            ->min('unilateral_content_excluding1');
-//        $unilateral_content_excluding_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_content_excluding','neq','')
-//            ->max('unilateral_content_excluding1');
-//        $unilateral_content_excluding_interval = $this->interval($unilateral_content_excluding_min,$unilateral_content_excluding_max);
-//        $array['unilateral_content_excluding']['title'] = $unilateral_content_excluding_interval;
-//        $array['unilateral_content_excluding']['value'] = $this->interval_count($unilateral_content_excluding_interval,$where,'unilateral_content_excluding');
-//
-//        $this->success('成功',$array);
-    }
-
-
-
-    //算区间平均值
-    public function interval($min,$max,$copies=10){
-        $cha = ($max-$min)/$copies;
-        $arr = [];
-        for ($i=0;$i<$copies;$i++){
-            $arra = $min.'-'.($min+$cha);
-            $min = $min+$cha;
-            array_push($arr,$arra);
-        }
-        return $arr;
-    }
-
-    //算区间平均值数量
-    public function interval_count($arr,$where,$field){
-        $value = [];
-        foreach ($arr as &$v){
-            $a = explode('-',$v);
-            $count = Db::name($this->table3)
-                ->where($where)
-                ->where($field,'neq','')
-                ->whereBetween($field.'1',[$a[0],$a[1]])
-                ->count();
-            array_push($value,$count);
-        }
-        return $value;
-    }
-
-}

+ 0 - 1040
application/admin/controller/MainProject.php

@@ -1,1040 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller;
-
-use app\common\library\PHPExcelService;
-use library\Controller;
-use library\tools\Data;
-use think\Db;
-use think\Url;
-use think\facade\Filesystem;
-
-/**
- * 主项目管理
- * Class User
- * @package app\admin\controller
- */
-class MainProject extends Controller
-{
-
-    /**
-     * 指定当前数据表
-     * @var string
-     */
-    public $table = 'system_main_project';
-    public $table2 = 'system_child_project';
-    public $table3 = 'system_main_project_analysis';
-
-    /**
-     * 成本汇总管理
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->getcategoryids(1);
-        $this->title = '成本汇总管理';
-        $category_id = $this->request->get('category_id');
-        $query = $this->_query($this->table)
-            ->like('project_name,basis_for_listing,project_scope,grade,building_composition,case_description,function_parameters,investment_subject,sources_funding,contract_mode,management_mode,owner,total_package,awards,other_instructions,defense_type,engineering_category')
-            ->equal('cost_categories,construction_site_province,construction_site_province,construction_site_city,construction_site_area,template')
-            ->fieldBetween('total_land_area','total_land_area_start,total_land_area_end')
-            ->fieldBetween('gross_floor_area','gross_floor_area_start,gross_floor_area_end')
-            ->fieldBetween('floor_area','floor_area_start,floor_area_end')
-            ->fieldBetween('underground_area','underground_area_start,underground_area_end')
-            ->fieldBetween('building_density','building_density_start,building_density_end')
-            ->fieldBetween('green_area','green_area_start,green_area_end')
-            ->fieldBetween('road_area','road_area_start,road_area_end')
-            ->fieldBetween('road_length','road_length_start,road_length_end')
-            ->fieldBetween('defense','defense_start,defense_end')
-            ->fieldBetween('project_time','project_time_start,project_time_end');
-
-        $query->when($category_id,function ($query) use ($category_id){
-            $query->whereIn('category_id',$this->getcategoryids($category_id));
-        });
-        $query->dateBetween('prepare_date,starting_time,ending_time')
-            ->where(['is_deleted' => '0'])
-            ->order('id desc')
-            ->page();
-    }
-
-    //获取分类下面所有分类ID
-    public function getcategoryids($category_id){
-        $three = [];
-        $two = Db::name('system_goods_cate')
-            ->where('pid',$category_id)
-            ->where('is_deleted',0)
-            ->column('id');
-        if ($two){
-            $three = Db::name('system_goods_cate')
-                ->whereIn('pid',$two)
-                ->where('is_deleted',0)
-                ->column('id');
-        }
-        $categorys = array_merge($two,$three);
-        array_push($categorys,$category_id);
-        return $categorys;
-    }
-
-
-    /**
-     * 列表数据处理
-     * @param array $data
-     */
-    protected function _index_page_filter(&$data)
-    {
-        foreach ($data as &$vo) {
-            $vo['category_name'] = Db::name('system_goods_cate')->where('id',$vo['category_id'])->value('title');
-        }
-        $menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
-        $this->menus = Data::arr2table(array_merge([['id' => '', 'pid' => '-1', 'title' => '--全部--']],$menus ));
-
-        $template = Db::name('system_template')->where('is_del',1)->field('id,title')->select();
-        $this->template = array_merge([['id' => '', 'title' => '--全部--']],$template );
-        //省
-        $province = Db::name('system_area')->where('level',1)->select();
-        $this->province = $province;
-
-        if (isset($_GET['construction_site_province']) && $_GET['construction_site_province']!=''){
-            //市
-            $pid = Db::name('system_area')->where('name',$_GET['construction_site_province'])->value('id');
-            $city = Db::name('system_area')->where('level',2)->where('pid',$pid)->select();
-            $this->city = $city;
-        }else{
-            $this->city = [];
-        }
-
-        if (isset($_GET['construction_site_city']) && $_GET['construction_site_city']!=''){
-            //区
-            $pid2 = Db::name('system_area')->where('name',$_GET['construction_site_city'])->value('id');
-            $area = Db::name('system_area')->where('level',3)->where('pid',$pid2)->select();
-            $this->area = $area;
-        }else{
-            $this->area = [];
-        }
-
-    }
-
-    /**
-     * 子项目列表
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index2()
-    {
-        $id = $this->app->request->get('id');
-        $this->assign('id',$id);
-
-        $this->title = '建安成本管理';
-        $query = $this->_query($this->table2)->where('main_project_id',$id)
-            ->like('project_name,design_life,decorate_standard,other_parameters')
-            ->equal('category_id,structure_type,building_fortification_intensity,seismic_grade,base_type')
-            ->fieldBetween('construction_layer','construction_layer_start,construction_layer_end')
-            ->fieldBetween('upper_number','upper_number_start,upper_number_end')
-            ->fieldBetween('underground','underground_start,underground_end')
-            ->fieldBetween('underground_layer','underground_layer_start,underground_layer_end')
-            ->fieldBetween('first_layer_high','first_layer_high_start,first_layer_high_end')
-            ->fieldBetween('standard_height','standard_height_start,standard_height_end')
-            ->fieldBetween('construction_area','construction_area_start,construction_area_end')
-            ->fieldBetween('ground_floor_area','ground_floor_area_start,ground_floor_area_end')
-            ->fieldBetween('underground_floor_area','underground_floor_area_start,underground_floor_area_end')
-            ->fieldBetween('building_floor_area','building_floor_area_start,building_floor_area_end')
-            ->fieldBetween('steel_benefit_area','steel_benefit_area_start,steel_benefit_area_end')
-            ->fieldBetween('wood_area','wood_area_start,wood_area_end')
-            ->fieldBetween('available_area','available_area_start,available_area_end')
-            ->fieldBetween('number','number_start,number_end')
-            ->fieldBetween('basement_floor_area','basement_floor_area_start,basement_floor_area_end')
-            ->fieldBetween('building_height','building_height_start,building_height_end');
-        $query->dateBetween('login_at,create_at')
-            ->where(['is_deleted' => '0'])
-            ->order('id desc')
-            ->page();
-    }
-
-    /**
-     * 列表数据处理
-     * @param array $data
-     */
-    protected function _index2_page_filter(&$data)
-    {
-        foreach ($data as &$vo) {
-            $vo['main_project_name'] = Db::name('system_main_project')->where('id',$vo['main_project_id'])->value('project_name');
-            $vo['category_name'] = Db::name('system_goods_cate')->where('id',$vo['category_id'])->value('title');
-        }
-        $menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
-        $this->menus = Data::arr2table(array_merge([['id' => '', 'pid' => '-1', 'title' => '--全部--']],$menus ));
-
-    }
-
-
-    /**
-     * 主项目详情
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function projectinfo()
-    {
-        $this->_form($this->table, 'info');
-    }
-
-
-    /**
-     * 创建主项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function add()
-    {
-        $this->title = '创建主项目';
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 编辑主项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function edit()
-    {
-        $this->title = '编辑主项目';
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 表单数据处理
-     * @param array $data
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    public function _form_filter(&$data)
-    {
-        if ($this->request->isPost()) {
-
-        } else {
-            if (!empty($data)){
-                $data['category_name'] = Db::name('system_goods_cate')->where('id',$data['category_id'])->value('title');
-                //省
-                $province = Db::name('system_area')->where('level',1)->select();
-                $this->province = $province;
-                //市
-                $pid = Db::name('system_area')->where('name',$data['construction_site_province'])->value('id');
-                $city = Db::name('system_area')->where('level',2)->where('pid',$pid)->select();
-                $this->city = $city;
-                //区
-                $pid2 = Db::name('system_area')->where('name',$data['construction_site_city'])->value('id');
-                $area = Db::name('system_area')->where('level',3)->where('pid',$pid2)->select();
-                $this->area = $area;
-            }else{
-                //省
-                $province = Db::name('system_area')->where('level',1)->select();
-                $this->province = $province;
-            }
-
-            $menus = Db::name('system_goods_cate')->where(['status' => '1'])->where('is_deleted', 0)->order('id asc')->column('id,pid,title');
-            $this->menus = Data::arr2table($menus);
-
-            $template = Db::name('system_template')->where('is_del',1)->select();
-            $this->template = $template;
-
-        }
-    }
-
-    /**
-     * 处理成功回调
-     */
-    public function _form_result($result,$data){
-        if ($result) {
-            $this->success('成功',url('/#/admin/main_project/index'));
-        }
-    }
-
-    /**
-     * 删除主项目
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function remove()
-    {
-        $this->_save($this->table, ['is_deleted' => '1']);
-        //$this->_delete($this->table);
-    }
-
-
-    /**
-     * 获取市
-     */
-    public function get_city(){
-        $name = $this->app->request->get('id');
-        $id = Db::name('system_area')->where('name',$name)->where('level',1)->value('id');
-        $city_list = Db::name('system_area')->where('pid',$id)->where('level',2)->select();
-        $this->success('成功',$city_list);
-    }
-
-    /**
-     * 获取区
-     */
-    public function get_area(){
-        $name = $this->app->request->get('id');
-        $id = Db::name('system_area')->where('name',$name)->where('level',2)->value('id');
-        $area_list = Db::name('system_area')->where('pid',$id)->where('level',3)->select();
-        $this->success('成功',$area_list);
-    }
-
-
-    /**
-     * 导入主项目数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function import()
-    {
-        list($msec, $sec) = explode(' ', microtime());
-        $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);  //毫秒值
-        $get = $this->request->get();
-        $import_path = $_SERVER['DOCUMENT_ROOT'].'/'.$get['path'];
-        $project_id = $get['project_id'];
-        $num = 3;
-        try {
-            $objReader =\PHPExcel_IOFactory::createReader('Excel2007');
-            $objExcel = $objReader->load($import_path);
-            $list = $objExcel->getActiveSheet()->toArray();
-            if (!isset($list[1][8]) || !$list[1][8] || !isset($list[1][9]) || !$list[1][9] || !isset($list[1][10]) || !$list[1][10]){
-                $this->error('失败');
-            }
-            if ($list[1][11]){
-                $this->error('失败');
-            }
-            Db::name($this->table3)->where('project_id',$project_id)->delete();
-            Db::name($this->table)->where('id',$project_id)->update(['url'=>$get['url']]);
-            $result = 0;
-            foreach ($list as $k=>$v){
-                if($k>=$num-1){
-                    if(array_filter($v)){
-                        $data=[];
-                        foreach ($v as $kk=>$vv){
-                            $data[IntToChr($kk)]=trim($vv);
-                        }
-                        $date['project_id'] = $project_id;
-                        $date['number'] = $data['A'];
-                        $date['subjects'] = $data['B'];
-                        $date['costs_are_excluded'] = $data['C'];
-                        $date['costs_are_excluded1'] = str_replace(',','',$data['C']);
-                        $date['total_vat'] = $data['D'];
-                        $date['total_vat1'] = str_replace(',','',$data['D']);
-                        $date['measurement_cost'] = $data['E'];
-                        $date['measurement_cost1'] = str_replace(',','',$data['E']);
-                        $date['area'] = $data['F'];
-                        $date['unilateral_cost_indicator'] = $data['G'];
-                        $date['unilateral_cost_indicator1'] = str_replace(',','',$data['G']);
-                        $date['single_cost_indicator'] = $data['H'];
-                        $date['single_cost_indicator1'] = str_replace(',','',$data['H']);
-                        $date['single_party_cost_tax'] = $data['I'];
-                        $date['single_party_cost_tax1'] = str_replace(',','',$data['I']);
-                        $date['single_party_cost_no_tax'] = $data['J'];
-                        $date['single_party_cost_no_tax1'] = str_replace(',','',$data['J']);
-                        $date['note'] = $data['K'];
-                        $date['create_at'] = date('Y-m-d H:i:s');
-                        $numbers = explode('.',$data['A']);
-                        if (count($numbers)>1){
-                            array_pop($numbers); //去掉数组最后一组元素
-                            $number = implode('.',$numbers);
-                            $date['pid'] = Db::name($this->table3)->where('project_id',$project_id)->where('number',$number)->value('id');
-                            $date['pname'] = Db::name($this->table3)->where('project_id',$project_id)->where('number',$number)->value('subjects');
-                        }else{
-                            $date['pid'] = 0;
-                            $date['pname'] = '';
-                        }
-                        if (Db::table($this->table3)->insertGetId($date)){
-                            $result = 1;
-                        }else{
-                            $result = 0;
-                            break;
-                        }
-                    }
-                }
-            }
-            if ($result==1){
-                $this->success('成功');
-            }else{
-                $this->error('失败');
-            }
-
-        } catch (\think\exception\ValidateException $e) {
-            $this->error($e->getMessage());
-        }
-    }
-
-
-    /**
-     * 查看数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function look()
-    {
-        $id = $this->app->request->get('id');
-        $this->title = '查看';
-        $list = Db::name($this->table3)
-            ->where('project_id',$id)
-            ->order('id asc')
-            ->select();
-        $this->assign('list',$list);
-        $this->fetch();
-    }
-
-
-    /**
-     * 下载数据
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function down()
-    {
-
-    }
-
-    /**
-     * 数据对比
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function contrast()
-    {
-        set_time_limit(0);
-        $this->title = '数据对比';
-        $ids = $this->request->get('ids');
-        $this->assign('ids',$ids);
-//        $query = $this->_query($this->table3);
-//        $query->whereIn('project_id',$ids)
-//            ->group('subjects')
-//            ->order('id asc')
-//            ->field('id,pid,number,subjects')
-//            ->page();
-
-        $list = Db::name($this->table3)
-            ->whereIn('project_id',$ids)
-            ->group('subjects')
-            ->order('id asc')
-            ->field('id,pid,pname,number,subjects')
-            ->select();
-
-
-
-        $list = $this->deal_list($ids,$list);
-
-        $list = $this->get_attr($list);
-//        $list = $this->get_attr($list,0);
-
-        $this->assign('list',$list);
-        $this->fetch();
-    }
-
-
-
-    public function get_attr($a,$pid=''){
-        $tree = array();                                //每次都声明一个新数组用来放子元素
-        foreach($a as $v){
-            if($v['pname'] == $pid){                      //匹配子记录
-               // $v['children'] = $this->get_attr($a,$v['number']); //递归获取子记录
-                $v['children'] = $this->get_attr($a,$v['subjects']); //递归获取子记录
-                $tree[] = $v;                           //将记录存入新数组
-            }
-        }
-        return $tree;                                  //返回新数组
-    }
-
-    //列表处理
-    public function deal_list($ids,$list){
-        foreach ($list as &$v){
-            $where = [];
-            $where[] = ['project_id','in',$ids];
-            $where[] = ['subjects','eq', $v['subjects']];
-            //---不含增值税测算成本---//
-            //参考区间
-            $costs_are_excluded_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('costs_are_excluded','neq','')
-                ->min('costs_are_excluded1');
-            $costs_are_excluded_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('costs_are_excluded','neq','')
-                ->max('costs_are_excluded1');
-            $v['costs_are_excluded_interval'] = $costs_are_excluded_interval_start.'-'.$costs_are_excluded_interval_end;
-            //算数平均值
-            $costs_are_excluded_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('costs_are_excluded','neq','')
-                ->sum('costs_are_excluded1');
-            $costs_are_excluded_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('costs_are_excluded','neq','')
-                ->count();
-            $v['costs_are_excluded_arithmetic_mean'] = ($costs_are_excluded_arithmetic_mean_all==0 || $costs_are_excluded_arithmetic_mean_count==0) ? 0 : $costs_are_excluded_arithmetic_mean_all/$costs_are_excluded_arithmetic_mean_count;
-            //有效样本量
-            $v['costs_are_excluded_valid_sample_size'] = $costs_are_excluded_arithmetic_mean_count;
-
-
-            //---增值税总额---//
-            //参考区间
-            $total_vat_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('total_vat','neq','')
-                ->min('total_vat1');
-            $total_vat_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('total_vat','neq','')
-                ->max('total_vat1');
-            $v['total_vat_interval'] = $total_vat_interval_start.'-'.$total_vat_interval_end;
-            //算数平均值
-            $total_vat_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('total_vat','neq','')
-                ->sum('total_vat1');
-            $total_vat_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('total_vat','neq','')
-                ->count();
-            $v['total_vat_arithmetic_mean'] = ($total_vat_arithmetic_mean_all==0 || $total_vat_arithmetic_mean_count==0) ? 0 : $total_vat_arithmetic_mean_all/$total_vat_arithmetic_mean_count;
-            //有效样本量
-            $v['total_vat_valid_sample_size'] = $total_vat_arithmetic_mean_count;
-
-            //---含增值税测算成本---//
-            //参考区间
-            $measurement_cost_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('measurement_cost','neq','')
-                ->min('measurement_cost1');
-            $measurement_cost_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('measurement_cost','neq','')
-                ->max('measurement_cost1');
-            $v['measurement_cost_interval'] = $measurement_cost_interval_start.'-'.$measurement_cost_interval_end;
-            //算数平均值
-            $measurement_cost_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('measurement_cost','neq','')
-                ->sum('measurement_cost1');
-            $measurement_cost_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('measurement_cost','neq','')
-                ->count();
-            $v['measurement_cost_arithmetic_mean'] = ($measurement_cost_arithmetic_mean_all==0 || $measurement_cost_arithmetic_mean_count==0) ? 0 : $measurement_cost_arithmetic_mean_all/$measurement_cost_arithmetic_mean_count;
-            //有效样本量
-            $v['measurement_cost_valid_sample_size'] = $measurement_cost_arithmetic_mean_count;
-
-
-            //---单方成本指标(不含税)---//
-            //参考区间
-            $unilateral_cost_indicator_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_cost_indicator','neq','')
-                ->min('unilateral_cost_indicator1');
-            $unilateral_cost_indicator_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_cost_indicator','neq','')
-                ->max('unilateral_cost_indicator1');
-            $v['unilateral_cost_indicator_interval'] = $unilateral_cost_indicator_interval_start.'-'.$unilateral_cost_indicator_interval_end;
-            //算数平均值
-            $unilateral_cost_indicator_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_cost_indicator','neq','')
-                ->sum('unilateral_cost_indicator1');
-            $unilateral_cost_indicator1_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('unilateral_cost_indicator','neq','')
-                ->count();
-            $v['unilateral_cost_indicator_arithmetic_mean'] = ($unilateral_cost_indicator_arithmetic_mean_all==0 || $unilateral_cost_indicator1_arithmetic_mean_count==0) ? 0 : $unilateral_cost_indicator_arithmetic_mean_all/$unilateral_cost_indicator1_arithmetic_mean_count;
-            //有效样本量
-            $v['unilateral_cost_indicator_valid_sample_size'] = $unilateral_cost_indicator1_arithmetic_mean_count;
-
-            //---单方成本指标(含税)---//
-            //参考区间
-            $single_cost_indicator_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_cost_indicator','neq','')
-                ->min('single_cost_indicator1');
-            $single_cost_indicator_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_cost_indicator','neq','')
-                ->max('single_cost_indicator1');
-            $v['single_cost_indicator_interval'] = $single_cost_indicator_interval_start.'-'.$single_cost_indicator_interval_end;
-            //算数平均值
-            $single_cost_indicator_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_cost_indicator','neq','')
-                ->sum('single_cost_indicator1');
-            $single_cost_indicator_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_cost_indicator','neq','')
-                ->count();
-            $v['single_cost_indicator_arithmetic_mean'] = ($single_cost_indicator_arithmetic_mean_all==0 || $single_cost_indicator_arithmetic_mean_count==0) ? 0 : $single_cost_indicator_arithmetic_mean_all/$single_cost_indicator_arithmetic_mean_count;
-            //有效样本量
-            $v['single_cost_indicator_valid_sample_size'] = $single_cost_indicator_arithmetic_mean_count;
-
-            //---可售单方成本指标(不含税)---//
-            //参考区间
-            $single_party_cost_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->min('single_party_cost_tax1');
-            $single_party_cost_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->max('single_party_cost_tax1');
-            $v['single_party_cost_tax_interval'] = $single_party_cost_tax_interval_start.'-'.$single_party_cost_tax_interval_end;
-            //算数平均值
-            $single_party_cost_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->sum('single_party_cost_tax1');
-            $single_party_cost_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_tax','neq','')
-                ->count();
-            $v['single_party_cost_tax_arithmetic_mean'] = ($single_party_cost_tax_arithmetic_mean_all==0 || $single_party_cost_tax_arithmetic_mean_count==0) ? 0 : $single_party_cost_tax_arithmetic_mean_all/$single_party_cost_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_tax_valid_sample_size'] = $single_party_cost_tax_arithmetic_mean_count;
-
-
-            //---可售单方成本指标(含税)---//
-            //参考区间
-            $single_party_cost_no_tax_interval_start = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->min('single_party_cost_no_tax1');
-            $single_party_cost_no_tax_interval_end = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->max('single_party_cost_no_tax1');
-            $v['single_party_cost_no_tax_interval'] = $single_party_cost_no_tax_interval_start.'-'.$single_party_cost_no_tax_interval_end;
-            //算数平均值
-            $single_party_cost_no_tax_arithmetic_mean_all = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->sum('single_party_cost_no_tax1');
-            $single_party_cost_no_tax_arithmetic_mean_count = Db::name($this->table3)
-                ->where($where)
-                ->where('single_party_cost_no_tax','neq','')
-                ->count();
-            $v['single_party_cost_no_tax_arithmetic_mean'] = ($single_party_cost_no_tax_arithmetic_mean_all==0 || $single_party_cost_no_tax_arithmetic_mean_count==0) ? 0 : $single_party_cost_no_tax_arithmetic_mean_all/$single_party_cost_no_tax_arithmetic_mean_count;
-            //有效样本量
-            $v['single_party_cost_no_tax_valid_sample_size'] = $single_party_cost_no_tax_arithmetic_mean_count;
-        }
-        return $list;
-    }
-
-
-
-    /**
-     * 列表数据处理
-     * @param array $data
-     */
-    protected function _contrast_page_filter(&$data)
-    {
-        $ids = $this->request->get('ids');
-        $data = $this->deal_list($ids,$data);
-    }
-
-    /**
-     * 对比数据导出
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function download()
-    {
-        $ids = $this->request->get('ids');
-        $list = Db::name($this->table3)->whereIn('project_id',$ids)
-            ->group('subjects')
-            ->order('id asc')
-            ->field('id,pid,number,subjects')
-            ->select();
-        $list = $this->deal_list($ids,$list);
-        $objPHPExcel = new \PHPExcel();//实例化phpexcel
-        $filename = '数据分析情况';
-        $indexKey = array(
-            'number',
-            'subjects',
-            'costs_are_excluded_interval',
-            'costs_are_excluded_arithmetic_mean',
-            'costs_are_excluded_valid_sample_size',
-            'total_vat_interval',
-            'total_vat_arithmetic_mean',
-            'total_vat_valid_sample_size',
-            'measurement_cost_interval',
-            'measurement_cost_arithmetic_mean',
-            'measurement_cost_valid_sample_size',
-            'unilateral_cost_indicator_interval',
-            'unilateral_cost_indicator_arithmetic_mean',
-            'unilateral_cost_indicator_valid_sample_size',
-            'single_cost_indicator_interval',
-            'single_cost_indicator_arithmetic_mean',
-            'single_cost_indicator_valid_sample_size',
-            'single_party_cost_tax_interval',
-            'single_party_cost_tax_arithmetic_mean',
-            'single_party_cost_tax_valid_sample_size',
-            'single_party_cost_no_tax_interval',
-            'single_party_cost_no_tax_arithmetic_mean',
-            'single_party_cost_no_tax_valid_sample_size'
-        );
-        $header_arr = array('A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
-        $styleThinBlackBorderOutline = array(
-            'borders' => array(
-                'allborders' => array( //设置全部边框
-                    'style' => \PHPExcel_Style_Border::BORDER_THIN //粗的是thick
-                ),
-
-            ),
-        );
-        $count = count($list)+3;
-        $objPHPExcel->getActiveSheet()->getStyle( 'A1:W'.$count)->applyFromArray($styleThinBlackBorderOutline);
-        $objPHPExcel -> getActiveSheet() -> getColumnDimension(\PHPExcel_Cell::stringFromColumnIndex(0)) -> setAutoSize(true);
-        //接下来就是写数据到表格里面去
-        $objActSheet = $objPHPExcel->getActiveSheet();
-        $objPHPExcel->getActiveSheet()->mergeCells('A1:V1');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('A1', '数据分析结果');
-        $objPHPExcel->getActiveSheet()->getStyle('A1')->getFont()->setSize(16); //第一行字体大小
-        $objPHPExcel->getActiveSheet()->getStyle('A1')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('A2:A3');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('A2', '序号');
-        $objPHPExcel->getActiveSheet()->getStyle('A2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('B2:B3');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('B2', '成本预算科目');
-        $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('C2:E2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('C2', '不含增值税测算成本');
-        $objPHPExcel->getActiveSheet()->getStyle('C2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('F2:H2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('F2', '增值税总额');
-        $objPHPExcel->getActiveSheet()->getStyle('F2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('I2:K2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('I2', '含增值税测算成本');
-        $objPHPExcel->getActiveSheet()->getStyle('I2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('L2:N2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('L2', '建面单方成本指标(不含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('L2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-        $objPHPExcel->getActiveSheet()->mergeCells('O2:Q2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('O2', '建面单方成本指标(含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('O2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('R2:T2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('R2', '可售单方成本指标(不含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('R2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->mergeCells('U2:W2');//合并
-        $objPHPExcel->getActiveSheet()->setCellValue('U2', '可售单方成本指标(含税)');
-        $objPHPExcel->getActiveSheet()->getStyle('U2')->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
-
-        $objPHPExcel->getActiveSheet()->setCellValue('C3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('D3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('E3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('F3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('G3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('H3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('I3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('J3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('K3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('L3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('M3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('N3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('O3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('P3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('Q3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('R3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('S3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('T3', '有效样本量');
-        $objPHPExcel->getActiveSheet()->setCellValue('U3', '参考区间');
-        $objPHPExcel->getActiveSheet()->setCellValue('V3', '算数平均值	');
-        $objPHPExcel->getActiveSheet()->setCellValue('W3', '有效样本量');
-        $startRow = 4;
-        foreach ($list as &$row) {
-            foreach ($indexKey as $key => $value){
-                //这里是设置单元格的内容
-                $objActSheet->setCellValue($header_arr[$key].$startRow,$row[$value]);
-            }
-            $startRow++;
-        }
-
-        // 下载这个表格,在浏览器输出
-        header('Content-Disposition: attachment;filename="'.$filename.'.xlsx"');//下载下来的表格名
-        header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
-        $PHPWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, "Excel2007");//创建生成的格式
-        $PHPWriter->save('php://output');
-
-    }
-
-    /**
-     * 对比数据查看
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function see()
-    {
-        $this->title = '对比数据查看';
-        $subjects = $this->request->get('subjects');
-        $ids = $this->request->get('ids');
-        $this->assign('subjects',$subjects);
-        $this->assign('ids',$ids);
-
-        $list = Db::name($this->table3)
-            ->whereIn('project_id',$ids)
-            ->where('subjects','neq',$subjects)
-            ->where('costs_are_excluded','neq','')
-            ->orderRand()
-            ->field('id,pid,number,subjects')
-            ->limit(15)
-            ->select();
-
-        $where[] = ['project_id','in',$ids];
-        foreach ($list as &$v){
-            $v['costs_are_excluded_min'] = Db::name($this->table3)
-                ->where($where)
-                ->where('subjects',$v['subjects'])
-                ->where('costs_are_excluded','neq','')
-                ->min('costs_are_excluded1');
-            $v['costs_are_excluded_max'] = Db::name($this->table3)
-                ->where('subjects',$v['subjects'])
-                ->where($where)
-                ->where('costs_are_excluded','neq','')
-                ->max('costs_are_excluded1');
-        }
-        $this->assign('list',$list);
-
-
-        $project_ids = Db::name($this->table3)->whereIn('project_id',$ids)->where('subjects',$subjects)->column('project_id');
-        $arr = [];
-        foreach ($project_ids as &$v){
-            $a['project_name'] = Db::name($this->table)->where('id',$v)->value('project_name');
-            $a['value'] = Db::name($this->table3)->where('project_id',$v)->where('subjects',$subjects)->value('costs_are_excluded');
-            array_push($arr,$a);
-        }
-//        dump($arr);
-
-
-        $this->fetch();
-    }
-
-    /**
-     * 获取详情
-     * @auth fale
-     */
-    public function get_see_info(){
-        $subjects = $this->request->get('subjects');
-        $ids = $this->request->get('ids');
-        $field = $this->request->get('field');
-        $array['subjects'] = $subjects;
-        $where[] = ['project_id','in',$ids];
-        $where[] = ['subjects','eq', $subjects];
-        $min = Db::name($this->table3)
-            ->where($where)
-            ->where($field,'neq','')
-            ->min($field.'1');
-        $max = Db::name($this->table3)
-            ->where($where)
-            ->where($field,'neq','')
-            ->max($field.'1');
-
-        if ($min==$max){
-            $interval = $this->interval($min,$max,1);
-        }else{
-            $interval = $this->interval($min,$max);
-        }
-
-        $array['field']['title'] = $interval;
-        $array['field']['value'] = $this->interval_count($interval,$where,$field);
-
-        $project_ids = Db::name($this->table3)->whereIn('project_id',$ids)->where('subjects',$subjects)->column('project_id');
-        $arr = [];
-        foreach ($project_ids as &$v){
-            $a['project_name'] = Db::name($this->table)->where('id',$v)->value('project_name');
-            $value = Db::name($this->table3)->where('project_id',$v)->where('subjects',$subjects)->value($field);
-            $a['value'] = $value;
-            $a['note'] = Db::name($this->table3)->where('project_id',$v)->where('subjects',$subjects)->value('note');
-            if ($value){
-                array_push($arr,$a);
-            }
-
-        }
-        $array['right'] = $arr;
-
-
-        $this->success('成功',$array);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-//        //---不含增值税测算成本---//
-//        //参考区间
-//        $costs_are_excluded_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('costs_are_excluded','neq','')
-//            ->min('costs_are_excluded1');
-//        $costs_are_excluded_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('costs_are_excluded','neq','')
-//            ->max('costs_are_excluded1');
-//        $costs_are_excluded_interval = $this->interval($costs_are_excluded_min,$costs_are_excluded_max);
-//        $array['costs_are_excluded']['title'] = $costs_are_excluded_interval;
-//        $array['costs_are_excluded']['value'] = $this->interval_count($costs_are_excluded_interval,$where,'costs_are_excluded');
-//        //---增值税总额---//
-//        //参考区间
-//        $total_vat_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_vat','neq','')
-//            ->min('total_vat1');
-//        $total_vat_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('total_vat','neq','')
-//            ->max('total_vat1');
-//        $total_vat_interval = $this->interval($total_vat_min,$total_vat_max);
-//        $array['total_vat']['title'] = $total_vat_interval;
-//        $array['total_vat']['value'] = $this->interval_count($total_vat_interval,$where,'total_vat');
-//        //---含增值税测算成本---//
-//        //参考区间
-//        $measurement_cost_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('measurement_cost','neq','')
-//            ->min('measurement_cost1');
-//        $measurement_cost_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('measurement_cost','neq','')
-//            ->max('measurement_cost1');
-//        $measurement_cost_interval = $this->interval($measurement_cost_min,$measurement_cost_max);
-//        $array['measurement_cost']['title'] = $measurement_cost_interval;
-//        $array['measurement_cost']['value'] = $this->interval_count($measurement_cost_interval,$where,'measurement_cost');
-//
-//        //---单方成本指标(不含税)---//
-//        //参考区间
-//        $unilateral_cost_indicator_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_cost_indicator','neq','')
-//            ->min('unilateral_cost_indicator1');
-//        $unilateral_cost_indicator_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('unilateral_cost_indicator','neq','')
-//            ->max('unilateral_cost_indicator1');
-//        $unilateral_cost_indicator_interval = $this->interval($unilateral_cost_indicator_min,$unilateral_cost_indicator_max);
-//        $array['unilateral_cost_indicator']['title'] = $unilateral_cost_indicator_interval;
-//        $array['unilateral_cost_indicator']['value'] = $this->interval_count($unilateral_cost_indicator_interval,$where,'unilateral_cost_indicator');
-//
-//        //---单方成本指标(含税)---//
-//        //参考区间
-//        $single_cost_indicator_min = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_cost_indicator','neq','')
-//            ->min('single_cost_indicator1');
-//        $single_cost_indicator_max = Db::name($this->table3)
-//            ->where($where)
-//            ->where('single_cost_indicator','neq','')
-//            ->max('single_cost_indicator1');
-//        $single_cost_indicator_interval = $this->interval($single_cost_indicator_min,$single_cost_indicator_max);
-//        $array['single_cost_indicator']['title'] = $single_cost_indicator_interval;
-//        $array['single_cost_indicator']['value'] = $this->interval_count($single_cost_indicator_interval,$where,'single_cost_indicator');
-//
-//        $this->success('成功',$array);
-    }
-
-
-
-    //算区间平均值
-    public function interval($min,$max,$copies=10){
-        $cha = ($max-$min)/$copies;
-        $arr = [];
-        for ($i=0;$i<$copies;$i++){
-            $arra = $min.'-'.($min+$cha);
-            $min = $min+$cha;
-            array_push($arr,$arra);
-        }
-        return $arr;
-    }
-
-    //算区间平均值数量
-    public function interval_count($arr,$where,$field){
-        $value = [];
-        foreach ($arr as &$v){
-            $a = explode('-',$v);
-            $count = Db::name($this->table3)
-                ->where($where)
-                ->where($field,'neq','')
-                ->whereBetween($field.'1',[$a[0],$a[1]])
-                ->count();
-            array_push($value,$count);
-        }
-        return $value;
-    }
-
-
-
-
-}

+ 1 - 1
application/admin/controller/Oplog.php

@@ -35,7 +35,7 @@ class Oplog extends Controller
     /**
      * 系统操作日志
      * @auth false
-     * @menu true
+     * @menu false
      * @throws \think\Exception
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\ModelNotFoundException

+ 0 - 453
application/admin/view/child_project/contrast.html

@@ -1,453 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm" style="background-color: #DC2219" onclick="getIds()" >导出</button>
-{/if}
-
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color:#DC2219;color: #FFFFFF;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        <input type="hidden" name="ids" id="ids" value="{$ids}">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap' rowspan="2">成本项目</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本(元/m2)(含税)</th>
-            <th class='text-center nowrap' colspan="3">总价(万元)(含税)</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本(元/m2)(不含税)</th>
-            <th class='text-center nowrap' colspan="3">总价(万元)(不含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本(元/m2)(含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本(元/m2)(不含税)</th>
-            <th class='text-center nowrap' colspan="3">工程量</th>
-            <th class='text-center nowrap' colspan="3">建面单方含量</th>
-            <th class='text-center nowrap' colspan="3">可售单方含量</th>
-            <th class='text-center nowrap' colspan="3">预留指标1</th>
-            <th class='text-center nowrap' colspan="3">预留指标2</th>
-            <th class='text-center nowrap' rowspan="2">操作</th>
-        </tr>
-        <tr>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr class="tr_{$vo.id}">
-            <td class='text-left nowrap'
-                onclick='dianji($(this))' data-id="{$vo.id}">
-                {$vo.cost_project|default=''}
-                {if count($vo['children']) > 0}
-                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vo.id}"></i>
-                {/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_interval|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_arithmetic_mean|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.quantities_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.quantities_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.quantities_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.saleable_single_party_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.saleable_single_party_no_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>
-                {if auth("see")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vo.cost_project}&ids={$ids}'>查 看</a>
-                {/if}
-            </td>
-        </tr>
-            {foreach $vo['children'] as $k=>$v}
-            <tr class="t tr_{$vo.id} tr_{$v.id} trs_{$vo.id}" style="display: none">
-                <td class='text-left nowrap'
-                    onclick='dianji($(this))' data-id="{$v.id}">
-                    <span class="color-desc" style="margin-left: 15px; margin-right: 10px"></span>{$v.cost_project|default=''}
-                    {if count($v['children']) > 0}
-                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$v.id}"></i>
-                    {/if}
-                </td>
-                <td class='text-left nowrap'>{$v.single_party_cost_interval|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_arithmetic_mean|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_excluding_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_excluding_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_excluding_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-                <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-                <td class='text-left nowrap'>{$v.quantities_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.quantities_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.quantities_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_excluding_excluding_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-                <td class='text-left nowrap'>{$v.saleable_single_party_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-                <td class='text-left nowrap'>{$v.saleable_single_party_no_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>
-                    {if auth("see")}
-                    <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$v.cost_project}&ids={$ids}'>查 看</a>
-                    {/if}
-                </td>
-            </tr>
-                {foreach $v['children'] as $k=>$vv}
-                <tr class="t tr_{$v.id} tr_{$vv.id} trs_{$vo.id} trs_{$v.id}" style="display: none">
-                    <td class='text-left nowrap'
-                        onclick='dianji($(this))' data-id="{$vv.id}">
-                        <span class="color-desc" style="margin-left: 15px; margin-right: 20px"></span>{$vv.cost_project|default=''}
-                        {if count($vv['children']) > 0}
-                        <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vv.id}"></i>
-                        {/if}
-                    </td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_interval|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_arithmetic_mean|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_excluding_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_excluding_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_excluding_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-                    <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-                    <td class='text-left nowrap'>{$vv.quantities_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.quantities_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.quantities_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_excluding_excluding_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_no_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>
-                        {if auth("see")}
-                        <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vv.cost_project}&ids={$ids}'>查 看</a>
-                        {/if}
-                    </td>
-                </tr>
-                    {foreach $vv['children'] as $k=>$vvv}
-                    <tr class="t tr_{$vv.id} tr_{$vvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id}" style="display: none">
-                        <td class='text-left nowrap'
-                            onclick='dianji($(this))' data-id="{$vvv.id}">
-                            <span class="color-desc" style="margin-left: 15px; margin-right: 30px"></span>{$vvv.cost_project|default=''}
-                            {if count($vvv['children']) > 0}
-                            <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvv.id}"></i>
-                            {/if}
-                        </td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_interval|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_arithmetic_mean|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_excluding_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_excluding_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_excluding_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-                        <td class='text-left nowrap'>{$vvv.quantities_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.quantities_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.quantities_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_excluding_excluding_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_no_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>
-                            {if auth("see")}
-                            <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvv.cost_project}&ids={$ids}'>查 看</a>
-                            {/if}
-                        </td>
-                    </tr>
-                        {foreach $vvv['children'] as $k=>$vvvv}
-                        <tr class="t tr_{$vvv.id}  tr_{$vvvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id} trs_{$vvv.id}" style="display: none">
-                            <td class='text-left nowrap'
-                                onclick='dianji($(this))' data-id="{$vvvv.id}">
-                                <span class="color-desc" style="margin-left: 15px; margin-right: 40px"></span>{$vvvv.cost_project|default=''}
-                                {if count($vvvv['children']) > 0}
-                                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvv.id}"></i>
-                                {/if}
-                            </td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_interval|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_arithmetic_mean|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_excluding_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_excluding_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_excluding_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-                            <td class='text-left nowrap'>{$vvvv.quantities_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.quantities_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.quantities_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_excluding_excluding_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_no_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>
-                                {if auth("see")}
-                                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvv.cost_project}&ids={$ids}'>查 看</a>
-                                {/if}
-                            </td>
-                        </tr>
-                            {foreach $vvvv['children'] as $k=>$vvvvv}
-                            <tr class="t tr_{$vvvv.id} tr_{$vvvvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id} trs_{$vvv.id} trs_{$vvvv.id}" style="display: none">
-                                <td class='text-left nowrap'
-                                    onclick='dianji($(this))' data-id="{$vvvvv.id}">
-                                    <span class="color-desc" style="margin-left: 15px; margin-right: 50px"></span>{$vvvvv.cost_project|default=''}
-                                    {if count($vvvvv['children']) > 0}
-                                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvvv.id}"></i>
-                                    {/if}
-                                </td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_interval|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_arithmetic_mean|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_excluding_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_excluding_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_excluding_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-
-                                <td class='text-left nowrap'>{$vvvvv.quantities_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.quantities_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.quantities_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_excluding_excluding_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_content_excluding_valid_sample_size|default=''}</td>
-
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_tax_valid_sample_size|default=''}</td>
-
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_no_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_no_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.saleable_single_party_no_tax_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>
-                                    {if auth("see")}
-                                    <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvvv.cost_project}&ids={$ids}'>查 看</a>
-                                    {/if}
-                                </td>
-                            </tr>
-                            {/foreach}
-                        {/foreach}
-                    {/foreach}
-                {/foreach}
-            {/foreach}
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-    function getIds()
-    {
-        var ids = $("#ids").val();
-        window.location = '{:url("admin/child_project/download")}?ids=' +ids;
-    }
-    function dianji(e){
-        var id=e.attr('data-id');
-        var tr=e. parents('tr');
-
-        if(tr.hasClass('flag')){
-
-
-            $('.trs_'+id).hide();
-
-
-            tr.find('i').removeClass('layui-icon-triangle-d')
-            tr.find('i').addClass('layui-icon-triangle-r')
-
-            $('.trs_'+id).find('i').removeClass('layui-icon-triangle-d')
-            $('.trs_'+id).find('i').addClass('layui-icon-triangle-r')
-
-            $('.trs_'+id).removeClass('flag')
-            tr.removeClass('flag')
-        }else{
-
-
-            e.find('i').removeClass('layui-icon-triangle-r')
-            e.find('i').addClass('layui-icon-triangle-d')
-            $('.tr_'+id).show();
-            tr.addClass('flag')
-
-
-
-        }
-
-
-
-
-
-
-
-
-
-
-
-
-    }
-</script>
-{/block}

+ 0 - 108
application/admin/view/child_project/contrast1.html

@@ -1,108 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm layui-btn-primary layui-bg-red" onclick="getIds()" >导出</button>
-{/if}
-
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color: snow;color: #333;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        <input type="hidden" name="ids" id="ids" value="{$ids}">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap' rowspan="2">成本项目</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本(元/m2)(含税)</th>
-            <th class='text-center nowrap' colspan="3">总价(万元)(含税)</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本(元/m2)(不含税)</th>
-            <th class='text-center nowrap' colspan="3">总价(万元)(不含税)</th>
-            <th class='text-center nowrap' colspan="3">工程量</th>
-            <th class='text-center nowrap' colspan="3">单方含量(含税)</th>
-            <th class='text-center nowrap' colspan="3">单方含量(不含税)</th>
-            <th class='text-center nowrap' rowspan="2">操作</th>
-        </tr>
-        <tr style="border: 1px">
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr style="border: 1px">
-
-            <td class='text-left nowrap'>{$vo.cost_project|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_interval|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_arithmetic_mean|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.total_price_included_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.quantities_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.quantities_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.quantities_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.unilateral_content_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_valid_sample_size|default=''}</td>
-
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_excluding_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>
-                {if auth("look")}
-                <a data-dbclick class="layui-btn layui-btn-sm layui-bg-red" data-title="查看" data-open='{:url("look")}'>查 看</a>
-                {/if}
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-    function getIds()
-    {
-        var ids = $("#ids").val();
-        window.location = '{:url("admin/child_project/download")}?ids=' +ids;
-    }
-</script>
-{/block}

+ 0 - 400
application/admin/view/child_project/form.html

@@ -1,400 +0,0 @@
-{extend name='main'}
-{block name="button"}
-{if auth("add")}
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color:#DC2219;color: #FFFFFF;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-{/if}
-
-
-{/block}
-{block name="content"}
-
-<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body think-box-shadow padding-left-40">
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">选择主项目</span>
-                <select name='main_project_id' class='layui-select' required lay-verify="required" lay-search>
-                    <option value=''>请选择</option>
-                    {if isset($vo.id)}
-                    <!--{foreach $main_list as $menu}-->
-                    <!--{eq name='menu.id' value='$vo.main_project_id'}-->
-                    <option selected value='{$menu.id}'>{$menu.project_name}</option>
-                    <!--{else}-->
-                    <option value='{$menu.id}'>{$menu.project_name}</option>
-                    <!--{/eq}-->
-                    <!--{/foreach}-->
-                    {else}
-                    <!--{foreach $main_list as $menu}-->
-                    <option value='{$menu.id}'>{$menu.project_name}</option>
-                    <!--{/foreach}-->
-                    {/if}
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">项目名称</span>
-                <input name="project_name" required class="layui-input" placeholder="请输入项目名称" value="{$vo.project_name|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑分类</span>
-
-                <select name='category_id' class='layui-select' required lay-verify="required" lay-search>
-                    <option value=''>请选择</option>
-                    {if isset($vo.id)}
-                    <!--{foreach $menus as $menu}-->
-                    <!--{eq name='menu.id' value='$vo.category_id'}-->
-                    <option selected value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{else}-->
-                    <option value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{/eq}-->
-                    <!--{/foreach}-->
-                    {else}
-                    <!--{foreach $menus as $menu}-->
-                    <option value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{/foreach}-->
-                    {/if}
-                </select>
-
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑高度</span>
-                <input name="building_height" required class="layui-input" placeholder="请输入建筑高度" value="{$vo.building_height|default=''}">
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑层数</span>
-                <input name="construction_layer" required class="layui-input" placeholder="请输入建筑层数" value="{$vo.construction_layer|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地上层数</span>
-                <input name="upper_number" required class="layui-input" placeholder="请输入地上层数" value="{$vo.upper_number|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地下层数</span>
-                <input name="underground" class="layui-input" placeholder="请输入地下层数" value="{$vo.underground|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地下层高</span>
-                <input name="underground_layer" class="layui-input" placeholder="请输入地下层高" value="{$vo.underground_layer|default=''}">
-            </label>
-
-        </div>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">首层层高</span>
-                <input name="first_layer_high" class="layui-input" placeholder="请输入首层层高" value="{$vo.first_layer_high|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">标准层层高</span>
-                <input name="standard_height" class="layui-input" placeholder="请输入标准层层高" value="{$vo.standard_height|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">结构类型</span>
-                <select name="structure_type" required class="province-selector layui-select" id="structure_type" lay-verify="required" lay-search   >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['框架结构'=>'框架结构','剪力墙结构'=>'剪力墙结构','框架剪力墙结构'=>'框架剪力墙结构','断肢剪力墙结构'=>'断肢剪力墙结构','砖混结构'=>'砖混结构','钢结构'=>'钢结构','装配式混泥土结构'=>'装配式混泥土结构','框架简体结构'=>'框架简体结构'] as $k=>$v}
-                    {if $v eq $vo.structure_type}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['框架结构'=>'框架结构','剪力墙结构'=>'剪力墙结构','框架剪力墙结构'=>'框架剪力墙结构','断肢剪力墙结构'=>'断肢剪力墙结构','砖混结构'=>'砖混结构','钢结构'=>'钢结构','装配式混泥土结构'=>'装配式混泥土结构','框架简体结构'=>'框架简体结构'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑设防烈度</span>
-                <select name="building_fortification_intensity" required class="province-selector layui-select" id="building_fortification_intensity" lay-verify="required" lay-search   >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['6度'=>'6度','7度'=>'7度','8度'=>'8度','9度'=>'9度'] as $k=>$v}
-                    {if $v eq $vo.building_fortification_intensity}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['6度'=>'6度','7度'=>'7度','8度'=>'8度','9度'=>'9度'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-
-                </select>
-            </label>
-
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">抗震等级</span>
-                <select name="seismic_grade" required class="province-selector layui-select" id="seismic_grade" lay-verify="required" lay-search   >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['一级'=>'一级','二级'=>'二级','三级'=>'三级','四级'=>'四级'] as $k=>$v}
-                    {if $v eq $vo.seismic_grade}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['一级'=>'一级','二级'=>'二级','三级'=>'三级','四级'=>'四级'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">设计寿命</span>
-                <input name="design_life" class="layui-input" placeholder="请输入设计寿命" value="{$vo.design_life|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">基础类型</span>
-                <select name="base_type" required class="province-selector layui-select" id="base_type" lay-verify="required" lay-search   >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['不包含'=>'不包含','独立基础'=>'独立基础','条形基础'=>'条形基础','满堂基础'=>'满堂基础','桩基础'=>'桩基础','桩承台基础'=>'桩承台基础','混合基础'=>'混合基础','带形基础'=>'带形基础','筏板基础'=>'筏板基础','砖基础'=>'砖基础'] as $k=>$v}
-                    {if $v eq $vo.base_type}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['不包含'=>'不包含','独立基础'=>'独立基础','条形基础'=>'条形基础','满堂基础'=>'满堂基础','桩基础'=>'桩基础','桩承台基础'=>'桩承台基础','混合基础'=>'混合基础','带形基础'=>'带形基础','筏板基础'=>'筏板基础','砖基础'=>'砖基础'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">装修标准</span>
-                <input name="decorate_standard" class="layui-input" placeholder="请输入装修标准" value="{$vo.decorate_standard|default=''}">
-            </label>
-
-        </div>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">其他参数</span>
-                <input name="other_parameters" class="layui-input" placeholder="请输入其他参数" value="{$vo.other_parameters|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑面积</span>
-                <input name="construction_area" required class="layui-input" placeholder="请输入建筑面积" value="{$vo.construction_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地上建筑面积</span>
-                <input name="ground_floor_area" required class="layui-input" placeholder="请输入地上建筑面积" value="{$vo.ground_floor_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地下建筑面积</span>
-                <input name="underground_floor_area" required class="layui-input" placeholder="请输入地下建筑面积" value="{$vo.underground_floor_area|default=''}">
-            </label>
-
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑占地面积</span>
-                <input name="building_floor_area" class="layui-input" placeholder="请输入建筑占地面积" value="{$vo.building_floor_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">钢结构受益面积</span>
-                <input name="steel_benefit_area" class="layui-input" placeholder="请输入钢结构受益面积" value="{$vo.steel_benefit_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">木质构件面积</span>
-                <input name="wood_area"  class="layui-input" placeholder="请输入木质构件面积" value="{$vo.wood_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">可售面积</span>
-                <input name="available_area" class="layui-input" placeholder="请输入可售面积" value="{$vo.available_area|default=''}">
-            </label>
-
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">户数</span>
-                <input name="number" class="layui-input" placeholder="请输入户数" value="{$vo.number|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地下室底面积</span>
-                <input name="basement_floor_area" class="layui-input" placeholder="请输入地下室底面积" value="{$vo.basement_floor_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">其他说明</span>
-                <input name="other_instructions"  class="layui-input" placeholder="请输入其他说明" value="{$vo.other_instructions|default=''}">
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">模板类型</span>
-
-                <select name='template' class='layui-select' required lay-verify="required" lay-search>
-                    <option value=''>请选择</option>
-                    {if isset($vo.id)}
-                    <!--{foreach $template as $menu}-->
-                    <!--{eq name='menu.id' value='$vo.template'}-->
-                    <option selected value='{$menu.id}'>{$menu.title}</option>
-                    <!--{else}-->
-                    <option value='{$menu.id}'>{$menu.title}</option>
-                    <!--{/eq}-->
-                    <!--{/foreach}-->
-                    {else}
-                    <!--{foreach $template as $menu}-->
-                    <option value='{$menu.id}'>{$menu.title}</option>
-                    <!--{/foreach}-->
-                    {/if}
-                </select>
-
-            </label>
-        </div>
-
-
-
-        <div class="layui-form-item text-center">
-            {if isset($vo.id) && $vo.id neq ''}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
-            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
-            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" onclick="window.history.back()" type="button">取消</button>
-            <button class="layui-btn" type="submit" lay-submit >确定</button>
-        </div>
-
-
-    </div>
-</form>
-{/block}
-
-{block name='script'}
-<script>
-    window.form.render();
-    layui.use(['form', 'layedit', 'laydate'], function(){
-        var form = layui.form
-            ,layer = layui.layer
-            ,layedit = layui.layedit
-            ,laydate = layui.laydate;
-
-        //常规用法
-        laydate.render({
-            elem: '#test1'
-        });
-        laydate.render({
-            elem: '#test2',
-            done:function (value,date) {
-                var endtime = $("#test3").val()
-                if (endtime!=''){
-                    changeday(value,endtime)
-                }
-            }
-
-        });
-        laydate.render({
-            elem: '#test3',
-            done:function (value,date) {
-                var starttime = $("#test2").val()
-                if (starttime!=''){
-                    changeday(starttime,value)
-                }
-
-            }
-        });
-
-        form.on('select(province)', function (data) {
-            var val = data.value;
-             console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_city')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    //console.log(arr)
-                    if (arr.length>0){
-                        //$("#tow").attr("style","display:block;");//显示div
-                        var options='<option value="">请选择市</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择市</option>';
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-        form.on('select(city)', function (data) {
-            var val = data.value;
-            // console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_area')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    // console.log(arr)
-                    if (arr.length>0){
-                        var options='<option value="">请选择区</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择区</option>';
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-    });
-
-    function changeday(startdate,enddate) {
-        var day = 0;
-        if (startdate==enddate){
-            day = 1;
-        }else if (startdate>enddate){
-            day = 0;
-        }else {
-            day = getDaysBetween(startdate,enddate) + 1
-        }
-        $("#project_time").attr("value",day);
-    }
-
-    //计算两个日期相差的天数
-    function  getDaysBetween(dateString1,dateString2){
-        var  startDate = Date.parse(dateString1);
-        var  endDate = Date.parse(dateString2);
-        if (startDate>endDate){
-            return 0;
-        }
-        if (startDate==endDate){
-            return 1;
-        }
-        var days=(endDate - startDate)/(1*24*60*60*1000);
-        return  days;
-    }
-
-
-</script>
-{/block}

+ 0 - 150
application/admin/view/child_project/index.html

@@ -1,150 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm" style="background-color: #DC2219" onclick="getIds()" >去对比</button>
-{/if}
-
-{if auth("add")}
-<a data-dbclick data-title="新建子项目" class="layui-btn layui-btn-sm"  style="background-color: #DC2219" data-open='{:url("add")}'>新建项目</a>
-{/if}
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='child_project/index_search'}
-    <table class="layui-table margin-top-10" >
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='text-left nowrap'>项目名称</th>
-            <th class='text-left nowrap'>主项目</th>
-            <th class='text-left nowrap'>建筑分类</th>
-            <th class='text-left nowrap'>创建时间</th>
-            <th class='text-center nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <td class='list-table-check-td think-checkbox'>
-                {if $vo.url neq ''}  <label><input class="list-check-box" name="ids" value='{$vo.id}' type='checkbox'></label>{/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.project_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.main_project_name|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.category_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
-            <td class='text-left nowrap'>
-
-                {if auth("import")}
-                <a class='layui-btn layui-btn-normal layui-btn-sm dr' id="dr" style="background-color:#DC2219;margin-right: 10px;width: 65px " onclick="changename('{$vo.id}')">
-                    {if $vo.url eq ''}待导入{else}重新导入{/if}
-                </a>
-                {/if}
-
-                {if auth("edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #FFB822" data-title="编辑" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-<!--                {if auth("projectinfo")}-->
-<!--                <a data-title="项目详情" class="layui-btn layui-btn-sm" data-modal='{:url("projectinfo")}?id={$vo.id}'>项目详情</a>-->
-<!--                {/if}-->
-
-                {if $vo.url neq '' && auth("look")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #5AD729" data-title="查看" data-open='{:url("look")}?id={$vo.id}'>查 看</a>
-                {/if}
-
-                {if $vo.url neq '' && auth("down")}
-                <a href="{$vo.url}" class="layui-btn layui-btn-sm" style="background-color:#29B2D7 " download data-title="下载" >下 载</a>
-                {/if}
-
-                {if auth("remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" style="background-color: #2944D7" data-confirm="确定要删除吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
-                {/if}
-
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-
-    function getIds()
-    {
-        var id = document.getElementsByName('ids');
-        var value = new Array();
-        for (var i=0;i<id.length;i++){
-            if (id[i].checked){
-                value.push(id[i].value);
-            }
-        }
-        if (value.length<1){
-            layer.msg('请选择需要对比的数据');
-        }else if (value.length<2){
-            layer.msg('请选择至少两条数据');
-        }else{
-            $.form.href('{:url("admin/child_project/contrast")}?ids=' +value.toString());
-            //window.location = '{:url("admin/main_project/contrast")}?ids=' +value.toString();
-        }
-
-    }
-
-
-    var project_id = ''
-    function changename(val){
-        project_id = val
-    }
-    layui.use('upload', function(){
-        var upload = layui.upload;
-
-        //执行实例
-        var uploadInst = upload.render({
-            elem: '.dr' //绑定元素
-            ,url: 'admin/api.plugs/upload'
-            ,accept: 'file', //普通文件,
-            before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
-                console.log(obj)
-                // layer.load(); //上传loading
-            }
-            ,done: function(res){
-                if (res.uploaded == true){
-                    var value = {path:res.key,project_id:project_id,url:res.url}
-                    $.ajax({
-                        url:"/admin/child_project/import",
-                        type:'get',
-                        data:value
-                        ,success:function(result){
-                           // console.log(result.code);
-                            if (result.code==1){
-                                layer.msg('上传成功',{time:2000,end:function () {
-                                        location.reload();
-                                       // $.form.href('{:url("admin/child_project/index")}');
-                                    }});
-                            }else {
-                                layer.msg('上传失败,请核对表格模板是否正确!',{icon: 5});
-                            }
-                        }
-                    });
-                }else {
-                    layer.msg('上传失败',{icon: 5});
-                }
-                // layer.closeAll('loading'); //关闭loading
-            }
-            ,error: function(){
-                layer.msg('上传失败');
-            }
-        });
-    });
-</script>
-{/block}

+ 0 - 627
application/admin/view/child_project/index_search.html

@@ -1,627 +0,0 @@
-<style>
-    .layui-col-space12>*{
-        padding: 6px 0 6px 0 !important;
-    }
-</style>
-<fieldset>
-
-    <legend>条件搜索</legend>
-
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">项目名称</label>
-            <div class="layui-input-inline">
-                <input name="project_name" value="{$Think.get.project_name|default=''}" placeholder="请输入项目名称" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑分类</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="category_id">
-                    {foreach $menus as $k=>$v}
-                    {eq name='Think.get.category_id' value='$v.id.""'}
-                    <option selected value="{$v.id}">{$v.spl|raw}{$v.title}</option>
-                    {else}
-                    <option value="{$v.id}">{$v.spl|raw}{$v.title}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑高度</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_height_start" id="building_height_start" placeholder="" value="{$Think.get.building_height_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_height_end" id="building_height_end" placeholder="" value="{$Think.get.building_height_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑层数</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="construction_layer_start" id="construction_layer_start" placeholder="" value="{$Think.get.construction_layer_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="construction_layer_end" id="construction_layer_end" placeholder="" value="{$Think.get.construction_layer_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地上层数</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="upper_number_start" id="upper_number_start" placeholder="" value="{$Think.get.upper_number_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="upper_number_end" id="upper_number_end" placeholder="" value="{$Think.get.upper_number_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地下层数</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_start" id="underground_start" placeholder="" value="{$Think.get.underground_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_end" id="underground_end" placeholder="" value="{$Think.get.underground_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地下层高</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_layer_start" id="underground_layer_start" placeholder="" value="{$Think.get.underground_layer_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_layer_end" id="underground_layer_end" placeholder="" value="{$Think.get.underground_layer_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">首层层高</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="first_layer_high_start" id="first_layer_high_start" placeholder="" value="{$Think.get.first_layer_high_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="first_layer_high_end" id="first_layer_high_end" placeholder="" value="{$Think.get.first_layer_high_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">标准层层高</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="standard_height_start" id="standard_height_start" placeholder="" value="{$Think.get.standard_height_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="standard_height_end" id="standard_height_end" placeholder="" value="{$Think.get.standard_height_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">结构类型</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="structure_type">
-                    {foreach [''=>'-- 全部 --','框架结构'=>'框架结构','剪力墙结构'=>'剪力墙结构','框架剪力墙结构'=>'框架剪力墙结构','断肢剪力墙结构'=>'断肢剪力墙结构','砖混结构'=>'砖混结构','钢结构'=>'钢结构','装配式混泥土结构'=>'装配式混泥土结构','框架简体结构'=>'框架简体结构'] as $k=>$v}
-                    {eq name='Think.get.structure_type' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑设防烈度</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="building_fortification_intensity">
-                    {foreach [''=>'-- 全部 --','6度'=>'6度','7度'=>'7度','8度'=>'8度','9度'=>'9度'] as $k=>$v}
-                    {eq name='Think.get.building_fortification_intensity' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">抗震等级</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="seismic_grade">
-                    {foreach [''=>'-- 全部 --','一级'=>'一级','二级'=>'二级','三级'=>'三级','四级'=>'四级'] as $k=>$v}
-                    {eq name='Think.get.seismic_grade' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">设计寿命</label>
-            <div class="layui-input-inline">
-                <input name="design_life" value="{$Think.get.design_life|default=''}" placeholder="请输入设计寿命" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">基础类型</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="base_type">
-                    {foreach [''=>'-- 全部 --','不包含'=>'不包含','独立基础'=>'独立基础','条形基础'=>'条形基础','满堂基础'=>'满堂基础','桩基础'=>'桩基础','桩承台基础'=>'桩承台基础','混合基础'=>'混合基础','带形基础'=>'带形基础','筏板基础'=>'筏板基础','砖基础'=>'砖基础'] as $k=>$v}
-                    {eq name='Think.get.base_type' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">装修标准</label>
-            <div class="layui-input-inline">
-                <input name="decorate_standard" value="{$Think.get.decorate_standard|default=''}" placeholder="请输入装修标准" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">其他参数</label>
-            <div class="layui-input-inline">
-                <input name="other_parameters" value="{$Think.get.other_parameters|default=''}" placeholder="请输入其他参数" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="construction_area_start" id="construction_area_start" placeholder="" value="{$Think.get.construction_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="construction_area_end" id="construction_area_end" placeholder="" value="{$Think.get.construction_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地上建筑面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="ground_floor_area_start" id="ground_floor_area_start" placeholder="" value="{$Think.get.ground_floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="ground_floor_area_end" id="ground_floor_area_end" placeholder="" value="{$Think.get.ground_floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地下建筑面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_floor_area_start" id="underground_floor_area_start" placeholder="" value="{$Think.get.underground_floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_floor_area_end" id="underground_floor_area_end" placeholder="" value="{$Think.get.underground_floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑占地面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_floor_area_start" id="building_floor_area_start" placeholder="" value="{$Think.get.building_floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_floor_area_end" id="building_floor_area_end" placeholder="" value="{$Think.get.building_floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">钢结构受益面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="steel_benefit_area_start" id="steel_benefit_area_start" placeholder="" value="{$Think.get.steel_benefit_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="steel_benefit_area_end" id="steel_benefit_area_end" placeholder="" value="{$Think.get.steel_benefit_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">木质构件面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="wood_area_start" id="wood_area_start" placeholder="" value="{$Think.get.wood_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="wood_area_end" id="wood_area_end" placeholder="" value="{$Think.get.wood_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">可售面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="available_area_start" id="available_area_start" placeholder="" value="{$Think.get.available_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="available_area_end" id="available_area_end" placeholder="" value="{$Think.get.available_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">户数</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="number_start" id="number_start" placeholder="" value="{$Think.get.number_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="number_end" id="number_end" placeholder="" value="{$Think.get.number_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地下室底面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="basement_floor_area_start" id="basement_floor_area_start" placeholder="" value="{$Think.get.basement_floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="basement_floor_area_end" id="basement_floor_area_end" placeholder="" value="{$Think.get.basement_floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">其他说明</label>
-            <div class="layui-input-inline">
-                <input name="other_instructions" value="{$Think.get.other_instructions|default=''}" placeholder="请输入其他说明" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">模板类型</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="template">
-                    {foreach $template as $k=>$v}
-                    {eq name='Think.get.template' value='$v.id.""'}
-                    <option selected value="{$v.id}">{$v.title}</option>
-                    {else}
-                    <option value="{$v.id}">{$v.title}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn" style="background-color:  #DC2219" lay-submit lay-filter="tijiao"><i class="layui-icon">&#xe615;</i>立即搜索</button>
-        </div>
-    </form>
-
-</fieldset>
-
-<script>
-    form.render();
-    layui.use(['form', 'layedit', 'laydate'], function(){
-        var form = layui.form
-            ,layer = layui.layer
-            ,layedit = layui.layedit
-            ,laydate = layui.laydate;
-
-
-        form.on('submit(tijiao)', function(data) {
-
-            console.log(data)
-
-            var building_height_start = data.field.building_height_start;
-            var building_height_end = data.field.building_height_end;
-            if (building_height_start=='' && building_height_end!=''){
-                layer.msg('请输入起始值');
-                $("#building_height_start").focus();
-                return false
-            }else if (building_height_start!='' && building_height_end==''){
-                layer.msg('请输入终止值');
-                $("#building_height_end").focus();
-                return false
-            }else if (building_height_end<building_height_start){
-                layer.msg('终止值小于起始值');
-                $("#building_height_start").focus();
-                return false
-            }
-
-            var construction_layer_start = data.field.construction_layer_start;
-            var construction_layer_end = data.field.construction_layer_end;
-            if (construction_layer_start=='' && construction_layer_end!=''){
-                layer.msg('请输入起始值');
-                $("#construction_layer_start").focus();
-                return false
-            }else if (construction_layer_start!='' && construction_layer_end==''){
-                layer.msg('请输入终止值');
-                $("#construction_layer_end").focus();
-                return false
-            }else if (construction_layer_end<construction_layer_start){
-                layer.msg('终止值小于起始值');
-                $("#construction_layer_start").focus();
-                return false
-            }
-
-
-            var upper_number_start = data.field.upper_number_start;
-            var upper_number_end = data.field.upper_number_end;
-            if (upper_number_start=='' && upper_number_end!=''){
-                layer.msg('请输入起始值');
-                $("#upper_number_start").focus();
-                return false
-            }else if (upper_number_start!='' && upper_number_end==''){
-                layer.msg('请输入终止值');
-                $("#upper_number_end").focus();
-                return false
-            }else if (upper_number_end<upper_number_start){
-                layer.msg('终止值小于起始值');
-                $("#upper_number_start").focus();
-                return false
-            }
-
-            var underground_start = data.field.underground_start;
-            var underground_end = data.field.underground_end;
-            if (underground_start=='' && underground_end!=''){
-                layer.msg('请输入起始值');
-                $("#underground_start").focus();
-                return false
-            }else if (underground_start!='' && underground_end==''){
-                layer.msg('请输入终止值');
-                $("#underground_end").focus();
-                return false
-            }else if (underground_end<underground_start){
-                layer.msg('终止值小于起始值');
-                $("#underground_start").focus();
-                return false
-            }
-
-            var underground_layer_start = data.field.underground_layer_start;
-            var underground_layer_end = data.field.underground_layer_end;
-            if (underground_layer_start=='' && underground_layer_end!=''){
-                layer.msg('请输入起始值');
-                $("#underground_layer_start").focus();
-                return false
-            }else if (underground_layer_start!='' && underground_layer_end==''){
-                layer.msg('请输入终止值');
-                $("#underground_layer_end").focus();
-                return false
-            }else if (underground_layer_end<underground_layer_start){
-                layer.msg('终止值小于起始值');
-                $("#underground_layer_start").focus();
-                return false
-            }
-
-
-            var first_layer_high_start = data.field.first_layer_high_start;
-            var first_layer_high_end = data.field.first_layer_high_end;
-            if (first_layer_high_start=='' && first_layer_high_end!=''){
-                layer.msg('请输入起始值');
-                $("#first_layer_high_start").focus();
-                return false
-            }else if (first_layer_high_start!='' && first_layer_high_end==''){
-                layer.msg('请输入终止值');
-                $("#first_layer_high_end").focus();
-                return false
-            }else if (first_layer_high_end<first_layer_high_start){
-                layer.msg('终止值小于起始值');
-                $("#first_layer_high_start").focus();
-                return false
-            }
-
-            var standard_height_start = data.field.standard_height_start;
-            var standard_height_end = data.field.standard_height_end;
-            if (standard_height_start=='' && standard_height_end!=''){
-                layer.msg('请输入起始值');
-                $("#standard_height_start").focus();
-                return false
-            }else if (standard_height_start!='' && standard_height_end==''){
-                layer.msg('请输入终止值');
-                $("#standard_height_end").focus();
-                return false
-            }else if (standard_height_end<standard_height_start){
-                layer.msg('终止值小于起始值');
-                $("#standard_height_start").focus();
-                return false
-            }
-
-            var construction_area_start = data.field.construction_area_start;
-            var construction_area_end = data.field.construction_area_end;
-            if (construction_area_start=='' && construction_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#construction_area_start").focus();
-                return false
-            }else if (construction_area_start!='' && construction_area_end==''){
-                layer.msg('请输入终止值');
-                $("#construction_area_end").focus();
-                return false
-            }else if (construction_area_end<construction_area_start){
-                layer.msg('终止值小于起始值');
-                $("#construction_area_start").focus();
-                return false
-            }
-
-            var ground_floor_area_start = data.field.ground_floor_area_start;
-            var ground_floor_area_end = data.field.ground_floor_area_end;
-            if (ground_floor_area_start=='' && ground_floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#ground_floor_area_start").focus();
-                return false
-            }else if (ground_floor_area_start!='' && ground_floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#ground_floor_area_end").focus();
-                return false
-            }else if (ground_floor_area_end<ground_floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#ground_floor_area_start").focus();
-                return false
-            }
-
-            var underground_floor_area_start = data.field.underground_floor_area_start;
-            var underground_floor_area_end = data.field.underground_floor_area_end;
-            if (underground_floor_area_start=='' && underground_floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#underground_floor_area_start").focus();
-                return false
-            }else if (underground_floor_area_start!='' && underground_floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#underground_floor_area_end").focus();
-                return false
-            }else if (underground_floor_area_end<underground_floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#underground_floor_area_start").focus();
-                return false
-            }
-
-            var building_floor_area_start = data.field.building_floor_area_start;
-            var building_floor_area_end = data.field.building_floor_area_end;
-            if (building_floor_area_start=='' && building_floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#building_floor_area_start").focus();
-                return false
-            }else if (building_floor_area_start!='' && building_floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#building_floor_area_end").focus();
-                return false
-            }else if (building_floor_area_end<building_floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#building_floor_area_start").focus();
-                return false
-            }
-
-            var steel_benefit_area_start = data.field.steel_benefit_area_start;
-            var steel_benefit_area_end = data.field.steel_benefit_area_end;
-            if (steel_benefit_area_start=='' && steel_benefit_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#steel_benefit_area_start").focus();
-                return false
-            }else if (steel_benefit_area_start!='' && steel_benefit_area_end==''){
-                layer.msg('请输入终止值');
-                $("#steel_benefit_area_end").focus();
-                return false
-            }else if (steel_benefit_area_end<steel_benefit_area_start){
-                layer.msg('终止值小于起始值');
-                $("#steel_benefit_area_start").focus();
-                return false
-            }
-
-            var wood_area_start = data.field.wood_area_start;
-            var wood_area_end = data.field.wood_area_end;
-            if (wood_area_start=='' && wood_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#wood_area_start").focus();
-                return false
-            }else if (wood_area_start!='' && wood_area_end==''){
-                layer.msg('请输入终止值');
-                $("#wood_area_end").focus();
-                return false
-            }else if (wood_area_end<wood_area_start){
-                layer.msg('终止值小于起始值');
-                $("#wood_area_start").focus();
-                return false
-            }
-
-            var available_area_start = data.field.available_area_start;
-            var available_area_end = data.field.available_area_end;
-            if (available_area_start=='' && available_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#available_area_start").focus();
-                return false
-            }else if (available_area_start!='' && available_area_end==''){
-                layer.msg('请输入终止值');
-                $("#available_area_end").focus();
-                return false
-            }else if (available_area_end<available_area_start){
-                layer.msg('终止值小于起始值');
-                $("#available_area_start").focus();
-                return false
-            }
-
-            var number_start = data.field.number_start;
-            var number_end = data.field.number_end;
-            if (number_start=='' && number_end!=''){
-                layer.msg('请输入起始值');
-                $("#number_start").focus();
-                return false
-            }else if (number_start!='' && number_end==''){
-                layer.msg('请输入终止值');
-                $("#number_end").focus();
-                return false
-            }else if (number_end<number_start){
-                layer.msg('终止值小于起始值');
-                $("#number_start").focus();
-                return false
-            }
-
-            var basement_floor_area_start = data.field.basement_floor_area_start;
-            var basement_floor_area_end = data.field.basement_floor_area_end;
-            if (basement_floor_area_start=='' && basement_floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#basement_floor_area_start").focus();
-                return false
-            }else if (basement_floor_area_start!='' && basement_floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#basement_floor_area_end").focus();
-                return false
-            }else if (basement_floor_area_end<basement_floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#basement_floor_area_start").focus();
-                return false
-            }
-
-
-        });
-
-    });
-</script>

+ 0 - 36
application/admin/view/child_project/info.html

@@ -1,36 +0,0 @@
-<div style="padding: 20px; background-color: #F2F2F2;">
-    <div class="layui-row layui-col-space15">
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">项目名称:{$vo.project_name|default='--'}</div>
-                    <div class="layui-col-md6">建筑类别:{$vo.category_name|default='--'}</div><hr />
-                    <div class="layui-col-md6">建筑高度:{$vo.building_height|default='0'}</div>
-                    <div class="layui-col-md6">建筑层数:{$vo.construction_layer|default='--'}</div><hr />
-                    <div class="layui-col-md6">地上层数:{$vo.upper_number|default='--'}</div>
-                    <div class="layui-col-md6">地下层数:{$vo.underground|default='--'}</div><hr />
-                    <div class="layui-col-md6">地下层高:{$vo.underground_layer|default='--'}</div>
-                    <div class="layui-col-md6">首层层高:{$vo.first_layer_high|default='--'}</div><hr />
-                    <div class="layui-col-md6">标准层层高:{$vo.standard_height|default='--'}</div>
-                    <div class="layui-col-md6">结构类型:{$vo.structure_type|default='--'}</div><hr />
-                    <div class="layui-col-md6">建筑设防烈度:{$vo.building_fortification_intensity|default='--'}</div>
-                    <div class="layui-col-md6">抗震等级:{$vo.seismic_grade|default='--'}</div><hr />
-                    <div class="layui-col-md6">设计寿命:{$vo.design_life|default='--'}</div>
-                    <div class="layui-col-md6">基础类型:{$vo.base_type|default='--'}</div><hr />
-                    <div class="layui-col-md6">装修标准:{$vo.decorate_standard|default='--'}</div>
-                    <div class="layui-col-md6">其他参数:{$vo.other_parameters|default='--'}</div><hr />
-                    <div class="layui-col-md6">建筑面积:{$vo.construction_area|default='--'}</div>
-                    <div class="layui-col-md6">地上建筑面积:{$vo.ground_floor_area|default='--'}</div>
-                    <div class="layui-col-md6">地下建筑面积:{$vo.underground_floor_area|default='--'}</div>
-                    <div class="layui-col-md6">建筑占地面积:{$vo.building_floor_area|default='--'}</div><hr />
-                    <div class="layui-col-md6">钢结构受益面积:{$vo.steel_benefit_area|default='--'}</div>
-                    <div class="layui-col-md6">木质构件面积:{$vo.wood_area|default='--'}</div><hr />
-                    <div class="layui-col-md6">可售面积:{$vo.available_area|default='--'}</div>
-                    <div class="layui-col-md6">户数:{$vo.number|default='--'}</div><hr />
-                    <div class="layui-col-md6">地下室底面积:{$vo.basement_floor_area|default='--'}</div>
-                    <div class="layui-col-md6">其他说明:{$vo.other_instructions|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-    </div>
-</div>

+ 0 - 61
application/admin/view/child_project/look.html

@@ -1,61 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-<button class="layui-btn" style="height: 30px;line-height:28px;color:#FFFFFF;background-color: #DC2219;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap'>序号</th>
-            <th class='text-left nowrap'>成本项目</th>
-            <th class='text-left nowrap'>面积计算口径</th>
-            <th class='text-left nowrap'>建面单方成本(元/m2)(含税)</th>
-            <th class='text-left nowrap'>总价(万元)(含税)</th>
-            <th class='text-left nowrap'>建面单方成本(元/m2)(不含税)</th>
-            <th class='text-left nowrap'>总价(万元)(不含税)</th>
-            <th class='text-left nowrap'>可售单方成本(元/m2)(含税)</th>
-            <th class='text-left nowrap'>可售单方成本(元/m2)(不含税)</th>
-            <th class='text-left nowrap'>工程量</th>
-            <th class='text-left nowrap'>计算单位</th>
-            <th class='text-left nowrap'>建面单方含量</th>
-            <th class='text-left nowrap'>可售单方含量</th>
-            <th class='text-left nowrap'>预留指标1</th>
-            <th class='text-left nowrap'>预留指标2</th>
-            <th class='text-left nowrap'>备注</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr data-dbclick>
-            <td class='text-left nowrap'>{$vo.number|default=''}</td>
-            <td class='text-left nowrap'>{$vo.cost_project|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.area_calculating_aperture|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_excluding|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.total_price_included_excluding|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.quantities|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.calculating_unit|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_content_excluding|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.saleable_single_party_no_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.note|default='-'}</td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-{/block}

+ 0 - 270
application/admin/view/child_project/see.html

@@ -1,270 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-{if auth("add")}
-<button class="layui-btn layui-bg-red" style="height: 30px;line-height:28px;color: #333;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-{/if}
-
-
-{/block}
-
-{block name="content"}
-<style>
-    .tu{
-        width: 75%;height:600px;float: left
-    }
-    .layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view{
-        border: none !important;
-
-
-    }
-    .layui-table{
-        background-color:initial !important;
-    }
-</style>
-
-<div class="layui-tab">
-    <input type="hidden" id="subjects" value="{$subjects}">
-    <input type="hidden" id="ids" value="{$ids}">
-
-    <ul class="layui-tab-title">
-        <li class="layui-this" onclick="change()">建面单方成本(含税)</li>
-        <li onclick="change1()">总价(含税)</li>
-        <li onclick="change2()">建面单方成本(不含税)</li>
-        <li onclick="change3()">总价(不含税)</li>
-
-        <li onclick="change7()">可售单方成本(含税)</li>
-        <li onclick="change8()">可售单方成本(不含税)</li>
-
-        <li onclick="change4()">工程量</li>
-        <li onclick="change5()">建面单方含量</li>
-        <li onclick="change6()">可售单方含量</li>
-
-        <li onclick="change9()">预留指标1</li>
-        <li onclick="change10()">预留指标2</li>
-    </ul>
-    <div class="layui-tab-content" style="height: 100px;">
-        <div class="layui-tab-item layui-show" style="width:100%;">
-            <div id="main" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main1" class="tu" ></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main2" class="tu" ></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main3" class="tu"></div>
-        </div>
-
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main7" class="tu"></div>
-        </div>
-
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main8" class="tu"></div>
-        </div>
-
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main4" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main5" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main6" class="tu"></div>
-        </div>
-
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main9" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main10" class="tu"></div>
-        </div>
-        <div style="width: 25%;float: right">
-            <table class="layui-table margin-top-10">
-                <tr >
-                    <th style="font-weight:bold">样本名称</th>
-                    <th style="font-weight:bold">数值</th>
-                    <th style="font-weight:bold">备注</th>
-                </tr>
-                <tbody id="right">
-
-                </tbody>
-            </table>
-
-        </div>
-    </div>
-</div>
-
-
-<script type="text/javascript">
-    setinfo('main','single_party_cost')
-
-    function change () {
-        setinfo('main','single_party_cost')
-    }
-    function change1 () {
-        setinfo('main1','total_price_included')
-
-    }
-    function change2 () {
-        setinfo('main2','single_party_cost_excluding')
-    }
-    function change3 () {
-        setinfo('main3','total_price_included_excluding')
-    }
-    function change4 () {
-        setinfo('main4','quantities')
-    }
-    function change5 () {
-        setinfo('main5','unilateral_content')
-    }
-    function change6 () {
-        setinfo('main6','unilateral_content_excluding')
-    }
-
-    function change7 () {
-        setinfo('main7','single_party_cost_tax')
-    }
-
-    function change8 () {
-        setinfo('main8','single_party_cost_no_tax')
-    }
-
-    function change9 () {
-        setinfo('main9','saleable_single_party_tax')
-    }
-
-    function change10 () {
-        setinfo('main10','saleable_single_party_no_tax')
-    }
-
-    //ajax获取数据
-    function setinfo(where,field) {
-        var subjects = $("#subjects").val()
-        var ids = $("#ids").val()
-        var value = {subjects:subjects,ids:ids,field:field}
-        $.ajax({
-            url:"/admin/child_project/get_see_info",
-            type:'get',
-            data:value
-            ,success:function(result){
-                setchart(where,result,field)
-                var arr = result.data.right;
-                htmlright(arr)
-            }
-        });
-    }
-
-    //画图
-    function setchart(where,result,field) {
-        // console.log(result)
-        // console.log(result.data.field.title.length)
-        var len = result.data.field.title.length
-        var xname = ''
-        if (field=='single_party_cost'){
-            xname = '建面单方成本(元/m2)(含税)'
-        }else if (field=='total_price_included'){
-            xname = '总价(万元)(含税)';
-        }else if (field=='single_party_cost_excluding'){
-            xname = '建面单方成本(元/m2)(不含税)';
-        }else if (field=='total_price_included_excluding'){
-            xname = '总价(万元)(不含税)';
-        }else if (field=='quantities'){
-            xname = '工程量(含税)';
-        }else if (field=='unilateral_content'){
-            xname = '建面单方含量';
-        }else if (field=='unilateral_content_excluding'){
-            xname = '可售单方含量';
-        }else if (field=='single_party_cost_tax'){
-            xname = '可售单方成本(元/m2)(含税)';
-        }else if (field=='single_party_cost_no_tax'){
-            xname = '可售单方成本(元/m2)(不含税)';
-        }else if (field=='saleable_single_party_tax'){
-            xname = '预留指标1';
-        }else if (field=='saleable_single_party_no_tax'){
-            xname = '预留指标2';
-        }
-        var cid = document.getElementById(where)
-        //echarts重新渲染
-        if (cid.hasAttribute("_echarts_instance_"))
-            cid.removeAttribute("_echarts_instance_")
-        // 基于准备好的dom,初始化echarts实例
-        var myChart = echarts.init(cid);
-        // 指定图表的配置项和数据
-        var option = {
-            title: {
-                text: ''
-            },
-            tooltip: {},
-            legend: {
-                // data: ['销量']
-            },
-            xAxis: {
-                show:true,
-                name:xname,
-                nameTextStyle:{				//---坐标轴名称样式
-                    padding:[40,100,-65,-125],	//---坐标轴名称相对位置
-                },
-                axisLabel:{
-                    interval:0,
-                    // rotate:20
-                    formatter: function (value) {
-                        value = value.replace(/[^\x00-\xff]/g, "$&\x01").replace(/.{12}\x01?/g, "$&\n").replace(/\x01/g, "");
-                        return value;
-                    }
-                },
-                data:result.data.field.title
-            },
-            yAxis: {
-                show:true,
-                name:'工程数量',
-                nameTextStyle:{				//---坐标轴名称样式
-                    padding:[5,100,-20,15],	//---坐标轴名称相对位置
-                },
-            },
-            series: [
-                {
-                    name: result.data.subjects,
-                    type: 'bar',
-                    barMaxWidth:'10%',
-                   //  barMaxWidth:function (len) {
-                   //      if (len>1){
-                   //          return '0'
-                   //      }else {
-                   //          return '10%'
-                   //      }
-                   //  },
-                    label:{
-                        show:true,
-                        position:'top',
-                        color:'#000000'
-                    },
-                    data:result.data.field.value
-                }
-            ]
-        };
-        myChart.setOption(option);
-    }
-
-    //填充右边栏
-    function htmlright(arr) {
-        if (arr.length>0) {
-            var html = '';
-            for (var i = 0; i < arr.length; i++) {
-                var tag = arr[i];
-                html += '<tr>' +
-                    '<th style="color:red;">' + tag.project_name + '</th>' +
-                    '<th>' + tag.value + '</th>' +
-                    '<th>' + tag.note + '</th>' +
-                    '</tr>';
-            }
-            $('#right').html(html);
-        }
-    }
-
-</script>
-
-
-{/block}

+ 0 - 347
application/admin/view/main_project/contrast.html

@@ -1,347 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm" style="background-color: #DC2219" onclick="getIds()" >导出</button>
-{/if}
-
-<button class="layui-btn" style="height: 30px;line-height:28px;color:#FFFFFF;background-color: #DC2219;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        <input type="hidden" name="ids" id="ids" value="{$ids}">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap' rowspan="2">成本预算科目</th>
-            <th class='text-center nowrap' colspan="3">不含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">增值税总额</th>
-            <th class='text-center nowrap' colspan="3">含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本指标(不含税)</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本指标(含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本指标(不含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本指标(含税)</th>
-            <th class='text-center nowrap' rowspan="2">操作</th>
-        </tr>
-        <tr>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr class="tr_{$vo.id}">
-            <td class='text-left nowrap '
-                onclick='dianji($(this))' data-id="{$vo.id}">
-                {$vo.subjects|default=''}
-                {if count($vo['children']) > 0}
-                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vo.id}"></i>
-                {/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_interval|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_arithmetic_mean|default=''}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>
-                {if auth("see")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vo.subjects}&ids={$ids}'>查 看</a>
-                {/if}
-            </td>
-        </tr>
-
-
-            {foreach $vo['children'] as $k=>$v}
-            <tr  class="t tr_{$vo.id} tr_{$v.id} trs_{$vo.id}" style="display: none">
-                <td class='text-left nowrap'
-                    onclick='dianji($(this))' data-id="{$v.id}">
-                    <span class="color-desc" style="margin-left: 15px; margin-right: 10px"></span>{$v.subjects|default=''}
-                    {if count($v['children']) > 0}
-                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$v.id}"></i>
-                    {/if}
-                </td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_interval|default='-'}</td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_arithmetic_mean|default=''}</td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_vat_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_vat_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.total_vat_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>
-                    {if auth("see")}
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-title="查看" style="background-color: #DC2219" data-open='{:url("see")}?subjects={$v.subjects}&ids={$ids}'>查 看</a>
-                    {/if}
-                </td>
-            </tr>
-
-
-
-                {foreach $v['children'] as $k=>$vv}
-                <tr  class="t tr_{$v.id} tr_{$vv.id} trs_{$vo.id} trs_{$v.id}" style="display: none">
-                    <td class='text-left nowrap'
-                        onclick='dianji($(this))' data-id="{$vv.id}">
-                        <span class="color-desc" style="margin-left: 15px; margin-right: 20px"></span>
-                        {$vv.subjects|default=''}
-                        {if count($vv['children']) > 0}
-                        <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vv.id}"></i>
-                        {/if}
-                    </td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_interval|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>
-                        {if auth("see")}
-                        <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vv.subjects}&ids={$ids}'>查 看</a>
-                        {/if}
-                    </td>
-                </tr>
-                    {foreach $vv['children'] as $k=>$vvv}
-                    <tr  class="t tr_{$vv.id} tr_{$vvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id}" style="display: none">
-                        <td class='text-left nowrap'
-                            onclick='dianji($(this))' data-id="{$vvv.id}">
-                            <span class="color-desc" style="margin-left: 15px; margin-right: 30px"></span>
-                            {$vvv.subjects|default=''}
-                            {if count($vvv['children']) > 0}
-                            <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvv.id}"></i>
-                            {/if}
-                        </td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_interval|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>
-                            {if auth("see")}
-                            <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvv.subjects}&ids={$ids}'>查 看</a>
-                            {/if}
-                        </td>
-                    </tr>
-                        {foreach $vvv['children'] as $k=>$vvvv}
-                        <tr  class="t tr_{$vvv.id}  tr_{$vvvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id} trs_{$vvv.id}" style="display: none" >
-                            <td class='text-left nowrap'
-                                onclick='dianji($(this))' data-id="{$vvvv.id}">
-                                <span class="color-desc" style="margin-left: 15px; margin-right: 40px"></span>
-                                {$vvvv.subjects|default=''}
-                                {if count($vvvv['children']) > 0}
-                                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvv.id}"></i>
-                                {/if}
-                            </td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_interval|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>
-                                {if auth("see")}
-                                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvv.subjects}&ids={$ids}'>查 看</a>
-                                {/if}
-                            </td>
-                        </tr>
-                            {foreach $vvvv['children'] as $k=>$vvvvv}
-                            <tr  class="t tr_{$vvvv.id} tr_{$vvvvv.id} trs_{$vo.id} trs_{$v.id} trs_{$vv.id} trs_{$vvv.id} trs_{$vvvv.id}" style="display: none">
-                                <td class='text-left nowrap'
-
-                                    onclick='dianji($(this))' data-id="{$vvvvv.id}">
-                                    <span class="color-desc" style="margin-left: 15px; margin-right: 50px"></span>
-                                    {$vvvvv.subjects|default=''}
-                                    {if count($vvvvv['children']) > 0}
-                                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvvv.id}"></i>
-                                    {/if}
-                                </td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_interval|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>
-                                    {if auth("see")}
-                                    <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvvv.subjects}&ids={$ids}'>查 看</a>
-                                    {/if}
-                                </td>
-                            </tr>
-                            {/foreach}
-                        {/foreach}
-                    {/foreach}
-                {/foreach}
-            {/foreach}
-
-
-        {/foreach}
-
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-    function getIds()
-    {
-        var ids = $("#ids").val();
-        window.location = '{:url("admin/main_project/download")}?ids=' +ids;
-    }
-
-    function dianji(e){
-        var id=e.attr('data-id');
-        var tr=e. parents('tr');
-
-        if(tr.hasClass('flag')){
-
-
-            $('.trs_'+id).hide();
-
-
-            tr.find('i').removeClass('layui-icon-triangle-d')
-            tr.find('i').addClass('layui-icon-triangle-r')
-
-            $('.trs_'+id).find('i').removeClass('layui-icon-triangle-d')
-            $('.trs_'+id).find('i').addClass('layui-icon-triangle-r')
-
-            $('.trs_'+id).removeClass('flag')
-            tr.removeClass('flag')
-        }else{
-
-
-            e.find('i').removeClass('layui-icon-triangle-r')
-            e.find('i').addClass('layui-icon-triangle-d')
-            $('.tr_'+id).show();
-            tr.addClass('flag')
-
-
-
-        }
-
-
-
-
-
-
-
-
-
-
-
-
-    }
-</script>
-{/block}

+ 0 - 86
application/admin/view/main_project/contrast1.html

@@ -1,86 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm layui-btn-primary layui-bg-red" onclick="getIds()" >导出</button>
-{/if}
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color: snow;color: #333;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        <input type="hidden" name="ids" id="ids" value="{$ids}">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap' rowspan="2">成本预算科目</th>
-            <th class='text-center nowrap' colspan="3">不含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">增值税总额</th>
-            <th class='text-center nowrap' colspan="3">含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">单方成本指标(不含税)</th>
-            <th class='text-center nowrap' colspan="3">单方成本指标(含税)</th>
-            <th class='text-center nowrap' rowspan="2">操作</th>
-        </tr>
-        <tr style="border: 1px">
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr style="border: 1px">
-
-            <td class='text-left nowrap'>{$vo.subjects|default=''}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_interval|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_arithmetic_mean|default=''}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>
-                {if auth("look")}
-                <a data-dbclick class="layui-btn layui-btn-sm layui-bg-red" data-title="查看" data-open='{:url("see")}?subjects={$vo.subjects}&ids={$ids}'>查 看</a>
-                {/if}
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-    function getIds()
-    {
-        var ids = $("#ids").val();
-        window.location = '{:url("admin/main_project/download")}?ids=' +ids;
-    }
-</script>
-{/block}

+ 0 - 297
application/admin/view/main_project/contrast1111.html

@@ -1,297 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm" style="background-color: #DC2219" onclick="getIds()" >导出</button>
-{/if}
-
-<button class="layui-btn" style="height: 30px;line-height:28px;color:#FFFFFF;background-color: #DC2219;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        <input type="hidden" name="ids" id="ids" value="{$ids}">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap' rowspan="2">成本预算科目</th>
-            <th class='text-center nowrap' colspan="3">不含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">增值税总额</th>
-            <th class='text-center nowrap' colspan="3">含增值税测算成本</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本指标(不含税)</th>
-            <th class='text-center nowrap' colspan="3">建面单方成本指标(含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本指标(不含税)</th>
-            <th class='text-center nowrap' colspan="3">可售单方成本指标(含税)</th>
-            <th class='text-center nowrap' rowspan="2">操作</th>
-        </tr>
-        <tr>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-            <th class='text-left nowrap'>参考区间</th>
-            <th class='text-left nowrap'>算数平均值</th>
-            <th class='text-left nowrap'>有效样本量</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr class="">
-            <td class='text-left nowrap '
-                onclick='if($(".tr_{$vo.id}").hasClass("t")){$(".tr_{$vo.id}").removeClass("t").show();$(".icon_{$vo.id}").removeClass("layui-icon-triangle-r");$(".icon_{$vo.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$vo.id}").addClass("t").hide();$(".icon_{$vo.id}").removeClass("layui-icon-triangle-d");$(".icon_{$vo.id}").addClass("layui-icon-triangle-r");}'>
-                {$vo.subjects|default=''}
-                {if count($vo['children']) > 0}
-                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vo.id}"></i>
-                {/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_interval|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_arithmetic_mean|default=''}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.total_vat_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_interval|default=''}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-            <td class='text-left nowrap'>
-                {if auth("see")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vo.subjects}&ids={$ids}'>查 看</a>
-                {/if}
-            </td>
-        </tr>
-
-            {foreach $vo['children'] as $k=>$v}
-            <tr  class="t tr_{$vo.id} tr_{$v.id} " style="display: none">
-                <td class='text-left nowrap'
-                    onclick='if($(".tr_{$v.id}").hasClass("t")){$(".tr_{$v.id}").removeClass("t").show();$(".icon_{$v.id}").removeClass("layui-icon-triangle-r");$(".icon_{$v.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$v.id}").addClass("t").hide();$(".icon_{$v.id}").removeClass("layui-icon-triangle-d");$(".icon_{$v.id}").addClass("layui-icon-triangle-r");}'>
-                    <span class="color-desc" style="margin-left: 15px; margin-right: 10px"></span>{$v.subjects|default=''}
-                    {if count($v['children']) > 0}
-                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$v.id}"></i>
-                    {/if}
-                </td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_interval|default='-'}</td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_arithmetic_mean|default=''}</td>
-                <td class='text-left nowrap'>{$v.costs_are_excluded_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_vat_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.total_vat_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.total_vat_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.measurement_cost_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_cost_indicator_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_tax_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_interval|default=''}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                <td class='text-left nowrap'>{$v.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                <td class='text-left nowrap'>
-                    {if auth("see")}
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-title="查看" style="background-color: #DC2219" data-open='{:url("see")}?subjects={$v.subjects}&ids={$ids}'>查 看</a>
-                    {/if}
-                </td>
-            </tr>
-
-                {foreach $v['children'] as $k=>$vv}
-                <tr  class="t tr_{$v.id} tr_{$vo.id}" style="display: none">
-                    <td class='text-left nowrap'
-                        onclick='if($(".tr_{$vv.id}").hasClass("t")){$(".tr_{$vv.id}").removeClass("t").show();$(".icon_{$vv.id}").removeClass("layui-icon-triangle-r");$(".icon_{$vv.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$vv.id}").addClass("t").hide();$(".icon_{$vv.id}").removeClass("layui-icon-triangle-d");$(".icon_{$vv.id}").addClass("layui-icon-triangle-r");}'>
-                        <span class="color-desc" style="margin-left: 15px; margin-right: 20px"></span>
-                        {$vv.subjects|default=''}
-                        {if count($vv['children']) > 0}
-                        <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vv.id}"></i>
-                        {/if}
-                    </td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_interval|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.costs_are_excluded_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.total_vat_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.measurement_cost_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_cost_indicator_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_interval|default=''}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                    <td class='text-left nowrap'>{$vv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                    <td class='text-left nowrap'>
-                        {if auth("see")}
-                        <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vv.subjects}&ids={$ids}'>查 看</a>
-                        {/if}
-                    </td>
-                </tr>
-                    {foreach $vv['children'] as $k=>$vvv}
-                    <tr  class="t tr_{$vv.id} tr_{$v.id} tr_{$vo.id}" style="display: none">
-                        <td class='text-left nowrap'
-                            onclick='if($(".tr_{$vvv.id}").hasClass("t")){$(".tr_{$vvv.id}").removeClass("t").show();$(".icon_{$vvv.id}").removeClass("layui-icon-triangle-r");$(".icon_{$vvv.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$vvv.id}").addClass("t").hide();$(".icon_{$vvv.id}").removeClass("layui-icon-triangle-d");$(".icon_{$vvv.id}").addClass("layui-icon-triangle-r");}'>
-                            <span class="color-desc" style="margin-left: 15px; margin-right: 30px"></span>
-                            {$vvv.subjects|default=''}
-                            {if count($vvv['children']) > 0}
-                            <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvv.id}"></i>
-                            {/if}
-                        </td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_interval|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.total_vat_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.measurement_cost_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_interval|default=''}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                        <td class='text-left nowrap'>{$vvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                        <td class='text-left nowrap'>
-                            {if auth("see")}
-                            <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvv.subjects}&ids={$ids}'>查 看</a>
-                            {/if}
-                        </td>
-                    </tr>
-                        {foreach $vvv['children'] as $k=>$vvvv}
-                        <tr  class="t tr_{$vvv.id} tr_{$vv.id} tr_{$v.id} tr_{$vo.id}" style="display: none">
-                            <td class='text-left nowrap'
-                                onclick='if($(".tr_{$vvvv.id}").hasClass("t")){$(".tr_{$vvvv.id}").removeClass("t").show();$(".icon_{$vvvv.id}").removeClass("layui-icon-triangle-r");$(".icon_{$vvvv.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$vvvv.id}").addClass("t").hide();$(".icon_{$vvvv.id}").removeClass("layui-icon-triangle-d");$(".icon_{$vvvv.id}").addClass("layui-icon-triangle-r");}'>
-                                <span class="color-desc" style="margin-left: 15px; margin-right: 40px"></span>
-                                {$vvvv.subjects|default=''}
-                                {if count($vvvv['children']) > 0}
-                                <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvv.id}"></i>
-                                {/if}
-                            </td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_interval|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.total_vat_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.measurement_cost_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_interval|default=''}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                            <td class='text-left nowrap'>{$vvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                            <td class='text-left nowrap'>
-                                {if auth("see")}
-                                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvv.subjects}&ids={$ids}'>查 看</a>
-                                {/if}
-                            </td>
-                        </tr>
-                            {foreach $vvvv['children'] as $k=>$vvvvv}
-                            <tr  class="t tr_{$vvvv.id} tr_{$vvv.id} tr_{$vv.id} tr_{$v.id} tr_{$vo.id}" style="display: none">
-                                <td class='text-left nowrap'
-                                    onclick='if($(".tr_{$vvvvv.id}").hasClass("t")){$(".tr_{$vvvvv.id}").removeClass("t").show();$(".icon_{$vvvvv.id}").removeClass("layui-icon-triangle-r");$(".icon_{$vvvvv.id}").addClass("layui-icon-triangle-d");}else{$(".tr_{$vvvvv.id}").addClass("t").hide();$(".icon_{$vvvv.id}").removeClass("layui-icon-triangle-d");$(".icon_{$vvvv.id}").addClass("layui-icon-triangle-r");}'>
-                                    <span class="color-desc" style="margin-left: 15px; margin-right: 50px"></span>
-                                    {$vvvvv.subjects|default=''}
-                                    {if count($vvvvv['children']) > 0}
-                                    <i class="layui-icon layui-icon-triangle-r margin-right-5 icon_{$vvvvv.id}"></i>
-                                    {/if}
-                                </td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_interval|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_arithmetic_mean|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.costs_are_excluded_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.total_vat_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.measurement_cost_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.unilateral_cost_indicator_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_cost_indicator_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_tax_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_interval|default=''}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_arithmetic_mean|default='-'}</td>
-                                <td class='text-left nowrap'>{$vvvvv.single_party_cost_no_tax_valid_sample_size|default=''}</td>
-                                <td class='text-left nowrap'>
-                                    {if auth("see")}
-                                    <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #DC2219" data-title="查看" data-open='{:url("see")}?subjects={$vvvvv.subjects}&ids={$ids}'>查 看</a>
-                                    {/if}
-                                </td>
-                            </tr>
-                            {/foreach}
-                        {/foreach}
-                    {/foreach}
-                {/foreach}
-            {/foreach}
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-    function getIds()
-    {
-        var ids = $("#ids").val();
-        window.location = '{:url("admin/main_project/download")}?ids=' +ids;
-    }
-</script>
-{/block}

+ 0 - 459
application/admin/view/main_project/form.html

@@ -1,459 +0,0 @@
-{extend name='main'}
-{block name="button"}
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color:#DC2219;color: #FFFFFF;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-
-
-{/block}
-{block name="content"}
-
-<style>
-    .layui-anim .layui-anim-fadein{
-        display: none !important;
-    }
-</style>
-
-<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body think-box-shadow padding-left-40">
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">项目名称</span>
-                <input name="project_name" required class="layui-input" placeholder="请输入项目名称" value="{$vo.project_name|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">造价类别</span>
-                <select name="cost_categories" required class="province-selector layui-select" id="cost_categories" lay-verify="required" lay-search   >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['投标价'=>'投标价','合同价'=>'合同价','结算价'=>'结算价','重计量'=>'重计量','清单控制价'=>'清单控制价','估算'=>'估算','概算'=>'概算','其他'=>'其他','目标成本'=>'目标成本'] as $k=>$v}
-                        {if $v eq $vo.cost_categories}
-                        <option selected value="{$k}">{$v}</option>
-                        {else}
-                        <option value="{$k}">{$v}</option>
-                        {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['投标价'=>'投标价','合同价'=>'合同价','结算价'=>'结算价','重计量'=>'重计量','清单控制价'=>'清单控制价','估算'=>'估算','概算'=>'概算','其他'=>'其他','目标成本'=>'目标成本'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span  class="color-green">编制日期</span>
-                <input required type="text" class="layui-input" name="prepare_date" value="{$vo.prepare_date|default=''}" id="test1" placeholder="yyyy-MM-dd">
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">模板类型</span>
-
-                <select name='template' class='layui-select' required lay-verify="required" lay-search>
-                    <option value=''>请选择</option>
-                    {if isset($vo.id)}
-                    <!--{foreach $template as $menu}-->
-                    <!--{eq name='menu.id' value='$vo.template'}-->
-                    <option selected value='{$menu.id}'>{$menu.title}</option>
-                    <!--{else}-->
-                    <option value='{$menu.id}'>{$menu.title}</option>
-                    <!--{/eq}-->
-                    <!--{/foreach}-->
-                    {else}
-                    <!--{foreach $template as $menu}-->
-                    <option value='{$menu.id}'>{$menu.title}</option>
-                    <!--{/foreach}-->
-                    {/if}
-                </select>
-
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">清单编制依据</span>
-                <input name="basis_for_listing" class="layui-input" placeholder="请输入清单编制依据" value="{$vo.basis_for_listing|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">工程范围</span>
-                <input name="project_scope" class="layui-input" placeholder="请输入工程范围" value="{$vo.project_scope|default=''}">
-            </label>
-        </div>
-        <h3 style="margin-bottom: 15px">项目业态</h3>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑分类</span>
-
-                <select name='category_id' class='layui-select' required lay-verify="required" lay-search>
-                    <option value=''>请选择</option>
-                    {if isset($vo.id)}
-                    <!--{foreach $menus as $menu}-->
-                    <!--{eq name='menu.id' value='$vo.category_id'}-->
-                    <option selected value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{else}-->
-                    <option value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{/eq}-->
-                    <!--{/foreach}-->
-                    {else}
-                    <!--{foreach $menus as $menu}-->
-                    <option value='{$menu.id}'>{$menu.spl|raw}{$menu.title}</option>
-                    <!--{/foreach}-->
-                    {/if}
-                </select>
-
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">工程类别</span>
-                <select required name="engineering_category" class="province-selector" id="engineering_category" lay-verify="required" lay-search >
-                    <option value="">请选择</option>
-                    {if isset($vo.id) && $vo.id neq ''}
-                    {foreach ['新建工程'=>'新建工程','改扩建加固工程'=>'改扩建加固工程','其他'=>'其他'] as $k=>$v}
-                    {if $v eq $vo.engineering_category}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/if}
-                    {/foreach}
-                    {else}
-                    {foreach ['新建工程'=>'新建工程','改扩建加固工程'=>'改扩建加固工程','其他'=>'其他'] as $k=>$v}
-                    <option value="{$k}">{$v}</option>
-                    {/foreach}
-                    {/if}
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green" required>建设地点</span>
-                <div class="layui-form-item layui-row layui-col-space12">
-                    <label class="layui-col-xs4 relative">
-                        <select name="construction_site_province" class="province-selector" id="province" lay-filter="province" lay-verify="required" lay-search >
-                            <option value="">请选择省</option>
-                            {if isset($vo.id) && $vo.id neq ''}
-                                {foreach $province as $k=>$v}
-                                    {if $v.name eq $vo.construction_site_province}
-                                        <option selected value="{$v.name}">{$v.name}</option>
-                                    {else}
-                                        <option value="{$v.name}">{$v.name}</option>
-                                    {/if}
-                                {/foreach}
-                            {else}
-                                {foreach $province as $k=>$v}
-                                    <option value="{$v.name}">{$v.name}</option>
-                                {/foreach}
-                            {/if}
-                        </select>
-                    </label>
-                    <label class="layui-col-xs4 relative">
-                        <select name="construction_site_city" class="city-selector" data-value="" id="city" lay-filter="city" lay-verify="required" lay-search>
-                            <option value="">请选择市</option>
-                            {if isset($vo.id) && $vo.id neq ''}
-                                {foreach $city as $k=>$v}
-                                    {if $v.name eq $vo.construction_site_city}
-                                        <option selected value="{$v.name}">{$v.name}</option>
-                                    {else}
-                                        <option value="{$v.name}">{$v.name}</option>
-                                    {/if}
-                                {/foreach}
-                            {/if}
-                        </select>
-                    </label>
-                    <label class="layui-col-xs4 relative">
-                        <select name="construction_site_area" class="county-selector" data-value="" id="area" lay-filter="area" lay-search>
-                            <option value="">请选择区</option>
-                            {if isset($vo.id) && $vo.id neq ''}
-                                {foreach $area as $k=>$v}
-                                    {if $v.name eq $vo.construction_site_area}
-                                        <option selected value="{$v.name}">{$v.name}</option>
-                                    {else}
-                                        <option value="{$v.name}">{$v.name}</option>
-                                    {/if}
-                                {/foreach}
-                            {/if}
-                        </select>
-                    </label>
-                </div>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">标准(档次)</span>
-                <input  name="grade" class="layui-input" placeholder="请输入标准(档次)" value="{$vo.grade|default=''}">
-            </label>
-        </div>
-        <h3 style="margin-bottom: 15px">项目总体特征</h3>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑类别及组成</span>
-                <input  name="building_composition" class="layui-input" placeholder="请输入建筑类别及组成" value="{$vo.building_composition|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">总用地面积</span>
-                <input  name="total_land_area" class="layui-input" placeholder="请输入总用地面积" value="{$vo.total_land_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">总建筑面积</span>
-                <input  name="gross_floor_area" required class="layui-input" lay-verify="number" placeholder="请输入总建筑面积" value="{$vo.gross_floor_area|default=''}">
-            </label>
-        </div>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地上面积</span>
-                <input  name="floor_area" required class="layui-input" lay-verify="number" placeholder="请输入地上面积" value="{$vo.floor_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">地下面积</span>
-                <input  name="underground_area" required class="layui-input" lay-verify="number" placeholder="请输入地下面积" value="{$vo.underground_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑密度</span>
-                <input  name="building_density"  class="layui-input"  placeholder="请输入建筑密度" value="{$vo.building_density|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">绿化面积</span>
-                <input  name="green_area"  class="layui-input"  placeholder="请输入绿化面积" value="{$vo.green_area|default=''}">
-            </label>
-        </div>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">道路面积</span>
-                <input  name="road_area" class="layui-input"  placeholder="请输入道路面积" value="{$vo.road_area|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">道路长度</span>
-                <input  name="road_length" class="layui-input"  placeholder="请输入道路长度" value="{$vo.road_length|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">建筑分期或分期建设情况描述密度</span>
-                <input  name="case_description"  class="layui-input" placeholder="请输入分期或分期建设情况描述" value="{$vo.case_description|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">功能参数</span>
-                <input  name="function_parameters"  class="layui-input" placeholder="请输入功能参数" value="{$vo.function_parameters|default=''}">
-            </label>
-        </div>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">人防面积</span>
-                <input  name="defense" class="layui-input" placeholder="请输入人防面积" value="{$vo.defense|default=''}">
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">人防类型</span>
-                <input  name="defense_type" class="layui-input" placeholder="请输入人防类型" value="{$vo.defense_type|default=''}">
-            </label>
-        </div>
-        <h3 style="margin-bottom: 15px">投融资模式</h3>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">投资主体</span>
-                <input  name="investment_subject" class="layui-input" placeholder="请输入投资主体" value="{$vo.investment_subject|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">资金来源</span>
-                <input  name="sources_funding" class="layui-input" placeholder="请输入资金来源" value="{$vo.sources_funding|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">承发包模式</span>
-                <input  name="contract_mode"  class="layui-input" placeholder="请输入承发包模式" value="{$vo.contract_mode|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">组织管理模式</span>
-                <input  name="management_mode"  class="layui-input" placeholder="请输入组织管理模式" value="{$vo.management_mode|default=''}">
-            </label>
-        </div>
-        <h3 style="margin-bottom: 15px">项目主要参与单位</h3>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">业主</span>
-                <input  name="owner" class="layui-input" placeholder="请输入业主" value="{$vo.owner|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">总包</span>
-                <input  name="total_package"  class="layui-input" placeholder="请输入总包" value="{$vo.total_package|default=''}">
-            </label>
-        </div>
-        <h3 style="margin-bottom: 15px">日期</h3>
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">开工时间</span>
-                <input  name="starting_time" readonly required  class="layui-input" id="test2" placeholder="yyyy-MM-dd" value="{$vo.starting_time|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">竣工时间</span>
-                <input  name="ending_time" readonly required class="layui-input" id="test3" placeholder="yyyy-MM-dd" value="{$vo.ending_time|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">工期(单位:天)</span>
-                <input  name="project_time" readonly class="layui-input" id="project_time" placeholder="自动计算" value="{$vo.project_time|default=''}">
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs6 relative">
-                <span class="color-green">获奖情况</span>
-                <textarea placeholder="请输入" name="awards" class="layui-textarea">{$vo.awards|default=''}</textarea>
-            </label>
-            <label class="layui-col-xs6 relative">
-                <span class="color-green">其他说明</span>
-                <textarea placeholder="请输入" name="other_instructions" class="layui-textarea">{$vo.other_instructions|default=''}</textarea>
-            </label>
-        </div>
-
-        <div class="layui-form-item text-center">
-            {if isset($vo.id) && $vo.id neq ''}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
-            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
-            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" onclick="window.history.back()" type="button">取消</button>
-            <button class="layui-btn" type="submit" lay-submit >确定</button>
-        </div>
-
-
-    </div>
-</form>
-{/block}
-
-{block name='script'}
-<script>
-    window.form.render();
-    layui.config({
-        base: 'static/modules/'
-    }).extend({
-        numinput: 'numinput/numinput'
-    });
-    layui.use(['form', 'layedit', 'laydate','numinput'], function(){
-        var form = layui.form
-            ,layer = layui.layer
-            ,layedit = layui.layedit
-            ,laydate = layui.laydate,
-            numinp = layui.numinput;
-
-        // numinp.init({
-        //     // 123:123键置顶, 789:789键置顶
-        //     topBtns: 789,
-        //     // 右侧功能按钮开关
-        //     rightBtns: false,
-        //     // 功能按钮提示开关
-        //     showTips: true,
-        //     // 是否监听键盘事件
-        //     listening: true,
-        //     // 批量配置默认小数精确度,默认 -1 不处理精确度,0 表示禁止输入小数
-        //     defaultPrec: -1,
-        //     // 初始化回调,无参
-        //     initEnd: $.noop,
-        //     // 触发显示回调,参数为当前输入框和数字键盘的 jQuery 对象
-        //     showEnd: $.noop,
-        //     // 隐藏键盘回调,参数为当前输入框的 jQuery 对象
-        //     hideEnd: $.noop,
-        //     // 自定义 z-index
-        //     zIndex: 19999999
-        // });
-        //常规用法
-        laydate.render({
-            elem: '#test1'
-        });
-        laydate.render({
-            elem: '#test2',
-            done:function (value,date) {
-                var endtime = $("#test3").val()
-                if (endtime!=''){
-                    changeday(value,endtime)
-                }
-            }
-
-        });
-        laydate.render({
-            elem: '#test3',
-            done:function (value,date) {
-                var starttime = $("#test2").val()
-                if (starttime!=''){
-                    changeday(starttime,value)
-                }
-
-            }
-        });
-
-        form.on('select(province)', function (data) {
-            var val = data.value;
-             console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_city')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    //console.log(arr)
-                    if (arr.length>0){
-                        //$("#tow").attr("style","display:block;");//显示div
-                        var options='<option value="">请选择市</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择市</option>';
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-        form.on('select(city)', function (data) {
-            var val = data.value;
-            // console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_area')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    // console.log(arr)
-                    if (arr.length>0){
-                        var options='<option value="">请选择区</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择区</option>';
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-    });
-
-    function changeday(startdate,enddate) {
-        var day = 0;
-        if (startdate==enddate){
-            day = 1;
-        }else if (startdate>enddate){
-            day = 0;
-        }else {
-            day = getDaysBetween(startdate,enddate) + 1
-        }
-        $("#project_time").attr("value",day);
-    }
-
-    //计算两个日期相差的天数
-    function  getDaysBetween(dateString1,dateString2){
-        var  startDate = Date.parse(dateString1);
-        var  endDate = Date.parse(dateString2);
-        if (startDate>endDate){
-            return 0;
-        }
-        if (startDate==endDate){
-            return 1;
-        }
-        var days=(endDate - startDate)/(1*24*60*60*1000);
-        return  days;
-    }
-
-
-</script>
-{/block}

+ 0 - 163
application/admin/view/main_project/index.html

@@ -1,163 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm" style="background-color: #DC2219" onclick="getIds()">去对比</button>
-{/if}
-
-{if auth("add")}
-<a data-dbclick data-title="新建主项目" class="layui-btn layui-btn-sm" style="background-color: #DC2219;" data-open='{:url("add")}'>新建项目</a>
-{/if}
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='main_project/index_search'}
-    <table class="layui-table margin-top-10">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='text-left nowrap'>项目名称</th>
-            <th class='text-left nowrap'>项目地点</th>
-            <th class='text-left nowrap'>开竣工时间</th>
-            <th class='text-left nowrap'>建筑分类</th>
-            <th class='text-left nowrap'>创建时间</th>
-            <th class='text-left nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <td class='list-table-check-td think-checkbox'>
-                {if $vo.url neq ''}  <label><input class="list-check-box" name="ids" value='{$vo.id}' type='checkbox'></label>{/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.project_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.construction_site_province|default='-'}-{$vo.construction_site_city|default='-'}-{$vo.construction_site_area|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.starting_time|default='-'}~{$vo.ending_time|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.category_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
-            <td class='text-left nowrap'>
-
-
-                {if auth("index2")}
-                <a class="layui-btn layui-btn-normal layui-btn-sm" style="background-color: #DC2219"  data-open='{:url("index2")}?id={$vo.id}'>子项目列表</a>
-                {/if}
-
-                {if auth("import")}
-                <a class='layui-btn layui-btn-normal layui-btn-sm dr' id="dr" style="background-color:#DC2219;margin-right: 10px;width: 65px " onclick="changename('{$vo.id}')">
-                    {if $vo.url eq ''}待导入{else}重新导入{/if}
-                </a>
-                {/if}
-
-                {if auth("edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑" style="background-color: #FFB822" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-<!--                {if auth("projectinfo")}-->
-<!--                <a data-title="项目详情" class="layui-btn layui-btn-sm" data-modal='{:url("projectinfo")}?id={$vo.id}'>项目详情</a>-->
-<!--                {/if}-->
-
-
-
-                {if $vo.url neq '' && auth("look")}
-                <a data-dbclick class="layui-btn layui-btn-sm" data-title="查看" style="background-color:#5AD729 " data-open='{:url("look")}?id={$vo.id}'>查 看</a>
-                {/if}
-
-                {if $vo.url neq '' && auth("down")}
-                <a href="{$vo.url}" class="layui-btn layui-btn-sm" style="background-color:#29B2D7 " download data-title="下载" >下 载</a>
-                {/if}
-
-                {if auth("remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" style="background-color: #2944D7" data-confirm="确定要删除吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
-                {/if}
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-
-    function getIds()
-    {
-        var id = document.getElementsByName('ids');
-        var value = new Array();
-        for (var i=0;i<id.length;i++){
-            if (id[i].checked){
-                value.push(id[i].value);
-            }
-        }
-        if (value.length<1){
-            layer.msg('请选择需要对比的数据');
-        }else if (value.length<2){
-            layer.msg('请选择至少两条数据');
-        }else{
-            $.form.href('{:url("admin/main_project/contrast")}?ids=' +value.toString());
-           //window.location = '{:url("admin/main_project/contrast")}?ids=' +value.toString();
-        }
-
-    }
-
-
-    var project_id = ''
-    function changename(val){
-        project_id = val
-    }
-    layui.use('upload', function(){
-        var upload = layui.upload;
-
-        //执行实例
-        var uploadInst = upload.render({
-            elem: '.dr' //绑定元素
-            ,url: 'admin/api.plugs/upload'
-            ,accept: 'file', //普通文件,
-            // ,data:{
-            //     id:function () {
-            //         return project_id
-            //     }
-            // },
-            before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
-                console.log(obj)
-                // layer.load(); //上传loading
-            }
-            ,done: function(res){
-                if (res.uploaded == true){
-                    var value = {path:res.key,project_id:project_id,url:res.url}
-                    $.ajax({
-                        url:"/admin/main_project/import",
-                        type:'get',
-                        data:value
-                        ,success:function(result){
-                            console.log(result.code);
-                            if (result.code==1){
-                                layer.msg('上传成功',{time:2000,end:function () {
-                                        location.reload();
-                                       // $.form.href('{:url("admin/main_project/index")}');
-                                }});
-                            }else {
-                                layer.msg('上传失败,请核对表格模板是否正确!',{icon: 5});
-                            }
-                        }
-                    });
-                }else {
-                   layer.msg(res.error.message,{icon: 5});
-                }
-               // layer.closeAll('loading'); //关闭loading
-            }
-            ,error: function(){
-                layer.msg('上传失败');
-            }
-        });
-    });
-</script>
-{/block}

+ 0 - 144
application/admin/view/main_project/index2.html

@@ -1,144 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-
-{if auth("contrast")}
-<button class="layui-btn layui-btn-sm " style="background-color: #DC2219 " onclick="getIds()" >去对比</button>
-{/if}
-
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='child_project/index_search'}
-    <table class="layui-table margin-top-10">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='text-left nowrap'>项目名称</th>
-            <th class='text-left nowrap'>主项目</th>
-            <th class='text-left nowrap'>建筑分类</th>
-            <th class='text-left nowrap'>创建时间</th>
-            <th class='text-center nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <td class='list-table-check-td think-checkbox'>
-                {if $vo.url neq ''}  <label><input class="list-check-box" name="ids" value='{$vo.id}' type='checkbox'></label>{/if}
-            </td>
-            <td class='text-left nowrap'>{$vo.project_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.main_project_name|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.category_name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
-            <td class='text-left nowrap'>
-
-                {if auth("admin/child_project/import")}
-                <a class='layui-btn layui-btn-normal layui-btn-sm dr' id="dr" style="background-color:#DC2219;margin-right: 10px;width: 65px " onclick="changename('{$vo.id}')">
-                    {if $vo.url eq ''}待导入{else}重新导入{/if}
-                </a>
-                {/if}
-
-                {if auth("admin/child_project/edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #FFB822" data-title="编辑" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-
-                {if $vo.url neq '' && auth("admin/child_project/look")}
-                <a data-dbclick class="layui-btn layui-btn-sm" style="background-color: #5AD729" data-title="查看" data-open='{:url("admin/child_project/look")}?id={$vo.id}'>查 看</a>
-                {/if}
-
-                {if $vo.url neq '' && auth("admin/child_project/down")}
-                <a href="{$vo.url}" class="layui-btn layui-btn-sm" style="background-color:#29B2D7 " download data-title="下载" >下 载</a>
-                {/if}
-
-                {if auth("admin/child_project/remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" style="background-color: #2944D7" data-confirm="确定要删除吗?" data-action="{:url('admin/child_project/remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
-                {/if}
-
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-<script>
-
-    function getIds()
-    {
-        var id = document.getElementsByName('ids');
-        var value = new Array();
-        for (var i=0;i<id.length;i++){
-            if (id[i].checked){
-                value.push(id[i].value);
-            }
-        }
-        if (value.length<1){
-            layer.msg('请选择需要对比的数据');
-        }else if (value.length<2){
-            layer.msg('请选择至少两条数据');
-        }else{
-            $.form.href('{:url("admin/child_project/contrast")}?ids=' +value.toString());
-            //window.location = '{:url("admin/main_project/contrast")}?ids=' +value.toString();
-        }
-
-    }
-
-
-    var project_id = ''
-    function changename(val){
-        project_id = val
-    }
-    layui.use('upload', function(){
-        var upload = layui.upload;
-
-        //执行实例
-        var uploadInst = upload.render({
-            elem: '.dr' //绑定元素
-            ,url: 'admin/api.plugs/upload'
-            ,accept: 'file', //普通文件,
-            before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
-                console.log(obj)
-                // layer.load(); //上传loading
-            }
-            ,done: function(res){
-                if (res.uploaded == true){
-                    var value = {path:res.key,project_id:project_id,url:res.url}
-                    $.ajax({
-                        url:"/admin/child_project/import",
-                        type:'get',
-                        data:value
-                        ,success:function(result){
-                            console.log(result.code);
-                            if (result.code==1){
-                                layer.msg('上传成功',{time:2000,end:function () {
-                                        location.reload();
-                                      //  $.form.href('{:url("admin/child_project/index")}');
-                                    }});
-                            }else {
-                                layer.msg('上传失败',{icon: 5});
-                            }
-                        }
-                    });
-                }else {
-                    layer.msg('上传失败',{icon: 5});
-                }
-                // layer.closeAll('loading'); //关闭loading
-            }
-            ,error: function(){
-                layer.msg('上传失败');
-            }
-        });
-    });
-</script>
-{/block}

+ 0 - 625
application/admin/view/main_project/index_search.html

@@ -1,625 +0,0 @@
-<style>
-    .layui-col-space12>*{
-        padding: 6px 0 6px 0 !important;
-    }
-</style>
-<fieldset>
-
-    <legend>条件搜索</legend>
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" >
-
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑分类</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="category_id">
-                    {foreach $menus as $k=>$v}
-                    {eq name='Think.get.category_id' value='$v.id.""'}
-                    <option selected value="{$v.id}">{$v.spl|raw}{$v.title}</option>
-                    {else}
-                    <option value="{$v.id}">{$v.spl|raw}{$v.title}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">工程类别</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="engineering_category">
-                    {foreach [''=>'-- 全部 --','新建工程'=>'新建工程','改扩建加固工程'=>'改扩建加固工程','其他'=>'其他'] as $k=>$v}
-                    {eq name='Think.get.engineering_category' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">工程范围</label>
-            <div class="layui-input-inline">
-                <input name="project_scope" value="{$Think.get.project_scope|default=''}" placeholder="请输入工程范围" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">造价类别</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="cost_categories">
-                    {foreach [''=>'-- 全部 --','投标价'=>'投标价','合同价'=>'合同价','结算价'=>'结算价','重计量'=>'重计量','清单控制价'=>'清单控制价','估算'=>'估算','概算'=>'概算','目标成本'=>'目标成本','其他'=>'其他'] as $k=>$v}
-                    {eq name='Think.get.cost_categories' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">模板类型</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="template">
-                    {foreach $template as $k=>$v}
-                    {eq name='Think.get.template' value='$v.id.""'}
-                    <option selected value="{$v.id}">{$v.title}</option>
-                    {else}
-                    <option value="{$v.id}">{$v.title}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <br />
-
-
-        <div class="layui-form-item layui-inline ">
-            <label class="layui-form-label">建设地点</label>
-            <div class="layui-input-inline layui-col-space18" style="width: 350px">
-                <label class="layui-col-xs4">
-                    <select name="construction_site_province"  id="province" lay-filter="province">
-                        <option value="">选择省</option>
-                        {foreach $province as $k=>$v}
-                        {eq name='Think.get.construction_site_province' value='$v.name.""'}
-                        <option selected value="{$v.name}">{$v.name}</option>
-                        {else}
-                        <option value="{$v.name}">{$v.name}</option>
-                        {/eq}
-                        {/foreach}
-                    </select>
-                </label>
-                <label class="layui-col-xs4">
-                    <select name="construction_site_city" class="city-selector" data-value="" id="city" lay-filter="city">
-                        <option value="">选择市</option>
-                        {foreach $city as $k=>$v}
-                        {eq name='Think.get.construction_site_city' value='$v.name.""'}
-                        <option selected value="{$v.name}">{$v.name}</option>
-                        {else}
-                        <option value="{$v.name}">{$v.name}</option>
-                        {/eq}
-                        {/foreach}
-                    </select>
-                </label>
-                <label class="layui-col-xs4">
-                    <select name="construction_site_area" class="county-selector" data-value="" id="area" lay-filter="area">
-                        <option value="">选择区</option>
-                        {foreach $area as $k=>$v}
-                        {eq name='Think.get.construction_site_area' value='$v.name.""'}
-                        <option selected value="{$v.name}">{$v.name}</option>
-                        {else}
-                        <option value="{$v.name}">{$v.name}</option>
-                        {/eq}
-                        {/foreach}
-                    </select>
-                </label>
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">编制日期</label>
-            <div class="layui-input-inline">
-<!--                <input type="text" class="layui-input" readonly name="prepare_date" value="{$Think.get.prepare_date|default=''}" id="test1" placeholder="yyyy-MM-dd">-->
-                <input data-date-range name="prepare_date" readonly value="{$Think.get.prepare_date|default=''}" placeholder="请选择编制日期" class="layui-input">
-            </div>
-        </div>
-
-        <br />
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">项目名称</label>
-            <div class="layui-input-inline">
-                <input name="project_name" value="{$Think.get.project_name|default=''}" placeholder="请输入项目名称" class="layui-input">
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">清单编制依据</label>
-            <div class="layui-input-inline">
-                <input name="basis_for_listing" value="{$Think.get.basis_for_listing|default=''}" placeholder="请输入清单编制依据" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑类别及组成</label>
-            <div class="layui-input-inline">
-                <input name="building_composition" value="{$Think.get.building_composition|default=''}" placeholder="请输入建筑类别及组成" class="layui-input">
-            </div>
-        </div>
-
-
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">标准(档次)</label>
-            <div class="layui-input-inline">
-                <input name="grade" value="{$Think.get.grade|default=''}" placeholder="请输入标准(档次)" class="layui-input">
-            </div>
-        </div>
-
-        <br />
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">总用地面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="total_land_area_start" id="total_land_area_start" placeholder="" value="{$Think.get.total_land_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="total_land_area_end" id="total_land_area_end" placeholder="" value="{$Think.get.total_land_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">总建筑面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="gross_floor_area_start" id="gross_floor_area_start" placeholder="" value="{$Think.get.gross_floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="gross_floor_area_end" id="gross_floor_area_end" placeholder="" value="{$Think.get.gross_floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地上面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="floor_area_start" id="floor_area_start" placeholder="" value="{$Think.get.floor_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="floor_area_end" id="floor_area_end" placeholder="" value="{$Think.get.floor_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">地下面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_area_start" id="underground_area_start" placeholder="" value="{$Think.get.underground_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="underground_area_end" id="underground_area_end" placeholder="" value="{$Think.get.underground_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">建筑密度</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_density_start" id="building_density_start" placeholder="" value="{$Think.get.building_density_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="building_density_end" id="building_density_end" placeholder="" value="{$Think.get.building_density_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">绿化面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="green_area_start" id="green_area_start" placeholder="" value="{$Think.get.green_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="green_area_end" id="green_area_end" placeholder="" value="{$Think.get.green_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">道路面积</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="road_area_start" id="road_area_start" placeholder="" value="{$Think.get.road_area_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="road_area_end" id="road_area_end" placeholder="" value="{$Think.get.road_area_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">道路长度</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="road_length_start" id="road_length_start" placeholder="" value="{$Think.get.road_length_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="road_length_end" id="road_length_end" placeholder="" value="{$Think.get.road_length_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">分期或分期建设情况描述</label>
-            <div class="layui-input-inline" style="width: 187px">
-                <input name="case_description" value="{$Think.get.case_description|default=''}" style="width: 190px !important;" placeholder="请输入分期或分期建设情况描述" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">功能参数</label>
-            <div class="layui-input-inline">
-                <input name="function_parameters" value="{$Think.get.function_parameters|default=''}" placeholder="请输入功能参数" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">人防面积</label>
-            <div class="layui-input-inline">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="defense_start" id="defense_start" placeholder="" value="{$Think.get.defense_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="defense_end" id="defense_end" placeholder="" value="{$Think.get.defense_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-
-        <br />
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">人防类型</label>
-            <div class="layui-input-inline">
-                <input name="defense_type" value="{$Think.get.defense_type|default=''}" placeholder="请输入人防类型" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">投资主体</label>
-            <div class="layui-input-inline">
-                <input name="investment_subject" value="{$Think.get.investment_subject|default=''}" placeholder="请输入人投资主体" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">资金来源</label>
-            <div class="layui-input-inline">
-                <input name="sources_funding" value="{$Think.get.sources_funding|default=''}" placeholder="请输入资金来源" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">承发包模式</label>
-            <div class="layui-input-inline">
-                <input name="contract_mode" value="{$Think.get.contract_mode|default=''}" placeholder="请输入承发包模式" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">组织管理模式</label>
-            <div class="layui-input-inline">
-                <input name="management_mode" value="{$Think.get.management_mode|default=''}" placeholder="请输入组织管理模式" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">业主</label>
-            <div class="layui-input-inline">
-                <input name="owner" value="{$Think.get.owner|default=''}" placeholder="请输入业主" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">总包</label>
-            <div class="layui-input-inline">
-                <input name="total_package" value="{$Think.get.total_package|default=''}" placeholder="请输入总包" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">开工时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="starting_time" readonly value="{$Think.get.starting_time|default=''}" placeholder="请选择开工时间" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">竣工时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="ending_time" readonly value="{$Think.get.ending_time|default=''}" placeholder="请选择竣工时间" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">工期</label>
-            <div class="layui-input-inline layui-col-space12">
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="project_time_start" id="project_time_start" placeholder="" value="{$Think.get.project_time_start|default=''}" class="layui-input">
-                </div>
-                <div class="layui-form-mid">-</div>
-                <div class="layui-input-inline" style="width: 68px;">
-                    <input type="text" name="project_time_end" id="project_time_end" placeholder="" value="{$Think.get.project_time_end|default=''}" class="layui-input">
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">获奖情况</label>
-            <div class="layui-input-inline">
-                <input name="awards" value="{$Think.get.awards|default=''}" placeholder="请输入获奖情况" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">其他说明</label>
-            <div class="layui-input-inline">
-                <input name="other_instructions" value="{$Think.get.other_instructions|default=''}" placeholder="请输入其他说明" class="layui-input">
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary" style="color: #FFFFFF;background-color: #DC2219" lay-submit lay-filter="tijiao"><i class="layui-icon">&#xe615;</i>立即搜索</button>
-        </div>
-    </form>
-
-</fieldset>
-
-<script>
-    form.render();
-    layui.use(['form', 'layedit', 'laydate'], function(){
-        var form = layui.form
-            ,layer = layui.layer
-            ,layedit = layui.layedit
-            ,laydate = layui.laydate;
-
-        //常规用法
-        laydate.render({
-            elem: '#test1'
-        });
-
-        form.on('submit(tijiao)', function(data) {
-            var total_land_area_start = data.field.total_land_area_start;
-            var total_land_area_end = data.field.total_land_area_end;
-            if (total_land_area_start=='' && total_land_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#total_land_area_start").focus();
-                return false
-            }else if (total_land_area_start!='' && total_land_area_end==''){
-                layer.msg('请输入终止值');
-                $("#total_land_area_end").focus();
-                return false
-            }else if (total_land_area_end<total_land_area_start){
-                layer.msg('终止值小于起始值');
-                $("#total_land_area_start").focus();
-                return false
-            }
-
-            var gross_floor_area_start = data.field.gross_floor_area_start;
-            var gross_floor_area_end = data.field.gross_floor_area_end;
-            if (gross_floor_area_start=='' && gross_floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#gross_floor_area_start").focus();
-                return false
-            }else if (gross_floor_area_start!='' && gross_floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#gross_floor_area_end").focus();
-                return false
-            }else if (gross_floor_area_end<gross_floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#gross_floor_area_start").focus();
-                return false
-            }
-
-
-            var floor_area_start = data.field.floor_area_start;
-            var floor_area_end = data.field.floor_area_end;
-            if (floor_area_start=='' && floor_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#floor_area_start").focus();
-                return false
-            }else if (floor_area_start!='' && floor_area_end==''){
-                layer.msg('请输入终止值');
-                $("#floor_area_end").focus();
-                return false
-            }else if (floor_area_end<floor_area_start){
-                layer.msg('终止值小于起始值');
-                $("#floor_area_start").focus();
-                return false
-            }
-
-            var underground_area_start = data.field.underground_area_start;
-            var underground_area_end = data.field.underground_area_end;
-            if (underground_area_start=='' && underground_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#underground_area_start").focus();
-                return false
-            }else if (underground_area_start!='' && underground_area_end==''){
-                layer.msg('请输入终止值');
-                $("#underground_area_end").focus();
-                return false
-            }else if (underground_area_end<underground_area_start){
-                layer.msg('终止值小于起始值');
-                $("#underground_area_start").focus();
-                return false
-            }
-
-            var building_density_start = data.field.building_density_start;
-            var building_density_end = data.field.building_density_end;
-            if (building_density_start=='' && building_density_end!=''){
-                layer.msg('请输入起始值');
-                $("#building_density_start").focus();
-                return false
-            }else if (building_density_start!='' && building_density_end==''){
-                layer.msg('请输入终止值');
-                $("#building_density_end").focus();
-                return false
-            }else if (building_density_end<building_density_start){
-                layer.msg('终止值小于起始值');
-                $("#building_density_start").focus();
-                return false
-            }
-
-
-            var green_area_start = data.field.green_area_start;
-            var green_area_end = data.field.green_area_end;
-            if (green_area_start=='' && green_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#green_area_start").focus();
-                return false
-            }else if (green_area_start!='' && green_area_end==''){
-                layer.msg('请输入终止值');
-                $("#green_area_end").focus();
-                return false
-            }else if (green_area_end<green_area_start){
-                layer.msg('终止值小于起始值');
-                $("#green_area_start").focus();
-                return false
-            }
-
-            var road_area_start = data.field.road_area_start;
-            var road_area_end = data.field.road_area_end;
-            if (road_area_start=='' && road_area_end!=''){
-                layer.msg('请输入起始值');
-                $("#road_area_start").focus();
-                return false
-            }else if (road_area_start!='' && road_area_end==''){
-                layer.msg('请输入终止值');
-                $("#road_area_end").focus();
-                return false
-            }else if (road_area_end<road_area_start){
-                layer.msg('终止值小于起始值');
-                $("#road_area_start").focus();
-                return false
-            }
-
-            var road_length_start = data.field.road_length_start;
-            var road_length_end = data.field.road_length_end;
-            if (road_length_start=='' && road_length_end!=''){
-                layer.msg('请输入起始值');
-                $("#road_length_start").focus();
-                return false
-            }else if (road_length_start!='' && road_length_end==''){
-                layer.msg('请输入终止值');
-                $("#road_length_end").focus();
-                return false
-            }else if (road_length_end<road_length_start){
-                layer.msg('终止值小于起始值');
-                $("#road_length_start").focus();
-                return false
-            }
-
-            var project_time_start = data.field.project_time_start;
-            var project_time_end = data.field.project_time_end;
-            if (project_time_start=='' && project_time_end!=''){
-                layer.msg('请输入起始值');
-                $("#project_time_start").focus();
-                return false
-            }else if (project_time_start!='' && project_time_end==''){
-                layer.msg('请输入终止值');
-                $("#project_time_end").focus();
-                return false
-            }else if (project_time_end<project_time_start){
-                layer.msg('终止值小于起始值');
-                $("#project_time_start").focus();
-                return false
-            }
-
-            var defense_start = data.field.defense_start;
-            var defense_end = data.field.defense_end;
-            if (defense_start=='' && defense_end!=''){
-                layer.msg('请输入起始值');
-                $("#defense_start").focus();
-                return false
-            }else if (defense_start!='' && defense_end==''){
-                layer.msg('请输入终止值');
-                $("#defense_end").focus();
-                return false
-            }else if (defense_end<defense_start){
-                layer.msg('终止值小于起始值');
-                $("#defense_start").focus();
-                return false
-            }
-
-
-
-        });
-
-        form.on('select(province)', function (data) {
-            var val = data.value;
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_city')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    //console.log(arr)
-                    if (arr.length>0){
-                        //$("#tow").attr("style","display:block;");//显示div
-                        var options='<option value="">选择市</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">选择市</option>';
-                        $("select[name='construction_site_city']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-        form.on('select(city)', function (data) {
-            var val = data.value;
-            // console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('MainProject/get_area')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                    // console.log(arr)
-                    if (arr.length>0){
-                        var options='<option value="">选择区</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.name+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">选择区</option>';
-                        $("select[name='construction_site_area']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-    });
-
-</script>

+ 0 - 88
application/admin/view/main_project/info.html

@@ -1,88 +0,0 @@
-<div style="padding: 20px; background-color: #F2F2F2;">
-    <div class="layui-row layui-col-space15">
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">项目名称:{$vo.project_name|default='--'}</div>
-                    <div class="layui-col-md6">造价类别:{$vo.cost_categories|default='--'}</div><hr />
-                    <div class="layui-col-md6">编制日期:{$vo.prepare_date|default='0'}</div>
-                    <div class="layui-col-md6">清单编制依据:{$vo.basis_for_listing|default='--'}</div><hr />
-                    <div class="layui-col-md6">工程范围:{$vo.project_scope|default='--'}</div><hr />
-
-                </div>
-            </div>
-        </div>
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">项目业态</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">建筑分类:{$vo.category_name|default='--'}</div>
-                    <div class="layui-col-md6">工程类别:{$vo.engineering_category|default='--'}</div><hr />
-                    <div class="layui-col-md6">建设地点:{$vo.construction_site_province|default='--'}-{$vo.construction_site_city|default='--'}-{$vo.construction_site_area|default='--'}</div>
-                    <div class="layui-col-md6">标准(档次):{$vo.grade|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">项目总体特征</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md12">建筑类别及组成:{$vo.building_composition|default='--'}</div><hr />
-                    <div class="layui-col-md6">总用地面积:{$vo.total_land_area|default='--'}</div>
-                    <div class="layui-col-md6">总建筑面积:{$vo.gross_floor_area|default='--'}</div><hr />
-                    <div class="layui-col-md6">地上面积:{$vo.floor_area|default='--'}</div>
-                    <div class="layui-col-md6">地下面积:{$vo.underground_area|default='--'}</div><hr />
-                    <div class="layui-col-md6">建筑密度:{$vo.building_density|default='--'}</div>
-                    <div class="layui-col-md6">绿化面积:{$vo.green_area|default='--'}</div><hr />
-                    <div class="layui-col-md6">道路面积:{$vo.road_area|default='--'}</div>
-                    <div class="layui-col-md6">道路长度:{$vo.road_length|default='--'}</div><hr />
-                    <div class="layui-col-md12">分期或分期建设情况描述:{$vo.case_description|default='--'}</div><hr />
-                    <div class="layui-col-md12">功能参数:{$vo.function_parameters|default='--'}</div><hr />
-                    <div class="layui-col-md12">人防类型/级别/面积:{$vo.defense|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">投融资模式</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">投资主体:{$vo.investment_subject|default='--'}</div>
-                    <div class="layui-col-md6">资金来源:{$vo.sources_funding|default='--'}</div><hr />
-                    <div class="layui-col-md6">承发包模式:{$vo.contract_mode|default='--'}</div>
-                    <div class="layui-col-md6">组织管理模式:{$vo.management_mode|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">项目主要参与单位</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">业主:{$vo.owner|default='--'}</div>
-                    <div class="layui-col-md6">总包:{$vo.total_package|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">日期</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md4">开工时间:{$vo.starting_time|default='--'}</div>
-                    <div class="layui-col-md4">竣工时间:{$vo.ending_time|default='--'}</div>
-                    <div class="layui-col-md4">工期:{$vo.project_time|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-body">
-                    <div class="layui-col-md12">获奖情况:{$vo.awards|default='--'}</div><hr />
-                    <div class="layui-col-md12">其他说明:{$vo.other_instructions|default='--'}</div><hr />
-                </div>
-            </div>
-        </div>
-    </div>
-</div>

+ 0 - 53
application/admin/view/main_project/look.html

@@ -1,53 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-{if auth("add")}
-<button class="layui-btn" style="height: 30px;line-height:28px;color:#FFFFFF;background-color: #DC2219;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-{/if}
-
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    <table class="layui-table margin-top-10">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='text-left nowrap'>序号</th>
-            <th class='text-left nowrap'>成本测算科目</th>
-            <th class='text-left nowrap'>不含增值税测算成本 (万元)</th>
-            <th class='text-left nowrap'>增值税总额</th>
-            <th class='text-left nowrap'>含增值税测算成本</th>
-            <th class='text-left nowrap'>建筑面积</th>
-            <th class='text-left nowrap'>建面单方成本指标 (不含税)</th>
-            <th class='text-left nowrap'>建面单方成本指标 (含税)</th>
-            <th class='text-left nowrap'>可售单方成本指标(不含税)</th>
-            <th class='text-left nowrap'>可售单方成本指标(含税)</th>
-            <th class='text-left nowrap'>备注</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <td class='text-left nowrap' style="background-color:#f2f2f2">{$vo.number|default=''}</td>
-            <td class='text-left nowrap'>{$vo.subjects|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.costs_are_excluded|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.total_vat|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.measurement_cost|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.area|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.unilateral_cost_indicator|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_cost_indicator|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.single_party_cost_no_tax|default='0'}</td>
-            <td class='text-left nowrap'>{$vo.note|default='-'}</td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-{/block}

+ 0 - 250
application/admin/view/main_project/see.html

@@ -1,250 +0,0 @@
-{extend name='main'}
-
-{block name="button"}
-{if auth("add")}
-<button class="layui-btn" style="height: 30px;line-height:28px;background-color: #DC2219;color: #FFFFFF;border: 1px solid #C9C9C9 " type='button' onclick="window.history.back()">返 回</button>
-{/if}
-
-
-{/block}
-
-{block name="content"}
-<style>
-    .tu{
-        width: 75%;height:600px;float: left
-    }
-    .layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view{
-        border: none !important;
-
-
-    }
-    .layui-table{
-        background-color:initial !important;
-    }
-</style>
-
-<div class="layui-tab">
-    <input type="hidden" id="subjects" value="{$subjects}">
-    <input type="hidden" id="ids" value="{$ids}">
-
-    <ul class="layui-tab-title">
-        <li class="layui-this" onclick="change()">不含增值税测算成本 (万元)</li>
-        <li onclick="change1()">增值税总额</li>
-        <li onclick="change2()">含增值税测算成本</li>
-        <li onclick="change3()">建面单方成本指标(不含税)</li>
-        <li onclick="change4()">建面单方成本指标(含税)</li>
-        <li onclick="change5()">可售单方成本指标(不含税)</li>
-        <li onclick="change6()">可售单方成本指标(含税)</li>
-    </ul>
-    <div class="layui-tab-content" style="height: 100px;">
-        <div class="layui-tab-item layui-show" style="width:100%;">
-            <div id="main" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main1" class="tu" ></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main2" class="tu" ></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main3" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main4" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main5" class="tu"></div>
-        </div>
-        <div class="layui-tab-item" style="width:100%;">
-            <div id="main6" class="tu"></div>
-        </div>
-        <div style="width: 25%;float: right">
-            <table class="layui-table margin-top-10">
-                <tr>
-                    <th style="font-weight:bold">样本名称</th>
-                    <th style="font-weight:bold">数值</th>
-                    <th style="font-weight:bold">备注</th>
-                </tr>
-                <tbody id="right">
-
-                </tbody>
-            </table>
-
-        </div>
-    </div>
-</div>
-
-<script type="text/javascript">
-
-    setinfo('main','costs_are_excluded')
-
-    function change () {
-        setinfo('main','costs_are_excluded')
-    }
-    function change1 () {
-        // setTimeout(() => {
-        //     // 基于准备好的dom,初始化echarts实例
-        //     var myChart1 = echarts.init(document.getElementById('main1'));
-        //     // 指定图表的配置项和数据
-        //     var option1 = {
-        //         title: {
-        //             text: ''
-        //         },
-        //         tooltip: {},
-        //         legend: {
-        //             // data: ['销量']
-        //         },
-        //         xAxis: {
-        //             axisLabel:{
-        //                 interval:0,
-        //                 // rotate:20
-        //             },
-        //             data:result1.data.total_vat.title
-        //         },
-        //         yAxis: {},
-        //         series: [
-        //             {
-        //                 name: result1.data.subjects,
-        //                 type: 'bar',
-        //                 data:result1.data.total_vat.value
-        //             }
-        //         ]
-        //     };
-        //     // 使用刚指定的配置项和数据显示图表。
-        //     myChart1.setOption(option1);
-        // },200)
-        setinfo('main1','total_vat')
-    }
-    function change2 () {
-        setinfo('main2','measurement_cost')
-    }
-    function change3 () {
-        setinfo('main3','unilateral_cost_indicator')
-    }
-    function change4 () {
-        setinfo('main4','single_cost_indicator')
-    }
-    function change5 () {
-        setinfo('main5','single_party_cost_tax')
-    }
-    function change6 () {
-        setinfo('main6','single_party_cost_no_tax')
-    }
-
-    //ajax获取数据
-    function setinfo(where,field) {
-        var subjects = $("#subjects").val()
-        var ids = $("#ids").val()
-        var value = {subjects:subjects,ids:ids,field:field}
-        $.ajax({
-            url:"/admin/main_project/get_see_info",
-            type:'get',
-            data:value
-            ,success:function(result){
-                console.log(result);
-
-                setchart(where,result,field);
-
-                var arr = result.data.right;
-                htmlright(arr)
-            }
-        });
-    }
-
-    //画图
-    function setchart(where,result,field) {
-        var len = result.data.field.title.length
-        var xname = ''
-        if (field=='costs_are_excluded'){
-            xname = '不含增值税测算成本 (万元)'
-        }else if (field=='total_vat'){
-            xname = '增值税总额';
-        }else if (field=='measurement_cost'){
-            xname = '含增值税测算成本';
-        }else if (field=='unilateral_cost_indicator'){
-            xname = '单方成本指标(不含税)';
-        }else if (field=='single_cost_indicator'){
-            xname = '单方成本指标(含税)';
-        }else if (field=='single_party_cost_tax'){
-            xname = '可售单方成本指标(不含税)';
-        }else if (field=='single_party_cost_no_tax'){
-            xname = '可售单方成本指标(含税)';
-        }
-        var cid = document.getElementById(where)
-        //echarts重新渲染
-        if (cid.hasAttribute("_echarts_instance_"))
-            cid.removeAttribute("_echarts_instance_")
-        // 基于准备好的dom,初始化echarts实例
-        var myChart = echarts.init(cid);
-
-        // 指定图表的配置项和数据
-        var option = {
-            title: {
-                text: ''
-            },
-            tooltip: {},
-            legend: {
-               //  data: ['销量']
-            },
-            xAxis: {
-                show:true,
-                name:xname,
-                nameTextStyle:{				//---坐标轴名称样式
-                    padding:[40,100,-50,-105],	//---坐标轴名称相对位置
-                },
-                axisLabel:{
-                    interval:0,
-                    // rotate:20
-                    formatter: function (value) {
-                        value = value.replace(/[^\x00-\xff]/g, "$&\x01").replace(/.{12}\x01?/g, "$&\n").replace(/\x01/g, "");
-                        return value;
-                    }
-                },
-                //data: ['100-113.8', '113.8-127.6', '127.6-141.4', '141.4-155.2', '155.2-169', '155.2-169', '155.2-169', '155.2-169', '155.2-169', '155.2-169']
-                data:result.data.field.title
-            },
-            yAxis: {
-                show:true,
-                name:'工程数量',
-                nameTextStyle:{				//---坐标轴名称样式
-                    padding:[5,100,-20,15],	//---坐标轴名称相对位置
-                },
-            },
-            series: [
-                {
-                    name: result.data.subjects,
-                    type: 'bar',
-                    barMaxWidth:'10%',
-                    label:{
-                        show:true,
-                        position:'top',
-                        color:'#000000'
-                    },
-                    // data: [5, 0, 36, 10, 12, 14, 13, 30, 40, 1076872]
-                    data:result.data.field.value
-                }
-            ]
-        };
-        myChart.setOption(option);
-    }
-
-    //填充右边栏
-    function htmlright(arr) {
-        if (arr.length>0) {
-            var html = '';
-            for (var i = 0; i < arr.length; i++) {
-                var tag = arr[i];
-                html += '<tr>' +
-                    '<th style="color:red;">' + tag.project_name + '</th>' +
-                    '<th>' + tag.value + '</th>' +
-                    '<th>' + tag.note + '</th>' +
-                    '</tr>';
-            }
-            $('#right').html(html);
-        }
-    }
-
-</script>
-
-
-{/block}