<template>
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="formDisabled">
      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
        <a-row>
          <a-col :span="24">
            <a-form-model-item label="key" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="key">
              <a-input-number v-model="model.key" placeholder="请输入key" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taskno">
              <a-input v-model="model.taskno" placeholder="请输入任务号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taskname">
              <a-input v-model="model.taskname" placeholder="请输入任务名称"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="modelid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modelid">
              <a-input-number v-model="model.modelid" placeholder="请输入modelid" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="ywbkid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ywbkid">
              <a-input-number v-model="model.ywbkid" placeholder="请输入ywbkid" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="ywbkname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ywbkname">
              <a-input v-model="model.ywbkname" placeholder="请输入ywbkname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="型号id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xhid">
              <a-input v-model="model.xhid" placeholder="请输入型号id"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="型号名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xhname">
              <a-input v-model="model.xhname" placeholder="请输入型号名称"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="责任部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zrbm">
              <a-input v-model="model.zrbm" placeholder="请输入责任部门"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="研制数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yzsl">
              <a-input-number v-model="model.yzsl" placeholder="请输入研制数量" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="mjid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mjid">
              <a-input-number v-model="model.mjid" placeholder="请输入mjid" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="mjname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mjname">
              <a-input v-model="model.mjname" placeholder="请输入mjname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="fxtid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fxtid">
              <a-input-number v-model="model.fxtid" placeholder="请输入fxtid" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="fxtname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fxtname">
              <a-input v-model="model.fxtname" placeholder="请输入fxtname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="研制阶段id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yzjdid">
              <a-input-number v-model="model.yzjdid" placeholder="请输入研制阶段id" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="研制阶段" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yzjdname">
              <a-input v-model="model.yzjdname" placeholder="请输入研制阶段"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务来源" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tcdw">
              <a-input v-model="model.tcdw" placeholder="请输入任务来源"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务来源简称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brief">
              <a-input v-model="model.brief" placeholder="请输入任务来源简称"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="rwnr" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rwnr">
              <a-input v-model="model.rwnr" placeholder="请输入rwnr"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="wcxs" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wcxs">
              <a-input v-model="model.wcxs" placeholder="请输入wcxs"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jylbid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jylbid">
              <a-input v-model="model.jylbid" placeholder="请输入jylbid"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jylbname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jylbname">
              <a-input v-model="model.jylbname" placeholder="请输入jylbname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="1：横向 2：纵向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hxzxid">
              <a-input-number v-model="model.hxzxid" placeholder="请输入1：横向 2：纵向" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="横向纵向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hxzxname">
              <a-input v-model="model.hxzxname" placeholder="请输入横向纵向"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jjid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jjid">
              <a-input v-model="model.jjid" placeholder="请输入jjid"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jjname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jjname">
              <a-input v-model="model.jjname" placeholder="请输入jjname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="wzktid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wzktid">
              <a-input v-model="model.wzktid" placeholder="请输入wzktid"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="wzktname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wzktname">
              <a-input v-model="model.wzktname" placeholder="请输入wzktname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="bz" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bz">
              <a-input v-model="model.bz" placeholder="请输入bz"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="status" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status">
              <a-input v-model="model.status" placeholder="请输入status"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="计划开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jhkssj">
              <j-date placeholder="请选择计划开始时间" v-model="model.jhkssj"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="计划完成时间（进度要求）" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jhwcsj">
              <j-date placeholder="请选择计划完成时间（进度要求）" v-model="model.jhwcsj"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="下达部门id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jycsid">
              <a-input v-model="model.jycsid" placeholder="请输入下达部门id"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="下达部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jycs">
              <a-input v-model="model.jycs" placeholder="请输入下达部门"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jyfzrid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jyfzrid">
              <a-input v-model="model.jyfzrid" placeholder="请输入jyfzrid"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jyfzrname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jyfzrname">
              <a-input v-model="model.jyfzrname" placeholder="请输入jyfzrname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="计划开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ztdd">
              <a-input v-model="model.ztdd" placeholder="请输入计划开始时间"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="计划完成时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ztddname">
              <a-input v-model="model.ztddname" placeholder="请输入计划完成时间"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="sybdd" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sybdd">
              <a-input v-model="model.sybdd" placeholder="请输入sybdd"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="sybddname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sybddname">
              <a-input v-model="model.sybddname" placeholder="请输入sybddname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="ywfzr" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ywfzr">
              <a-input v-model="model.ywfzr" placeholder="请输入ywfzr"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="ywfzrname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ywfzrname">
              <a-input v-model="model.ywfzrname" placeholder="请输入ywfzrname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zlgcs" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zlgcs">
              <a-input v-model="model.zlgcs" placeholder="请输入zlgcs"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zlgcsname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zlgcsname">
              <a-input v-model="model.zlgcsname" placeholder="请输入zlgcsname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="cpbzr" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cpbzr">
              <a-input v-model="model.cpbzr" placeholder="请输入cpbzr"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="cpbzrname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cpbzrname">
              <a-input v-model="model.cpbzrname" placeholder="请输入cpbzrname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="实际开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sjkssj">
              <j-date placeholder="请选择实际开始时间" v-model="model.sjkssj"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="实际完成时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sjwcsj">
              <j-date placeholder="请选择实际完成时间" v-model="model.sjwcsj"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="avidm" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="avidm">
              <a-input v-model="model.avidm" placeholder="请输入avidm"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务下达时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lrsj">
              <j-date placeholder="请选择任务下达时间" v-model="model.lrsj"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="xhzzr" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xhzzr">
              <a-input v-model="model.xhzzr" placeholder="请输入xhzzr"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="xhzzrname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xhzzrname">
              <a-input v-model="model.xhzzrname" placeholder="请输入xhzzrname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="csbh" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="csbh">
              <a-input v-model="model.csbh" placeholder="请输入csbh"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="ywcs" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ywcs">
              <a-input v-model="model.ywcs" placeholder="请输入ywcs"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="pncode" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pncode">
              <a-input v-model="model.pncode" placeholder="请输入pncode"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="emergent" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="emergent">
              <a-input v-model="model.emergent" placeholder="请输入emergent"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zrbmGuid" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zrbmGuid">
              <a-input v-model="model.zrbmGuid" placeholder="请输入zrbmGuid"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="业务员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="businessman">
              <a-input v-model="model.businessman" placeholder="请输入业务员"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="审计审价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="auditprice">
              <a-input v-model="model.auditprice" placeholder="请输入审计审价"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tasktype">
              <a-input v-model="model.tasktype" placeholder="请输入任务类型"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="tasktypes" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tasktypes">
              <a-input v-model="model.tasktypes" placeholder="请输入tasktypes"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="项目进度" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processpercent">
              <a-input v-model="model.processpercent" placeholder="请输入项目进度"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="预估价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="estimationcoat">
              <a-input v-model="model.estimationcoat" placeholder="请输入预估价"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="iflag">
              <a-input v-model="model.iflag" placeholder="请输入任务状态"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="processdate" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processdate">
              <j-date placeholder="请选择processdate" v-model="model.processdate"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="processuser" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processuser">
              <a-input v-model="model.processuser" placeholder="请输入processuser"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="父级任务" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="reftaskno">
              <a-input v-model="model.reftaskno" placeholder="请输入父级任务"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="是否需要质保" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warranty">
              <a-input v-model="model.warranty" placeholder="请输入是否需要质保"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="质保单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warrantyunit">
              <a-input v-model="model.warrantyunit" placeholder="请输入质保单位"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="合同额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="contractlimit">
              <a-input v-model="model.contractlimit" placeholder="请输入合同额"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="businessmanname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="businessmanname">
              <a-input v-model="model.businessmanname" placeholder="请输入businessmanname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="批产任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pccode">
              <a-input v-model="model.pccode" placeholder="请输入批产任务号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="备产任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bccode">
              <a-input v-model="model.bccode" placeholder="请输入备产任务号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="备料任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="blcode">
              <a-input v-model="model.blcode" placeholder="请输入备料任务号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="gdtext" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gdtext">
              <a-input v-model="model.gdtext" placeholder="请输入gdtext"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="contractsign" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="contractsign">
              <a-input v-model="model.contractsign" placeholder="请输入contractsign"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="thirdparty" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="thirdparty">
              <a-input v-model="model.thirdparty" placeholder="请输入thirdparty"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="考核扣款" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="khkk">
              <a-input v-model="model.khkk" placeholder="请输入考核扣款"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="currenttask" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currenttask">
              <a-input v-model="model.currenttask" placeholder="请输入currenttask"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="isunittestproject" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isunittestproject">
              <a-input v-model="model.isunittestproject" placeholder="请输入isunittestproject"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="管控等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gkdj">
              <a-input v-model="model.gkdj" placeholder="请输入管控等级"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zjname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zjname">
              <a-input v-model="model.zjname" placeholder="请输入zjname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zhuazhorgidname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zhuazhorgidname">
              <a-input v-model="model.zhuazhorgidname" placeholder="请输入zhuazhorgidname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="任务分类" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specialtask">
              <a-input v-model="model.specialtask" placeholder="请输入任务分类"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="主任务编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mainprojectno">
              <a-input v-model="model.mainprojectno" placeholder="请输入主任务编号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="合同乙方" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="htyf">
              <a-input v-model="model.htyf" placeholder="请输入合同乙方"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="是否决算" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isjues">
              <a-input v-model="model.isjues" placeholder="请输入是否决算"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="projectaccountno" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="projectaccountno">
              <a-input v-model="model.projectaccountno" placeholder="请输入projectaccountno"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="projectgatherno" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="projectgatherno">
              <a-input v-model="model.projectgatherno" placeholder="请输入projectgatherno"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="基线编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jxno">
              <a-input v-model="model.jxno" placeholder="请输入基线编号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="issendtogongchzhx" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="issendtogongchzhx">
              <a-input v-model="model.issendtogongchzhx" placeholder="请输入issendtogongchzhx"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="应用部位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="application">
              <a-input v-model="model.application" placeholder="请输入应用部位"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="pay" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pay">
              <a-input v-model="model.pay" placeholder="请输入pay"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="评测方" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="reviewer">
              <a-input v-model="model.reviewer" placeholder="请输入评测方"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="softwaretype1" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="softwaretype1">
              <a-input v-model="model.softwaretype1" placeholder="请输入softwaretype1"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="software" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="software">
              <a-input v-model="model.software" placeholder="请输入software"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="foreigntrade" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="foreigntrade">
              <a-input v-model="model.foreigntrade" placeholder="请输入foreigntrade"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="jfqk" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jfqk">
              <a-textarea v-model="model.jfqk" rows="4" placeholder="请输入jfqk" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="wzsbno" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wzsbno">
              <a-input v-model="model.wzsbno" placeholder="请输入wzsbno"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="产品规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productspec">
              <a-input v-model="model.productspec" placeholder="请输入产品规格"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="name" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name">
              <a-input v-model="model.name" placeholder="请输入name"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="briefname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="briefname">
              <a-input v-model="model.briefname" placeholder="请输入briefname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="processpercent1" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processpercent1">
              <a-input v-model="model.processpercent1" placeholder="请输入processpercent1"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="estimationcoat1" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="estimationcoat1">
              <a-input v-model="model.estimationcoat1" placeholder="请输入estimationcoat1"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="物资计划员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wzjhyname">
              <a-input v-model="model.wzjhyname" placeholder="请输入物资计划员"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="warrantybasis" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warrantybasis">
              <a-input v-model="model.warrantybasis" placeholder="请输入warrantybasis"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="costprice" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costprice">
              <a-input v-model="model.costprice" placeholder="请输入costprice"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="isbaox" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isbaox">
              <a-input v-model="model.isbaox" placeholder="请输入isbaox"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="软件类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="softwaretype">
              <a-input v-model="model.softwaretype" placeholder="请输入软件类型"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="有无软件" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ishavesoftware">
              <a-input v-model="model.ishavesoftware" placeholder="请输入有无软件"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="completeremark" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="completeremark">
              <a-input v-model="model.completeremark" placeholder="请输入completeremark"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="zj" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zj">
              <a-input v-model="model.zj" placeholder="请输入zj"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="exampletest" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="exampletest">
              <a-input v-model="model.exampletest" placeholder="请输入exampletest"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="taskarea" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taskarea">
              <a-input v-model="model.taskarea" placeholder="请输入taskarea"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="fundsfrom" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fundsfrom">
              <a-input v-model="model.fundsfrom" placeholder="请输入fundsfrom"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="examplequantity" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="examplequantity">
              <a-input v-model="model.examplequantity" placeholder="请输入examplequantity"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="invoicetype" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="invoicetype">
              <a-input v-model="model.invoicetype" placeholder="请输入invoicetype"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="cbgcsname" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cbgcsname">
              <a-input v-model="model.cbgcsname" placeholder="请输入cbgcsname"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="producttype" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="producttype">
              <a-input v-model="model.producttype" placeholder="请输入producttype"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="completeremarkdatetime" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="completeremarkdatetime">
              <j-date placeholder="请选择completeremarkdatetime" v-model="model.completeremarkdatetime"  style="width: 100%" />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </j-form-container>
  </a-spin>
</template>

<script>

  import { httpAction, getAction } from '@/api/manage'
  import { validateDuplicateValue } from '@/utils/util'

  export default {
    name: 'KyTaskInfoForm',
    components: {
    },
    props: {
      //表单禁用
      disabled: {
        type: Boolean,
        default: false,
        required: false
      }
    },
    data () {
      return {
        model:{
         },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        confirmLoading: false,
        validatorRules: {
           key: [
              { required: true, message: '请输入key!'},
           ],
        },
        url: {
          add: "/kyTaskInfo/kyTaskInfo/add",
          edit: "/kyTaskInfo/kyTaskInfo/edit",
          queryById: "/kyTaskInfo/kyTaskInfo/queryById"
        }
      }
    },
    computed: {
      formDisabled(){
        return this.disabled
      },
    },
    created () {
       //备份model原始值
      this.modelDefault = JSON.parse(JSON.stringify(this.model));
    },
    methods: {
      add () {
        this.edit(this.modelDefault);
      },
      edit (record) {
        this.model = Object.assign({}, record);
        this.visible = true;
      },
      submitForm () {
        const that = this;
        // 触发表单验证
        this.$refs.form.validate(valid => {
          if (valid) {
            that.confirmLoading = true;
            let httpurl = '';
            let method = '';
            if(!this.model.id){
              httpurl+=this.url.add;
              method = 'post';
            }else{
              httpurl+=this.url.edit;
               method = 'put';
            }
            httpAction(httpurl,this.model,method).then((res)=>{
              if(res.success){
                that.$message.success(res.message);
                that.$emit('ok');
              }else{
                that.$message.warning(res.message);
              }
            }).finally(() => {
              that.confirmLoading = false;
            })
          }
         
        })
      },
    }
  }
</script>