|
@@ -295,6 +295,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
}
|
|
|
|
|
|
self.readonly = {
|
|
|
+ CPSX:false,
|
|
|
BH: false,
|
|
|
LX: false,
|
|
|
BT: false,
|
|
@@ -306,6 +307,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
BZ: false
|
|
|
}
|
|
|
self.show = {
|
|
|
+ CPSX:false,
|
|
|
BH: false,
|
|
|
LX: false,
|
|
|
BT: false,
|
|
@@ -328,8 +330,10 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
routeid: self.routeid,
|
|
|
formeditid: ""
|
|
|
}
|
|
|
+
|
|
|
$http.post(apiurljs.login + "g2app/abase/queryDataLink", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
|
|
|
.success(function (obj) {
|
|
|
+
|
|
|
var res = strToJson(s4.decryptData_CBC(obj.data));
|
|
|
if (self.copyrightid == "") {
|
|
|
self.copyrightid = res.data.LINKS[0].COPYRIGHTID
|
|
@@ -360,7 +364,6 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
})
|
|
|
}
|
|
|
self.getSwenList(0)
|
|
|
-
|
|
|
self.getFLOW = function () {
|
|
|
var data = {
|
|
|
copyrightid: self.copyrightid
|
|
@@ -386,6 +389,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
})
|
|
|
}
|
|
|
self.getGWZL = function () {
|
|
|
+
|
|
|
var data = {
|
|
|
tablename: "CODE_GWTYPE",
|
|
|
colums: "ID,CODE,CNAME,FLOWID,DOCFILE,REDFILE",
|
|
@@ -405,6 +409,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
})
|
|
|
}
|
|
|
self.getDpList = function () {
|
|
|
+
|
|
|
var data = {
|
|
|
unitid: "AA"
|
|
|
}
|
|
@@ -451,6 +456,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
var res = strToJson(s4.decryptData_CBC(obj.data));
|
|
|
self.userDpName = res.data.length == 0 ? "" : res.data[0].SECTION;
|
|
|
self.userDpCode = res.data.length == 0 ? "" : res.data[0].CODE;
|
|
|
+
|
|
|
self.getData();
|
|
|
})
|
|
|
}
|
|
@@ -464,10 +470,13 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
routeid: self.routeid,
|
|
|
routeinfoid: self.routeinfoid
|
|
|
}
|
|
|
+
|
|
|
$http.post(apiurljs.login + "g2app/abase/queryData", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
|
|
|
.success(function (obj) {
|
|
|
var res = strToJson(s4.decryptData_CBC(obj.data));
|
|
|
self.data = {
|
|
|
+
|
|
|
+ CPSX: res.data.DCDB_SMDBD.CPSX,
|
|
|
ID: res.data.DCDB_SMDBD.ID,
|
|
|
APPCODE: res.data.DCDB_SMDBD.APPCODE,
|
|
|
BH: res.data.DCDB_SMDBD.BH,
|
|
@@ -482,6 +491,8 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
GWZL: res.data.DCDB_SMDBD.GWZL == "" ? self.GWZL[0].CODE : res.data.DCDB_SMDBD.GWZL,
|
|
|
}
|
|
|
self.readonly = {
|
|
|
+
|
|
|
+ CPSX: res.data.DCDB_SMDBD["CPSX.EREADONLY"] == "true",
|
|
|
BH: res.data.DCDB_SMDBD["BH.EREADONLY"] == "true",
|
|
|
LX: res.data.DCDB_SMDBD["LX.EREADONLY"] == "true",
|
|
|
BT: res.data.DCDB_SMDBD["BT.EREADONLY"] == "true",
|
|
@@ -493,6 +504,7 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
BZ: res.data.DCDB_SMDBD["BZ.EREADONLY"] == "true"
|
|
|
}
|
|
|
self.show = {
|
|
|
+ CPSX: res.data.DCDB_SMDBD["CPSX.ESHOW"] == "true",
|
|
|
BH: res.data.DCDB_SMDBD["BH.ESHOW"] == "true",
|
|
|
LX: res.data.DCDB_SMDBD["LX.ESHOW"] == "true",
|
|
|
BT: res.data.DCDB_SMDBD["BT.ESHOW"] == "true",
|
|
@@ -1659,6 +1671,18 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
|
|
|
if (str == "LX") {
|
|
|
self.data.BH = self.data.LX;
|
|
|
}
|
|
|
+ if(str == "DBSX"){
|
|
|
+ let objDate = new Date()
|
|
|
+ let DBSXDate = new Date(self.data.DBSX)
|
|
|
+ let dif_t = DBSXDate.getTime() - objDate.getTime();
|
|
|
+ let Day_dif_t = dif_t/(1000*60*60*24)
|
|
|
+ if(Day_dif_t>10){
|
|
|
+ self.data.CPSX = sp.getNextDate(self.data.DBSX, -2);
|
|
|
+ }else{
|
|
|
+ self.data.CPSX = sp.getNextDate(self.data.DBSX, -1);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//转发
|