(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21e777"],{d64c:function(l,e,a){"use strict";a.r(e);var o=function(){var l=this,e=l.$createElement,a=l._self._c||e;return a("j-modal",{attrs:{title:l.title,width:l.width,visible:l.visible,confirmLoading:l.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:l.handleOk,cancel:l.handleCancel}},[a("a-spin",{attrs:{spinning:l.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{model:l.model,rules:l.validatorRules}},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"项目名称",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"xmmc"}},[a("j-popup",{attrs:{field:"xmmc","org-fields":"hlmc","dest-fields":"xmmc",code:"xmgclist",multi:!0},on:{input:l.popupCallback},model:{value:l.model.xmmc,callback:function(e){l.$set(l.model,"xmmc",e)},expression:"model.xmmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"任务名称",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"rwmc"}},[a("a-input",{attrs:{placeholder:"请输入任务名称"},model:{value:l.model.rwmc,callback:function(e){l.$set(l.model,"rwmc",e)},expression:"model.rwmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"项目ID",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"xmid"}},[a("a-input",{attrs:{placeholder:"请输入项目ID"},model:{value:l.model.xmid,callback:function(e){l.$set(l.model,"xmid",e)},expression:"model.xmid"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"采集类型",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"cjlx"}},[a("j-dict-select-tag",{attrs:{type:"list",dictCode:"cjlx",placeholder:"请选择采集类型"},model:{value:l.model.cjlx,callback:function(e){l.$set(l.model,"cjlx",e)},expression:"model.cjlx"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"任务描述",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"rwms"}},[a("a-input",{attrs:{placeholder:"请输入任务描述"},model:{value:l.model.rwms,callback:function(e){l.$set(l.model,"rwms",e)},expression:"model.rwms"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"任务完成日期",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"rwwcrq"}},[a("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择任务完成日期"},model:{value:l.model.rwwcrq,callback:function(e){l.$set(l.model,"rwwcrq",e)},expression:"model.rwwcrq"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"任务完成人员",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"rwwcry"}},[a("a-input",{attrs:{placeholder:"请输入任务完成人员"},model:{value:l.model.rwwcry,callback:function(e){l.$set(l.model,"rwwcry",e)},expression:"model.rwwcry"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmSjcjrwbModal",components:{},data:function(){return{title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/hzz.shjsgc.sjcjrwb/rmSjcjrwb/add",edit:"/hzz.shjsgc.sjcjrwb/rmSjcjrwb/edit"}}},created:function(){this.modelDefault=JSON.parse(JSON.stringify(this.model))},methods:{add:function(){this.edit(this.modelDefault)},edit:function(l){this.model=Object.assign({},l),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.clearValidate()},handleOk:function(){var l=this,e=this;this.$refs.form.validate((function(a){if(!a)return!1;e.confirmLoading=!0;var o="",t="";l.model.id?(o+=l.url.edit,t="put"):(o+=l.url.add,t="post"),Object(r["h"])(o,l.model,t).then((function(l){l.success?(e.$message.success(l.message),e.$emit("ok")):e.$message.warning(l.message)})).finally((function(){e.confirmLoading=!1,e.close()}))}))},handleCancel:function(){this.close()},popupCallback:function(l,e){this.model=Object.assign(this.model,e)}}}),c=s,i=a("2877"),m=Object(i["a"])(c,o,t,!1,null,null,null);e["default"]=m.exports}}]);