Browse Source

科研任务

LLL 1 year ago
parent
commit
82eefd99db

+ 906 - 0
src/views/module_kzks/kyTaskInfo/KyTaskInfoList.vue

@@ -0,0 +1,906 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('ky_task_info')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <ky-task-info-modal ref="modalForm" @ok="modalFormOk"></ky-task-info-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import KyTaskInfoModal from './modules/KyTaskInfoModal'
+
+  export default {
+    name: 'KyTaskInfoList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      KyTaskInfoModal
+    },
+    data () {
+      return {
+        description: 'ky_task_info管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'key',
+            align:"center",
+            dataIndex: 'key'
+          },
+          {
+            title:'任务号',
+            align:"center",
+            dataIndex: 'taskno'
+          },
+          {
+            title:'任务名称',
+            align:"center",
+            dataIndex: 'taskname'
+          },
+          {
+            title:'modelid',
+            align:"center",
+            dataIndex: 'modelid'
+          },
+          {
+            title:'ywbkid',
+            align:"center",
+            dataIndex: 'ywbkid'
+          },
+          {
+            title:'ywbkname',
+            align:"center",
+            dataIndex: 'ywbkname'
+          },
+          {
+            title:'型号id',
+            align:"center",
+            dataIndex: 'xhid'
+          },
+          {
+            title:'型号名称',
+            align:"center",
+            dataIndex: 'xhname'
+          },
+          {
+            title:'责任部门',
+            align:"center",
+            dataIndex: 'zrbm'
+          },
+          {
+            title:'研制数量',
+            align:"center",
+            dataIndex: 'yzsl'
+          },
+          {
+            title:'mjid',
+            align:"center",
+            dataIndex: 'mjid'
+          },
+          {
+            title:'mjname',
+            align:"center",
+            dataIndex: 'mjname'
+          },
+          {
+            title:'fxtid',
+            align:"center",
+            dataIndex: 'fxtid'
+          },
+          {
+            title:'fxtname',
+            align:"center",
+            dataIndex: 'fxtname'
+          },
+          {
+            title:'研制阶段id',
+            align:"center",
+            dataIndex: 'yzjdid'
+          },
+          {
+            title:'研制阶段',
+            align:"center",
+            dataIndex: 'yzjdname'
+          },
+          {
+            title:'任务来源',
+            align:"center",
+            dataIndex: 'tcdw'
+          },
+          {
+            title:'任务来源简称',
+            align:"center",
+            dataIndex: 'brief'
+          },
+          {
+            title:'rwnr',
+            align:"center",
+            dataIndex: 'rwnr'
+          },
+          {
+            title:'wcxs',
+            align:"center",
+            dataIndex: 'wcxs'
+          },
+          {
+            title:'jylbid',
+            align:"center",
+            dataIndex: 'jylbid'
+          },
+          {
+            title:'jylbname',
+            align:"center",
+            dataIndex: 'jylbname'
+          },
+          {
+            title:'1:横向 2:纵向',
+            align:"center",
+            dataIndex: 'hxzxid'
+          },
+          {
+            title:'横向纵向',
+            align:"center",
+            dataIndex: 'hxzxname'
+          },
+          {
+            title:'jjid',
+            align:"center",
+            dataIndex: 'jjid'
+          },
+          {
+            title:'jjname',
+            align:"center",
+            dataIndex: 'jjname'
+          },
+          {
+            title:'wzktid',
+            align:"center",
+            dataIndex: 'wzktid'
+          },
+          {
+            title:'wzktname',
+            align:"center",
+            dataIndex: 'wzktname'
+          },
+          {
+            title:'bz',
+            align:"center",
+            dataIndex: 'bz'
+          },
+          {
+            title:'status',
+            align:"center",
+            dataIndex: 'status'
+          },
+          {
+            title:'计划开始时间',
+            align:"center",
+            dataIndex: 'jhkssj',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'计划完成时间(进度要求)',
+            align:"center",
+            dataIndex: 'jhwcsj',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'下达部门id',
+            align:"center",
+            dataIndex: 'jycsid'
+          },
+          {
+            title:'下达部门',
+            align:"center",
+            dataIndex: 'jycs'
+          },
+          {
+            title:'jyfzrid',
+            align:"center",
+            dataIndex: 'jyfzrid'
+          },
+          {
+            title:'jyfzrname',
+            align:"center",
+            dataIndex: 'jyfzrname'
+          },
+          {
+            title:'计划开始时间',
+            align:"center",
+            dataIndex: 'ztdd'
+          },
+          {
+            title:'计划完成时间',
+            align:"center",
+            dataIndex: 'ztddname'
+          },
+          {
+            title:'sybdd',
+            align:"center",
+            dataIndex: 'sybdd'
+          },
+          {
+            title:'sybddname',
+            align:"center",
+            dataIndex: 'sybddname'
+          },
+          {
+            title:'ywfzr',
+            align:"center",
+            dataIndex: 'ywfzr'
+          },
+          {
+            title:'ywfzrname',
+            align:"center",
+            dataIndex: 'ywfzrname'
+          },
+          {
+            title:'zlgcs',
+            align:"center",
+            dataIndex: 'zlgcs'
+          },
+          {
+            title:'zlgcsname',
+            align:"center",
+            dataIndex: 'zlgcsname'
+          },
+          {
+            title:'cpbzr',
+            align:"center",
+            dataIndex: 'cpbzr'
+          },
+          {
+            title:'cpbzrname',
+            align:"center",
+            dataIndex: 'cpbzrname'
+          },
+          {
+            title:'实际开始时间',
+            align:"center",
+            dataIndex: 'sjkssj',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'实际完成时间',
+            align:"center",
+            dataIndex: 'sjwcsj',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'avidm',
+            align:"center",
+            dataIndex: 'avidm'
+          },
+          {
+            title:'任务下达时间',
+            align:"center",
+            dataIndex: 'lrsj',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'xhzzr',
+            align:"center",
+            dataIndex: 'xhzzr'
+          },
+          {
+            title:'xhzzrname',
+            align:"center",
+            dataIndex: 'xhzzrname'
+          },
+          {
+            title:'csbh',
+            align:"center",
+            dataIndex: 'csbh'
+          },
+          {
+            title:'ywcs',
+            align:"center",
+            dataIndex: 'ywcs'
+          },
+          {
+            title:'pncode',
+            align:"center",
+            dataIndex: 'pncode'
+          },
+          {
+            title:'emergent',
+            align:"center",
+            dataIndex: 'emergent'
+          },
+          {
+            title:'zrbmGuid',
+            align:"center",
+            dataIndex: 'zrbmGuid'
+          },
+          {
+            title:'业务员',
+            align:"center",
+            dataIndex: 'businessman'
+          },
+          {
+            title:'审计审价',
+            align:"center",
+            dataIndex: 'auditprice'
+          },
+          {
+            title:'任务类型',
+            align:"center",
+            dataIndex: 'tasktype'
+          },
+          {
+            title:'tasktypes',
+            align:"center",
+            dataIndex: 'tasktypes'
+          },
+          {
+            title:'项目进度',
+            align:"center",
+            dataIndex: 'processpercent'
+          },
+          {
+            title:'预估价',
+            align:"center",
+            dataIndex: 'estimationcoat'
+          },
+          {
+            title:'任务状态',
+            align:"center",
+            dataIndex: 'iflag'
+          },
+          {
+            title:'processdate',
+            align:"center",
+            dataIndex: 'processdate',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title:'processuser',
+            align:"center",
+            dataIndex: 'processuser'
+          },
+          {
+            title:'父级任务',
+            align:"center",
+            dataIndex: 'reftaskno'
+          },
+          {
+            title:'是否需要质保',
+            align:"center",
+            dataIndex: 'warranty'
+          },
+          {
+            title:'质保单位',
+            align:"center",
+            dataIndex: 'warrantyunit'
+          },
+          {
+            title:'合同额',
+            align:"center",
+            dataIndex: 'contractlimit'
+          },
+          {
+            title:'businessmanname',
+            align:"center",
+            dataIndex: 'businessmanname'
+          },
+          {
+            title:'批产任务号',
+            align:"center",
+            dataIndex: 'pccode'
+          },
+          {
+            title:'备产任务号',
+            align:"center",
+            dataIndex: 'bccode'
+          },
+          {
+            title:'备料任务号',
+            align:"center",
+            dataIndex: 'blcode'
+          },
+          {
+            title:'gdtext',
+            align:"center",
+            dataIndex: 'gdtext'
+          },
+          {
+            title:'contractsign',
+            align:"center",
+            dataIndex: 'contractsign'
+          },
+          {
+            title:'thirdparty',
+            align:"center",
+            dataIndex: 'thirdparty'
+          },
+          {
+            title:'考核扣款',
+            align:"center",
+            dataIndex: 'khkk'
+          },
+          {
+            title:'currenttask',
+            align:"center",
+            dataIndex: 'currenttask'
+          },
+          {
+            title:'isunittestproject',
+            align:"center",
+            dataIndex: 'isunittestproject'
+          },
+          {
+            title:'管控等级',
+            align:"center",
+            dataIndex: 'gkdj'
+          },
+          {
+            title:'zjname',
+            align:"center",
+            dataIndex: 'zjname'
+          },
+          {
+            title:'zhuazhorgidname',
+            align:"center",
+            dataIndex: 'zhuazhorgidname'
+          },
+          {
+            title:'任务分类',
+            align:"center",
+            dataIndex: 'specialtask'
+          },
+          {
+            title:'主任务编号',
+            align:"center",
+            dataIndex: 'mainprojectno'
+          },
+          {
+            title:'合同乙方',
+            align:"center",
+            dataIndex: 'htyf'
+          },
+          {
+            title:'是否决算',
+            align:"center",
+            dataIndex: 'isjues'
+          },
+          {
+            title:'projectaccountno',
+            align:"center",
+            dataIndex: 'projectaccountno'
+          },
+          {
+            title:'projectgatherno',
+            align:"center",
+            dataIndex: 'projectgatherno'
+          },
+          {
+            title:'基线编号',
+            align:"center",
+            dataIndex: 'jxno'
+          },
+          {
+            title:'issendtogongchzhx',
+            align:"center",
+            dataIndex: 'issendtogongchzhx'
+          },
+          {
+            title:'应用部位',
+            align:"center",
+            dataIndex: 'application'
+          },
+          {
+            title:'pay',
+            align:"center",
+            dataIndex: 'pay'
+          },
+          {
+            title:'评测方',
+            align:"center",
+            dataIndex: 'reviewer'
+          },
+          {
+            title:'softwaretype1',
+            align:"center",
+            dataIndex: 'softwaretype1'
+          },
+          {
+            title:'software',
+            align:"center",
+            dataIndex: 'software'
+          },
+          {
+            title:'foreigntrade',
+            align:"center",
+            dataIndex: 'foreigntrade'
+          },
+          {
+            title:'jfqk',
+            align:"center",
+            dataIndex: 'jfqk'
+          },
+          {
+            title:'wzsbno',
+            align:"center",
+            dataIndex: 'wzsbno'
+          },
+          {
+            title:'产品规格',
+            align:"center",
+            dataIndex: 'productspec'
+          },
+          {
+            title:'name',
+            align:"center",
+            dataIndex: 'name'
+          },
+          {
+            title:'briefname',
+            align:"center",
+            dataIndex: 'briefname'
+          },
+          {
+            title:'processpercent1',
+            align:"center",
+            dataIndex: 'processpercent1'
+          },
+          {
+            title:'estimationcoat1',
+            align:"center",
+            dataIndex: 'estimationcoat1'
+          },
+          {
+            title:'物资计划员',
+            align:"center",
+            dataIndex: 'wzjhyname'
+          },
+          {
+            title:'warrantybasis',
+            align:"center",
+            dataIndex: 'warrantybasis'
+          },
+          {
+            title:'costprice',
+            align:"center",
+            dataIndex: 'costprice'
+          },
+          {
+            title:'isbaox',
+            align:"center",
+            dataIndex: 'isbaox'
+          },
+          {
+            title:'软件类型',
+            align:"center",
+            dataIndex: 'softwaretype'
+          },
+          {
+            title:'有无软件',
+            align:"center",
+            dataIndex: 'ishavesoftware'
+          },
+          {
+            title:'completeremark',
+            align:"center",
+            dataIndex: 'completeremark'
+          },
+          {
+            title:'zj',
+            align:"center",
+            dataIndex: 'zj'
+          },
+          {
+            title:'exampletest',
+            align:"center",
+            dataIndex: 'exampletest'
+          },
+          {
+            title:'taskarea',
+            align:"center",
+            dataIndex: 'taskarea'
+          },
+          {
+            title:'fundsfrom',
+            align:"center",
+            dataIndex: 'fundsfrom'
+          },
+          {
+            title:'examplequantity',
+            align:"center",
+            dataIndex: 'examplequantity'
+          },
+          {
+            title:'invoicetype',
+            align:"center",
+            dataIndex: 'invoicetype'
+          },
+          {
+            title:'cbgcsname',
+            align:"center",
+            dataIndex: 'cbgcsname'
+          },
+          {
+            title:'producttype',
+            align:"center",
+            dataIndex: 'producttype'
+          },
+          {
+            title:'completeremarkdatetime',
+            align:"center",
+            dataIndex: 'completeremarkdatetime',
+            customRender:function (text) {
+              return !text?"":(text.length>10?text.substr(0,10):text)
+            }
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/kyTaskInfo/kyTaskInfo/list",
+          delete: "/kyTaskInfo/kyTaskInfo/delete",
+          deleteBatch: "/kyTaskInfo/kyTaskInfo/deleteBatch",
+          exportXlsUrl: "/kyTaskInfo/kyTaskInfo/exportXls",
+          importExcelUrl: "kyTaskInfo/kyTaskInfo/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'int',value:'key',text:'key'})
+        fieldList.push({type:'string',value:'taskno',text:'任务号'})
+        fieldList.push({type:'string',value:'taskname',text:'任务名称'})
+        fieldList.push({type:'int',value:'modelid',text:'modelid'})
+        fieldList.push({type:'int',value:'ywbkid',text:'ywbkid'})
+        fieldList.push({type:'string',value:'ywbkname',text:'ywbkname'})
+        fieldList.push({type:'string',value:'xhid',text:'型号id'})
+        fieldList.push({type:'string',value:'xhname',text:'型号名称'})
+        fieldList.push({type:'string',value:'zrbm',text:'责任部门'})
+        fieldList.push({type:'int',value:'yzsl',text:'研制数量'})
+        fieldList.push({type:'int',value:'mjid',text:'mjid'})
+        fieldList.push({type:'string',value:'mjname',text:'mjname'})
+        fieldList.push({type:'int',value:'fxtid',text:'fxtid'})
+        fieldList.push({type:'string',value:'fxtname',text:'fxtname'})
+        fieldList.push({type:'int',value:'yzjdid',text:'研制阶段id'})
+        fieldList.push({type:'string',value:'yzjdname',text:'研制阶段'})
+        fieldList.push({type:'string',value:'tcdw',text:'任务来源'})
+        fieldList.push({type:'string',value:'brief',text:'任务来源简称'})
+        fieldList.push({type:'string',value:'rwnr',text:'rwnr'})
+        fieldList.push({type:'string',value:'wcxs',text:'wcxs'})
+        fieldList.push({type:'string',value:'jylbid',text:'jylbid'})
+        fieldList.push({type:'string',value:'jylbname',text:'jylbname'})
+        fieldList.push({type:'int',value:'hxzxid',text:'1:横向 2:纵向'})
+        fieldList.push({type:'string',value:'hxzxname',text:'横向纵向'})
+        fieldList.push({type:'string',value:'jjid',text:'jjid'})
+        fieldList.push({type:'string',value:'jjname',text:'jjname'})
+        fieldList.push({type:'string',value:'wzktid',text:'wzktid'})
+        fieldList.push({type:'string',value:'wzktname',text:'wzktname'})
+        fieldList.push({type:'string',value:'bz',text:'bz'})
+        fieldList.push({type:'string',value:'status',text:'status'})
+        fieldList.push({type:'date',value:'jhkssj',text:'计划开始时间'})
+        fieldList.push({type:'date',value:'jhwcsj',text:'计划完成时间(进度要求)'})
+        fieldList.push({type:'string',value:'jycsid',text:'下达部门id'})
+        fieldList.push({type:'string',value:'jycs',text:'下达部门'})
+        fieldList.push({type:'string',value:'jyfzrid',text:'jyfzrid'})
+        fieldList.push({type:'string',value:'jyfzrname',text:'jyfzrname'})
+        fieldList.push({type:'string',value:'ztdd',text:'计划开始时间'})
+        fieldList.push({type:'string',value:'ztddname',text:'计划完成时间'})
+        fieldList.push({type:'string',value:'sybdd',text:'sybdd'})
+        fieldList.push({type:'string',value:'sybddname',text:'sybddname'})
+        fieldList.push({type:'string',value:'ywfzr',text:'ywfzr'})
+        fieldList.push({type:'string',value:'ywfzrname',text:'ywfzrname'})
+        fieldList.push({type:'string',value:'zlgcs',text:'zlgcs'})
+        fieldList.push({type:'string',value:'zlgcsname',text:'zlgcsname'})
+        fieldList.push({type:'string',value:'cpbzr',text:'cpbzr'})
+        fieldList.push({type:'string',value:'cpbzrname',text:'cpbzrname'})
+        fieldList.push({type:'date',value:'sjkssj',text:'实际开始时间'})
+        fieldList.push({type:'date',value:'sjwcsj',text:'实际完成时间'})
+        fieldList.push({type:'string',value:'avidm',text:'avidm'})
+        fieldList.push({type:'date',value:'lrsj',text:'任务下达时间'})
+        fieldList.push({type:'string',value:'xhzzr',text:'xhzzr'})
+        fieldList.push({type:'string',value:'xhzzrname',text:'xhzzrname'})
+        fieldList.push({type:'string',value:'csbh',text:'csbh'})
+        fieldList.push({type:'string',value:'ywcs',text:'ywcs'})
+        fieldList.push({type:'string',value:'pncode',text:'pncode'})
+        fieldList.push({type:'string',value:'emergent',text:'emergent'})
+        fieldList.push({type:'string',value:'zrbmGuid',text:'zrbmGuid'})
+        fieldList.push({type:'string',value:'businessman',text:'业务员'})
+        fieldList.push({type:'string',value:'auditprice',text:'审计审价'})
+        fieldList.push({type:'string',value:'tasktype',text:'任务类型'})
+        fieldList.push({type:'string',value:'tasktypes',text:'tasktypes'})
+        fieldList.push({type:'string',value:'processpercent',text:'项目进度'})
+        fieldList.push({type:'string',value:'estimationcoat',text:'预估价'})
+        fieldList.push({type:'string',value:'iflag',text:'任务状态'})
+        fieldList.push({type:'date',value:'processdate',text:'processdate'})
+        fieldList.push({type:'string',value:'processuser',text:'processuser'})
+        fieldList.push({type:'string',value:'reftaskno',text:'父级任务'})
+        fieldList.push({type:'string',value:'warranty',text:'是否需要质保'})
+        fieldList.push({type:'string',value:'warrantyunit',text:'质保单位'})
+        fieldList.push({type:'string',value:'contractlimit',text:'合同额'})
+        fieldList.push({type:'string',value:'businessmanname',text:'businessmanname'})
+        fieldList.push({type:'string',value:'pccode',text:'批产任务号'})
+        fieldList.push({type:'string',value:'bccode',text:'备产任务号'})
+        fieldList.push({type:'string',value:'blcode',text:'备料任务号'})
+        fieldList.push({type:'string',value:'gdtext',text:'gdtext'})
+        fieldList.push({type:'string',value:'contractsign',text:'contractsign'})
+        fieldList.push({type:'string',value:'thirdparty',text:'thirdparty'})
+        fieldList.push({type:'string',value:'khkk',text:'考核扣款'})
+        fieldList.push({type:'string',value:'currenttask',text:'currenttask'})
+        fieldList.push({type:'string',value:'isunittestproject',text:'isunittestproject'})
+        fieldList.push({type:'string',value:'gkdj',text:'管控等级'})
+        fieldList.push({type:'string',value:'zjname',text:'zjname'})
+        fieldList.push({type:'string',value:'zhuazhorgidname',text:'zhuazhorgidname'})
+        fieldList.push({type:'string',value:'specialtask',text:'任务分类'})
+        fieldList.push({type:'string',value:'mainprojectno',text:'主任务编号'})
+        fieldList.push({type:'string',value:'htyf',text:'合同乙方'})
+        fieldList.push({type:'string',value:'isjues',text:'是否决算'})
+        fieldList.push({type:'string',value:'projectaccountno',text:'projectaccountno'})
+        fieldList.push({type:'string',value:'projectgatherno',text:'projectgatherno'})
+        fieldList.push({type:'string',value:'jxno',text:'基线编号'})
+        fieldList.push({type:'string',value:'issendtogongchzhx',text:'issendtogongchzhx'})
+        fieldList.push({type:'string',value:'application',text:'应用部位'})
+        fieldList.push({type:'string',value:'pay',text:'pay'})
+        fieldList.push({type:'string',value:'reviewer',text:'评测方'})
+        fieldList.push({type:'string',value:'softwaretype1',text:'softwaretype1'})
+        fieldList.push({type:'string',value:'software',text:'software'})
+        fieldList.push({type:'string',value:'foreigntrade',text:'foreigntrade'})
+        fieldList.push({type:'string',value:'jfqk',text:'jfqk'})
+        fieldList.push({type:'string',value:'wzsbno',text:'wzsbno'})
+        fieldList.push({type:'string',value:'productspec',text:'产品规格'})
+        fieldList.push({type:'string',value:'name',text:'name'})
+        fieldList.push({type:'string',value:'briefname',text:'briefname'})
+        fieldList.push({type:'string',value:'processpercent1',text:'processpercent1'})
+        fieldList.push({type:'string',value:'estimationcoat1',text:'estimationcoat1'})
+        fieldList.push({type:'string',value:'wzjhyname',text:'物资计划员'})
+        fieldList.push({type:'string',value:'warrantybasis',text:'warrantybasis'})
+        fieldList.push({type:'string',value:'costprice',text:'costprice'})
+        fieldList.push({type:'string',value:'isbaox',text:'isbaox'})
+        fieldList.push({type:'string',value:'softwaretype',text:'软件类型'})
+        fieldList.push({type:'string',value:'ishavesoftware',text:'有无软件'})
+        fieldList.push({type:'string',value:'completeremark',text:'completeremark'})
+        fieldList.push({type:'string',value:'zj',text:'zj'})
+        fieldList.push({type:'string',value:'exampletest',text:'exampletest'})
+        fieldList.push({type:'string',value:'taskarea',text:'taskarea'})
+        fieldList.push({type:'string',value:'fundsfrom',text:'fundsfrom'})
+        fieldList.push({type:'string',value:'examplequantity',text:'examplequantity'})
+        fieldList.push({type:'string',value:'invoicetype',text:'invoicetype'})
+        fieldList.push({type:'string',value:'cbgcsname',text:'cbgcsname'})
+        fieldList.push({type:'string',value:'producttype',text:'producttype'})
+        fieldList.push({type:'date',value:'completeremarkdatetime',text:'completeremarkdatetime'})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 702 - 0
src/views/module_kzks/kyTaskInfo/modules/KyTaskInfoForm.vue

@@ -0,0 +1,702 @@
+<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>

+ 84 - 0
src/views/module_kzks/kyTaskInfo/modules/KyTaskInfoModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <ky-task-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></ky-task-info-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import KyTaskInfoForm from './KyTaskInfoForm'
+
+  export default {
+    name: 'KyTaskInfoModal',
+    components: {
+      KyTaskInfoForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
src/views/module_kzks/kyTaskInfo/modules/KyTaskInfoModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <ky-task-info-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></ky-task-info-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import KyTaskInfoForm from './KyTaskInfoForm'
+  export default {
+    name: 'KyTaskInfoModal',
+    components: {
+      KyTaskInfoForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>