{"version":3,"sources":["webpack:///./src/components/officialDoc/select.vue?5906","webpack:///./src/components/officialDoc/select.vue?b1ce","webpack:///./src/components/officialDoc/select.vue?a121","webpack:///./src/components/officialDoc/select.vue","webpack:///./src/components/heritageUnit/form/exibition/form.vue?722b","webpack:///./src/components/heritageUnit/form/exibition/form.vue?c225","webpack:///./src/components/heritageUnit/form/exibition/form.vue?76d5","webpack:///./src/components/heritageUnit/form/exibition/form.vue","webpack:///./src/components/heritageUnit/form/exibition/list.vue?1eac","webpack:///./src/components/heritageUnit/form/exibition/list.vue?790a","webpack:///./src/components/heritageUnit/form/exibition/list.vue?735f","webpack:///./src/components/heritageUnit/form/exibition/list.vue","webpack:///./src/api/officialDoc/doc.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","checkDoc","model","value","callback","$$v","docType","expression","_l","e","key","Key","attrs","Val","docYear","docNo","slot","_v","form","Id","_s","msg","_e","staticRenderFns","refTo","loading","typeList","yearList","guid","Object","assign","DocType","DocYear","toString","DocSerialNo","fetchDoc","byId","docId","then","response","data","f","$confirm","confirmButtonText","cancelButtonText","type","opt","DocNo","AttachType","AttachGuid","targetId","window","eventBus","$emit","catch","$message","message","getDoc","$on","info","fetchSource","$nextTick","$off","firstType","Select","length","category","m","CategoryName","DocCompileNo","DocTitle","default","component","showDialog","close","onSubmit","directives","name","rawName","ref","rules","expandNames","$set","ExibitionDocId","dateRange","schemeExt","AttachTypeProgram","AttachGuidProgram","onFileChange","AttachTypeOutline","AttachGuidOutline","TempExibitionDocId","tempDateRange","AttachTypeTempProgram","AttachGuidTempProgram","AttachTypeTempOutline","AttachGuidTempOutline","AttachTypePicture","AttachGuidPicture","onGalleryChange","ExibitionName","required","trigger","ExaminedUnit","FundAmount","validator","validate","TempFundAmount","ExibitionTypeOtherName","hasProgram","hasOutline","hasTempProgram","hasTempOutline","hasPhoto","opts","hasFile","file","refType","list","files","fetchData","$refs","formData","resetFields","closeDialog","open","dataId","UnitId","unitId","clearValidate","error","console","log","valid","obj","promist","IsError","sendData","dangerouslyUseHTMLString","Message","StartDate","EndDate","range","d","start","end","TempStartDate","TempEndDate","components","FormDialog","singleFile","hspGallery","DocSelector","modifiers","scopedSlots","_u","fn","scope","_f","row","$event","editData","$index","removData","addData","closeDataForm","showDataForm","index","item","splice","id","UnitExibitionForm","apiUrl","GetInfo","GetByCheck","PostData","emptyData","PublicType","DocCategory","DocReleaseUnit","DocContent","Description","ApproveDate","Date","Inactive","NewUserId","NewDate","UpdateUserId","UpdateDate","PublicTypeName","DocTypeName","getByCheck","year","num","method","url","params","docNum","getInfo","postData"],"mappings":"qKAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,YAAY,CAACG,GAAG,CAAC,OAASP,EAAIQ,UAAUC,MAAM,CAACC,MAAOV,EAAW,QAAEW,SAAS,SAAUC,GAAMZ,EAAIa,QAAQD,GAAKE,WAAW,YAAYd,EAAIe,GAAIf,EAAY,UAAE,SAASgB,GAAG,OAAOZ,EAAG,YAAY,CAACa,IAAID,EAAEE,IAAIC,MAAM,CAAC,MAAQH,EAAEI,IAAI,MAAQJ,EAAEE,UAAS,IAAI,GAAGd,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,YAAY,CAACG,GAAG,CAAC,OAASP,EAAIQ,UAAUC,MAAM,CAACC,MAAOV,EAAW,QAAEW,SAAS,SAAUC,GAAMZ,EAAIqB,QAAQT,GAAKE,WAAW,YAAYd,EAAIe,GAAIf,EAAY,UAAE,SAASgB,GAAG,OAAOZ,EAAG,YAAY,CAACa,IAAID,EAAEE,IAAIC,MAAM,CAAC,MAAQH,EAAEI,IAAI,MAAQJ,EAAEE,UAAS,IAAI,GAAGd,EAAG,MAAM,CAACE,YAAY,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,EACdC,WAAY,IAAIL,KAEhBM,eAAgB,GAChBC,YAAa,GACb1H,aAAc,GACdpB,WAAY,EACZC,WAAY,IA4BH8I,EAAa,SAAClJ,EAAcmJ,EAAcC,GACnD,OAAO,eAAS,CACZC,OAAQ,MACRC,IAAKrB,EACLsB,OAAQ,CACJ9L,QAASuC,EACT/B,QAASkL,EACTK,OAAQJ,MAIPK,EAAU,SAAC5B,GACpB,OAAO,eAAS,CACZwB,OAAQ,MACRC,IAAKtB,EAAQH,MAgBR6B,EAAW,SAACrL,GACrB,OAAO,eAAS,CACZgL,OAAQ,OACRC,IAAKpB,EACLvI,KAAMtB","file":"js/chunk-78722396.b991d448.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"select-doc\"},[_c('div',{staticClass:\"doc-col\"},[_c('el-select',{on:{\"change\":_vm.checkDoc},model:{value:(_vm.docType),callback:function ($$v) {_vm.docType=$$v},expression:\"docType\"}},_vm._l((_vm.typeList),function(e){return _c('el-option',{key:e.Key,attrs:{\"label\":e.Val,\"value\":e.Key}})}),1)],1),_c('div',{staticClass:\"doc-col\"},[_c('el-select',{on:{\"change\":_vm.checkDoc},model:{value:(_vm.docYear),callback:function ($$v) {_vm.docYear=$$v},expression:\"docYear\"}},_vm._l((_vm.yearList),function(e){return _c('el-option',{key:e.Key,attrs:{\"label\":e.Val,\"value\":e.Key}})}),1)],1),_c('div',{staticClass:\"doc-col\"},[_c('el-input',{on:{\"blur\":_vm.checkDoc},model:{value:(_vm.docNo),callback:function ($$v) {_vm.docNo=$$v},expression:\"docNo\"}},[_c('template',{slot:\"append\"},[_vm._v(\"号\")])],2)],1)]),(_vm.form.Id>0)?_c('div',{staticClass:\"doc-msg\"},[_vm._v(\"\\n \"+_vm._s(_vm.msg)+\"\\n \")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch, Prop } from 'vue-property-decorator'\r\nimport { getByCheck, getInfo, OfficialDocData, emptyData } from '@/api/officialDoc/doc'\r\nimport { tryToInt, newGuid } from '@/configs/functions'\r\nimport { enFirstType } from '@/configs/enums'\r\nimport { DDLItem, getOfficialDocTypes, getOfficialDocYears } from '@/api/common/select'\r\n\r\n@Component\r\nexport default class DocSelector extends Vue {\r\n //@docChange=\"getDoc\" getDoc(data:{ Id: number, Ref: string })\r\n @Prop({ default: 0 })\r\n public docId!: number\r\n //控件标识,在页面中多次使用时,通过refTo来判断\r\n @Prop({ default: '' })\r\n public refTo: string = ''\r\n\r\n public loading: boolean = false\r\n public typeList: DDLItem[] = []\r\n public yearList: DDLItem[] = []\r\n public guid: string = ''\r\n public form: OfficialDocData = Object.assign({}, emptyData)\r\n public docType: number = 0\r\n public docYear: number = 0\r\n public docNo: string = ''\r\n get msg(): string {\r\n let m = ''\r\n const f = this.form\r\n if (f.Id > 0) {\r\n m = f.CategoryName + ':' + f.DocCompileNo + ' ' + f.DocTitle\r\n }\r\n return m\r\n }\r\n public checkDoc() {\r\n if (this.docType > 0 && this.docYear > 0 && this.docNo != '') {\r\n this.form.DocType = this.docType\r\n this.form.DocYear = this.docYear.toString()\r\n this.form.DocSerialNo = this.docNo\r\n this.fetchDoc(false)\r\n }\r\n }\r\n public fetchDoc(byId: boolean) {\r\n this.loading = true\r\n if (byId) {\r\n getInfo(this.docId).then((response: { data: any }) => {\r\n this.form = response.data\r\n this.docType = this.form.DocType\r\n this.docYear = tryToInt(this.form.DocYear)\r\n this.docNo = this.form.DocSerialNo\r\n this.loading = false\r\n })\r\n }\r\n else {\r\n let f = this.form\r\n getByCheck(f.DocType, f.DocYear, f.DocSerialNo).then((response: { data: any }) => {\r\n f = response.data\r\n this.loading = false\r\n if (f.Id == 0) {\r\n this.$confirm('该批文不存在,是否要新增?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.guid = newGuid()\r\n const opt = {\r\n DocType: this.docType,\r\n DocYear: this.docYear,\r\n DocNo: this.docNo,\r\n AttachType: f.AttachType,\r\n AttachGuid: f.AttachGuid,\r\n targetId: this.guid\r\n }\r\n window.eventBus.$emit('openOfficialDocForm', opt)\r\n }).catch(() => {\r\n this.$message({\r\n type: 'info',\r\n message: '已取消操作'\r\n })\r\n // this.form = Object.assign({}, emptyData)\r\n // this.docType = 0\r\n // this.docYear = 0\r\n this.form.DocSerialNo = this.docNo = ''\r\n })\r\n }\r\n else {\r\n this.form = f\r\n this.getDoc()\r\n }\r\n })\r\n }\r\n }\r\n public getDoc() {\r\n this.$emit('docChange', { data: this.form, refTo: this.refTo })\r\n }\r\n public mounted() {\r\n window.eventBus.$on('submitOfficialDocForm', (info: { targetId: string, data: OfficialDocData }) => {\r\n if (this.guid === info.targetId) {\r\n this.form = Object.assign({}, info.data)\r\n this.getDoc()\r\n }\r\n })\r\n window.eventBus.$on('cancelOfficialDocForm', (info: { targetId: string }) => {\r\n if (this.guid === info.targetId) {\r\n this.form.DocSerialNo = this.docNo = ''\r\n }\r\n })\r\n this.fetchSource()\r\n this.$nextTick(() => {\r\n if (this.docId > 0) {\r\n this.fetchDoc(true)\r\n }\r\n })\r\n\r\n //延迟查询\r\n // setTimeout(() => {\r\n // console.log('setTimeout', new Date(), this.docId)\r\n // if (this.docId > 0) {\r\n // this.fetchDoc(true)\r\n // }\r\n // }, 50)\r\n }\r\n public beforeDestroy() {\r\n window.eventBus.$off('submitOfficialDocForm')\r\n window.eventBus.$off('cancelOfficialDocForm')\r\n }\r\n public fetchSource() {\r\n const firstType = enFirstType.Select\r\n if (this.typeList.length === 0) {\r\n //category 0.所有批文 1.立项批文Resvered_Flag1=true,2.批复/意见文号(Resvered_Flag2=true 冀文物发、文物保函、办保函)\r\n const category = 0\r\n getOfficialDocTypes(category, firstType).then((response: { data: any }) => {\r\n const data = response.data\r\n if (data) {\r\n this.typeList = data\r\n }\r\n })\r\n }\r\n if (this.yearList.length === 0) {\r\n getOfficialDocYears(firstType).then((response: { data: any }) => {\r\n const data = response.data\r\n if (data) {\r\n this.yearList = data\r\n }\r\n })\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./select.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./select.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./select.vue?vue&type=template&id=21a44b6b&scoped=true&\"\nimport script from \"./select.vue?vue&type=script&lang=ts&\"\nexport * from \"./select.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"21a44b6b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form-dialog',{attrs:{\"size\":\"max\",\"title\":\"展示利用\",\"visible\":_vm.showDialog,\"close\":_vm.close,\"submit\":_vm.onSubmit}},[_c('el-form',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"formData\",attrs:{\"model\":_vm.form,\"label-width\":\"200px\",\"status-icon\":\"\",\"rules\":_vm.rules}},[_c('el-collapse',{model:{value:(_vm.expandNames),callback:function ($$v) {_vm.expandNames=$$v},expression:\"expandNames\"}},[_c('el-collapse-item',{attrs:{\"name\":\"display\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-collapse-plus-minus\"}),_vm._v(\" 固定陈列\\n \")]),_c('div',[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展示名称\",\"prop\":\"ExibitionName\"}},[_c('el-input',{model:{value:(_vm.form.ExibitionName),callback:function ($$v) {_vm.$set(_vm.form, \"ExibitionName\", $$v)},expression:\"form.ExibitionName\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"批准文件\",\"prop\":\"ExibitionDocId\"}},[(!_vm.loading)?_c('doc-selector',{attrs:{\"refTo\":\"Exibition\",\"docId\":_vm.form.ExibitionDocId},on:{\"docChange\":_vm.getDoc}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"展示日期\",\"prop\":\"StartDate\"}},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.dateRange),callback:function ($$v) {_vm.dateRange=$$v},expression:\"dateRange\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展出方案\",\"prop\":\"attProgram\"}},[(!_vm.loading)?_c('single-file',{attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeProgram,\"tempGuid\":_vm.form.AttachGuidProgram},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"编制单位\",\"prop\":\"DocumentUnit\"}},[_c('el-input',{model:{value:(_vm.form.DocumentUnit),callback:function ($$v) {_vm.$set(_vm.form, \"DocumentUnit\", $$v)},expression:\"form.DocumentUnit\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展陈大纲\",\"prop\":\"attOutline\"}},[(!_vm.loading)?_c('single-file',{attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeOutline,\"tempGuid\":_vm.form.AttachGuidOutline},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展陈情况\",\"prop\":\"DisplayDescription\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.DisplayDescription),callback:function ($$v) {_vm.$set(_vm.form, \"DisplayDescription\", $$v)},expression:\"form.DisplayDescription\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"经费金额\",\"prop\":\"FundAmount\"}},[_c('el-input',{model:{value:(_vm.form.FundAmount),callback:function ($$v) {_vm.$set(_vm.form, \"FundAmount\", $$v)},expression:\"form.FundAmount\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"经费来源\",\"prop\":\"FundSource\"}},[_c('el-checkbox',{attrs:{\"label\":\"国拨\"},model:{value:(_vm.form.FundSoruceCountry),callback:function ($$v) {_vm.$set(_vm.form, \"FundSoruceCountry\", $$v)},expression:\"form.FundSoruceCountry\"}}),_c('el-checkbox',{attrs:{\"label\":\"省拨\"},model:{value:(_vm.form.FundSoruceProvince),callback:function ($$v) {_vm.$set(_vm.form, \"FundSoruceProvince\", $$v)},expression:\"form.FundSoruceProvince\"}}),_c('el-checkbox',{attrs:{\"label\":\"自筹\"},model:{value:(_vm.form.FundSoruceSelf),callback:function ($$v) {_vm.$set(_vm.form, \"FundSoruceSelf\", $$v)},expression:\"form.FundSoruceSelf\"}})],1)],1)],1)],1)],2),_c('el-collapse-item',{attrs:{\"name\":\"temp\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-collapse-plus-minus\"}),_vm._v(\" 临时展览\\n \")]),_c('div',[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展示名称\",\"prop\":\"TempExibitionName\"}},[_c('el-input',{model:{value:(_vm.form.TempExibitionName),callback:function ($$v) {_vm.$set(_vm.form, \"TempExibitionName\", $$v)},expression:\"form.TempExibitionName\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"批准文件\",\"prop\":\"TempExibitionDocId\"}},[(!_vm.loading)?_c('doc-selector',{attrs:{\"refTo\":\"TempExibition\",\"docId\":_vm.form.TempExibitionDocId},on:{\"docChange\":_vm.getDoc}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"展示日期\",\"prop\":\"TempStartDate\"}},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"daterange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.tempDateRange),callback:function ($$v) {_vm.tempDateRange=$$v},expression:\"tempDateRange\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展出方案\",\"prop\":\"attTempProgram\"}},[(!_vm.loading)?_c('single-file',{attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeTempProgram,\"tempGuid\":_vm.form.AttachGuidTempProgram},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"编制单位\",\"prop\":\"TempDocumentUnit\"}},[_c('el-input',{model:{value:(_vm.form.TempDocumentUnit),callback:function ($$v) {_vm.$set(_vm.form, \"TempDocumentUnit\", $$v)},expression:\"form.TempDocumentUnit\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展陈大纲\",\"prop\":\"attTempOutline\"}},[(!_vm.loading)?_c('single-file',{attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeTempOutline,\"tempGuid\":_vm.form.AttachGuidTempOutline},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"展陈情况\",\"prop\":\"TempDisplayDescription\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.TempDisplayDescription),callback:function ($$v) {_vm.$set(_vm.form, \"TempDisplayDescription\", $$v)},expression:\"form.TempDisplayDescription\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"经费金额\",\"prop\":\"TempFundAmount\"}},[_c('el-input',{model:{value:(_vm.form.TempFundAmount),callback:function ($$v) {_vm.$set(_vm.form, \"TempFundAmount\", $$v)},expression:\"form.TempFundAmount\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"经费来源\",\"prop\":\"FundSource\"}},[_c('el-checkbox',{attrs:{\"label\":\"国拨\"},model:{value:(_vm.form.TempFundSoruceCountry),callback:function ($$v) {_vm.$set(_vm.form, \"TempFundSoruceCountry\", $$v)},expression:\"form.TempFundSoruceCountry\"}}),_c('el-checkbox',{attrs:{\"label\":\"省拨\"},model:{value:(_vm.form.TempFundSoruceProvince),callback:function ($$v) {_vm.$set(_vm.form, \"TempFundSoruceProvince\", $$v)},expression:\"form.TempFundSoruceProvince\"}}),_c('el-checkbox',{attrs:{\"label\":\"自筹\"},model:{value:(_vm.form.TempFundSoruceSelf),callback:function ($$v) {_vm.$set(_vm.form, \"TempFundSoruceSelf\", $$v)},expression:\"form.TempFundSoruceSelf\"}})],1)],1)],1)],1)],2),_c('el-collapse-item',{attrs:{\"name\":\"exibition\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-collapse-plus-minus\"}),_vm._v(\" 展示信息\\n \")]),_c('div',[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"安防情况\",\"prop\":\"SecuritySituation\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.SecuritySituation),callback:function ($$v) {_vm.$set(_vm.form, \"SecuritySituation\", $$v)},expression:\"form.SecuritySituation\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"展示方式\",\"prop\":\"ExibitionType\"}},[_c('el-checkbox',{attrs:{\"label\":\"实物展示\"},model:{value:(_vm.form.ExibitionTypeInKind),callback:function ($$v) {_vm.$set(_vm.form, \"ExibitionTypeInKind\", $$v)},expression:\"form.ExibitionTypeInKind\"}}),_c('el-checkbox',{attrs:{\"label\":\"照片展示\"},model:{value:(_vm.form.ExibitionTypePicture),callback:function ($$v) {_vm.$set(_vm.form, \"ExibitionTypePicture\", $$v)},expression:\"form.ExibitionTypePicture\"}}),_c('el-checkbox',{attrs:{\"label\":\"其他(填写文字)\"},model:{value:(_vm.form.ExibitionTypeOther),callback:function ($$v) {_vm.$set(_vm.form, \"ExibitionTypeOther\", $$v)},expression:\"form.ExibitionTypeOther\"}})],1)],1),(_vm.form.ExibitionTypeOther)?_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"其他展示\",\"prop\":\"ExibitionTypeOtherName\"}},[_c('el-input',{model:{value:(_vm.form.ExibitionTypeOtherName),callback:function ($$v) {_vm.$set(_vm.form, \"ExibitionTypeOtherName\", $$v)},expression:\"form.ExibitionTypeOtherName\"}})],1)],1):_vm._e()],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"展陈照片\",\"prop\":\"attPhoto\"}},[(!_vm.loading)?_c('hsp-gallery',{attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypePicture,\"tempGuid\":_vm.form.AttachGuidPicture},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1)],1)],2)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch, Prop } from 'vue-property-decorator'\r\nimport { UnitExibitionData, emptyData, getInfo, postData, putData } from '@/api/heritageUnit/unitExibition'\r\nimport { getLookupByType, DDLItem } from '@/api/common/select'\r\nimport { enFirstType, enLookupType } from '@/configs/enums'\r\nimport { validateIntKey, validateFloat, validateDateRange, showVaildMsg } from '@/configs/validate'\r\nimport { getDDLItem, toDefaultInt } from '@/configs/functions'\r\nimport Element from 'element-ui'\r\nimport { UploadOptData } from '@/api/common/upload'\r\nimport { AttachInfo } from '@/api/common/attach'\r\nimport { OfficialDocData } from '@/api/officialDoc/doc'\r\nimport DocSelector from '@/components/officialDoc/select.vue'\r\nimport singleFile from '@/components/upload/singleFile.vue'\r\nimport hspGallery from '@/components/upload/gallery.vue'\r\nimport FormDialog from '@/components/dialog/formDialog.vue'\r\nimport { mergeDateRange, splitDateRange } from '@/configs/functions'\r\nconst getFormRules = (form: { [key: string]: string | any }) => {\r\n return {\r\n ExibitionName: [{ required: true, message: '请输入展示名称', trigger: 'blur' }],\r\n ExaminedUnit: [{ required: true, message: '请输入受检查单位名称', trigger: 'blur' }],\r\n // StartDate: [{ validator: validateDateRange(form, 'StartDate', 'EndDate', '开始时间不能大于结束时间'), trigger: \"blur\" }],\r\n // EndDate: [{ validator: validateDateRange(form, 'StartDate', 'EndDate', '结束时间不能小于开始时间'), trigger: \"blur\" }],\r\n FundAmount: [{ validator: validateFloat, message: '请输入数字', trigger: 'blur' }],\r\n TempFundAmount: [{ validator: validateFloat, message: '请输入数字', trigger: 'blur' }],\r\n // TempStartDate: [{ validator: validateDateRange(form, 'TempStartDate', 'TempEndDate', '开始时间不能大于结束时间'), trigger: \"blur\" }],\r\n // TempEndDate: [{ validator: validateDateRange(form, 'TempStartDate', 'TempEndDate', '结束时间不能小于开始时间'), trigger: \"blur\" }],\r\n ExibitionTypeOtherName: [{ required: true, message: '请输入其他展示方式', trigger: 'blur' }]\r\n }\r\n}\r\n@Component({\r\n components: { FormDialog, singleFile, hspGallery, DocSelector }\r\n})\r\nexport default class UnitExibitionForm extends Vue {\r\n public name = 'UnitExibitionForm'\r\n // 关闭窗口,在 dialog 的 :before-close属性中触发,然后调用父级中的方法\r\n @Prop({ default: null })\r\n public closeDialog!: () => void\r\n public showDialog: boolean = false\r\n\r\n public expandNames: string[] = ['display', 'exibition', 'temp']\r\n public loading: boolean = false\r\n public form: UnitExibitionData = Object.assign({}, emptyData)\r\n public rules = getFormRules(this.form)\r\n public $refs!: {\r\n formData: Element.Form\r\n }\r\n public getDoc(info: { data: OfficialDocData, refTo: string }) {\r\n const docId = info.data.Id\r\n let f = this.form\r\n switch (info.refTo) {\r\n case 'Exibition':\r\n f.ExibitionDocId = docId\r\n break\r\n case 'TempExibition':\r\n f.TempExibitionDocId = docId\r\n break\r\n default:\r\n break\r\n }\r\n }\r\n get dateRange(): string[] {\r\n const f = this.form\r\n return mergeDateRange(f.StartDate, f.EndDate)\r\n }\r\n set dateRange(range: string[]) {\r\n const f = this.form\r\n const d = splitDateRange(range)\r\n f.StartDate = d.start\r\n f.EndDate = d.end\r\n }\r\n get tempDateRange(): string[] {\r\n const f = this.form\r\n return mergeDateRange(f.TempStartDate, f.TempEndDate)\r\n }\r\n set tempDateRange(range: string[]) {\r\n const f = this.form\r\n const d = splitDateRange(range)\r\n f.TempStartDate = d.start\r\n f.TempEndDate = d.end\r\n }\r\n public hasProgram: boolean = false\r\n public hasOutline: boolean = false\r\n public hasTempProgram: boolean = false\r\n public hasTempOutline: boolean = false\r\n public onFileChange(data: { opts: UploadOptData, file: AttachInfo }) {\r\n const opt = data.opts\r\n const hasFile = data.file.Id > 0\r\n const f = this.form\r\n switch (opt.refType) {\r\n case f.AttachTypeProgram:\r\n this.hasProgram = hasFile\r\n break\r\n case f.AttachTypeOutline:\r\n this.hasOutline = hasFile\r\n break\r\n case f.AttachTypeTempProgram:\r\n this.hasTempProgram = hasFile\r\n break\r\n case f.AttachTypeTempOutline:\r\n this.hasTempOutline = hasFile\r\n break\r\n default:\r\n break\r\n }\r\n }\r\n public hasPhoto: boolean = false\r\n public onGalleryChange(data: { opts: UploadOptData, files: AttachInfo[] }) {\r\n const list = data.files\r\n this.hasPhoto = list && list.length > 0\r\n }\r\n public created() {\r\n }\r\n public mounted() {\r\n window.eventBus.$on(\"openUnitExibitionForm\", (info: { unitId: number, dataId: number }) => {\r\n this.fetchData(info)\r\n })\r\n }\r\n public beforeDestroy() {\r\n window.eventBus.$off(\"openUnitExibitionForm\")\r\n }\r\n public open() {\r\n this.showDialog = true\r\n }\r\n public close() {\r\n this.showDialog = false\r\n this.$refs.formData.resetFields()\r\n if (this.closeDialog) {\r\n this.closeDialog()\r\n }\r\n }\r\n public fetchData(info: { unitId: number, dataId: number }) {\r\n this.open()\r\n this.loading = true\r\n getInfo(info.dataId).then((response: { data: any }) => {\r\n this.form = response.data\r\n this.expandNames = ['display', 'exibition', 'temp']\r\n this.rules = getFormRules(this.form)\r\n if (info.dataId === 0) {\r\n this.form.UnitId = info.unitId\r\n this.$nextTick(() => {\r\n if (this.$refs.formData) {\r\n this.$refs.formData.clearValidate()\r\n }\r\n })\r\n }\r\n this.loading = false\r\n }).catch((error: any) => {\r\n console.log(error)\r\n })\r\n }\r\n public sendData(data: UnitExibitionData) {\r\n window.eventBus.$emit(\"submitUnitExibitionForm\", {\r\n data: data\r\n })\r\n }\r\n public onSubmit() {\r\n this.$refs.formData.validate((valid: boolean, obj: any) => {\r\n if (valid) {\r\n const f = Object.assign({}, this.form)\r\n const promist = f.Id > 0 ? putData(f.Id, f) : postData(f)\r\n promist.then((response: { data: any }) => {\r\n const data = response.data\r\n const msg = this.form.Id > 0 ? '保存' : '创建'\r\n if (data && !data.IsError) {\r\n this.$message({\r\n message: `${msg}成功`,\r\n type: 'success'\r\n })\r\n this.sendData(f)\r\n this.close()\r\n } else {\r\n this.$message({\r\n dangerouslyUseHTMLString: true, message: `${data.Message}`,\r\n type: 'warning'\r\n })\r\n console.log(response)\r\n }\r\n }, (data: any) => {\r\n console.log(data)\r\n })\r\n }\r\n else {\r\n showVaildMsg(this.$message, obj)\r\n }\r\n })\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./form.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./form.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./form.vue?vue&type=template&id=8b639efa&scoped=true&\"\nimport script from \"./form.vue?vue&type=script&lang=ts&\"\nexport * from \"./form.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8b639efa\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading.body\",value:(_vm.loading),expression:\"loading\",modifiers:{\"body\":true}}],ref:\"tbList\",attrs:{\"data\":_vm.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"width\":\"50\"}}),_c('el-table-column',{attrs:{\"prop\":\"ExibitionName\",\"label\":\"展示名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"StartDate\",\"label\":\"开始时间\",\"width\":\"121\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(scope.row.StartDate))+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"EndDate\",\"label\":\"结束时间\",\"width\":\"121\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(scope.row.EndDate))+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"class-name\":\"action\",\"label\":\"操作\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tooltip',{attrs:{\"content\":\"修改\",\"placement\":\"top-start\"}},[_c('a',{on:{\"click\":function($event){return _vm.editData(scope.$index)}}},[_c('i',{staticClass:\"iconfont icon-pen-edit\"})])]),_c('el-tooltip',{attrs:{\"content\":\"删除\",\"placement\":\"top-start\"}},[_c('a',{on:{\"click\":function($event){return _vm.removData(scope.$index)}}},[_c('i',{staticClass:\"iconfont icon-trash\"})])])]}}])},[_c('template',{slot:\"header\"},[_c('el-tooltip',{attrs:{\"content\":\"添加\",\"placement\":\"top-start\"}},[_c('a',{on:{\"click\":_vm.addData}},[_c('i',{staticClass:\"iconfont icon-btn-add\"})])])],1),_c('span')],2)],1),_c('unit-exibition-form',{ref:\"exibitionCtrl\",attrs:{\"closeDialog\":_vm.closeDataForm}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop } from 'vue-property-decorator'\r\nimport { UnitExibitionData, getList, removeData } from '@/api/heritageUnit/unitExibition'\r\nimport UnitExibitionForm from './form.vue'\r\n\r\n@Component({\r\n components: {\r\n UnitExibitionForm\r\n }\r\n})\r\nexport default class UnitExibitionList extends Vue {\r\n public name = 'UnitExibitionList'\r\n @Prop({ default: 0 })\r\n public unitId: number = 0\r\n\r\n public loading = false\r\n public list: UnitExibitionData[] = []\r\n // dynamic component\r\n public $refs!: {\r\n exibitionCtrl: UnitExibitionForm\r\n }\r\n public loadData() {\r\n if (this.unitId == 0) {\r\n this.$message({\r\n message: '文保单位未匹配,请检查',\r\n type: 'warning'\r\n })\r\n console.log('UnitId为0,请赋值')\r\n }\r\n else {\r\n this.fetchData()\r\n }\r\n }\r\n public fetchData() {\r\n this.loading = true\r\n getList(this.unitId).then((response: { data: any }) => {\r\n this.list = response.data\r\n this.loading = false\r\n }).catch((error: any) => {\r\n console.log(error)\r\n })\r\n }\r\n public addData() {\r\n this.showDataForm(0)\r\n }\r\n public editData(index: number) {\r\n const item = this.list[index]\r\n this.showDataForm(item.Id)\r\n }\r\n public removData(index: number) {\r\n this.$confirm(`确定要删除吗?`, '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n var item = this.list[index]\r\n removeData(item.Id).then(() => {\r\n this.$message({ type: 'success', message: '删除成功' })\r\n this.list.splice(index, 1)\r\n })\r\n })\r\n .catch(() => {\r\n this.$message({\r\n type: 'info',\r\n message: '操作已取消'\r\n })\r\n })\r\n }\r\n //修改后,直接保存到数据库里\r\n public showDataForm(id: number) {\r\n window.eventBus.$emit('openUnitExibitionForm', {\r\n unitId: this.unitId,\r\n dataId: id\r\n })\r\n }\r\n public closeDataForm() {\r\n console.log('closeUnitExibitionForm')\r\n }\r\n public mounted() {\r\n //按需加载\r\n window.eventBus.$on('loadUnitExibitionList', (unitId: number) => {\r\n this.unitId = unitId\r\n this.fetchData()\r\n })\r\n window.eventBus.$on('submitUnitExibitionForm', (info: any) => {\r\n this.fetchData()\r\n })\r\n }\r\n public beforeDestroy() {\r\n window.eventBus.$off('loadUnitExibitionList')\r\n window.eventBus.$off('submitUnitExibitionForm')\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./list.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./list.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./list.vue?vue&type=template&id=3ae62926&scoped=true&\"\nimport script from \"./list.vue?vue&type=script&lang=ts&\"\nexport * from \"./list.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3ae62926\",\n null\n \n)\n\nexport default component.exports","import { tryAxios } from '@/api/common/auth'\r\nimport { urlPrefix } from '@/configs/api'\r\n\r\nconst apiUrl = `${urlPrefix}/OfficialDoc`\r\n//#region select数据源相关api\r\nconst GetInfo = (id: number) => `${apiUrl}/${id}`\r\nconst GetList = `${apiUrl}`\r\nconst Delete = (id: number) => `${apiUrl}/${id}`\r\nconst GetByCheck = `${apiUrl}/GetByCheck`\r\nconst PostData = `${apiUrl}`\r\n//#endregion\r\n\r\nexport const emptyData: OfficialDocData = {\r\n Id: 0,\r\n PublicType: 0,\r\n DocType: 0,\r\n DocYear: '',\r\n DocSerialNo: '',\r\n DocCategory: 0,\r\n DocTitle: '',\r\n DocCompileNo: '',\r\n DocReleaseUnit:0,\r\n DocContent: '',\r\n Description: '',\r\n ApproveDate: new Date(),\r\n Inactive: false,\r\n NewUserId: 0,\r\n NewDate: new Date(),\r\n UpdateUserId: 0,\r\n UpdateDate: new Date(),\r\n\r\n PublicTypeName: '',\r\n DocTypeName: '',\r\n CategoryName: '',\r\n AttachType: 0,\r\n AttachGuid: ''\r\n}\r\nexport interface OfficialDocData {\r\n Id: number\r\n PublicType: number\r\n DocType: number\r\n DocYear: string\r\n DocSerialNo: string\r\n DocCategory: number\r\n DocTitle: string\r\n DocCompileNo: string\r\n DocReleaseUnit:number\r\n DocContent: string\r\n Description: string\r\n ApproveDate: Date\r\n Inactive: boolean\r\n NewUserId: number\r\n NewDate: Date\r\n UpdateUserId: number\r\n UpdateDate: Date\r\n\r\n PublicTypeName: string\r\n DocTypeName: string\r\n CategoryName: string\r\n\r\n AttachType: number\r\n AttachGuid: string\r\n}\r\nexport const getByCheck = (type: number, year: string, num: string) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetByCheck,\r\n params: {\r\n docType: type,\r\n docYear: year,\r\n docNum: num\r\n }\r\n })\r\n}\r\nexport const getInfo = (id: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetInfo(id)\r\n })\r\n}\r\nexport const getList = (param: any) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetList,\r\n params: param\r\n })\r\n}\r\nexport const remove = (id: number) => {\r\n return tryAxios({\r\n method: 'delete',\r\n url: Delete(id)\r\n })\r\n}\r\nexport const postData = (form: OfficialDocData) => {\r\n return tryAxios({\r\n method: 'post',\r\n url: PostData,\r\n data: form\r\n })\r\n}"],"sourceRoot":""}