{"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/archaeology/form.vue?485b","webpack:///./src/components/heritageUnit/form/archaeology/form.vue?d5ed","webpack:///./src/components/heritageUnit/form/archaeology/form.vue?803a","webpack:///./src/components/heritageUnit/form/archaeology/form.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","investigationYearMonth","InvestigationDocId","schemeExt","AttachTypeIstRecord","AttachGuidIstRecord","onFileChange","AttachTypeIstSpecimen","AttachGuidIstSpecimen","AttachTypeIstDrawing","AttachGuidIstDrawing","onGalleryChange","AttachTypeIstPicture","AttachGuidIstPicture","explorationYearMonth","ExplorationDocId","AttachTypeExpRecord","AttachGuidExpRecord","AttachTypeExpSmallPiece","AttachGuidExpSmallPiece","AttachTypeExpDrawing","AttachGuidExpDrawing","AttachTypeExpPicture","AttachGuidExpPicture","digYearMonth","DigDocId","AttachTypeDigRecord","AttachGuidDigRecord","AttachTypeDigSmallPiece","AttachGuidDigSmallPiece","AttachTypeDigDrawing","AttachGuidDigDrawing","AttachTypeDigPicture","AttachGuidDigPicture","InvestigationArea","validator","validate","trigger","InvestigationFundAmount","InvestigationCategory","required","categoryList","hasIstRecord","hasIstSpecimen","hasExpRecord","hasExpSmallPiece","hasDigRecord","hasDigSmallPiece","hasIstDrawing","hasIstPicture","hasExpDrawing","hasExpPicture","hasDigDrawing","hasDigPicture","opts","hasFile","file","refType","list","files","hasFiles","fetchData","$refs","formData","resetFields","closeDialog","open","dataId","IsInvestigation","push","IsExploration","IsDig","UnitId","unitId","error","console","log","valid","obj","promist","IsError","sendData","dangerouslyUseHTMLString","Message","InvestigationYear","InvestigationMonth","sp","split","ExplorationYear","ExplorationMonth","DigYear","DigMonth","components","FormDialog","DocSelector","hspGallery","singleFile","apiUrl","GetInfo","id","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":"oJAAA,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,EA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Q,OACRC,IAAKpB,EACL/I,KAAMtB","file":"js/chunk-53872b08.0d1eba6c.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\":\"base\"}},[_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\":\"workNature\"}},[_c('el-checkbox',{attrs:{\"label\":\"调查\"},model:{value:(_vm.form.IsInvestigation),callback:function ($$v) {_vm.$set(_vm.form, \"IsInvestigation\", $$v)},expression:\"form.IsInvestigation\"}}),_c('el-checkbox',{attrs:{\"label\":\"勘探\"},model:{value:(_vm.form.IsExploration),callback:function ($$v) {_vm.$set(_vm.form, \"IsExploration\", $$v)},expression:\"form.IsExploration\"}}),_c('el-checkbox',{attrs:{\"label\":\"发掘\"},model:{value:(_vm.form.IsDig),callback:function ($$v) {_vm.$set(_vm.form, \"IsDig\", $$v)},expression:\"form.IsDig\"}})],1)],1)],1)],1)],2),(_vm.form.IsInvestigation)?_c('el-collapse-item',{attrs:{\"name\":\"investigation\"}},[_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\":11}},[_c('el-form-item',{attrs:{\"label\":\"调查时间\",\"prop\":\"InvestigationYearMonth\"}},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM\",\"type\":\"month\"},model:{value:(_vm.investigationYearMonth),callback:function ($$v) {_vm.investigationYearMonth=$$v},expression:\"investigationYearMonth\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"调查面积\",\"prop\":\"InvestigationArea\"}},[_c('el-input',{model:{value:(_vm.form.InvestigationArea),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationArea\", $$v)},expression:\"form.InvestigationArea\"}},[_c('template',{slot:\"append\"},[_vm._v(\"平方米\")])],2)],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"调查地点\",\"prop\":\"InvestigationLocation\"}},[_c('el-input',{model:{value:(_vm.form.InvestigationLocation),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationLocation\", $$v)},expression:\"form.InvestigationLocation\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"四至坐标\",\"prop\":\"InvestigationCoords\"}},[_c('el-input',{model:{value:(_vm.form.InvestigationCoords),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationCoords\", $$v)},expression:\"form.InvestigationCoords\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"批准文件\",\"prop\":\"InvestigationDocId\"}},[(!_vm.loading)?_c('doc-selector',{attrs:{\"docId\":_vm.form.InvestigationDocId,\"refTo\":\"investigation\"},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\":\"InvestigationFundAmount\"}},[_c('el-input',{model:{value:(_vm.form.InvestigationFundAmount),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationFundAmount\", $$v)},expression:\"form.InvestigationFundAmount\"}})],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.InvestigationFundSoruceCountry),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationFundSoruceCountry\", $$v)},expression:\"form.InvestigationFundSoruceCountry\"}}),_c('el-checkbox',{attrs:{\"label\":\"省拨\"},model:{value:(_vm.form.InvestigationFundSoruceProvince),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationFundSoruceProvince\", $$v)},expression:\"form.InvestigationFundSoruceProvince\"}}),_c('el-checkbox',{attrs:{\"label\":\"自筹\"},model:{value:(_vm.form.InvestigationFundSoruceSelf),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationFundSoruceSelf\", $$v)},expression:\"form.InvestigationFundSoruceSelf\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"调查单位\",\"prop\":\"InvestigationUnit\"}},[_c('el-input',{model:{value:(_vm.form.InvestigationUnit),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationUnit\", $$v)},expression:\"form.InvestigationUnit\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"调查性质\",\"prop\":\"InvestigationCategory\"}},[_c('el-select',{attrs:{\"placeholder\":\"\"},model:{value:(_vm.form.InvestigationCategory),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationCategory\", $$v)},expression:\"form.InvestigationCategory\"}},_vm._l((_vm.categoryList),function(e){return _c('el-option',{key:e.Key,attrs:{\"label\":e.Val,\"value\":e.Key}})}),1)],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"调查情况\",\"prop\":\"InvestigationDescription\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.InvestigationDescription),callback:function ($$v) {_vm.$set(_vm.form, \"InvestigationDescription\", $$v)},expression:\"form.InvestigationDescription\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传调查记录\",\"prop\":\"attIstRecord\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfIstRecord\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeIstRecord,\"tempGuid\":_vm.form.AttachGuidIstRecord},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传采集标本清单\",\"prop\":\"attIstSpecimen\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfIstSpecimen\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeIstSpecimen,\"tempGuid\":_vm.form.AttachGuidIstSpecimen},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传图纸\",\"prop\":\"attIstDrawing\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gyIstDrawing\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeIstDrawing,\"tempGuid\":_vm.form.AttachGuidIstDrawing},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传照片\",\"prop\":\"attIstPicture\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gyIstPicture\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeIstPicture,\"tempGuid\":_vm.form.AttachGuidIstPicture},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1)],1)],2):_vm._e(),(_vm.form.IsExploration)?_c('el-collapse-item',{attrs:{\"name\":\"exploration\"}},[_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\":11}},[_c('el-form-item',{attrs:{\"label\":\"勘探时间\",\"prop\":\"ExplorationYearMonth\"}},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM\",\"type\":\"month\"},model:{value:(_vm.explorationYearMonth),callback:function ($$v) {_vm.explorationYearMonth=$$v},expression:\"explorationYearMonth\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"勘探面积\",\"prop\":\"ExplorationArea\"}},[_c('el-input',{model:{value:(_vm.form.ExplorationArea),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationArea\", $$v)},expression:\"form.ExplorationArea\"}},[_c('template',{slot:\"append\"},[_vm._v(\"平方米\")])],2)],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"勘探地点\",\"prop\":\"ExplorationLocation\"}},[_c('el-input',{model:{value:(_vm.form.ExplorationLocation),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationLocation\", $$v)},expression:\"form.ExplorationLocation\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"四至坐标\",\"prop\":\"ExplorationCoords\"}},[_c('el-input',{model:{value:(_vm.form.ExplorationCoords),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationCoords\", $$v)},expression:\"form.ExplorationCoords\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"批准文件\",\"prop\":\"ExplorationDocId\"}},[(!_vm.loading)?_c('doc-selector',{attrs:{\"docId\":_vm.form.ExplorationDocId,\"refTo\":\"exploration\"},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\":\"ExplorationFundAmount\"}},[_c('el-input',{model:{value:(_vm.form.ExplorationFundAmount),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationFundAmount\", $$v)},expression:\"form.ExplorationFundAmount\"}})],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.ExplorationFundSoruceCountry),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationFundSoruceCountry\", $$v)},expression:\"form.ExplorationFundSoruceCountry\"}}),_c('el-checkbox',{attrs:{\"label\":\"省拨\"},model:{value:(_vm.form.ExplorationFundSoruceProvince),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationFundSoruceProvince\", $$v)},expression:\"form.ExplorationFundSoruceProvince\"}}),_c('el-checkbox',{attrs:{\"label\":\"自筹\"},model:{value:(_vm.form.ExplorationFundSoruceSelf),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationFundSoruceSelf\", $$v)},expression:\"form.ExplorationFundSoruceSelf\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"勘探单位\",\"prop\":\"ExplorationUnit\"}},[_c('el-input',{model:{value:(_vm.form.ExplorationUnit),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationUnit\", $$v)},expression:\"form.ExplorationUnit\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"勘探情况\",\"prop\":\"ExplorationDescription\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.ExplorationDescription),callback:function ($$v) {_vm.$set(_vm.form, \"ExplorationDescription\", $$v)},expression:\"form.ExplorationDescription\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传勘探记录\",\"prop\":\"attExpRecord\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfExpRecord\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeExpRecord,\"tempGuid\":_vm.form.AttachGuidExpRecord},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传小件清单\",\"prop\":\"attExpSmallPiece\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfExpSmallPiece\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeExpSmallPiece,\"tempGuid\":_vm.form.AttachGuidExpSmallPiece},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传图纸\",\"prop\":\"attExpDrawing\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gyExpDrawing\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeExpDrawing,\"tempGuid\":_vm.form.AttachGuidExpDrawing},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传照片\",\"prop\":\"attExpPicture\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gytExpPicture\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeExpPicture,\"tempGuid\":_vm.form.AttachGuidExpPicture},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1)],1)],2):_vm._e(),(_vm.form.IsDig)?_c('el-collapse-item',{attrs:{\"name\":\"dig\"}},[_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\":11}},[_c('el-form-item',{attrs:{\"label\":\"发掘时间\",\"prop\":\"DigYearMonth\"}},[_c('el-date-picker',{attrs:{\"value-format\":\"yyyy-MM\",\"type\":\"month\"},model:{value:(_vm.digYearMonth),callback:function ($$v) {_vm.digYearMonth=$$v},expression:\"digYearMonth\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"发掘面积\",\"prop\":\"DigArea\"}},[_c('el-input',{model:{value:(_vm.form.DigArea),callback:function ($$v) {_vm.$set(_vm.form, \"DigArea\", $$v)},expression:\"form.DigArea\"}},[_c('template',{slot:\"append\"},[_vm._v(\"平方米\")])],2)],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"发掘地点\",\"prop\":\"DigLocation\"}},[_c('el-input',{model:{value:(_vm.form.DigLocation),callback:function ($$v) {_vm.$set(_vm.form, \"DigLocation\", $$v)},expression:\"form.DigLocation\"}})],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"四至坐标\",\"prop\":\"DigCoords\"}},[_c('el-input',{model:{value:(_vm.form.DigCoords),callback:function ($$v) {_vm.$set(_vm.form, \"DigCoords\", $$v)},expression:\"form.DigCoords\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"批准文件\",\"prop\":\"DigDocId\"}},[(!_vm.loading)?_c('doc-selector',{attrs:{\"docId\":_vm.form.DigDocId,\"refTo\":\"dig\"},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\":\"DigFundAmount\"}},[_c('el-input',{model:{value:(_vm.form.DigFundAmount),callback:function ($$v) {_vm.$set(_vm.form, \"DigFundAmount\", $$v)},expression:\"form.DigFundAmount\"}})],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.DigFundSoruceCountry),callback:function ($$v) {_vm.$set(_vm.form, \"DigFundSoruceCountry\", $$v)},expression:\"form.DigFundSoruceCountry\"}}),_c('el-checkbox',{attrs:{\"label\":\"省拨\"},model:{value:(_vm.form.DigFundSoruceProvince),callback:function ($$v) {_vm.$set(_vm.form, \"DigFundSoruceProvince\", $$v)},expression:\"form.DigFundSoruceProvince\"}}),_c('el-checkbox',{attrs:{\"label\":\"自筹\"},model:{value:(_vm.form.DigFundSoruceSelf),callback:function ($$v) {_vm.$set(_vm.form, \"DigFundSoruceSelf\", $$v)},expression:\"form.DigFundSoruceSelf\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"发掘单位\",\"prop\":\"DigUnit\"}},[_c('el-input',{model:{value:(_vm.form.DigUnit),callback:function ($$v) {_vm.$set(_vm.form, \"DigUnit\", $$v)},expression:\"form.DigUnit\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"发掘情况\",\"prop\":\"DigDescription\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.form.DigDescription),callback:function ($$v) {_vm.$set(_vm.form, \"DigDescription\", $$v)},expression:\"form.DigDescription\"}})],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传发掘记录\",\"prop\":\"attDigRecord\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfDigRecord\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeDigRecord,\"tempGuid\":_vm.form.AttachGuidDigRecord},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"上传小件清单\",\"prop\":\"attDigSmallPiece\"}},[(!_vm.loading)?_c('single-file',{ref:\"sfDigSmallPiece\",attrs:{\"fileExt\":_vm.schemeExt,\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeDigSmallPiece,\"tempGuid\":_vm.form.AttachGuidDigSmallPiece},on:{\"fileChange\":_vm.onFileChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传图纸\",\"prop\":\"attDigDrawing\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gyDigDrawing\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeDigDrawing,\"tempGuid\":_vm.form.AttachGuidDigDrawing},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":24}},[_c('el-form-item',{attrs:{\"label\":\"上传照片\",\"prop\":\"attDigPicture\"}},[(!_vm.loading)?_c('hsp-gallery',{ref:\"gytDigPicture\",attrs:{\"referId\":_vm.form.Id,\"referType\":_vm.form.AttachTypeDigPicture,\"tempGuid\":_vm.form.AttachGuidDigPicture},on:{\"fileChange\":_vm.onGalleryChange}}):_vm._e()],1)],1)],1)],1)],2):_vm._e()],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\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 Element from 'element-ui'\r\nimport { Component, Vue, Watch, Prop } from 'vue-property-decorator'\r\nimport { UnitArchaeologyData, emptyData, getInfo, postData, putData } from '@/api/heritageUnit/unitArchaeology'\r\nimport { getLookupByType, DDLItem } from '@/api/common/select'\r\nimport { enFirstType, enLookupType } from '@/configs/enums'\r\nimport { schemeFormat } from '@/configs/fileTypes'\r\nimport { validateIntKey, validateFloat, showVaildMsg } from '@/configs/validate'\r\nimport { getDDLItem, tryToInt } from '@/configs/functions'\r\nimport { OfficialDocData } from '@/api/officialDoc/doc'\r\nimport { UploadOptData } from '@/api/common/upload'\r\nimport { AttachInfo } from '@/api/common/attach'\r\nimport hspGallery from '@/components/upload/gallery.vue'\r\nimport singleFile from '@/components/upload/singleFile.vue'\r\nimport DocSelector from '@/components/officialDoc/select.vue'\r\nimport FormDialog from '@/components/dialog/formDialog.vue'\r\n\r\nconst getFormRules = (form: { [key: string]: string }) => {\r\n return {\r\n InvestigationArea: [{ validator: validateFloat, message: '请输入数字', trigger: 'blur' }],\r\n InvestigationFundAmount: [{ validator: validateFloat, message: '请输入数字', trigger: 'blur' }],\r\n InvestigationCategory: [{ required: true, validator: validateIntKey('请选择调查性质'), trigger: 'change' }]\r\n }\r\n}\r\n@Component({\r\n components: { FormDialog, DocSelector, hspGallery, singleFile }\r\n})\r\nexport default class UnitArchaeologyForm extends Vue {\r\n public name = 'UnitArchaeologyForm'\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[] = ['base']//, 'investigation', 'exploration', 'dig']\r\n public loading: boolean = false\r\n public schemeExt: string = schemeFormat\r\n public categoryList: DDLItem[] = []\r\n public form: UnitArchaeologyData = Object.assign({}, emptyData)\r\n public rules = getFormRules(this.form)\r\n public $refs!: {\r\n formData: Element.Form\r\n sfText: singleFile\r\n sfDrawing: singleFile\r\n gyAssessment: hspGallery\r\n gyPicture: hspGallery\r\n }\r\n get investigationYearMonth(): string {\r\n const f = this.form\r\n var data = ''\r\n if (f.InvestigationYear > 0 && f.InvestigationMonth > 0) {\r\n data = f.InvestigationYear.toString() + '-' + f.InvestigationMonth.toString()\r\n }\r\n return data\r\n }\r\n set investigationYearMonth(data: string) {\r\n const f = this.form\r\n if (data != '') {\r\n let sp = data.split('-')\r\n f.InvestigationYear = tryToInt(sp[0])\r\n f.InvestigationMonth = tryToInt(sp[1])\r\n }\r\n else {\r\n f.InvestigationYear = f.InvestigationMonth = 0\r\n }\r\n }\r\n get explorationYearMonth(): string {\r\n const f = this.form\r\n var data = ''\r\n if (f.ExplorationYear > 0 && f.ExplorationMonth > 0) {\r\n data = f.ExplorationYear.toString() + '-' + f.ExplorationMonth.toString()\r\n }\r\n return data\r\n }\r\n set explorationYearMonth(data: string) {\r\n const f = this.form\r\n if (data != '') {\r\n let sp = data.split('-')\r\n f.ExplorationYear = tryToInt(sp[0])\r\n f.ExplorationMonth = tryToInt(sp[1])\r\n }\r\n else {\r\n f.ExplorationYear = f.ExplorationMonth = 0\r\n }\r\n }\r\n get digYearMonth(): string {\r\n const f = this.form\r\n var data = ''\r\n if (f.DigYear > 0 && f.DigMonth > 0) {\r\n data = f.DigYear.toString() + '-' + f.DigMonth.toString()\r\n }\r\n return data\r\n }\r\n set digYearMonth(data: string) {\r\n const f = this.form\r\n if (data != '') {\r\n let sp = data.split('-')\r\n f.DigYear = tryToInt(sp[0])\r\n f.DigMonth = tryToInt(sp[1])\r\n }\r\n else {\r\n f.DigYear = f.DigMonth = 0\r\n }\r\n }\r\n public hasIstRecord: boolean = false\r\n public hasIstSpecimen: boolean = false\r\n public hasExpRecord: boolean = false\r\n public hasExpSmallPiece: boolean = false\r\n public hasDigRecord: boolean = false\r\n public hasDigSmallPiece: 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.AttachTypeIstRecord:\r\n this.hasIstRecord = hasFile\r\n break\r\n case f.AttachTypeIstSpecimen:\r\n this.hasIstSpecimen = hasFile\r\n break\r\n case f.AttachTypeExpRecord:\r\n this.hasExpRecord = hasFile\r\n break\r\n case f.AttachTypeExpSmallPiece:\r\n this.hasExpSmallPiece = hasFile\r\n break\r\n case f.AttachTypeDigRecord:\r\n this.hasDigRecord = hasFile\r\n break\r\n case f.AttachTypeDigSmallPiece:\r\n this.hasDigSmallPiece = hasFile\r\n break\r\n default:\r\n break\r\n }\r\n }\r\n public hasIstDrawing: boolean = false\r\n public hasIstPicture: boolean = false\r\n public hasExpDrawing: boolean = false\r\n public hasExpPicture: boolean = false\r\n public hasDigDrawing: boolean = false\r\n public hasDigPicture: boolean = false\r\n public onGalleryChange(data: { opts: UploadOptData, files: AttachInfo[] }) {\r\n const list = data.files\r\n const hasFiles = list && list.length > 0\r\n const opt = data.opts\r\n const f = this.form\r\n switch (opt.refType) {\r\n case f.AttachTypeExpRecord:\r\n this.hasIstDrawing = hasFiles\r\n break\r\n case f.AttachTypeExpSmallPiece:\r\n this.hasIstPicture = hasFiles\r\n break\r\n case f.AttachTypeExpDrawing:\r\n this.hasExpDrawing = hasFiles\r\n break\r\n case f.AttachTypeExpPicture:\r\n this.hasExpPicture = hasFiles\r\n break\r\n case f.AttachTypeDigDrawing:\r\n this.hasDigDrawing = hasFiles\r\n break\r\n case f.AttachTypeDigPicture:\r\n this.hasDigPicture = hasFiles\r\n break\r\n default:\r\n break\r\n }\r\n }\r\n public getDoc(info: { data: OfficialDocData, refTo: string }) {\r\n const docId = info.data.Id\r\n if (info.refTo === 'investigation') {\r\n this.form.InvestigationDocId = docId\r\n }\r\n if (info.refTo === 'exploration') {\r\n this.form.ExplorationDocId = docId\r\n }\r\n if (info.refTo === 'dig') {\r\n this.form.DigDocId = docId\r\n }\r\n }\r\n public created() {\r\n }\r\n public fetchSource() {\r\n const firstType = enFirstType.Select\r\n if (this.categoryList.length === 0) {\r\n getLookupByType(enLookupType.InvestigationCategory, firstType).then((response: { data: any }) => {\r\n const data = response.data\r\n if (data) {\r\n this.categoryList = data\r\n }\r\n })\r\n }\r\n }\r\n public mounted() {\r\n window.eventBus.$on(\"openUnitArchaeologyForm\", (info: { unitId: number, dataId: number }) => {\r\n this.expandNames = ['base']\r\n this.fetchSource()\r\n this.fetchData(info)\r\n })\r\n }\r\n public beforeDestroy() {\r\n window.eventBus.$off(\"openUnitArchaeologyForm\")\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.form = Object.assign({}, emptyData)\r\n this.loading = true\r\n getInfo(info.dataId).then((response: { data: any }) => {\r\n this.form = response.data\r\n this.expandNames = ['base']//, 'investigation', 'exploration', 'dig']\r\n if (this.form.IsInvestigation) {\r\n this.expandNames.push('investigation')\r\n }\r\n if (this.form.IsExploration) {\r\n this.expandNames.push('exploration')\r\n }\r\n if (this.form.IsDig) {\r\n this.expandNames.push('dig')\r\n }\r\n if (info.dataId === 0) {\r\n this.form.UnitId = info.unitId\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: UnitArchaeologyData) {\r\n window.eventBus.$emit(\"submitUnitArchaeologyForm\", {\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=6f56fdf3&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 \"6f56fdf3\",\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":""}