浏览代码

物资出库单、物资出库明细

LLL 1 年之前
父节点
当前提交
e37b9022e3

+ 411 - 0
src/views/module_kzks/wzOutboundOrder/WzOutboundOrderBList.vue

@@ -0,0 +1,411 @@
+<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('物资出库明细')">导出</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>
+
+    <wz-outbound-order-b-modal ref="modalForm" @ok="modalFormOk"></wz-outbound-order-b-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import WzOutboundOrderBModal from './modules/WzOutboundOrderBModal'
+
+  export default {
+    name: 'WzOutboundOrderBList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      WzOutboundOrderBModal
+    },
+    data () {
+      return {
+        description: '物资出库明细管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'物料编码',
+            align:"center",
+            dataIndex: 'wlbm'
+          },
+          {
+            title:'物料名称',
+            align:"center",
+            dataIndex: 'wlmc'
+          },
+          {
+            title:'规格型号',
+            align:"center",
+            dataIndex: 'ggxh'
+          },
+          {
+            title:'牌号',
+            align:"center",
+            dataIndex: 'ph'
+          },
+          {
+            title:'详细技术规范',
+            align:"center",
+            dataIndex: 'xxjsgf'
+          },
+          {
+            title:'技术标准',
+            align:"center",
+            dataIndex: 'jsbz'
+          },
+          {
+            title:'质量等级',
+            align:"center",
+            dataIndex: 'zldj'
+          },
+          {
+            title:'封装形式',
+            align:"center",
+            dataIndex: 'fzxs'
+          },
+          {
+            title:'生产厂家',
+            align:"center",
+            dataIndex: 'sccj'
+          },
+          {
+            title:'国产进口',
+            align:"center",
+            dataIndex: 'gcjk'
+          },
+          {
+            title:'采购单价',
+            align:"center",
+            dataIndex: 'cgdj'
+          },
+          {
+            title:'内部单价',
+            align:"center",
+            dataIndex: 'nbdj'
+          },
+          {
+            title:'备料计划单据号',
+            align:"center",
+            dataIndex: 'bljhdjh'
+          },
+          {
+            title:'行号',
+            align:"center",
+            dataIndex: 'hh'
+          },
+          {
+            title:'出库日期',
+            align:"center",
+            dataIndex: 'ckrq'
+          },
+          {
+            title:'实发主数量',
+            align:"center",
+            dataIndex: 'sfzsl'
+          },
+          {
+            title:'应发主数量',
+            align:"center",
+            dataIndex: 'yfzsl'
+          },
+          {
+            title:'入库批次号',
+            align:"center",
+            dataIndex: 'rkpch'
+          },
+          {
+            title:'型号规格技术指标',
+            align:"center",
+            dataIndex: 'xhgljszb'
+          },
+          {
+            title:'工序单号',
+            align:"center",
+            dataIndex: 'gxdh'
+          },
+          {
+            title:'DPA号',
+            align:"center",
+            dataIndex: 'dpah'
+          },
+          {
+            title:'合格证上传情况',
+            align:"center",
+            dataIndex: 'hgzscqk'
+          },
+          {
+            title:'质保有效期',
+            align:"center",
+            dataIndex: 'zbyxq'
+          },
+          {
+            title:'外观标识',
+            align:"center",
+            dataIndex: 'wgbs'
+          },
+          {
+            title:'供应商批次号',
+            align:"center",
+            dataIndex: 'gyspch'
+          },
+          {
+            title:'库位号',
+            align:"center",
+            dataIndex: 'kwh'
+          },
+          {
+            title:'质保单位',
+            align:"center",
+            dataIndex: 'zbdw'
+          },
+          {
+            title:'质保依据',
+            align:"center",
+            dataIndex: 'zbyj'
+          },
+          {
+            title:'任务号',
+            align:"center",
+            dataIndex: 'rwh'
+          },
+          {
+            title:'元器件分类',
+            align:"center",
+            dataIndex: 'yqjfl'
+          },
+          {
+            title:'出库备注',
+            align:"center",
+            dataIndex: 'ckbz'
+          },
+          {
+            title:'出库单表头主键',
+            align:"center",
+            dataIndex: 'ckdbtzj'
+          },
+          {
+            title:'出库单表体主键',
+            align:"center",
+            dataIndex: 'ckdbtizj'
+          },
+          {
+            title:'来源单据号',
+            align:"center",
+            dataIndex: 'lydjh'
+          },
+          {
+            title:'来源单类型编码',
+            align:"center",
+            dataIndex: 'lydlxbm'
+          },
+          {
+            title:'来源交易类型主键',
+            align:"center",
+            dataIndex: 'lyjylxzj'
+          },
+          {
+            title:'件数',
+            align:"center",
+            dataIndex: 'js'
+          },
+          {
+            title:'条码',
+            align:"center",
+            dataIndex: 'tm'
+          },
+          {
+            title:'出库单号',
+            align:"center",
+            dataIndex: 'ckdh'
+          },
+          {
+            title:'复验单位',
+            align:"center",
+            dataIndex: 'fydw'
+          },
+          {
+            title:'最新时间戳',
+            align:"center",
+            dataIndex: 'zxsjc'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/wzOutboundOrder/wzOutboundOrderB/list",
+          delete: "/wzOutboundOrder/wzOutboundOrderB/delete",
+          deleteBatch: "/wzOutboundOrder/wzOutboundOrderB/deleteBatch",
+          exportXlsUrl: "/wzOutboundOrder/wzOutboundOrderB/exportXls",
+          importExcelUrl: "wzOutboundOrder/wzOutboundOrderB/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'wlbm',text:'物料编码'})
+        fieldList.push({type:'string',value:'wlmc',text:'物料名称'})
+        fieldList.push({type:'string',value:'ggxh',text:'规格型号'})
+        fieldList.push({type:'string',value:'ph',text:'牌号'})
+        fieldList.push({type:'string',value:'xxjsgf',text:'详细技术规范'})
+        fieldList.push({type:'string',value:'jsbz',text:'技术标准'})
+        fieldList.push({type:'string',value:'zldj',text:'质量等级'})
+        fieldList.push({type:'string',value:'fzxs',text:'封装形式'})
+        fieldList.push({type:'string',value:'sccj',text:'生产厂家'})
+        fieldList.push({type:'string',value:'gcjk',text:'国产进口'})
+        fieldList.push({type:'number',value:'cgdj',text:'采购单价'})
+        fieldList.push({type:'number',value:'nbdj',text:'内部单价'})
+        fieldList.push({type:'string',value:'bljhdjh',text:'备料计划单据号'})
+        fieldList.push({type:'string',value:'hh',text:'行号'})
+        fieldList.push({type:'string',value:'ckrq',text:'出库日期'})
+        fieldList.push({type:'number',value:'sfzsl',text:'实发主数量'})
+        fieldList.push({type:'number',value:'yfzsl',text:'应发主数量'})
+        fieldList.push({type:'string',value:'rkpch',text:'入库批次号'})
+        fieldList.push({type:'string',value:'xhgljszb',text:'型号规格技术指标'})
+        fieldList.push({type:'string',value:'gxdh',text:'工序单号'})
+        fieldList.push({type:'string',value:'dpah',text:'DPA号'})
+        fieldList.push({type:'string',value:'hgzscqk',text:'合格证上传情况'})
+        fieldList.push({type:'string',value:'zbyxq',text:'质保有效期'})
+        fieldList.push({type:'string',value:'wgbs',text:'外观标识'})
+        fieldList.push({type:'string',value:'gyspch',text:'供应商批次号'})
+        fieldList.push({type:'string',value:'kwh',text:'库位号'})
+        fieldList.push({type:'string',value:'zbdw',text:'质保单位'})
+        fieldList.push({type:'string',value:'zbyj',text:'质保依据'})
+        fieldList.push({type:'string',value:'rwh',text:'任务号'})
+        fieldList.push({type:'string',value:'yqjfl',text:'元器件分类'})
+        fieldList.push({type:'string',value:'ckbz',text:'出库备注'})
+        fieldList.push({type:'string',value:'ckdbtzj',text:'出库单表头主键'})
+        fieldList.push({type:'string',value:'ckdbtizj',text:'出库单表体主键'})
+        fieldList.push({type:'string',value:'lydjh',text:'来源单据号'})
+        fieldList.push({type:'string',value:'lydlxbm',text:'来源单类型编码'})
+        fieldList.push({type:'string',value:'lyjylxzj',text:'来源交易类型主键'})
+        fieldList.push({type:'string',value:'js',text:'件数'})
+        fieldList.push({type:'string',value:'tm',text:'条码'})
+        fieldList.push({type:'string',value:'ckdh',text:'出库单号'})
+        fieldList.push({type:'string',value:'fydw',text:'复验单位'})
+        fieldList.push({type:'string',value:'zxsjc',text:'最新时间戳'})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 297 - 0
src/views/module_kzks/wzOutboundOrder/WzOutboundOrderHList.vue

@@ -0,0 +1,297 @@
+<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('物资出库单')">导出</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>
+
+    <wz-outbound-order-h-modal ref="modalForm" @ok="modalFormOk"></wz-outbound-order-h-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import WzOutboundOrderHModal from './modules/WzOutboundOrderHModal'
+
+  export default {
+    name: 'WzOutboundOrderHList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      WzOutboundOrderHModal
+    },
+    data () {
+      return {
+        description: '物资出库单管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'签字人',
+            align:"center",
+            dataIndex: 'qzr'
+          },
+          {
+            title:'制单人',
+            align:"center",
+            dataIndex: 'zdr'
+          },
+          {
+            title:'领料员',
+            align:"center",
+            dataIndex: 'lly'
+          },
+          {
+            title:'领用部门',
+            align:"center",
+            dataIndex: 'lybm'
+          },
+          {
+            title:'仓库',
+            align:"center",
+            dataIndex: 'ck'
+          },
+          {
+            title:'库管员编码',
+            align:"center",
+            dataIndex: 'khybm'
+          },
+          {
+            title:'库管员名称',
+            align:"center",
+            dataIndex: 'kgymc'
+          },
+          {
+            title:'制单日期',
+            align:"center",
+            dataIndex: 'zdrq'
+          },
+          {
+            title:'单据状态',
+            align:"center",
+            dataIndex: 'djzt'
+          },
+          {
+            title:'总数量',
+            align:"center",
+            dataIndex: 'zsl'
+          },
+          {
+            title:'签字日期',
+            align:"center",
+            dataIndex: 'qzrq'
+          },
+          {
+            title:'出库单号',
+            align:"center",
+            dataIndex: 'ckdh'
+          },
+          {
+            title:'配套指令号',
+            align:"center",
+            dataIndex: 'ptzlh'
+          },
+          {
+            title:'任务号',
+            align:"center",
+            dataIndex: 'rwh'
+          },
+          {
+            title:'工程型号',
+            align:"center",
+            dataIndex: 'gcxh'
+          },
+          {
+            title:'质保单位',
+            align:"center",
+            dataIndex: 'zbdw'
+          },
+          {
+            title:'质保依据',
+            align:"center",
+            dataIndex: 'zbyj'
+          },
+          {
+            title:'板号',
+            align:"center",
+            dataIndex: 'bh'
+          },
+          {
+            title:'设备名称',
+            align:"center",
+            dataIndex: 'sbmc'
+          },
+          {
+            title:'任务阶段',
+            align:"center",
+            dataIndex: 'rwjd'
+          },
+          {
+            title:'打印次数',
+            align:"center",
+            dataIndex: 'dycs'
+          },
+          {
+            title:'出库单主键',
+            align:"center",
+            dataIndex: 'ckdzj'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/wzOutboundOrder/wzOutboundOrderH/list",
+          delete: "/wzOutboundOrder/wzOutboundOrderH/delete",
+          deleteBatch: "/wzOutboundOrder/wzOutboundOrderH/deleteBatch",
+          exportXlsUrl: "/wzOutboundOrder/wzOutboundOrderH/exportXls",
+          importExcelUrl: "wzOutboundOrder/wzOutboundOrderH/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'qzr',text:'签字人'})
+        fieldList.push({type:'string',value:'zdr',text:'制单人'})
+        fieldList.push({type:'string',value:'lly',text:'领料员'})
+        fieldList.push({type:'string',value:'lybm',text:'领用部门'})
+        fieldList.push({type:'string',value:'ck',text:'仓库'})
+        fieldList.push({type:'string',value:'khybm',text:'库管员编码'})
+        fieldList.push({type:'string',value:'kgymc',text:'库管员名称'})
+        fieldList.push({type:'string',value:'zdrq',text:'制单日期'})
+        fieldList.push({type:'string',value:'djzt',text:'单据状态'})
+        fieldList.push({type:'string',value:'zsl',text:'总数量'})
+        fieldList.push({type:'string',value:'qzrq',text:'签字日期'})
+        fieldList.push({type:'string',value:'ckdh',text:'出库单号'})
+        fieldList.push({type:'string',value:'ptzlh',text:'配套指令号'})
+        fieldList.push({type:'string',value:'rwh',text:'任务号'})
+        fieldList.push({type:'string',value:'gcxh',text:'工程型号'})
+        fieldList.push({type:'string',value:'zbdw',text:'质保单位'})
+        fieldList.push({type:'string',value:'zbyj',text:'质保依据'})
+        fieldList.push({type:'string',value:'bh',text:'板号'})
+        fieldList.push({type:'string',value:'sbmc',text:'设备名称'})
+        fieldList.push({type:'string',value:'rwjd',text:'任务阶段'})
+        fieldList.push({type:'string',value:'dycs',text:'打印次数'})
+        fieldList.push({type:'string',value:'ckdzj',text:'出库单主键'})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 304 - 0
src/views/module_kzks/wzOutboundOrder/modules/WzOutboundOrderBForm.vue

@@ -0,0 +1,304 @@
+<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="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlbm">
+              <a-input v-model="model.wlbm" placeholder="请输入物料编码"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="物料名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wlmc">
+              <a-input v-model="model.wlmc" placeholder="请输入物料名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="规格型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ggxh">
+              <a-input v-model="model.ggxh" placeholder="请输入规格型号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="牌号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ph">
+              <a-input v-model="model.ph" placeholder="请输入牌号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="详细技术规范" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xxjsgf">
+              <a-input v-model="model.xxjsgf" placeholder="请输入详细技术规范"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="技术标准" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jsbz">
+              <a-input v-model="model.jsbz" placeholder="请输入技术标准"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质量等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zldj">
+              <a-input v-model="model.zldj" placeholder="请输入质量等级"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="封装形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fzxs">
+              <a-input v-model="model.fzxs" placeholder="请输入封装形式"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="生产厂家" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sccj">
+              <a-input v-model="model.sccj" placeholder="请输入生产厂家"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="国产进口" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gcjk">
+              <a-input v-model="model.gcjk" placeholder="请输入国产进口"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="采购单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgdj">
+              <a-input-number v-model="model.cgdj" placeholder="请输入采购单价" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="内部单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="nbdj">
+              <a-input-number v-model="model.nbdj" placeholder="请输入内部单价" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="备料计划单据号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bljhdjh">
+              <a-input v-model="model.bljhdjh" placeholder="请输入备料计划单据号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="行号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hh">
+              <a-input v-model="model.hh" placeholder="请输入行号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckrq">
+              <a-input v-model="model.ckrq" placeholder="请输入出库日期"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="实发主数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sfzsl">
+              <a-input-number v-model="model.sfzsl" placeholder="请输入实发主数量" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="应发主数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yfzsl">
+              <a-input-number v-model="model.yfzsl" placeholder="请输入应发主数量" style="width: 100%" />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="入库批次号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rkpch">
+              <a-input v-model="model.rkpch" placeholder="请输入入库批次号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="型号规格技术指标" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xhgljszb">
+              <a-input v-model="model.xhgljszb" placeholder="请输入型号规格技术指标"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="工序单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gxdh">
+              <a-input v-model="model.gxdh" placeholder="请输入工序单号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="DPA号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dpah">
+              <a-input v-model="model.dpah" placeholder="请输入DPA号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="合格证上传情况" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hgzscqk">
+              <a-input v-model="model.hgzscqk" placeholder="请输入合格证上传情况"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质保有效期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbyxq">
+              <a-input v-model="model.zbyxq" placeholder="请输入质保有效期"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="外观标识" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wgbs">
+              <a-input v-model="model.wgbs" placeholder="请输入外观标识"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="供应商批次号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gyspch">
+              <a-input v-model="model.gyspch" placeholder="请输入供应商批次号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="库位号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="kwh">
+              <a-input v-model="model.kwh" placeholder="请输入库位号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质保单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbdw">
+              <a-input v-model="model.zbdw" placeholder="请输入质保单位"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质保依据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbyj">
+              <a-input v-model="model.zbyj" placeholder="请输入质保依据"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rwh">
+              <a-input v-model="model.rwh" placeholder="请输入任务号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="元器件分类" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yqjfl">
+              <a-input v-model="model.yqjfl" placeholder="请输入元器件分类"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckbz">
+              <a-input v-model="model.ckbz" placeholder="请输入出库备注"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库单表头主键" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckdbtzj">
+              <a-input v-model="model.ckdbtzj" placeholder="请输入出库单表头主键"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库单表体主键" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckdbtizj">
+              <a-input v-model="model.ckdbtizj" placeholder="请输入出库单表体主键"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="来源单据号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lydjh">
+              <a-input v-model="model.lydjh" placeholder="请输入来源单据号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="来源单类型编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lydlxbm">
+              <a-input v-model="model.lydlxbm" placeholder="请输入来源单类型编码"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="来源交易类型主键" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lyjylxzj">
+              <a-input v-model="model.lyjylxzj" placeholder="请输入来源交易类型主键"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="件数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="js">
+              <a-input v-model="model.js" placeholder="请输入件数"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="条码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tm">
+              <a-input v-model="model.tm" placeholder="请输入条码"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckdh">
+              <a-input v-model="model.ckdh" placeholder="请输入出库单号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="复验单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fydw">
+              <a-input v-model="model.fydw" placeholder="请输入复验单位"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="最新时间戳" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zxsjc">
+              <a-input v-model="model.zxsjc" placeholder="请输入最新时间戳"  ></a-input>
+            </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: 'WzOutboundOrderBForm',
+    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: {
+        },
+        url: {
+          add: "/wzOutboundOrder/wzOutboundOrderB/add",
+          edit: "/wzOutboundOrder/wzOutboundOrderB/edit",
+          queryById: "/wzOutboundOrder/wzOutboundOrderB/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/wzOutboundOrder/modules/WzOutboundOrderBModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <wz-outbound-order-b-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></wz-outbound-order-b-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 WzOutboundOrderBForm from './WzOutboundOrderBForm'
+
+  export default {
+    name: 'WzOutboundOrderBModal',
+    components: {
+      WzOutboundOrderBForm
+    },
+    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/wzOutboundOrder/modules/WzOutboundOrderBModal.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="关闭">
+    <wz-outbound-order-b-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></wz-outbound-order-b-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import WzOutboundOrderBForm from './WzOutboundOrderBForm'
+  export default {
+    name: 'WzOutboundOrderBModal',
+    components: {
+      WzOutboundOrderBForm
+    },
+    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>

+ 209 - 0
src/views/module_kzks/wzOutboundOrder/modules/WzOutboundOrderHForm.vue

@@ -0,0 +1,209 @@
+<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="签字人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="qzr">
+              <a-input v-model="model.qzr" placeholder="请输入签字人"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="制单人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zdr">
+              <a-input v-model="model.zdr" placeholder="请输入制单人"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="领料员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lly">
+              <a-input v-model="model.lly" placeholder="请输入领料员"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="领用部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lybm">
+              <a-input v-model="model.lybm" placeholder="请输入领用部门"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="仓库" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ck">
+              <a-input v-model="model.ck" placeholder="请输入仓库"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="库管员编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="khybm">
+              <a-input v-model="model.khybm" placeholder="请输入库管员编码"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="库管员名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="kgymc">
+              <a-input v-model="model.kgymc" placeholder="请输入库管员名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="制单日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zdrq">
+              <a-input v-model="model.zdrq" placeholder="请输入制单日期"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="单据状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="djzt">
+              <a-input v-model="model.djzt" placeholder="请输入单据状态"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="总数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zsl">
+              <a-input v-model="model.zsl" placeholder="请输入总数量"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="签字日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="qzrq">
+              <a-input v-model="model.qzrq" placeholder="请输入签字日期"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckdh">
+              <a-input v-model="model.ckdh" placeholder="请输入出库单号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="配套指令号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ptzlh">
+              <a-input v-model="model.ptzlh" placeholder="请输入配套指令号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="任务号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rwh">
+              <a-input v-model="model.rwh" placeholder="请输入任务号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="工程型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gcxh">
+              <a-input v-model="model.gcxh" placeholder="请输入工程型号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质保单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbdw">
+              <a-input v-model="model.zbdw" placeholder="请输入质保单位"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="质保依据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbyj">
+              <a-input v-model="model.zbyj" placeholder="请输入质保依据"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="板号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bh">
+              <a-input v-model="model.bh" placeholder="请输入板号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sbmc">
+              <a-input v-model="model.sbmc" placeholder="请输入设备名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="任务阶段" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rwjd">
+              <a-input v-model="model.rwjd" placeholder="请输入任务阶段"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="打印次数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dycs">
+              <a-input v-model="model.dycs" placeholder="请输入打印次数"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="出库单主键" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ckdzj">
+              <a-input v-model="model.ckdzj" placeholder="请输入出库单主键"  ></a-input>
+            </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: 'WzOutboundOrderHForm',
+    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: {
+        },
+        url: {
+          add: "/wzOutboundOrder/wzOutboundOrderH/add",
+          edit: "/wzOutboundOrder/wzOutboundOrderH/edit",
+          queryById: "/wzOutboundOrder/wzOutboundOrderH/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/wzOutboundOrder/modules/WzOutboundOrderHModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <wz-outbound-order-h-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></wz-outbound-order-h-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 WzOutboundOrderHForm from './WzOutboundOrderHForm'
+
+  export default {
+    name: 'WzOutboundOrderHModal',
+    components: {
+      WzOutboundOrderHForm
+    },
+    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/wzOutboundOrder/modules/WzOutboundOrderHModal.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="关闭">
+    <wz-outbound-order-h-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></wz-outbound-order-h-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import WzOutboundOrderHForm from './WzOutboundOrderHForm'
+  export default {
+    name: 'WzOutboundOrderHModal',
+    components: {
+      WzOutboundOrderHForm
+    },
+    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>