(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1edef770"],{8094:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("el-card",{staticClass:"box-main"},[t("div",[t("avue-crud",{ref:"crud",attrs:{option:e.option,data:e.data,page:e.page},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"search-reset":e.searchReset,"selection-change":e.selectionChange,"current-change":e.currentChange,"size-change":e.sizeChange,"refresh-change":e.refreshChange},scopedSlots:e._u([{key:"tradeStatus",fn:function(a){return["DSH"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#ffd801",border:"1px solid rgba(255, 216, 1, 0.2)"},attrs:{color:"rgba(255, 216, 1, 0.2)"}},[e._v("待审核")]):e._e(),"YTG"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#19c297",border:"1px solid rgba(25, 194, 151, 0.2)"},attrs:{color:"rgba(25, 194, 151, 0.2)"}},[e._v("已通过")]):e._e(),"YWC"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#19c297",border:"1px solid rgba(25, 194, 151, 0.2)"},attrs:{color:"rgba(25, 194, 151, 0.2)"}},[e._v("已完成")]):e._e(),"JYZ"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#fc6b21",border:"1px solid rgba(252, 107, 33, 0.2)"},attrs:{color:"rgba(252, 107, 33, 0.2)"}},[e._v("交易中")]):e._e(),"GPZ"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#2474ff",border:"1px solid rgba(36, 116, 255, 0.2)"},attrs:{color:"rgba(36, 116, 255, 0.2)"}},[e._v("挂牌中")]):e._e(),"YXJ"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#c7c7c7",border:"1px solid rgba(199, 199, 199, 0.2)"},attrs:{color:"rgba(199, 199, 199, 0.2)"}},[e._v("已下架")]):e._e(),"YBH"==a.row.tradeStatus?t("el-tag",{staticStyle:{color:"#eb5454",border:"1px solid rgba(235, 84, 84, 0.2)"},attrs:{color:"rgba(235, 84, 84, 0.2)"}},[e._v("已驳回")]):e._e()]}},{key:"tradeDate",fn:function(a){return[t("div",[e._v(" "+e._s(e.$dayjs(a.tradeDate).format("YYYY-MM-DD"))+" ")])]}},{key:"menu",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(t){return e.handleView(a)}}},[e._v("查 看")]),t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-s-check",disabled:"DSH"!=a.tradeStatus},on:{click:function(t){return e.handleReview(a)}}},[e._v("审 核")]),t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-bottom",disabled:"YWC"==a.tradeStatus||"DSH"==a.tradeStatus||"YXJ"==a.tradeStatus||"YBH"==a.tradeStatus},on:{click:function(t){return e.handleRemove(a)}}},[e._v("下 架")])]}}])},[t("template",{slot:"menuLeft"},[t("div",{staticStyle:{width:"100%"}},[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-upload2"},on:{click:e.exportAll}},[e._v("导 出")])],1)])],2)],1)]),t("el-drawer",{staticClass:"el-dialog__wrapper avue-dialog avue-crud__dialog",attrs:{title:"审核交易",visible:e.dialogd,size:"30%","close-on-press-escape":!1,"destroy-on-close":"","append-to-body":"",wrapperClosable:!1,"before-close":e.hadleClose,disabled:e.isView},on:{"update:visible":function(t){e.dialogd=t}}},[t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"100px"}},[t("el-row",{staticStyle:{"margin-top":"10px","padding-right":"20px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"企业名称:"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入企业名称",disabled:""},model:{value:e.form.enterpriseName,callback:function(t){e.$set(e.form,"enterpriseName",t)},expression:"form.enterpriseName"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"交易方式:",prop:"tradeType"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择交易方式",disabled:""},model:{value:e.form.tradeType,callback:function(t){e.$set(e.form,"tradeType",t)},expression:"form.tradeType"}},e._l(e.options,(function(e){return t("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"交易数量:",prop:"tradeNum"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入交易数量",disabled:""},model:{value:e.form.tradeNum,callback:function(t){e.$set(e.form,"tradeNum",t)},expression:"form.tradeNum"}},[t("template",{slot:"append"},[e._v("吨")])],2)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"交易单价:",prop:"tradePrice"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入交易单价",disabled:""},model:{value:e.form.tradePrice,callback:function(t){e.$set(e.form,"tradePrice",t)},expression:"form.tradePrice"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"交易总价:",prop:"tradTotalAmount"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入交易总价",disabled:""},model:{value:e.form.tradTotalAmount,callback:function(t){e.$set(e.form,"tradTotalAmount",t)},expression:"form.tradTotalAmount"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"交易时间:",prop:"tradeDate"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请输入交易时间",disabled:""},model:{value:e.form.tradeDate,callback:function(t){e.$set(e.form,"tradeDate",t)},expression:"form.tradeDate"}})],1)],1),e.isremark?t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"备注:"}},[t("el-input",{attrs:{type:"textarea",rows:2,maxlength:"255",disabled:""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1):e._e()],1),e.isView?e._e():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:"GPZ"},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.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1)])],1)],1)],1),t("div",{staticClass:"avue-dialog__footer"},[0==e.isView?t("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:e.handleSubmit}},[e._v("保 存")]):e._e(),t("el-button",{attrs:{icon:"el-icon-circle-close"},on:{click:e.hadleClose}},[e._v("取 消")])],1)],1)],1)},s=[],l=(a("aada"),a("1287"),a("2fb4"),a("ad32")),i=a("2f3b"),d=a("0e0b"),n={components:{},data(){return{isremark:!1,form:{remark:""},tradeStatus:"GPZ",loading:!1,dialogd:!1,isView:!1,options:[{id:"1749318345179521026",parentId:"0",code:"business_state",dictKey:"-1",dictValue:"交易状态",sort:4,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,children:[{id:"1749318158598291457",parentId:"1749318345179521026",code:"business_state",dictKey:"YJJ",dictValue:"已拒绝",sort:1,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318172239761665",parentId:"1749318345179521026",code:"business_state",dictKey:"YFB",dictValue:"已发布",sort:2,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318272235761665",parentId:"1749318345179521026",code:"business_state",dictKey:"DJY",dictValue:"待交易",sort:3,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318414565892097",parentId:"1749318345179521026",code:"business_state",dictKey:"YWC",dictValue:"已完成",sort:5,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318558559829145",parentId:"1749318345179521026",code:"business_state",dictKey:"YBH",dictValue:"已驳回",sort:6,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318558598291457",parentId:"1749318345179521026",code:"business_state",dictKey:"DTJ",dictValue:"待提交",sort:7,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318633001050113",parentId:"1749318345179521026",code:"business_state",dictKey:"GPZ",dictValue:"挂牌中",sort:8,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318681604644866",parentId:"1749318345179521026",code:"business_state",dictKey:"JYZ",dictValue:"交易中",sort:9,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318681604744866",parentId:"1749318345179521026",code:"business_state",dictKey:"YXJ",dictValue:"已下架",sort:10,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318711019298817",parentId:"1749318345179521026",code:"business_state",dictKey:"DSH",dictValue:"待审核",sort:11,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318872215761665",parentId:"1749318345179521026",code:"business_state",dictKey:"YTG",dictValue:"已通过",sort:12,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749338872215761665",parentId:"1749318345179521026",code:"business_state",dictKey:"DTB",dictValue:"待填报",sort:12,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318872235761665",parentId:"1749318345179521026",code:"business_state",dictKey:"YCH",dictValue:"已撤回",sort:13,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318872239761665",parentId:"1749318345179521026",code:"business_state",dictKey:"DFB",dictValue:"待发布",sort:14,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318872231761665",parentId:"1749318345179521026",code:"business_state",dictKey:"YTJ",dictValue:"已提交",sort:15,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1749318872241761665",parentId:"1749318345179521026",code:"business_state",dictKey:"DTJ",dictValue:"待提交",sort:16,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1}]}],page:{size:10,current:1,total:0},option:{height:"auto",calcHeight:80,tip:!1,searchShow:!0,searchMenuSpan:6,align:"left",headerAlign:"left",viewBtn:!1,addBtn:!1,editBtn:!1,delBtn:!1,selection:!0,menuWidth:180,column:[{label:"年份",prop:"tradeYear",search:!0,type:"year",valueFormat:"yyyy",searchLabelWidth:50,fixed:"left"},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select"},{label:"交易类型",prop:"tradeType",dicData:[{id:"1635227274808594434",parentId:"1635206209801752578",code:"vztimes_business ",dictKey:"quota_buy",dictValue:"配额-购入",sort:1,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1635227704850583553",parentId:"1635206209801752578",code:"vztimes_business ",dictKey:"quota_sell",dictValue:"配额-售出",sort:2,remark:null,isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1635229358861783041",parentId:"1635206209801752578",code:"vztimes_business ",dictKey:"ccer_buy",dictValue:"CCER-购入",sort:3,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1635229440340332546",parentId:"1635206209801752578",code:"vztimes_business ",dictKey:"ccer_sell",dictValue:"CCER-售出",sort:4,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1}],props:{label:"dictValue",value:"dictKey"}},{label:"交易数量(吨)",prop:"tradeNum",minWidth:120},{label:"交易单价(元)",prop:"tradePrice",minWidth:120},{label:"交易总价(元)",prop:"tradTotalAmount",minWidth:120},{label:"交易状态",prop:"tradeStatus",slot:!0,minWidth:120},{label:"申请时间",prop:"tradeDate",type:"date",valueFormat:"yyyy-MM-dd",search:!0,minWidth:120}]},rules:{remark:[{required:!0,message:"请输入交易备注",trigger:"blur"}]},data:[{id:"1775490951439904769",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-03 19:50:04",updateUser:"1762881919673012226",updateTime:"2024-04-03 19:50:04",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:4,tradeNum:"4.00",tradTotalAmount:"16.00",tradeType:"quota_sell",tradeStatus:"DSH",tradePrice:"4",tradeDate:"2024-04-03 00:00:00",tradeWay:1,isFile:1,remark:null},{id:"1775490365277532161",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-03 19:47:44",updateUser:"1762881919673012226",updateTime:"2024-04-03 19:47:44",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:4,tradeNum:"3.00",tradTotalAmount:"9.00",tradeType:"quota_sell",tradeStatus:"DSH",tradePrice:"3",tradeDate:"2024-04-03 00:00:00",tradeWay:1,isFile:1,remark:null},{id:"1775490047974240257",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-03 19:46:29",updateUser:"1762881283053162498",updateTime:"2024-04-03 19:46:40",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:4,tradeNum:"2.00",tradTotalAmount:"4.00",tradeType:"quota_buy",tradeStatus:"YBH",tradePrice:"2",tradeDate:"2024-04-03 00:00:00",tradeWay:1,isFile:1,remark:"审核不通过"},{id:"1775489026136928257",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-03 19:42:25",updateUser:"1762881283053162498",updateTime:"2024-04-03 19:45:31",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:4,tradeNum:"1.00",tradTotalAmount:"1.00",tradeType:"quota_buy",tradeStatus:"GPZ",tradePrice:"1",tradeDate:"2024-04-03 00:00:00",tradeWay:1,isFile:1,remark:"审核通过,无意见"},{id:"1774714220508557313",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-01 16:23:37",updateUser:"1762881919673012226",updateTime:"2024-04-01 16:23:37",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:4,tradeNum:"600.00",tradTotalAmount:"66600.00",tradeType:"quota_sell",tradeStatus:"DSH",tradePrice:"111",tradeDate:"2024-04-01 00:00:00",tradeWay:1,isFile:1,remark:null},{id:"1772140436526161921",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-03-25 13:56:19",updateUser:"1762881283053162498",updateTime:"2024-03-25 13:57:14",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762867586717028353",enterpriseName:"鹰电能源有限公司",industryId:null,industryName:"化工行业",tradeYear:2024,tradeMonth:3,tradeNum:"19.00",tradTotalAmount:"361.00",tradeType:"ccer_sell",tradeStatus:"YWC",tradePrice:"19",tradeDate:"2024-03-25 00:00:00",tradeWay:1,isFile:1,remark:"审核通过,无意见"},{id:"1772137833075531778",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-03-25 13:45:58",updateUser:"1762881283053162498",updateTime:"2024-03-25 13:46:13",status:1,isDeleted:0,tenantId:"416380",enterpriseId:"1762867586717028353",enterpriseName:"鹰电能源有限公司",industryId:null,industryName:"发电行业",tradeYear:2024,tradeMonth:3,tradeNum:"65.00",tradTotalAmount:"4225.00",tradeType:"quota_sell",tradeStatus:"YWC",tradePrice:"65",tradeDate:"2024-03-25 00:00:00",tradeWay:1,isFile:1,remark:"审核通过,无意见"}],selectionList:[]}},watch:{tradeStatus:{handler(e,t){this.form.remark="GPZ"==e?"审核通过,无意见":"审核不通过",console.log(this.form,"009")},immediate:!0}},mounted(){},methods:{async init(){this.getList(this.page),Object(i["qrCode"])("vztimes_business").then(e=>{this.options=e.data.data[0].children||[]})},search(){},exportAll(){if(this.selectionList.length>0){const e=this.$loading({lock:!0,text:"正在导出文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(l["api_Export"])(this.selectionList).then(t=>{e.close();const a=t.data,r=new Blob([a],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s="交易订单文件.xlsx";if("download"in document.createElement("a")){const e=document.createElement("a");e.download=s,e.style.display="none",e.href=URL.createObjectURL(r),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(r,s)})}else this.$message.error("请选择导出的数据")},handleReview(e){this.dialogd=!0,this.isView=!1,e.remark=this.form.remark,this.form=Object(d["b"])(e),this.isremark=!1},handleRemove(e){this.$confirm("确定将选择数据下架?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{let t={id:e.id,tradeStatus:"YXJ"};Object(l["api_innerTradeSaveInfo"])(t).then(e=>{200==e.data.code&&(this.$message.success("审核成功"),this.getList())})})},handleView(e){this.dialogd=!0,this.isView=!0,this.form=e,this.isremark=!0},handleSubmit(e){this.$refs.form.validate((e,t)=>{e&&(this.form.tradeStatus=this.tradeStatus,Object(l["api_innerTradeSaveInfo"])(this.form).then(e=>{this.$message.success("审核成功"),this.dialogd=!1,this.form={},this.getList()}))})},hadleClose(){this.$confirm("是否关闭当前窗口?").then(e=>{this.form={},this.dialogd=!1}).catch(e=>{})},searchReset(e){this.getList(this.page)},searchChange(e,t){this.page.current=1,this.getList(this.page,e),t()},selectionChange(e){this.selectionList=e.map(e=>e.id)},selectionClear(){this.selectionList=[],this.$refs.crud.toggleSelection()},currentChange(e){this.page.current=e,this.getList(this.page)},sizeChange(e){this.page.size=e,this.getList()},refreshChange(){this.getList()},getList(e,t){this.loading=!0;let a={size:this.page.size,current:this.page.current,tradeWay:"1"};Object(l["api_innerTradeGroupPage"])(Object.assign(a,t)).then(e=>{if(console.log(e),200==e.data.code)if(e.data.data){if(e.data.data.records){const t=e.data.data.records;this.page.total=e.data.data.total,this.data=t}}else this.data=[];this.loading=!1})}}},o=n,c=(a("d4e4"),a("1805")),u=Object(c["a"])(o,r,s,!1,null,"a29547dc",null);t["default"]=u.exports},"871c":function(e,t,a){},d4e4:function(e,t,a){"use strict";a("871c")}}]);