|
@@ -174,9 +174,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
|
|
<div class="layui-form-item">
|
|
<div class="layui-form-item">
|
|
- <label class="layui-form-label required label-longers">投资类型</label>
|
|
|
|
|
|
+ <label class="layui-form-label required label-longers">四库</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <div id="kindNature"></div>
|
|
|
|
|
|
+ <div id="subInfoStatus"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -420,6 +420,12 @@
|
|
<span title="编辑" lay-event="toEditSubInfo" class="no-wrap"> 编辑</span>
|
|
<span title="编辑" lay-event="toEditSubInfo" class="no-wrap"> 编辑</span>
|
|
{{#} }}
|
|
{{#} }}
|
|
<span title="转库" lay-event="move" class="no-wrap">转库</span>
|
|
<span title="转库" lay-event="move" class="no-wrap">转库</span>
|
|
|
|
+ {{# if(d.status != '5') { }}
|
|
|
|
+ <span title="移出4库" lay-event="removeFour" class="no-wrap">移出4库</span>
|
|
|
|
+ {{#} }}
|
|
|
|
+ {{# if(d.status == '5') { }}
|
|
|
|
+ <span title="取消移除" lay-event="cancelRemove" class="no-wrap">取消移除</span>
|
|
|
|
+ {{#} }}
|
|
</div>
|
|
</div>
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -520,6 +526,7 @@
|
|
el: "#app",
|
|
el: "#app",
|
|
template: "#template",
|
|
template: "#template",
|
|
data: {
|
|
data: {
|
|
|
|
+ subInfoStatusData: [],
|
|
JSDD: [],
|
|
JSDD: [],
|
|
winH: 0,
|
|
winH: 0,
|
|
dataList: [],
|
|
dataList: [],
|
|
@@ -554,13 +561,8 @@
|
|
App.msg.error("请选择转库状态");
|
|
App.msg.error("请选择转库状态");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- const statusMap = {
|
|
|
|
- 1: "储备",
|
|
|
|
- 2: "新建",
|
|
|
|
- 3: "在建",
|
|
|
|
- 9: "投产"
|
|
|
|
- };
|
|
|
|
- param.statusName = statusMap[param.status] || "未知状态";
|
|
|
|
|
|
+ // param.statusName = this.getStatusName(param.status)
|
|
|
|
+ param.statusName = this.subInfoStatusData.find(item => item.value === param.status).name
|
|
let self = this;
|
|
let self = this;
|
|
self.closeAllLayers();
|
|
self.closeAllLayers();
|
|
App.msg.confirm(`是否转入` + param.statusName + `库?`, () => {
|
|
App.msg.confirm(`是否转入` + param.statusName + `库?`, () => {
|
|
@@ -574,6 +576,32 @@
|
|
})
|
|
})
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ removeFour(obj){
|
|
|
|
+ let self = this;
|
|
|
|
+ App.msg.confirm(`是否移除`, () => {
|
|
|
|
+ App.postJson("/api/subject/subInfo/removeFour", {id: obj.data.id}, (res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ App.msg.success("移除成功");
|
|
|
|
+ self.getData()
|
|
|
|
+ } else {
|
|
|
|
+ App.msg.error(res.message || "移除失败,请重试");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ cancelRemove(obj){
|
|
|
|
+ let self = this;
|
|
|
|
+ App.msg.confirm(`是否取消`, () => {
|
|
|
|
+ App.postJson("/api/subject/subInfo/cancelRemove", {id: obj.data.id}, (res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ App.msg.success("取消成功");
|
|
|
|
+ self.getData()
|
|
|
|
+ } else {
|
|
|
|
+ App.msg.error(res.message || "取消失败,请重试");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
move(obj) {
|
|
move(obj) {
|
|
this.moveDbParam.id = obj.data.id
|
|
this.moveDbParam.id = obj.data.id
|
|
const formTemplate = document.getElementById('moveForm').innerHTML;
|
|
const formTemplate = document.getElementById('moveForm').innerHTML;
|
|
@@ -664,14 +692,14 @@
|
|
<%--});--%>
|
|
<%--});--%>
|
|
|
|
|
|
|
|
|
|
- var kindNatureData = [];
|
|
|
|
- <c:forEach items="${TZXZ}" var="xm">
|
|
|
|
- kindNatureData.push({value: "${xm.code}", name: "${xm.title}"});
|
|
|
|
|
|
+ // var subInfoStatusData = [];
|
|
|
|
+ <c:forEach items="${subInfoStatus}" var="xm">
|
|
|
|
+ self.subInfoStatusData.push({value: "${xm.code}", name: "${xm.desc}"});
|
|
</c:forEach>
|
|
</c:forEach>
|
|
- this.kindNature = layui.xmSelect.render({
|
|
|
|
- el: "#kindNature",
|
|
|
|
|
|
+ this.subInfoStatus = layui.xmSelect.render({
|
|
|
|
+ el: "#subInfoStatus",
|
|
language: 'zn',
|
|
language: 'zn',
|
|
- data: kindNatureData
|
|
|
|
|
|
+ data: self.subInfoStatusData
|
|
});
|
|
});
|
|
layui.laydate.render({
|
|
layui.laydate.render({
|
|
elem: '#year',
|
|
elem: '#year',
|
|
@@ -838,8 +866,8 @@
|
|
if (this.indusKind) {
|
|
if (this.indusKind) {
|
|
param.indusKind = this.indusKind.getValue("valueStr");
|
|
param.indusKind = this.indusKind.getValue("valueStr");
|
|
}
|
|
}
|
|
- if (this.kindNature) {
|
|
|
|
- param.kindNature = this.kindNature.getValue("valueStr");
|
|
|
|
|
|
+ if (this.subInfoStatus) {
|
|
|
|
+ param.statusList = this.subInfoStatus.getValue("valueList").map(item => item.value);
|
|
}
|
|
}
|
|
delete (param.select);
|
|
delete (param.select);
|
|
/* param.kind = this.kind.getValue("value").sort().join(",");*/
|
|
/* param.kind = this.kind.getValue("value").sort().join(",");*/
|
|
@@ -867,13 +895,13 @@
|
|
});
|
|
});
|
|
|
|
|
|
// 统计数据
|
|
// 统计数据
|
|
- App.postJson("/api/subInfo/query/statistics", param, function (res) {
|
|
|
|
- if (res.success) {
|
|
|
|
- self.beginRate = res.data;
|
|
|
|
- self.beginRate.hyflList = self.beginRate.hyflData;
|
|
|
|
- self.beginRate.jsddList = self.beginRate.jsddData;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ // App.postJson("/api/subInfo/query/statistics", param, function (res) {
|
|
|
|
+ // if (res.success) {
|
|
|
|
+ // self.beginRate = res.data;
|
|
|
|
+ // self.beginRate.hyflList = self.beginRate.hyflData;
|
|
|
|
+ // self.beginRate.jsddList = self.beginRate.jsddData;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
|
|
/*App.postJson("/api/subInfo/query/beginRate", param, function (res) {
|
|
/*App.postJson("/api/subInfo/query/beginRate", param, function (res) {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
@@ -921,6 +949,7 @@
|
|
'1': '储备',
|
|
'1': '储备',
|
|
'2': '新建',
|
|
'2': '新建',
|
|
'3': '在建',
|
|
'3': '在建',
|
|
|
|
+ '5': '移除项目',
|
|
'9': '投产'
|
|
'9': '投产'
|
|
};
|
|
};
|
|
return statusMap[status] || '未知状态';
|
|
return statusMap[status] || '未知状态';
|