(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0df300"],{"899b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100vh"}},[t("basic-container",[t("avue-crud",{ref:"crud",attrs:{option:e.option,"table-loading":e.loading,data:e.data,permission:e.permissionList,page:e.page,"before-open":e.beforeOpen},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"search-reset":e.searchReset,"current-change":e.currentChange,"size-change":e.sizeChange,"refresh-change":e.refreshChange},scopedSlots:e._u([{key:"menu",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-check"},on:{click:function(t){return e.handleAuditing(a)}}},[e._v("审 核")])]}},{key:"status",fn:function({row:t}){return[e._v(" "+e._s(1==t.status?"待提交":2==t.status?"待审核":"已通过")+" ")]}}]),model:{value:e.form,callback:function(t){e.form=t},expression:"form"}}),t("cus-drawe",{attrs:{size:"35%",title:e.title,visible:e.visible,buttons:e.buttonsList},on:{handleBeforeClose:e.handleBeforeClose,buttonClick:e.buttonsClick}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[t("el-row",[t("el-form-item",{attrs:{label:"项目名称:",prop:"name"}},[t("el-select",{attrs:{disabled:e.view,placeholder:"请选择"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"期望资金:",prop:"expectedFunding"}},[t("el-input",{attrs:{type:"number",clearable:"",disabled:e.view},model:{value:e.ruleForm.expectedFunding,callback:function(t){e.$set(e.ruleForm,"expectedFunding",t)},expression:"ruleForm.expectedFunding"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"用途说明:",prop:"usageDescription"}},[t("el-input",{attrs:{type:"textarea",rows:3,clearable:"",maxlength:"500","show-word-limit":"",disabled:e.view},model:{value:e.ruleForm.usageDescription,callback:function(t){e.$set(e.ruleForm,"usageDescription",t)},expression:"ruleForm.usageDescription"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"项目说明:",prop:"projectDescription"}},[t("el-input",{attrs:{type:"textarea",rows:3,clearable:"",maxlength:"500","show-word-limit":"",disabled:e.view},model:{value:e.ruleForm.projectDescription,callback:function(t){e.$set(e.ruleForm,"projectDescription",t)},expression:"ruleForm.projectDescription"}})],1)],1)],1),t("div",{staticClass:"check"},[t("el-card",{staticStyle:{"margin-top":"15px"}},[t("span",[e._v("审核:")]),t("el-divider"),t("basic-container",[t("div",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"审核:",prop:"tradeStatus"}},[t("el-radio",{attrs:{label:"YTG"},model:{value:e.tradeStatus,callback:function(t){e.tradeStatus=t},expression:"tradeStatus"}},[e._v("通 过")]),t("el-radio",{attrs:{label:"YBH"},model:{value:e.tradeStatus,callback:function(t){e.tradeStatus=t},expression:"tradeStatus"}},[e._v("拒 绝")])],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",rows:2,maxlength:"255",placeholder:"请输入备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1)],1)])],1)],1)],1)],1)],1)],1)},i=[],r=(a("fcd3"),a("2457")),l=(a("2f3b"),a("0e0b")),n=(a("a982"),a("f0a4")),o=a("af95"),c={data(){return{ruleForm:{name:"",expectedFunding:"",usageDescription:"",projectDescription:""},ruleFormTwo:{name:"",expectedFunding:"",usageDescription:"",projectDescription:""},tradeStatus:"YTG",options:[{value:"技术改造",label:"技术改造"},{value:"设备升级",label:"设备升级"},{value:"资产交易",label:"资产交易"},{value:"资产开发",label:"资产开发"},{value:"人员培训",label:"人员培训"}],pickerOptions:{disabledDate(e){const t=new Date;return e.getTime()>t.getTime()}},view:!1,title:"",query:{},buttonsList:[],loading:!0,visible:!1,isEdit:!1,filteredArray:[],page:{size:10,current:1,total:0},option:{height:"auto",calcHeight:30,searchShow:!0,searchMenuSpan:6,border:!1,index:!1,viewBtn:!1,editBtn:!1,addBtn:!1,delBtn:!1,menuWidth:260,align:"center",column:[{label:"项目名称",prop:"name",search:!0,searchLabelWidth:80,overHidden:!0,type:"select",dicData:[{value:"技术改造",label:"技术改造"},{value:"设备升级",label:"设备升级"},{value:"资产交易",label:"资产交易"},{value:"资产开发",label:"资产开发"},{value:"人员培训",label:"人员培训"}],cell:!0},{label:"期望资金",prop:"expectedFunding",overHidden:!0},{label:"用途说明",prop:"usageDescription",overHidden:!0},{label:"项目说明",prop:"projectDescription"},{label:"状态",prop:"status",slot:!0}]},data:[],rules:{},optionsType:[],visibleid:""}},components:{vzUpLoad:o["a"]},computed:{...Object(n["b"])(["permission"])},mounted(){this.onLoad()},methods:{searchReset(){this.query={},this.onLoad(this.page)},searchChange(e,t){this.query=e,this.page.current=1,this.onLoad(this.page,e),t()},handleBeforeClose(){this.$refs["ruleForm"].resetFields(),this.visible=!1,this.ruleForm={},this.ruleForm=this.ruleFormTwo,this.visibleid="",this.onLoad()},removeFile(e){this.filteredArray.push({id:e.id});let t=[];t=this.ruleForm.attachList.filter(t=>t.id!==e.id),this.ruleForm.attachList.splice(0,this.ruleForm.attachList.length,...t)},changeFile(e){this.$refs.ruleForm.validateField("attachList")},handleAdd(){this.buttonsList=Object(l["a"])("add"),this.title="新增帮扶项目",this.isEdit=!1,this.visible=!0,this.view=!1},handleAuditing(e){this.view=!0,this.ruleForm=Object(l["b"])(e),this.buttonsList=Object(l["a"])("add"),this.title="审核帮扶项目",this.visible=!0},handleView(e){this.isEdit=!1,this.view=!0,this.ruleForm=e,this.buttonsList=Object(l["a"])("view"),this.title="查看帮扶项目",this.visibleid=e.id,this.visible=!0},async handleDownload(e){e.status=2,await Object(r["updateAssistance"])(e).then(e=>{200===e.status&&(this.$message.success(e.data.msg),this.onLoad())})},handleDelete(e){this.$confirm("确定将选择数据删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{let t=e.id;Object(r["removeAssistance"])(t).then(()=>{this.onLoad(),this.$message({type:"success",message:"删除成功"})})})},buttonsClick(e){"save"===e?(console.log(),"YTG"==this.tradeStatus?this.ruleForm.status=3:this.ruleForm.status=1,Object(r["updateAssistance"])(this.ruleForm).then(e=>{200===e.status&&(this.$message.success(e.data.msg),this.handleBeforeClose())})):"cancel"==e&&this.$confirm("确认关闭?").then(e=>{this.handleBeforeClose(),done()}).catch(e=>{})},currentChange(e){this.page.current=e,this.onLoad(this.page)},sizeChange(e){this.page.size=e,this.onLoad(this.page)},refreshChange(){this.onLoad(this.page,this.query)},onLoad(e,t={}){this.loading=!0,this.page.size,this.page.current;const a=[{id:"1792801661270319105",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-05-21 14:16:39",updateUser:"1762882141362950145",updateTime:"2024-05-21 16:30:12",status:2,isDeleted:0,tenantId:"416380",name:"技术改造",expectedFunding:11,usageDescription:"11",projectDescription:"11",remarks:null},{id:"1792802382275371010",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-05-21 14:19:31",updateUser:"1762882141362950145",updateTime:"2024-05-21 16:30:13",status:2,isDeleted:0,tenantId:"416380",name:"资产交易",expectedFunding:11,usageDescription:"11",projectDescription:"11",remarks:null},{id:"1792802509517971457",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-05-21 14:20:02",updateUser:"1762882141362950145",updateTime:"2024-05-21 16:30:14",status:2,isDeleted:0,tenantId:"416380",name:"资产交易",expectedFunding:10,usageDescription:"10",projectDescription:"10",remarks:null}];a?this.data=a:(this.data=[],this.page.total=0),this.loading=!1}}},u=c,d=a("1805"),p=Object(d["a"])(u,s,i,!1,null,null,null);t["default"]=p.exports}}]);