|
|
|
@ -170,63 +170,380 @@
|
|
|
|
|
>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
<el-table v-loading="loading" :data="list"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
border highlight-current-row>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="单据号" prop="billNo" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="billType" width="100"></el-table-column>
|
|
|
|
|
<el-table-column label="单据源头类型" prop="sourceType" width="100" :formatter="formaterSourceType"></el-table-column>
|
|
|
|
|
<el-table-column label="出入库类型" prop="inOutType" width="100" :formatter="formaterInOutType"></el-table-column>
|
|
|
|
|
<el-table-column label="单据日期" prop="billDate" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="更新时间" prop="updateTime" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业" prop="fromCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业" prop="toCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="所属企业" prop="companyIdFk" width="220" :formatter="formatCompanyName"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="备注" prop="remark" width="220"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="单据号" prop="billNo" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="单据日期" prop="billDate" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="billType" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="客户端类型" prop="clientType" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="当前企业统一社会信用号" prop="companyCertNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="所属企业" prop="companyIdFk" width="220" :formatter="formatCompanyName"></el-table-column>
|
|
|
|
|
<el-table-column label="单据创建者" prop="createUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="销毁原因" prop="destoryReason" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="执行销毁人证件号" prop="excuseCode" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="执行销毁人" prop="excuseUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业" prop="fromCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业统一社会信用号" prop="fromCorpCreditNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="出入库类型" prop="inOutType" width="150" :formatter="formaterInOutType"></el-table-column>
|
|
|
|
|
<el-table-column label="退货原因" prop="returnReason" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据源头类型" prop="sourceType" width="150" :formatter="formaterSourceType"></el-table-column>
|
|
|
|
|
<el-table-column label="监督人证件号" prop="superviserCode" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="监督人姓名" prop="superviserUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业" prop="toCorp" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业统一社会信用号" prop="toCorpCreditNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="使用者信息" prop="toUserInfo" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="更新时间" prop="updateTime" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="上传人" prop="uploadUser" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark" width="220"></el-table-column>-->
|
|
|
|
|
<el-table-column label="操作" width="100" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native="handleView(scope.row,scope.index)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <pagination-->
|
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
|
|
<!-- :total="total"-->
|
|
|
|
|
<!-- :limit.sync="filterQuery.limit"-->
|
|
|
|
|
<!-- :page.sync="filterQuery.page"-->
|
|
|
|
|
<!-- @pagination="getList"-->
|
|
|
|
|
<!-- ></pagination>-->
|
|
|
|
|
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
|
<el-collapse-item name="1">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<p class="form-title">生产信息</p>
|
|
|
|
|
</template>
|
|
|
|
|
<el-table v-loading="manuOrderLoading" :data="listOrder"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
@row-click="handleSelectionChange"
|
|
|
|
|
highlight-current-row border>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="记录号" prop="recordCode" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="生产订单号" prop="billNo" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="订单日期" prop="billDate" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="DI标识" prop="nameCode" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="产品通用名称" prop="cpmctymc" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="ggxh" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="100" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native="handleViewManuOrder(scope.row,scope.index)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
|
<el-tab-pane>
|
|
|
|
|
<span slot="label">生产信息 {{ currentRow == null ? '' : currentRow.billNo }}-关联关系</span>
|
|
|
|
|
<el-table v-loading="manuCodeRelLoading" :data="listCodeRel"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
highlight-current-row border>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="UDI码" prop="code" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="父码" prop="pcode" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="产品通用名称" prop="cpmctymc" width="160"></el-table-column>
|
|
|
|
|
<el-table-column label="DI标识" prop="nameCode" width="160"></el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="ggxh" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="批次号" prop="batchNo" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="生产日期" prop="produceDate" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="失效日期" prop="expireDate" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="序列号" prop="serialNo" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="包装层级" prop="bzcj" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="包装状态" prop="packState" width="180" :formatter="formaterPackState"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="100" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native="handleViewCoderel(scope.row,scope.index)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="生产信息-详情"
|
|
|
|
|
:visible.sync="openManuOrder"
|
|
|
|
|
class="dialog-two"
|
|
|
|
|
width="60%"
|
|
|
|
|
top="5vh"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="manuOrderFormView" :rules="formRules" ref="dataForm" label-width="100px">
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="生产订单号" prop="billNo">
|
|
|
|
|
<el-input v-model="manuOrderFormView.billNo" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="订单日期" prop="billDate">
|
|
|
|
|
<el-input v-model="manuOrderFormView.billDate" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="产品通用名称" prop="cpmctymc">
|
|
|
|
|
<el-input v-model="manuOrderFormView.cpmctymc" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="规格型号" prop="ggxh">
|
|
|
|
|
<el-input v-model="manuOrderFormView.ggxh" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="产品描述" prop="cpms">
|
|
|
|
|
<el-input v-model="manuOrderFormView.cpms" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="注册/备案证号" prop="zczbhhzbapzbh">
|
|
|
|
|
<el-input v-model="manuOrderFormView.zczbhhzbapzbh" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="DI产品标识" prop="nameCode">
|
|
|
|
|
<el-input v-model="manuOrderFormView.nameCode" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="国家库UUID" prop="uuid">
|
|
|
|
|
<el-input v-model="manuOrderFormView.uuid" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="批次号" prop="batchNo">
|
|
|
|
|
<el-input v-model="manuOrderFormView.batchNo" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="生产企业" prop="manufactory">
|
|
|
|
|
<el-input v-model="manuOrderFormView.manufactory" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="更新时间" prop="updateTime">
|
|
|
|
|
<el-input v-model="manuOrderFormView.updateTime" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="所属企业" prop="companyName">
|
|
|
|
|
<el-input v-model="manuOrderFormView.companyName" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="查询记录号" prop="recordCode">
|
|
|
|
|
<el-input v-model="manuOrderFormView.recordCode" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="查询人" prop="createUser">
|
|
|
|
|
<el-input v-model="manuOrderFormView.createUser" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="医疗器械注册人" prop="ylqxzcrbarmc">
|
|
|
|
|
<el-input v-model="manuOrderFormView.ylqxzcrbarmc" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="查询方式" prop="traceType">
|
|
|
|
|
<el-input v-model="this.formateTraceType" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="manuOrderFormView.remark" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="openManuOrder = false" size="small">关闭</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="生产信息关联关系-详情"
|
|
|
|
|
:visible.sync="openManuCodeRel"
|
|
|
|
|
class="dialog-two"
|
|
|
|
|
width="60%"
|
|
|
|
|
top="5vh"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="manuOrderCodeRelFormView" :rules="formRules" ref="dataForm" label-width="100px">
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="UDI码" prop="code">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.code" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="父码" prop="pcode">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.pcode" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="批次号" prop="batchNo">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.batchNo" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="序列号" prop="serialNo">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.serialNo" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="产品通用名称" prop="cpmctymc">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.cpmctymc" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="规格型号" prop="ggxh">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.ggxh" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="生产日期" prop="produceDate">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.produceDate" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="失效日期" prop="expireDate">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.expireDate" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="包装状态" prop="packState">
|
|
|
|
|
<el-input v-model="this.formatePackState" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
|
<el-form-item label="包装层级" prop="bzcj">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.bzcj" size="small"
|
|
|
|
|
style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
|
|
|
|
|
<el-col :span="11" type="flex">
|
|
|
|
|
<el-form-item label="DI产品标识" prop="nameCode">
|
|
|
|
|
<el-input v-model="manuOrderCodeRelFormView.nameCode" size="small" style="width: 90%" :disabled="true"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="openManuCodeRel = false" size="small">关闭</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
|
<el-collapse-item name="1">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<p class="form-title">出入库单据信息</p>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:limit.sync="filterQuery.limit"
|
|
|
|
|
:page.sync="filterQuery.page"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
></pagination>
|
|
|
|
|
<el-table v-loading="loading" :data="list"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
border highlight-current-row>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="单据号" prop="billNo" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="billType" width="100"></el-table-column>
|
|
|
|
|
<el-table-column label="单据源头类型" prop="sourceType" width="100" :formatter="formaterSourceType"></el-table-column>
|
|
|
|
|
<el-table-column label="出入库类型" prop="inOutType" width="100" :formatter="formaterInOutType"></el-table-column>
|
|
|
|
|
<el-table-column label="单据日期" prop="billDate" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="更新时间" prop="updateTime" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业" prop="fromCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业" prop="toCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="所属企业" prop="companyIdFk" width="220" :formatter="formatCompanyName"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="备注" prop="remark" width="220"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="单据号" prop="billNo" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="单据日期" prop="billDate" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="billType" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="客户端类型" prop="clientType" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="当前企业统一社会信用号" prop="companyCertNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="所属企业" prop="companyIdFk" width="220" :formatter="formatCompanyName"></el-table-column>
|
|
|
|
|
<el-table-column label="单据创建者" prop="createUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="销毁原因" prop="destoryReason" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="执行销毁人证件号" prop="excuseCode" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="执行销毁人" prop="excuseUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业" prop="fromCorp" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="发货企业统一社会信用号" prop="fromCorpCreditNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="出入库类型" prop="inOutType" width="150" :formatter="formaterInOutType"></el-table-column>
|
|
|
|
|
<el-table-column label="退货原因" prop="returnReason" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="单据源头类型" prop="sourceType" width="150" :formatter="formaterSourceType"></el-table-column>
|
|
|
|
|
<el-table-column label="监督人证件号" prop="superviserCode" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="监督人姓名" prop="superviserUser" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业" prop="toCorp" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="收货企业统一社会信用号" prop="toCorpCreditNum" width="200"></el-table-column>
|
|
|
|
|
<el-table-column label="使用者信息" prop="toUserInfo" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="更新时间" prop="updateTime" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="上传人" prop="uploadUser" width="220"></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark" width="220"></el-table-column>-->
|
|
|
|
|
<el-table-column label="操作" width="100" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native="handleView(scope.row,scope.index)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="单据-详情"
|
|
|
|
@ -425,12 +742,14 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
import {filterylqxzcrbarmc,filterCpmctymc, filterGgxh, filterNameCode, sourceSearch,filterCompanyName} from "@/api/udi/udiTrace";
|
|
|
|
|
import {filterylqxzcrbarmc,filterCpmctymc, filterGgxh, filterNameCode, sourceSearch,filterCompanyName,
|
|
|
|
|
getTraceManuOrderList,getManuCodeRelList} from "@/api/udi/udiTrace";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
monitorOrder: "", // 接收定时器id,便于清除定时器
|
|
|
|
|
filterQuery: {
|
|
|
|
|
udiCode: null,
|
|
|
|
|
ylqxzcrbarmc: null,
|
|
|
|
@ -443,11 +762,29 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
manuOrderQuery: {
|
|
|
|
|
recordCode: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
manuCodeRelQuery: {
|
|
|
|
|
manuOrderIdFk: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
loading: false,
|
|
|
|
|
manuOrderLoading: false,
|
|
|
|
|
manuCodeRelLoading: false,
|
|
|
|
|
list: [],
|
|
|
|
|
listOrder: [],
|
|
|
|
|
listCodeRel: [],
|
|
|
|
|
open: false,
|
|
|
|
|
openManuOrder: false,
|
|
|
|
|
openManuCodeRel: false,
|
|
|
|
|
formView: {},
|
|
|
|
|
manuOrderFormView: {},
|
|
|
|
|
manuOrderCodeRelFormView: {},
|
|
|
|
|
showSearch: true,
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
cpmctymcList: [],
|
|
|
|
@ -460,6 +797,64 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
this.currentRow = val;
|
|
|
|
|
this.getManuCodeRel();
|
|
|
|
|
},
|
|
|
|
|
getManuCodeRel() {
|
|
|
|
|
if (this.currentRow.id == null) {
|
|
|
|
|
this.$message.error("请先选择需要查询的单据!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.manuCodeRelLoading = true;
|
|
|
|
|
this.manuCodeRelQuery.manuOrderIdFk = this.currentRow.id;
|
|
|
|
|
getManuCodeRelList(this.manuCodeRelQuery).then((res) => {
|
|
|
|
|
this.manuCodeRelLoading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.listCodeRel = res.data.list || [];
|
|
|
|
|
this.codeRelTotal = res.data.total || 0;
|
|
|
|
|
console.log(this.listCodeRel)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
this.listCodeRel = [];
|
|
|
|
|
this.codeRelTotal = 0;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.manuCodeRelLoading = false;
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.listCodeRel = [];
|
|
|
|
|
this.codeRelTotal = 0;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getManuOrderList() {
|
|
|
|
|
//清空校验结果表
|
|
|
|
|
this.listCodeRel = null;
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getTraceManuOrderList(this.manuOrderQuery).then((res) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.listOrder = res.data.list || [];
|
|
|
|
|
this.total = res.data.total || 0;
|
|
|
|
|
console.log(this.listOrder)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
this.listOrder = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.listOrder = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
orderTimeOut() {
|
|
|
|
|
// 执行逻辑代码
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
|
this.getList()
|
|
|
|
|
// 使用递归法定时执行定时器
|
|
|
|
|
this.monitorOrder = setTimeout(this.orderTimeOut, 10000);
|
|
|
|
|
},
|
|
|
|
|
formaterSourceType(row){
|
|
|
|
|
if (row.sourceType == 1) {
|
|
|
|
|
this.formateSourceType = "起始位置"
|
|
|
|
@ -583,6 +978,24 @@ export default {
|
|
|
|
|
hideSearch() {
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
},
|
|
|
|
|
handleViewCoderel(row) {
|
|
|
|
|
this.listCodeRel.forEach(obj => {
|
|
|
|
|
if (row.id == obj.id) {
|
|
|
|
|
this.manuOrderCodeRelFormView = obj
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.formViewCodeRel)
|
|
|
|
|
this.openManuCodeRel = true
|
|
|
|
|
},
|
|
|
|
|
handleViewManuOrder(row) {
|
|
|
|
|
this.listOrder.forEach(obj => {
|
|
|
|
|
if (row.id == obj.id) {
|
|
|
|
|
this.manuOrderFormView = obj
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.formView)
|
|
|
|
|
this.openManuOrder = true
|
|
|
|
|
},
|
|
|
|
|
handleView(row) {
|
|
|
|
|
this.list.forEach(obj => {
|
|
|
|
|
if (row.id == obj.id) {
|
|
|
|
@ -622,6 +1035,8 @@ export default {
|
|
|
|
|
this.list = res.data || [];
|
|
|
|
|
this.total = res.data.total || 0;
|
|
|
|
|
console.log(this.list)
|
|
|
|
|
this.manuOrderQuery.recordCode = res.data.recordCode
|
|
|
|
|
this.getManuOrderList()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
this.list = [];
|
|
|
|
@ -637,6 +1052,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.geCompanyNameList()
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
if (this.monitorOrder) {
|
|
|
|
|
clearTimeout(this.monitorOrder)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|