|
@@ -10,6 +10,7 @@ import {
|
|
|
Spin,
|
|
|
Table,
|
|
|
Tabs,
|
|
|
+ Cascader,
|
|
|
} from "antd";
|
|
|
import { ShowModal, getNewDiccityArr } from "@/tools";
|
|
|
import { citySelect } from "../../../NewDicProvinceList";
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
} from "./projecCountConfig";
|
|
|
import HighTech from "./highTech";
|
|
|
import "./index.less";
|
|
|
+import Cascaders from "../../../common/cascaders";
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
const { RangePicker } = DatePicker;
|
|
@@ -135,12 +137,9 @@ class ProjecCount extends Component {
|
|
|
: undefined, //结束时间
|
|
|
province: this.state.province || undefined,
|
|
|
projectStatus: this.state.projectStatus || undefined, //项目类别
|
|
|
- projectType:
|
|
|
- typeof this.state.projectType === "number"
|
|
|
- ? this.state.projectType
|
|
|
- : undefined, //项目分类
|
|
|
+ projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类
|
|
|
status: this.state.status,
|
|
|
- thchDepId: this.state.depId || undefined,
|
|
|
+ thchDeps: this.state.depId || undefined,
|
|
|
projectId: this.state.kid || undefined,
|
|
|
},
|
|
|
success: function (data) {
|
|
@@ -211,6 +210,7 @@ class ProjecCount extends Component {
|
|
|
resetAll() {
|
|
|
this.setState(
|
|
|
{
|
|
|
+ newArray: [],
|
|
|
releaseDate: [],
|
|
|
searchOrderNo: "",
|
|
|
searchContractNo: "",
|
|
@@ -218,7 +218,7 @@ class ProjecCount extends Component {
|
|
|
declarationBatch: "",
|
|
|
province: "",
|
|
|
depId: "",
|
|
|
- projectType: "",
|
|
|
+ projectType: undefined,
|
|
|
projectStatus: "",
|
|
|
columns: currency((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
@@ -232,6 +232,7 @@ class ProjecCount extends Component {
|
|
|
taberCommodityName: "",
|
|
|
},
|
|
|
() => {
|
|
|
+ this.Cascaders.empty();
|
|
|
this.loadData();
|
|
|
}
|
|
|
);
|
|
@@ -245,46 +246,23 @@ class ProjecCount extends Component {
|
|
|
this.setState({
|
|
|
exportPendingLoading: true,
|
|
|
});
|
|
|
-
|
|
|
- let url = `/api/admin/statistis/exporProvincialList?status=${this.state.status}`;
|
|
|
- let dep = this.state.departmentArr.filter((e) => e.id === this.state.depId); //责任部门名称
|
|
|
let option = this.state.contactsOptionData.filter(
|
|
|
- (e) => e.id === this.state.projectStatus
|
|
|
- ); //项目类别名称
|
|
|
-
|
|
|
- if (dep.length > 0) {
|
|
|
- url = url + `&thchDepName=${dep[0].name}`;
|
|
|
- }
|
|
|
- if (option.length > 0) {
|
|
|
- url = url + `&projectStatusName=${option[0].cname}`;
|
|
|
- }
|
|
|
- if (typeof this.state.projectType === "number") {
|
|
|
- url =
|
|
|
- url +
|
|
|
- `&projectTypeName=${this.state.projectType === 0
|
|
|
- ? "通用"
|
|
|
- : this.state.projectType === 1
|
|
|
- ? "专利"
|
|
|
- : this.state.projectType === 2
|
|
|
- ? "软著"
|
|
|
- : this.state.projectType === 3
|
|
|
- ? "审计"
|
|
|
- : this.state.projectType === 4
|
|
|
- ? "双软"
|
|
|
- : this.state.projectType === 5
|
|
|
- ? "高新"
|
|
|
- : this.state.projectType === 6
|
|
|
- ? "商标"
|
|
|
- : ""
|
|
|
- }`;
|
|
|
- }
|
|
|
- if (this.state.commodityName) {
|
|
|
- url = url + `&projectName=${this.state.commodityName}`;
|
|
|
- }
|
|
|
- if (this.state.province) {
|
|
|
- url = url + `&provinceName=${getNewDiccityArr(this.state.province)}`;
|
|
|
- }
|
|
|
- let data = {
|
|
|
+ (e) => e.value === this.state.projectStatus
|
|
|
+ ); // 项目类别名称
|
|
|
+ let datas = {
|
|
|
+ status: this.state.status,
|
|
|
+ projectStatusName: option.length > 0 ? option[0].label : undefined,
|
|
|
+ projectName:
|
|
|
+ this.state.projectType == "0"
|
|
|
+ ? "通用" : this.state.projectType == "1"
|
|
|
+ ? "专利" : this.state.projectType == "2"
|
|
|
+ ? "软著" : this.state.projectType == "3"
|
|
|
+ ? "审计" : this.state.projectType == "4"
|
|
|
+ ? "双软" : this.state.projectType == "5"
|
|
|
+ ? "高新" : this.state.projectType == "6"
|
|
|
+ ? "商标" : this.state.projectType == "7"
|
|
|
+ ? "会员" : "",
|
|
|
+ provinceName: !!this.state.province ? getNewDiccityArr(this.state.province) : undefined,
|
|
|
startDate:
|
|
|
this.state.releaseDate.length > 0
|
|
|
? this.state.releaseDate[0]
|
|
@@ -293,28 +271,18 @@ class ProjecCount extends Component {
|
|
|
this.state.releaseDate.length > 0
|
|
|
? this.state.releaseDate[1]
|
|
|
: undefined, //结束时间
|
|
|
- thchDepId: this.state.depId || undefined, //责任部门ID
|
|
|
+ thchDeps: this.state.depId || undefined, //责任部门ID
|
|
|
projectStatus: this.state.projectStatus || undefined, //项目类别
|
|
|
- projectType:
|
|
|
- typeof this.state.projectType === "number"
|
|
|
- ? this.state.projectType
|
|
|
- : undefined, //项目分类
|
|
|
+ projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类
|
|
|
province: this.state.province || undefined,
|
|
|
projectId: this.state.kid || undefined,
|
|
|
- };
|
|
|
-
|
|
|
- for (let key in data) {
|
|
|
- if (data[key]) {
|
|
|
- url = url + `&${key}=${data[key]}`;
|
|
|
- }
|
|
|
}
|
|
|
-
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: url,
|
|
|
- data: {},
|
|
|
+ url: "/api/admin/statistis/exporProvincialList",
|
|
|
+ data: datas,
|
|
|
success: function (data) {
|
|
|
if (data.error.length === 0) {
|
|
|
this.download(data.data);
|
|
@@ -333,12 +301,9 @@ class ProjecCount extends Component {
|
|
|
}
|
|
|
|
|
|
exportExcel() {
|
|
|
- let dep = this.state.departmentArr.filter(
|
|
|
- (v) => v.id === this.state.taberdepId
|
|
|
- )[0].name; //责任部门名称
|
|
|
let option = this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
- )[0].cname; //项目类别名称
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
+ )[0].label; //项目类别名称
|
|
|
let data = {
|
|
|
pageNo: this.state.pageNo || 1,
|
|
|
pageSize: 9999,
|
|
@@ -350,64 +315,53 @@ class ProjecCount extends Component {
|
|
|
this.state.releaseDate.length > 0
|
|
|
? this.state.releaseDate[1]
|
|
|
: undefined, //结束时间
|
|
|
- projectType: this.state.projectType.toString(), //项目分类
|
|
|
+ projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类
|
|
|
// typeof this.state.projectType === "number"
|
|
|
// ? this.state.projectType
|
|
|
// : undefined,
|
|
|
- thchDepName: dep || undefined, //咨询师部门名称
|
|
|
+ thchDepName: undefined, //咨询师部门名称
|
|
|
projectTypeName:
|
|
|
- this.state.projectType === 0
|
|
|
+ this.state.projectType == "0"
|
|
|
? "通用"
|
|
|
- : this.state.projectType === 1
|
|
|
+ : this.state.projectType == "1"
|
|
|
? "专利"
|
|
|
- : this.state.projectType === 2
|
|
|
+ : this.state.projectType == "2"
|
|
|
? "软著"
|
|
|
- : this.state.projectType === 3
|
|
|
+ : this.state.projectType == "3"
|
|
|
? "审计"
|
|
|
- : this.state.projectType === 4
|
|
|
+ : this.state.projectType == "4"
|
|
|
? "双软"
|
|
|
- : this.state.projectType === 5
|
|
|
+ : this.state.projectType == "5"
|
|
|
? "高新"
|
|
|
- : this.state.projectType === 6
|
|
|
+ : this.state.projectType == "6"
|
|
|
? "商标"
|
|
|
- : "", //项目分类(中文)
|
|
|
+ : this.state.projectType == "7"
|
|
|
+ ? "会员" : "", //项目分类(中文)
|
|
|
projectStatusName: option || undefined, //项目品类(中文)
|
|
|
provinceName: getNewDiccityArr(this.state.taberProvince) || undefined, //省份(中文)
|
|
|
projectId: this.state.kid || undefined,
|
|
|
province: this.state.taberProvince || undefined,
|
|
|
projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
|
thchDepId: this.state.taberdepId || undefined,
|
|
|
-
|
|
|
status:
|
|
|
- this.state.projectType === 4
|
|
|
+ this.state.projectType == "4"
|
|
|
? 2
|
|
|
- : this.state.projectType === 2
|
|
|
+ : this.state.projectType == "2"
|
|
|
? 3
|
|
|
- : this.state.projectType === 1
|
|
|
+ : this.state.projectType == "1"
|
|
|
? 4
|
|
|
- : this.state.projectType === 5
|
|
|
+ : this.state.projectType == "5"
|
|
|
? 1
|
|
|
: this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
).length > 0
|
|
|
? this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
- )[0].cname === "高新"
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
+ )[0].label === "高新"
|
|
|
? 1
|
|
|
: 0
|
|
|
: 0,
|
|
|
screen: this.state.screen.toString(), //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
};
|
|
|
|
|
|
for (let key in data) {
|
|
@@ -426,7 +380,6 @@ class ProjecCount extends Component {
|
|
|
window.location.href =
|
|
|
globalConfig.context + "/open/download?fileName=" + fileName;
|
|
|
}
|
|
|
-
|
|
|
//项目类别
|
|
|
selectSuperId() {
|
|
|
$.ajax({
|
|
@@ -439,6 +392,7 @@ class ProjecCount extends Component {
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = [];
|
|
|
+ let newTheArr = []
|
|
|
let thedata = data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
@@ -452,14 +406,43 @@ class ProjecCount extends Component {
|
|
|
{theData.cname}
|
|
|
</Select.Option>
|
|
|
);
|
|
|
+ let newChildren = []
|
|
|
+ for (let j = 0; j < theData.typeList.length; j++) {
|
|
|
+ newChildren.push({
|
|
|
+ label: theData.typeList[j].name,
|
|
|
+ value: theData.typeList[j].id,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ newTheArr.push({
|
|
|
+ label: theData.cname,
|
|
|
+ value: theData.id,
|
|
|
+ children: newChildren
|
|
|
+ })
|
|
|
}
|
|
|
this.setState({
|
|
|
contactsOption: theArr,
|
|
|
- contactsOptionData: data.data,
|
|
|
+ contactsOptionData: newTheArr,
|
|
|
+ // contactsOptionData: data.data,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always();
|
|
|
}
|
|
|
+ // 设置默认table(用来默认不显示某列数据 isNoD:true)
|
|
|
+ defaultcolumns() {
|
|
|
+ const newArr = [];
|
|
|
+ this.state.columns.forEach((item) => {
|
|
|
+ if (item.isNoD) {
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ newArr.push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.setState({
|
|
|
+ changeList: newArr,
|
|
|
+ }, () => {
|
|
|
+ this.loadData();
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
supervisorCui(e) {
|
|
|
//客户名称与服务名称自动补全
|
|
@@ -518,8 +501,9 @@ class ProjecCount extends Component {
|
|
|
}
|
|
|
|
|
|
componentWillMount() {
|
|
|
- this.loadData();
|
|
|
- this.departmentList();
|
|
|
+ this.defaultcolumns();
|
|
|
+ // this.loadData();
|
|
|
+ // this.departmentList();
|
|
|
this.selectSuperId();
|
|
|
}
|
|
|
|
|
@@ -529,6 +513,7 @@ class ProjecCount extends Component {
|
|
|
taberProvince: record.province,
|
|
|
taberProjectStatus: record.bpId, //项目类别
|
|
|
taberdepId: record.thchDepId,
|
|
|
+ thchDepName: record.thchDepName,
|
|
|
screen: screen,
|
|
|
});
|
|
|
}
|
|
@@ -574,7 +559,7 @@ class ProjecCount extends Component {
|
|
|
marginBottom: "10px",
|
|
|
}}
|
|
|
>
|
|
|
- <span>项目名称:</span>
|
|
|
+ <span>项目名称 :</span>
|
|
|
<AutoComplete
|
|
|
className="certain-category-search"
|
|
|
dropdownClassName="certain-category-search-dropdown"
|
|
@@ -592,143 +577,67 @@ class ProjecCount extends Component {
|
|
|
</AutoComplete>
|
|
|
</span>
|
|
|
<span style={{ display: "inline-block" }}>
|
|
|
- <span style={{ marginRight: "10px", marginBottom: "10px" }}>
|
|
|
- 项目类别 :
|
|
|
- </span>
|
|
|
- <Select
|
|
|
- value={this.state.projectStatus || undefined}
|
|
|
- placeholder="请选择项目类别"
|
|
|
- notFoundContent="未获取到上级品类列表"
|
|
|
- style={{
|
|
|
- width: 100,
|
|
|
- marginRight: "10px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- onChange={(e) => {
|
|
|
- let infor = this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === e
|
|
|
- );
|
|
|
- this.setState(
|
|
|
- {
|
|
|
- projectStatus: e,
|
|
|
- }
|
|
|
- // () => {
|
|
|
- // if (
|
|
|
- // infor.length &&
|
|
|
- // infor[0].cname === "高新" &&
|
|
|
- // typeof this.state.projectType !== "number"
|
|
|
- // ) {
|
|
|
- // this.setState(
|
|
|
- // {
|
|
|
- // columns: highTechColumns((v, screen) => {
|
|
|
- // this.openProjectSummary(v, screen);
|
|
|
- // }),
|
|
|
- // changeList: [],
|
|
|
- // status: 1,
|
|
|
- // },
|
|
|
- // () => {
|
|
|
- // this.loadData();
|
|
|
- // }
|
|
|
- // );
|
|
|
- // } else if (typeof this.state.projectType !== "number") {
|
|
|
- // this.setState(
|
|
|
- // {
|
|
|
- // columns: currency((v, screen) => {
|
|
|
- // this.openProjectSummary(v, screen);
|
|
|
- // }),
|
|
|
- // changeList: [],
|
|
|
- // status: 0,
|
|
|
- // },
|
|
|
- // () => {
|
|
|
- // this.loadData();
|
|
|
- // }
|
|
|
- // );
|
|
|
- // } else {
|
|
|
- // this.loadData();
|
|
|
- // }
|
|
|
- // }
|
|
|
- );
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.state.contactsOption}
|
|
|
- </Select>
|
|
|
- </span>
|
|
|
- <span style={{ display: "inline-block" }}>
|
|
|
- <span style={{ marginRight: "10px", marginBottom: "10px" }}>
|
|
|
- 项目分类 :
|
|
|
- </span>
|
|
|
- <Select
|
|
|
- value={
|
|
|
- typeof this.state.projectType === "number"
|
|
|
- ? this.state.projectType
|
|
|
- : undefined
|
|
|
- }
|
|
|
- placeholder="请选择项目分类"
|
|
|
- style={{
|
|
|
- width: 100,
|
|
|
- marginRight: "10px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState(
|
|
|
- {
|
|
|
- projectType: e,
|
|
|
- columns:
|
|
|
- e === 0
|
|
|
- ? currency((v, screen) => {
|
|
|
+ <span style={{ marginRight: "10px" }}>项目分类 :</span>
|
|
|
+ <Cascader
|
|
|
+ options={this.state.contactsOptionData}
|
|
|
+ value={this.state.newArray}
|
|
|
+ placeholder="请选择"
|
|
|
+ style={{ width: 200, marginRight: 10 }}
|
|
|
+ onChange={(e, pre) => {
|
|
|
+ let first = e[0];
|
|
|
+ let two = e[1];
|
|
|
+ this.setState({
|
|
|
+ newArray: e,
|
|
|
+ projectStatus: first,
|
|
|
+ projectType: two,
|
|
|
+ changeList: undefined,
|
|
|
+ dataSource: [],
|
|
|
+ status:
|
|
|
+ two == "1"
|
|
|
+ ? 2 : two == "2"
|
|
|
+ ? 4 : two == "5"
|
|
|
+ ? 1 : two == "6"
|
|
|
+ ? 5 : 0,
|
|
|
+ columns:
|
|
|
+ two == "0"
|
|
|
+ ? currency((v, screen) => {
|
|
|
+ this.openProjectSummary(v, screen);
|
|
|
+ })
|
|
|
+ : two == "1"
|
|
|
+ ? invention((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 1
|
|
|
- ? invention((v, screen) => {
|
|
|
+ : two == "2"
|
|
|
+ ? softWriting((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 2
|
|
|
- ? softWriting((v, screen) => {
|
|
|
+ : two == "3"
|
|
|
+ ? currency((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 3
|
|
|
+ : two == "4"
|
|
|
? currency((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 4
|
|
|
- ? currency((v, screen) => {
|
|
|
+ : two == "5"
|
|
|
+ ? highTechColumns((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 5
|
|
|
- ? highTechColumns((v, screen) => {
|
|
|
+ : two == "6"
|
|
|
+ ? otherTrademarks((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
})
|
|
|
- : e === 6
|
|
|
- ? otherTrademarks((v, screen) => {
|
|
|
+ : two == "7"
|
|
|
+ ? currency((v, screen) => {
|
|
|
this.openProjectSummary(v, screen);
|
|
|
- })
|
|
|
- : [],
|
|
|
- changeList: [],
|
|
|
- status:
|
|
|
- e === 1
|
|
|
- ? 2
|
|
|
- : e === 2
|
|
|
- ? 4
|
|
|
- : e === 5
|
|
|
- ? 1
|
|
|
- : e === 6
|
|
|
- ? 5
|
|
|
- : 0, // 0通用 1高新 2发明专利 3实用新型 4软著 5商标
|
|
|
- }
|
|
|
- // () => {
|
|
|
- // this.loadData();
|
|
|
- // }
|
|
|
- );
|
|
|
+ }) : currency((v, screen) => {
|
|
|
+ this.openProjectSummary(v, screen);
|
|
|
+ }),
|
|
|
+ }, () => {
|
|
|
+ this.defaultcolumns()
|
|
|
+ })
|
|
|
}}
|
|
|
- >
|
|
|
- <Option value={0}>通用</Option>
|
|
|
- <Option value={1}>专利</Option>
|
|
|
- <Option value={2}>软著</Option>
|
|
|
- <Option value={3}>审计</Option>
|
|
|
- <Option value={4}>双软</Option>
|
|
|
- <Option value={5}>高新</Option>
|
|
|
- <Option value={6}>商标</Option>
|
|
|
- </Select>
|
|
|
+ />
|
|
|
</span>
|
|
|
<span
|
|
|
style={{
|
|
@@ -767,8 +676,18 @@ class ProjecCount extends Component {
|
|
|
marginBottom: "10px",
|
|
|
}}
|
|
|
>
|
|
|
- <span>负责部门:</span>
|
|
|
- <Select
|
|
|
+ <span style={{ marginRight: 10, }}>负责部门:</span>
|
|
|
+ <Cascaders
|
|
|
+ ref={node => this.Cascaders = node}
|
|
|
+ placeholder="选择负责部门"
|
|
|
+ height={28}
|
|
|
+ onSel={(e) => {
|
|
|
+ this.setState({
|
|
|
+ depId: JSON.stringify(e),
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ {/* <Select
|
|
|
placeholder="请选择部门"
|
|
|
style={{
|
|
|
width: 200,
|
|
@@ -788,7 +707,7 @@ class ProjecCount extends Component {
|
|
|
</Select.Option>
|
|
|
);
|
|
|
})}
|
|
|
- </Select>
|
|
|
+ </Select> */}
|
|
|
</span>
|
|
|
<span style={{ display: "inline-block" }}>
|
|
|
<span style={{ marginRight: "10px", marginBottom: "10px" }}>
|
|
@@ -866,202 +785,207 @@ class ProjecCount extends Component {
|
|
|
size="middle"
|
|
|
scroll={{ x: 800, y: 0 }}
|
|
|
columns={
|
|
|
- this.state.changeList
|
|
|
- ? this.state.changeList
|
|
|
- : this.state.columns
|
|
|
+ this.state.changeList == undefined
|
|
|
+ ? this.state.columns
|
|
|
+ : this.state.changeList
|
|
|
}
|
|
|
dataSource={this.state.dataSource}
|
|
|
pagination={this.state.pagination}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- {this.state.projectSummary ? (
|
|
|
- <Modal
|
|
|
- maskClosable={false}
|
|
|
- className="customeDetails"
|
|
|
- footer=""
|
|
|
- title=""
|
|
|
- width="1800px"
|
|
|
- visible={this.state.projectSummary}
|
|
|
- onOk={() => {
|
|
|
- this.setState({
|
|
|
- projectSummary: false,
|
|
|
- });
|
|
|
- }}
|
|
|
- onCancel={() => {
|
|
|
- this.setState({
|
|
|
- projectSummary: false,
|
|
|
- });
|
|
|
- }}
|
|
|
- >
|
|
|
- <HighTech
|
|
|
- searchData={{
|
|
|
- startDate:
|
|
|
- this.state.releaseDate.length > 0
|
|
|
- ? this.state.releaseDate[0]
|
|
|
- : undefined, //开始时间
|
|
|
- endDate:
|
|
|
- this.state.releaseDate.length > 0
|
|
|
- ? this.state.releaseDate[1]
|
|
|
- : undefined, //结束时间
|
|
|
- projectType:
|
|
|
- typeof this.state.projectType === "number"
|
|
|
- ? this.state.projectType
|
|
|
- : undefined, //项目分类
|
|
|
- projectId: this.state.kid || undefined,
|
|
|
-
|
|
|
- province: this.state.taberProvince || undefined,
|
|
|
- projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
|
- thchDepId: this.state.taberdepId || undefined,
|
|
|
-
|
|
|
- status:
|
|
|
- this.state.projectType === 4
|
|
|
- ? 2
|
|
|
- : this.state.projectType === 2
|
|
|
- ? 3
|
|
|
- : this.state.projectType === 1
|
|
|
- ? 4
|
|
|
- : this.state.projectType === 5
|
|
|
- ? 1
|
|
|
- : this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
- ).length > 0
|
|
|
- ? this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
- )[0].cname === "高新"
|
|
|
- ? 1
|
|
|
- : 0
|
|
|
- : 0,
|
|
|
- screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
|
+ {
|
|
|
+ this.state.projectSummary ? (
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
+ className="customeDetails"
|
|
|
+ footer=""
|
|
|
+ title=""
|
|
|
+ width="1800px"
|
|
|
+ visible={this.state.projectSummary}
|
|
|
+ onOk={() => {
|
|
|
+ this.setState({
|
|
|
+ projectSummary: false,
|
|
|
+ });
|
|
|
}}
|
|
|
- introduce={() => (
|
|
|
- <div
|
|
|
- className="user-search"
|
|
|
- style={{
|
|
|
- marginTop: "10px",
|
|
|
- marginLeft: "10px",
|
|
|
- marginRight: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.state.taberProvince ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>派单省份:</span>
|
|
|
- <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
- {getNewDiccityArr(this.state.taberProvince)}
|
|
|
+ onCancel={() => {
|
|
|
+ this.setState({
|
|
|
+ projectSummary: false,
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <HighTech
|
|
|
+ searchData={{
|
|
|
+ startDate:
|
|
|
+ this.state.releaseDate.length > 0
|
|
|
+ ? this.state.releaseDate[0]
|
|
|
+ : undefined, //开始时间
|
|
|
+ endDate:
|
|
|
+ this.state.releaseDate.length > 0
|
|
|
+ ? this.state.releaseDate[1]
|
|
|
+ : undefined, //结束时间
|
|
|
+ projectType:
|
|
|
+ !this.state.projectType
|
|
|
+ ? undefined
|
|
|
+ : this.state.projectType, //项目分类
|
|
|
+ projectId: this.state.kid || undefined,
|
|
|
+
|
|
|
+ province: this.state.taberProvince || undefined,
|
|
|
+ projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
|
+ thchDepId: this.state.taberdepId || undefined,
|
|
|
+
|
|
|
+ status:
|
|
|
+ this.state.projectType == "4"
|
|
|
+ ? 2
|
|
|
+ : this.state.projectType == "2"
|
|
|
+ ? 3
|
|
|
+ : this.state.projectType == "1"
|
|
|
+ ? 4
|
|
|
+ : this.state.projectType == "5"
|
|
|
+ ? 1
|
|
|
+ : this.state.contactsOptionData.filter(
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
+ ).length > 0
|
|
|
+ ? this.state.contactsOptionData.filter(
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
+ )[0].label === "高新"
|
|
|
+ ? 1
|
|
|
+ : 0
|
|
|
+ : 0,
|
|
|
+ screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
|
+ }}
|
|
|
+ introduce={() => (
|
|
|
+ <div
|
|
|
+ className="user-search"
|
|
|
+ style={{
|
|
|
+ marginTop: "10px",
|
|
|
+ marginLeft: "10px",
|
|
|
+ marginRight: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.state.taberProvince ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>派单省份:</span>
|
|
|
+ <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
+ {getNewDiccityArr(this.state.taberProvince)}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
- {this.state.taberProjectStatus ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>项目类别 :</span>
|
|
|
- <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
- {
|
|
|
- this.state.contactsOptionData.filter(
|
|
|
- (v) => v.id === this.state.taberProjectStatus
|
|
|
- )[0].cname
|
|
|
- }
|
|
|
+ ) : null}
|
|
|
+ {this.state.taberProjectStatus ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>项目类别 :</span>
|
|
|
+ <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
+ {
|
|
|
+ this.state.contactsOptionData.filter(
|
|
|
+ (v) => v.value === this.state.taberProjectStatus
|
|
|
+ )[0].label
|
|
|
+ }
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
- {this.state.taberdepId ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>负责部门:</span>
|
|
|
- <span style={{ width: 200, marginLeft: "10px" }}>
|
|
|
- {
|
|
|
- this.state.departmentArr.filter(
|
|
|
- (v) => v.id === this.state.taberdepId
|
|
|
- )[0].name
|
|
|
- }
|
|
|
+ ) : null}
|
|
|
+ {this.state.taberProjectType !== "" ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>项目分类 :</span>
|
|
|
+ <span style={{ width: 100, marginRight: "10px" }}>
|
|
|
+ {this.state.taberProjectType == "0"
|
|
|
+ ? "通用"
|
|
|
+ : this.state.taberProjectType == "1"
|
|
|
+ ? "专利"
|
|
|
+ : this.state.taberProjectType == "2"
|
|
|
+ ? "软著"
|
|
|
+ : this.state.taberProjectType == "3"
|
|
|
+ ? "审计"
|
|
|
+ : this.state.taberProjectType == "4"
|
|
|
+ ? "双软"
|
|
|
+ : this.state.taberProjectType == "5"
|
|
|
+ ? "高新"
|
|
|
+ : this.state.taberProjectType == "6"
|
|
|
+ ? "商标"
|
|
|
+ : this.state.taberProjectType == "7"
|
|
|
+ ? "会员"
|
|
|
+ : ""}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
-
|
|
|
- {this.state.taberCommodityName ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>项目名称:</span>
|
|
|
- <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
- {this.state.taberCommodityName}
|
|
|
+ ) : null}
|
|
|
+ {this.state.taberdepId ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>负责部门:</span>
|
|
|
+ <span style={{ width: 200, marginLeft: "10px" }}>
|
|
|
+ {this.state.thchDepName}
|
|
|
+ {/* {
|
|
|
+ this.state.departmentArr.filter(
|
|
|
+ (v) => v.id === this.state.taberdepId
|
|
|
+ )[0].name
|
|
|
+ } */}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
- {typeof this.state.taberProjectType === "number" ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>项目分类 :</span>
|
|
|
- <span style={{ width: 100, marginRight: "10px" }}>
|
|
|
- {this.state.taberProjectType === 0
|
|
|
- ? "通用"
|
|
|
- : this.state.taberProjectType === 1
|
|
|
- ? "专利"
|
|
|
- : this.state.taberProjectType === 2
|
|
|
- ? "软著"
|
|
|
- : this.state.taberProjectType === 3
|
|
|
- ? "审计"
|
|
|
- : this.state.taberProjectType === 4
|
|
|
- ? "双软"
|
|
|
- : this.state.taberProjectType === 5
|
|
|
- ? "高新"
|
|
|
- : this.state.taberProjectType === 6
|
|
|
- ? "商标"
|
|
|
- : ""}
|
|
|
+ ) : null}
|
|
|
+
|
|
|
+ {this.state.taberCommodityName ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>项目名称:</span>
|
|
|
+ <span style={{ width: 100, marginLeft: "10px" }}>
|
|
|
+ {this.state.taberCommodityName}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
- {this.state.taberReleaseDate.length > 0 ? (
|
|
|
- <span
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- marginRight: "20px",
|
|
|
- marginBottom: "10px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span>派单时间 :</span>
|
|
|
- <span style={{ width: 100, marginRight: "10px" }}>
|
|
|
- {this.state.taberReleaseDate[0] +
|
|
|
- "~" +
|
|
|
- this.state.taberReleaseDate[1]}
|
|
|
+ ) : null}
|
|
|
+ {this.state.taberReleaseDate.length > 0 ? (
|
|
|
+ <span
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ marginRight: "20px",
|
|
|
+ marginBottom: "10px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span>派单时间 :</span>
|
|
|
+ <span style={{ width: 100, marginRight: "10px" }}>
|
|
|
+ {this.state.taberReleaseDate[0] +
|
|
|
+ "~" +
|
|
|
+ this.state.taberReleaseDate[1]}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- ) : null}
|
|
|
+ ) : null}
|
|
|
|
|
|
- <Button type="primary" onClick={this.exportExcel}>
|
|
|
- 导出EXCEL
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
- )}
|
|
|
- />
|
|
|
- </Modal>
|
|
|
- ) : null}
|
|
|
- </div>
|
|
|
+ <Button type="primary" onClick={this.exportExcel}>
|
|
|
+ 导出EXCEL
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+ />
|
|
|
+ </Modal>
|
|
|
+ ) : null
|
|
|
+ }
|
|
|
+ </div >
|
|
|
);
|
|
|
}
|
|
|
}
|