Procházet zdrojové kódy

根据补贴类型显示不同附件

sugangqiang před 1 rokem
rodič
revize
fc3e1cc628

+ 3 - 0
app/common/controller/Api.php

@@ -391,6 +391,9 @@ class Api extends BaseController {
         $where[] = ["delete", "=", 0];
         $where[] = ["type", "=", $type];
         switch ($project) {
+            case 2:
+                $where[] = ["isConditionFile", "in", [0, $param["allowanceType"]]];
+                break;
             case 1:
             case 8:
                 //if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, 0, TalentState::FST_SAVE, TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS]) && $isMix != 1) {

+ 1 - 0
app/enterprise/controller/TalentAllowance.php

@@ -629,6 +629,7 @@ class TalentAllowance extends EnterpriseController {
         $where = [];
         $where[] = ["type", "=", $old["type"]];
         $where[] = ["project", "=", ProjectState::JBT];
+        $where[] = ["isConditionFile", "in", [0, $old["allowanceType"]]];
         $where[] = ["active", "=", 1];
         $where[] = ["delete", "=", 0];
         $filetypes = Db::table("new_common_filetype")->where($where)->order("sn asc")->select()->toArray();

+ 1 - 0
public/static/modular/gate/talentAllowance/common/talentAllowanceInfo_select.js

@@ -14,6 +14,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
     var queryData = {};
     queryData['project'] = CONFIG.project_jbt;
     queryData['type'] = $("#type").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
     $("#fileTable").bootstrapTable({
         url: Feng.ctxPath + "/common/api/findCommonFileType",
         method: 'POST',

+ 1 - 0
public/static/modular/gate/talentAllowance/common/talentAllowance_info.js

@@ -554,6 +554,7 @@ TalentAllowanceInfoDlg.initFileTable = function () {
     var queryData = {};
     queryData['project'] = CONFIG.project_jbt;
     queryData['type'] = $("#type").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
     $("#fileTable").bootstrapTable({
         url: Feng.ctxPath + "/common/api/findCommonFileType",
         method: 'POST',

+ 1 - 0
public/static/modular/talentAllowance/talentAllowanceInfo_info_supple.js

@@ -311,6 +311,7 @@ TalentAllowanceInfoDlg.initFileTable = function () {
     var queryData = {};
     queryData['project'] = CONFIG.project_jbt;
     queryData['type'] = $("#type").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
     $("#fileTable").bootstrapTable({
         url: Feng.ctxPath + "/common/api/findCommonFileType",
         method: 'POST',

+ 1 - 0
public/static/modular/talentAllowance/talentAllowanceInfo_public_check.js

@@ -915,6 +915,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
     var queryData = {};
     queryData['project'] = CONFIG.project_jbt;
     queryData['type'] = $("#type").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
     $("#fileTable").bootstrapTable({
         url: Feng.ctxPath + "/common/api/findCommonFileType",
         method: 'POST',

+ 1 - 0
public/static/modular/talentAllowance/talentAllowanceInfo_select.js

@@ -264,6 +264,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
     var queryData = {};
     queryData['project'] = CONFIG.project_jbt;
     queryData['type'] = $("#type").val();
+    queryData['allowanceType'] = $("#allowanceType").val();
     $("#fileTable").bootstrapTable({
         url: Feng.ctxPath + "/common/api/findCommonFileType",
         method: 'POST',