(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-736279f1"],{"188a":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"applyForm"},[n("Row",{attrs:{type:"flex",gutter:7}},[n("Col",{staticClass:"pdf",staticStyle:{color:"blue"},attrs:{span:"4"}},[t._v(" "+t._s(t.fileName)+" ")]),n("Col",{staticClass:"pdf",attrs:{span:"2"}},[n("Button",{attrs:{type:"primary"},on:{click:t.attachmentOperate}},[t._v(t._s(t.filePath?"下载":"查看")+"附件")])],1)],1),n("div",{staticClass:"conternt"},[n("Table",{attrs:{border:"",columns:t.columns,data:t.fontData}})],1),n("div",[n("Row",{staticClass:"code-row-bg",attrs:{type:"flex",justify:"center",gutter:12}},[n("Col",{attrs:{span:"3"}},[n("Button",{on:{click:t.onClose}},[t._v("关闭")])],1),"2"===t.approvalstatus?n("Col",{attrs:{span:"3"}},[n("Button",{attrs:{type:"primary"},on:{click:t.preservation}},[t._v("提交")])],1):t._e()],1)],1),n("Modal",{attrs:{width:"900",title:"附件上传","footer-hide":!0},model:{value:t.showAttachmentModal,callback:function(e){t.showAttachmentModal=e},expression:"showAttachmentModal"}},[n("Attachment",{ref:"attachment",attrs:{atttype:"FJ_WBBGSH",attrefsysid:t.attrefsysid,noOperate:t.noOperate,uploadable:!1},on:{"on-file-success":t.uploadSuc,"on-file-delete":t.fileDel}})],1)],1)},i=[],r=(n("ac6a"),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54"),n("20d6"),n("7f7f"),n("f121")),o=n("81cd"),s=n("78a4"),u=n("90de");function l(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=c(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i,r=!0,o=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return r=t.done,t},e:function(t){o=!0,i=t},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw i}}}}function c(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var f=r["a"].baseUrl.pro,p={components:{Attachment:o["a"]},data:function(){return{showAttachmentModal:!1,attrefsysid:"",approvalstatus:"",noOperate:!1,columns:[{title:"序号",type:"index",width:60,align:"center"},{title:"出厂编号",key:"prono"},{title:"使用单位",key:"userorgname"},{title:"原维护单位",key:"oldmaiorgname"},{title:"更改维护单位",key:"officeName"}],fontData:[],fileName:"维保合同(pdf或者jpg)",filePath:"",modid:""}},methods:{onClose:function(){this.$store.commit("closeTag",this.$route)},qure:function(){var t=this;Object(s["b"])(this.$route.query.ids).then((function(e){if(console.log(e.data),e.isSuccess&&Object(u["l"])(e.data)){if(t.fontData=e.data.list,0!==t.fontData.length){var n=t.fontData[0];Object(u["l"])(n.filePath)&&(t.filePath=n.filePath,t.fileName=n.fileName,t.modid=n.modid)}for(var a=0;a<t.fontData.length;a++)t.fontData[a].officeName=t.$store.state.user.userInfo.office.name}}))},attachmentOperate:function(){if(Object(u["l"])(this.filePath)){var t="".concat(f,"/a/stone/epIbmsSeiMaiUnitMain/download?modId=")+this.modid;window.open(t)}else this.showAttachmentModal=!0,this.$refs.attachment.query()},uploadSuc:function(t){var e={};e.id=t.id,e.atttype=t.atttype,e.attrefsysid=t.attrefsysid,e.attname=t.attname,e.attfileroute=t.attfileroute,this.formData.attachmentInfoList.push(e)},fileDel:function(t){var e,n=this.formData.attachmentInfoList,a=l(t);try{var i=function(){var t=e.value;n.splice(n.findIndex((function(e){return e.attrefsysid==t.attrefsysid})),1)};for(a.s();!(e=a.n()).done;)i()}catch(r){a.e(r)}finally{a.f()}},preservation:function(){var t=this;Object(s["f"])(this.attrefsysid).then((function(e){console.log(e),e.isSuccess&&(t.$Message.success("提交成功"),t.$store.commit("closeTag",t.$route))}))}},mounted:function(){this.attrefsysid=this.$route.query.ids,this.approvalstatus=this.$route.query.approvalstatus,this.qure()}},m=p,h=(n("9639"),n("2877")),v=Object(h["a"])(m,a,i,!1,null,"61c7936c",null);e["default"]=v.exports},"299c":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dict-select-div"},[n("Select",{staticClass:"select_box",style:{width:t.width},attrs:{value:t.currentValue,size:t.selectSize,"label-in-value":!0,disabled:t.disabled,placement:t.placement,multiple:t.multiple,filterable:t.filterable,transfer:""},on:{"on-change":t.selDict}},[t.multiple?t._e():n("Option",{attrs:{value:""}},[t._v("请选择")]),t._l(t.dictList,(function(e){return n("Option",{key:e.id,attrs:{disabled:e.disabled,value:e.value}},[t._v(t._s(e.label))])}))],2)],1)},i=[],r=(n("c5f6"),n("e34e")),o=n("c276"),s={name:"DictSelect",data:function(){return{isAllowedChange:this.isNeedInit,dictList:this.getDictList(),currentValue:this.value}},props:{type:{type:String,required:!0},value:{type:[String,Array,Object],default:""},parentId:{type:String,default:"-1"},parentValue:{type:String,default:""},dict:{type:Object,default:function(){return{value:"",label:""}}},index:{type:[Number,String]},selectSize:{type:String,default:"small"},width:{type:[Number,String]},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start"},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},disabledArr:{type:Array,default:function(){return[]}},isNeedInit:{type:Boolean,default:!1},selectFirst:{type:Boolean,default:!1}},mounted:function(){this.init()},methods:{init:function(){this.selectFirst&&!Object(o["n"])(this.value)&&!Object(o["n"])(this.value)&&this.dictList.length>0&&(this.setCurrentValue(this.dictList[0].value),this.selDict(this.dictList[0]))},getDictList:function(){var t=this,e=this;Object(r["c"])({type:e.type,parentId:e.parentId,parentValue:e.parentValue}).then((function(n){if(n.isSuccess){if(n.data&&n.data.length)for(var a=function(e){t.disabledArr.length>0&&t.disabledArr.some((function(t){t==n.data[e].value&&(n.data[e].disabled=!0)}))},i=0;i<n.data.length;i++)a(i);e.dictList=n.data,e.init()}}))},selDict:function(t){if(this.multiple&&this.isAllowedChange)this.isAllowedChange=!1;else{var e=this;if(null!==t&&void 0!==t&&""!==t)if(""!=t.value&&"请选择"!=t.label||(t.label="",t.value=""),e.multiple){var n=[];n=t.map((function(t,e){return Object.assign({},{label:t.label,value:t.value})})),e.$emit("on-sel-dict",n)}else{e.dict.label=t.label,e.dict.value=t.value;var a=e.dict;if(Object(o["n"])(e.dictList)&&e.dictList.length>0)for(var i=0;i<e.dictList.length;i++){var r=e.dictList[i];if(e.dict.value==r.value){a=r;break}}"undefined"!==typeof e.index?e.$emit("on-sel-dict",a,e.index):e.$emit("on-sel-dict",a),this.currentValue=t.value,this.$emit("change",this.currentValue)}else this.currentValue="",this.$emit("change",this.currentValue)}},setCurrentValue:function(t){this.currentValue=t,this.$emit("change",this.currentValue)},resetVal:function(){this.currentValue=""}},watch:{value:function(t){this.setCurrentValue(t)},parentValue:function(t,e){this.getDictList()},type:function(t,e){this.getDictList()}}},u=s,l=(n("e29d"),n("2877")),c=Object(l["a"])(u,a,i,!1,null,"e322c5da",null);e["a"]=c.exports},"33d8":function(t,e,n){},"78a4":function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return l}));var a=n("66df"),i=function(t){return a["a"].request({url:"/a/stone/eqm/maintenanceDetailList",method:"post",withCredentials:!0,params:{ids:t}})},r=function(t){return a["a"].request({url:"/a/stone/epIbmsSeiMaiUnitMain/save",method:"post",withCredentials:!0,data:t})},o=function(t){return a["a"].request({url:"/a/stone/epIbmsSeiMaiUnitMain/delete",method:"post",withCredentials:!0,params:{ids:t}})},s=function(t){return a["a"].request({url:"/a/stone/epIbmsSeiMaiUnitDetail/list",method:"post",withCredentials:!0,params:{modid:t}})},u=function(t){return a["a"].request({url:"/a/stone/epIbmsSeiMaiUnitDetail/checkEqu",method:"post",withCredentials:!0,params:{equids:t}})},l=function(t){return a["a"].request({url:"/a/stone/epIbmsSeiMaiUnitMain/commit",method:"post",withCredentials:!0,params:{ids:t}})}},9639:function(t,e,n){"use strict";var a=n("33d8"),i=n.n(a);i.a},a8ac:function(t,e,n){"use strict";var a=n("299c");e["a"]=a["a"]},aef6:function(t,e,n){"use strict";var a=n("5ca1"),i=n("9def"),r=n("d2c8"),o="endsWith",s=""[o];a(a.P+a.F*n("5147")(o),"String",{endsWith:function(t){var e=r(this,t,o),n=arguments.length>1?arguments[1]:void 0,a=i(e.length),u=void 0===n?a:Math.min(i(n),a),l=String(t);return s?s.call(e,l,u):e.slice(u-l.length,u)===l}})},c2fb:function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var a=function(t,e){localStorage.setItem(t,JSON.stringify(e))},i=function(t,e){localStorage.setItem(t,e)},r=function(t){return JSON.parse(localStorage.getItem(t))},o=function(t){return localStorage.getItem(t)},s=function(t){localStorage.removeItem(t)},u=function(t,e){sessionStorage.setItem(t,JSON.stringify(e))},l=function(t){return JSON.parse(sessionStorage.getItem(t))},c=function(t){sessionStorage.removeItem(t)};e["a"]={saveLocalItem:a,saveLocalItemNoJson:i,getLocalItem:r,getLocalItemNoJson:o,removeLocalItem:s,saveSessionItem:u,getSessionItem:l,removeSessionItem:c}},e21f:function(t,e,n){},e29d:function(t,e,n){"use strict";var a=n("e21f"),i=n.n(a);i.a},e34e:function(t,e,n){"use strict";n.d(e,"l",(function(){return u})),n.d(e,"n",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return p})),n.d(e,"h",(function(){return m})),n.d(e,"f",(function(){return h})),n.d(e,"p",(function(){return v})),n.d(e,"o",(function(){return y})),n.d(e,"g",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return w})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return C}));var a=n("66df"),i=n("4328"),r=n.n(i),o=n("c2fb"),s=n("c276"),u=function(t,e,n){return a["a"].request({url:"/api/businesspro/common/queryBusinessUser",method:"post",withCredentials:!0,params:{type:t,name:e,orgId:n}})},l=function(t){return a["a"].request({url:"/api/unitbasic/listUnitBasic",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0,data:r.a.stringify({orgname:t})})},c=function(t){return a["a"].request({url:"/api/businesspro/common/getOfficeListByUser",method:"post",withCredentials:!0,params:{type:t}})},d=function(t){return a["a"].request({url:"/api/layout/findSearchFormConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},f=function(t){return a["a"].request({url:"/api/layout/findAllSearchFormConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},p=function(t){return a["a"].request({url:"/api/layout/findTableConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},m=function(t){return a["a"].request({url:"api/common/findFormConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},h=function(t){return a["a"].request({url:"/api/layout/findAllTableConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},v=function(t){return a["a"].post({url:"/api/layout/userFormConfigSave",withCredentials:!0,data:t})},y=function(t){return a["a"].post({url:"/api/layout/userFormConfigDelete",withCredentials:!0,data:{viewId:t}})},g=function(t){return a["a"].request({url:"/api/layout/findFormConfig",method:"post",withCredentials:!0,params:{viewNo:t}})},b=function(t){var e=t.parentId,n=new URLSearchParams;return n.append("parentId",e),a["a"].request({url:"/api/common/area/findAreaList",data:n,method:"post",withCredentials:!0})},w=function(t){var e=t.type,n=t.parentId,i=t.parentValue,r=new URLSearchParams,u="dict_".concat(e,"_").concat(n,"_").concat(i),l=o["a"].getLocalItem(u);return Object(s["n"])(l)?new Promise((function(t,e){t(l)})):(r.append("type",e),r.append("parentId",n),r.append("parentValue",i),a["a"].request({url:"/api/common/dict/findDictList",data:r,method:"post",withCredentials:!0}).then((function(t){return o["a"].saveLocalItem(u,t),t})))},S=function(t){var e=t.type,n=t.value,i=new URLSearchParams;return i.append("type",e),i.append("value",n),a["a"].request({url:"/api/common/dict/findDictItem",data:i,method:"post",withCredentials:!0})},C=function(t){var e=t.type,n=t.value,i=new URLSearchParams;return i.append("type",e),i.append("value",n),a["a"].request({url:"/api/common/dict/findParentDictItem",data:i,method:"post",withCredentials:!0})}}}]);