UDI查询模块代码修改
parent
5304d521d1
commit
ce49fb244f
@ -0,0 +1,331 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card>
|
||||||
|
<el-form>
|
||||||
|
<el-row type="flex">
|
||||||
|
<el-col type="flex" :span="8">
|
||||||
|
<el-form-item label="当前所在企业:">
|
||||||
|
<el-input v-model="filterQuery.companyName"
|
||||||
|
style="width: 200px;"
|
||||||
|
placeholder="请输入当前所在企业"
|
||||||
|
@keyup.native="onSubmit"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col type="flex" :span="16">
|
||||||
|
<el-form-item label="UDI码查询:">
|
||||||
|
<el-input v-model="filterQuery.udiCode" placeholder="UDI码查询(源头查询)"
|
||||||
|
style="width: 600px;" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col type="flex" :span="8">
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
</el-form>
|
||||||
|
<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="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="fromCorp" width="220"></el-table-column>
|
||||||
|
<el-table-column label="收货单位" prop="toCorp" width="220"></el-table-column>
|
||||||
|
<el-table-column label="所属企业" prop="companyName" 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>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
<el-dialog
|
||||||
|
title="单据-详情"
|
||||||
|
:visible.sync="open"
|
||||||
|
class="dialog-two"
|
||||||
|
width="60%"
|
||||||
|
top="5vh"
|
||||||
|
>
|
||||||
|
<el-form :model="formView" :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="formView.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="formView.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="inOutType">
|
||||||
|
<el-input v-model="formView.inOutType" 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="billType">
|
||||||
|
<el-input v-model="formView.billType" 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="fromCorp">
|
||||||
|
<el-input v-model="formView.fromCorp" 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="fromCorpCreditNum">
|
||||||
|
<el-input v-model="formView.fromCorpCreditNum" 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="toCorp">
|
||||||
|
<el-input v-model="formView.toCorp" 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="toCorpCreditNum">
|
||||||
|
<el-input v-model="formView.toCorpCreditNum" 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="createUser">
|
||||||
|
<el-input v-model="formView.createUser" 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="formView.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="clientType">
|
||||||
|
<el-input v-model="formView.clientType" 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="returnReason">
|
||||||
|
<el-input v-model="formView.returnReason" 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="destoryReason">
|
||||||
|
<el-input v-model="formView.destoryReason" 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="excuseUser">
|
||||||
|
<el-input v-model="formView.excuseUser" 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="excuseCode">
|
||||||
|
<el-input v-model="formView.excuseCode" 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="superviserUser">
|
||||||
|
<el-input v-model="formView.superviserUser" 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="superviserCode">
|
||||||
|
<el-input v-model="formView.superviserCode" 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="上传者ID" prop="uploadUser">
|
||||||
|
<el-input v-model="formView.uploadUser" 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="formView.remark" 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="updateTime">
|
||||||
|
<el-input v-model="formView.updateTime" 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="open = false" size="small">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import {getTraceOrderList} from "@/api/udi/udiTrace";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
udiCode: null,
|
||||||
|
ylqxzcrbarmc: null,
|
||||||
|
cpmctymc: null,
|
||||||
|
ggxh: null,
|
||||||
|
nameCode: null,
|
||||||
|
batchNo: null,
|
||||||
|
companyName: "",
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
loading: false,
|
||||||
|
list: [],
|
||||||
|
open: false,
|
||||||
|
formView: {},
|
||||||
|
showSearch: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
hideSearch() {
|
||||||
|
this.showSearch = !this.showSearch;
|
||||||
|
},
|
||||||
|
handleView(row){
|
||||||
|
this.list.forEach(obj => {
|
||||||
|
if (row.id == obj.id) {
|
||||||
|
this.formView = obj
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log(this.formView)
|
||||||
|
this.open = true
|
||||||
|
},
|
||||||
|
onReset(){
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
udiCode: null,
|
||||||
|
ylqxzcrbarmc: null,
|
||||||
|
cpmctymc: null,
|
||||||
|
ggxh: null,
|
||||||
|
nameCode: null,
|
||||||
|
batchNo: null,
|
||||||
|
companyName: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
};
|
||||||
|
//this.list = null
|
||||||
|
//this.total = 0
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
onSubmit(){
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getTraceOrderList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
console.log(this.list)
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.el-col {
|
||||||
|
border-radius: 4px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.query-form-item {
|
||||||
|
display: block !important;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue