第三方业务单据界面样式修改
parent
6f44066cf1
commit
2d2f7a8b8a
@ -1,291 +1,298 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-form :inline="true" :model="query" class="query-form" size="mini">
|
<el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form-item class="query-form-item">
|
<el-col :span="6">
|
||||||
<el-input v-model="filterQuery.genKey" placeholder="清输入记录ID"></el-input>
|
<el-form-item label="记录ID:">
|
||||||
</el-form-item>
|
<el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="清输入记录ID"></el-input>
|
||||||
<el-form-item>
|
</el-form-item>
|
||||||
<el-button-group style="display:flex;">
|
</el-col>
|
||||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
</el-row>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
</el-form>
|
||||||
<el-button type="primary" icon="el-icon-upload2" @click="exportExcel">导出Excel文件</el-button>
|
|
||||||
</el-button-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
|
|
||||||
<el-table
|
<div class="top-right-btn">
|
||||||
v-loading="loading"
|
<el-button-group style="display:flex;">
|
||||||
:data="list"
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||||
style="width: 100%"
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
@selection-change="handleSelectionChange"
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
||||||
border highlight-current-row
|
<el-button type="primary" icon="el-icon-upload2" @click="exportExcel">导出Excel文件</el-button>
|
||||||
>
|
</el-button-group>
|
||||||
<el-table-column label="序号" type="index"></el-table-column>
|
</div>
|
||||||
<el-table-column
|
<el-divider style="margin: 15px"></el-divider>
|
||||||
label="记录ID"
|
|
||||||
prop="genKey"
|
<el-table
|
||||||
show-overflow-tooltip
|
v-loading="loading"
|
||||||
></el-table-column>
|
:data="list"
|
||||||
|
style="width: 100%"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
border highlight-current-row
|
||||||
|
>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="记录ID"
|
||||||
|
prop="genKey"
|
||||||
|
show-overflow-tooltip
|
||||||
|
></el-table-column>
|
||||||
|
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="更新日期"
|
label="更新日期"
|
||||||
prop="updateTime"
|
prop="updateTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="状态"
|
label="状态"
|
||||||
prop="status"
|
prop="status"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag
|
||||||
|
:type="statusFilterType(scope.row.status)"
|
||||||
|
>{{ status[scope.row.status] }}
|
||||||
|
</el-tag
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="下载次数"
|
||||||
|
prop="dlCount"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click.native.stop="downloadExcel(scope.row)"
|
||||||
|
>下载
|
||||||
|
</el-button
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<el-button
|
||||||
<el-tag
|
type="text"
|
||||||
:type="statusFilterType(scope.row.status)"
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
>{{ status[scope.row.status] }}
|
>删除
|
||||||
</el-tag
|
</el-button
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="下载次数"
|
|
||||||
prop="dlCount"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="操作" fixed="right" width="160">
|
</el-table-column>
|
||||||
<template slot-scope="scope">
|
</el-table>
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.native.stop="downloadExcel(scope.row)"
|
|
||||||
>下载
|
|
||||||
</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.native.stop="deleteDialog(scope.row.id)"
|
|
||||||
>删除
|
|
||||||
</el-button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="导出业务单据"
|
title="导出业务单据"
|
||||||
:visible.sync="thrOrderSelectVisible"
|
:visible.sync="thrOrderSelectVisible"
|
||||||
width="85%"
|
width="80%"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
v-if="thrOrderSelectVisible"
|
v-if="thrOrderSelectVisible"
|
||||||
>
|
>
|
||||||
<thrOrderSelect :selectType="selectType" v-on:cancelDialog="cancelDialog"
|
<thrOrderSelect :selectType="selectType" v-on:cancelDialog="cancelDialog"
|
||||||
></thrOrderSelect>
|
></thrOrderSelect>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total>0"
|
v-show="total>0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="filterQuery.page"
|
:page.sync="filterQuery.page"
|
||||||
:limit.sync="filterQuery.limit"
|
:limit.sync="filterQuery.limit"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {filterLog, deleteLog} from "@/api/thrsys/thrOrderExport";
|
import {filterLog, deleteLog} from "@/api/thrsys/thrOrderExport";
|
||||||
import thrOrderSelect from "./thrOrderSelect";
|
import thrOrderSelect from "./thrOrderSelect";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import {formatDate} from "@/utils/date";
|
import {formatDate} from "@/utils/date";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
filterQuery: {
|
showSearch: true,
|
||||||
type: 1,
|
filterQuery: {
|
||||||
genKey: null,
|
type: 1,
|
||||||
status: null,
|
genKey: null,
|
||||||
fromType: null,
|
status: null,
|
||||||
page: 1,
|
fromType: null,
|
||||||
limit: 20,
|
page: 1,
|
||||||
thirdSysFk: null,
|
limit: 20,
|
||||||
},
|
thirdSysFk: null,
|
||||||
selectType: 0,
|
},
|
||||||
thrOrderSelectVisible: false,
|
selectType: 0,
|
||||||
list: [],
|
thrOrderSelectVisible: false,
|
||||||
detailList: [],
|
list: [],
|
||||||
thirdSys: [],
|
detailList: [],
|
||||||
thirdSysDetail: null,
|
thirdSys: [],
|
||||||
total: 0,
|
thirdSysDetail: null,
|
||||||
editQuery: null,
|
total: 0,
|
||||||
fromStatus: {
|
editQuery: null,
|
||||||
0: "产品信息",
|
fromStatus: {
|
||||||
1: "库存信息",
|
0: "产品信息",
|
||||||
2: "异常第三方上传"
|
1: "库存信息",
|
||||||
},
|
2: "异常第三方上传"
|
||||||
status: {
|
},
|
||||||
0: "等待处理",
|
status: {
|
||||||
1: "正在处理",
|
0: "等待处理",
|
||||||
2: "处理异常",
|
1: "正在处理",
|
||||||
3: "处理完成"
|
2: "处理异常",
|
||||||
},
|
3: "处理完成"
|
||||||
uploadFileUrl: null,
|
},
|
||||||
uploadData: {
|
uploadFileUrl: null,
|
||||||
thirdSys: "thirdId",
|
uploadData: {
|
||||||
},
|
thirdSys: "thirdId",
|
||||||
};
|
},
|
||||||
},
|
};
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onReset() {
|
onReset() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "",
|
path: "",
|
||||||
});
|
});
|
||||||
this.filterQuery = {
|
this.filterQuery = {
|
||||||
fromType: null,
|
fromType: null,
|
||||||
genKey: null,
|
genKey: null,
|
||||||
status: null,
|
status: null,
|
||||||
page: 1,
|
page: 1,
|
||||||
type: 1,
|
type: 1,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
thirdSysFk: null,
|
thirdSysFk: null,
|
||||||
};
|
};
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
getList() {
|
hideSearch() {
|
||||||
this.loading = true;
|
this.showSearch = !this.showSearch;
|
||||||
filterLog(this.filterQuery)
|
},
|
||||||
.then((response) => {
|
getList() {
|
||||||
if (response.code == 20000) {
|
this.loading = true;
|
||||||
this.list = response.data.list || [];
|
filterLog(this.filterQuery)
|
||||||
this.total = response.data.total || 0;
|
.then((response) => {
|
||||||
} else {
|
if (response.code == 20000) {
|
||||||
this.$message.error(response.message);
|
this.list = response.data.list || [];
|
||||||
}
|
this.total = response.data.total || 0;
|
||||||
this.loading = false;
|
} else {
|
||||||
})
|
this.$message.error(response.message);
|
||||||
.catch(() => {
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.list = [];
|
})
|
||||||
this.total = 0;
|
.catch(() => {
|
||||||
});
|
this.loading = false;
|
||||||
},
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
exportExcel() {
|
exportExcel() {
|
||||||
this.selectType = 0;
|
this.selectType = 0;
|
||||||
this.thrOrderSelectVisible = true;
|
this.thrOrderSelectVisible = true;
|
||||||
},
|
},
|
||||||
uploadSmp() {
|
uploadSmp() {
|
||||||
this.selectType = 1;
|
this.selectType = 1;
|
||||||
this.thrOrderSelectVisible = true;
|
this.thrOrderSelectVisible = true;
|
||||||
},
|
},
|
||||||
downloadExcel(row) {
|
downloadExcel(row) {
|
||||||
axios.get("./config.json").then(res => {
|
axios.get("./config.json").then(res => {
|
||||||
let baseUrl = res.data.BASE_URL;
|
let baseUrl = res.data.BASE_URL;
|
||||||
let href = baseUrl + "/udiwms/thrOrder/exportLog/download" + "?genKey=" + row.genKey;
|
let href = baseUrl + "/udiwms/thrOrder/exportLog/download" + "?genKey=" + row.genKey;
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
|
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
|
||||||
fetch(href)
|
fetch(href)
|
||||||
.then((res) => res.blob())
|
.then((res) => res.blob())
|
||||||
.then((blob) => {
|
.then((blob) => {
|
||||||
a.href = URL.createObjectURL(blob);
|
a.href = URL.createObjectURL(blob);
|
||||||
console.log(a.href);
|
console.log(a.href);
|
||||||
a.download = "ThirdOrder_" + timestamp + ".UpperIn";
|
a.download = "ThirdOrder_" + timestamp + ".UpperIn";
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
cancelDialog(val) {
|
cancelDialog(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
this.thrOrderSelectVisible = false;
|
this.thrOrderSelectVisible = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteDialog(rowId) {
|
deleteDialog(rowId) {
|
||||||
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
|
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let dQuery = {
|
let dQuery = {
|
||||||
id: rowId,
|
id: rowId,
|
||||||
};
|
};
|
||||||
deleteLog(dQuery)
|
deleteLog(dQuery)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (response.code == 20000) {
|
if (response.code == 20000) {
|
||||||
this.$message.success("删除成功");
|
this.$message.success("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(response.message);
|
this.$message.error(response.message);
|
||||||
}
|
}
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleChange(response, files, fileList) {
|
handleChange(response, files, fileList) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.code != 20000) {
|
if (response.code != 20000) {
|
||||||
this.$message.error(response.message);
|
this.$message.error(response.message);
|
||||||
} else {
|
} else {
|
||||||
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
|
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
|
||||||
this.$message.success("文件上传成功,请稍后刷新查看!");
|
this.$message.success("文件上传成功,请稍后刷新查看!");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
statusFilterType(status) {
|
statusFilterType(status) {
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
0: "warning",
|
0: "warning",
|
||||||
1: "warning",
|
1: "warning",
|
||||||
2: "danger",
|
2: "danger",
|
||||||
3: "success",
|
3: "success",
|
||||||
};
|
};
|
||||||
return statusMap[status];
|
return statusMap[status];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
components: {thrOrderSelect},
|
components: {thrOrderSelect},
|
||||||
created() {
|
created() {
|
||||||
// this.getBasicThirdSys();
|
// this.getBasicThirdSys();
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.itemTag {
|
.itemTag {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: "Microsoft YaHei";
|
font-family: "Microsoft YaHei";
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,164 +1,171 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-form :inline="true" :model="query" size="mini">
|
<el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form-item class="query-form-item">
|
<el-col :span="6">
|
||||||
<el-input v-model="filterQuery.billNo" placeholder="请输入UDI编码"></el-input>
|
<el-form-item label="UDI编码:">
|
||||||
</el-form-item>
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入UDI编码"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
<el-form-item>
|
<div class="top-right-btn">
|
||||||
<el-button-group style="display:flex;">
|
<el-button-group style="display:flex;">
|
||||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
</el-button-group>
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
||||||
</el-form-item>
|
</el-button-group>
|
||||||
</el-row>
|
</div>
|
||||||
</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"></el-table-column>
|
||||||
|
<el-table-column label="往来单位ID" prop="corpId"
|
||||||
|
show-overflow-tooltip="true"></el-table-column>
|
||||||
|
<el-table-column label="往来单位" prop="corpName"
|
||||||
|
show-overflow-tooltip="true"></el-table-column>
|
||||||
|
|
||||||
<el-table
|
<el-table-column label="扫码单据类型" prop="billType">
|
||||||
v-loading="loading"
|
</el-table-column>
|
||||||
:data="list"
|
<el-table-column label="单据状态" prop="billFlag" width="80" show-overflow-tooltip="true"></el-table-column>
|
||||||
style="width: 100%"
|
<el-table-column label="单据日期" prop="billdate" show-overflow-tooltip="true"></el-table-column>
|
||||||
border highlight-current-row
|
<el-table-column label="产品编码" prop="productId" show-overflow-tooltip="true"></el-table-column>
|
||||||
>
|
<el-table-column label="产品名称" prop="productName" show-overflow-tooltip="true"></el-table-column>
|
||||||
<el-table-column label="序号" type="index"></el-table-column>
|
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip="true"></el-table-column>
|
||||||
<el-table-column label="单据号" prop="billNo"></el-table-column>
|
<el-table-column label="批次号" prop="batchNo" show-overflow-tooltip="true"></el-table-column>
|
||||||
<el-table-column label="往来单位ID" prop="corpId"
|
<el-table-column label="生产日期" prop="productDate" show-overflow-tooltip="true"></el-table-column>
|
||||||
show-overflow-tooltip="true"></el-table-column>
|
<el-table-column label="失效日期" prop="expireDate" show-overflow-tooltip="true"></el-table-column>
|
||||||
<el-table-column label="往来单位" prop="corpName"
|
<el-table-column label="单据数量" prop="reCount" show-overflow-tooltip="true"></el-table-column>
|
||||||
show-overflow-tooltip="true"></el-table-column>
|
<el-table-column label="实际数量" prop="count" show-overflow-tooltip="true"></el-table-column>
|
||||||
|
</el-table>
|
||||||
<el-table-column label="扫码单据类型" prop="billType">
|
<pagination
|
||||||
</el-table-column>
|
v-show="total>0"
|
||||||
<el-table-column label="单据状态" prop="billFlag" width="80" show-overflow-tooltip="true"></el-table-column>
|
:total="total"
|
||||||
<el-table-column label="单据日期" prop="billdate" show-overflow-tooltip="true"></el-table-column>
|
:page.sync="filterQuery.page"
|
||||||
<el-table-column label="产品编码" prop="productId" show-overflow-tooltip="true"></el-table-column>
|
:limit.sync="filterQuery.limit"
|
||||||
<el-table-column label="产品名称" prop="productName" show-overflow-tooltip="true"></el-table-column>
|
@pagination="getList"
|
||||||
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip="true"></el-table-column>
|
/>
|
||||||
<el-table-column label="批次号" prop="batchNo" show-overflow-tooltip="true"></el-table-column>
|
</el-card>
|
||||||
<el-table-column label="生产日期" prop="productDate" show-overflow-tooltip="true"></el-table-column>
|
</div>
|
||||||
<el-table-column label="失效日期" prop="expireDate" show-overflow-tooltip="true"></el-table-column>
|
|
||||||
<el-table-column label="单据数量" prop="reCount" show-overflow-tooltip="true"></el-table-column>
|
|
||||||
<el-table-column label="实际数量" prop="count" show-overflow-tooltip="true"></el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<pagination
|
|
||||||
v-show="total>0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="filterQuery.page"
|
|
||||||
:limit.sync="filterQuery.limit"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</el-card>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
filterDetail,
|
filterDetail,
|
||||||
} from "@/api/thrsys/thrOrderImport";
|
} from "@/api/thrsys/thrOrderImport";
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "ThrOrderImportDetail",
|
|
||||||
props: {
|
|
||||||
currentRow: {
|
|
||||||
type: Object,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
export default {
|
||||||
data() {
|
name: "ThrOrderImportDetail",
|
||||||
return {
|
props: {
|
||||||
filterQuery: {
|
currentRow: {
|
||||||
genKey: null,
|
type: Object,
|
||||||
billNo: null,
|
required: true,
|
||||||
status: null,
|
},
|
||||||
page: 1,
|
|
||||||
limit: 10,
|
|
||||||
},
|
|
||||||
list: [],
|
|
||||||
detailList: [],
|
|
||||||
total: 0,
|
|
||||||
status: {
|
|
||||||
0: "未处理",
|
|
||||||
1: "处理失败",
|
|
||||||
2: "处理成功"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
},
|
||||||
onReset() {
|
data() {
|
||||||
this.$router.push({
|
return {
|
||||||
path: "",
|
showSearch: true,
|
||||||
});
|
filterQuery: {
|
||||||
this.filterQuery = {
|
genKey: null,
|
||||||
genKey: null,
|
billNo: null,
|
||||||
billNo: null,
|
status: null,
|
||||||
status: null,
|
page: 1,
|
||||||
page: 1,
|
limit: 10,
|
||||||
limit: 10,
|
},
|
||||||
};
|
list: [],
|
||||||
this.getList();
|
detailList: [],
|
||||||
},
|
total: 0,
|
||||||
getList() {
|
status: {
|
||||||
this.loading = true;
|
0: "未处理",
|
||||||
console.log(" this.genKey = " + this.currentRow)
|
1: "处理失败",
|
||||||
this.filterQuery.genKey = this.currentRow.genKey;
|
2: "处理成功"
|
||||||
filterDetail(this.filterQuery)
|
},
|
||||||
.then((response) => {
|
|
||||||
if (response.code == 20000) {
|
|
||||||
this.list = response.data.list || [];
|
|
||||||
this.total = response.data.total || 0;
|
|
||||||
}else {
|
|
||||||
this.$message.error(response.message);
|
|
||||||
}
|
|
||||||
this.loading = false;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.loading = false;
|
|
||||||
this.list = [];
|
|
||||||
this.total = 0;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
statusFilterType(status) {
|
|
||||||
const statusMap = {
|
|
||||||
0: "warning",
|
|
||||||
1: "danger",
|
|
||||||
2: "success",
|
|
||||||
};
|
|
||||||
return statusMap[status];
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList();
|
|
||||||
},
|
|
||||||
filters: {},
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
genKey: null,
|
||||||
|
billNo: null,
|
||||||
|
status: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 10,
|
||||||
|
};
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
hideSearch() {
|
||||||
|
this.showSearch = !this.showSearch;
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
console.log(" this.genKey = " + this.currentRow)
|
||||||
|
this.filterQuery.genKey = this.currentRow.genKey;
|
||||||
|
filterDetail(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
if (response.code == 20000) {
|
||||||
|
this.list = response.data.list || [];
|
||||||
|
this.total = response.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(response.message);
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
statusFilterType(status) {
|
||||||
|
const statusMap = {
|
||||||
|
0: "warning",
|
||||||
|
1: "danger",
|
||||||
|
2: "success",
|
||||||
|
};
|
||||||
|
return statusMap[status];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
filters: {},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.itemTag {
|
.itemTag {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: "Microsoft YaHei";
|
font-family: "Microsoft YaHei";
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue