1.修复传参错误问题,重置查询参数导致查询无结果问题

master
x_z 3 years ago
parent 771bf8aebb
commit 448662e130

@ -0,0 +1,4 @@
{
"BASE_URL":"http://192.168.0.66:8500/UDIC_UDI_Server",
"Download_URL": "https://www.udims.com/UDI_DL_Server_test"
}

@ -121,6 +121,13 @@
</template>
</el-table-column>
</el-table>
<el-pagination
:current-page="filterQuery.page"
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
<el-dialog title="错误信息" :visible.sync="dialogVisible" width="30%">
<span>{{ errorDetail }}</span>
@ -134,6 +141,8 @@
title="选择往来单位"
:visible.sync="dialogTableVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form :inline="true" :model="unitquery" class="query-form" size="mini">
<el-form-item class="query-form-item">
@ -179,6 +188,14 @@
<el-table-column label="状态" prop="status"></el-table-column>
<el-table-column label="类型" prop="type"></el-table-column>
</el-table>
<el-pagination
:current-page="unitquery.page"
:page-size="unitquery.limit"
@current-change="loadUnitList"
layout="prev, pager, next"
:total="unitTotal"
></el-pagination>
</el-dialog>
<el-dialog
@ -192,13 +209,6 @@
v-on:closeDetailDialog="closeDetailDialog"
></codeDetail>
</el-dialog>
<el-pagination
:current-page="filterQuery.page"
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</div>
</template>
@ -239,7 +249,8 @@ export default {
success: "校验成功"
},
curIndex: "",
unitquery: {key: "", page: 1, limit: 20},
unitquery: {key: "", page: 1, limit: 10},
unitTotal: 0,
unitlist: [],
unitUpdateQuery: {
id: "",
@ -287,6 +298,11 @@ export default {
path: ""
});
this.filterQuery = {
id: "",
mainAction: null,
action: null,
status: 9,
receiveStatus: 0,
page: 1,
limit: 20
};
@ -305,10 +321,20 @@ export default {
this.filterQuery.page = val;
this.getList();
},
loadUnitList(val) {
this.unitquery.page = val;
this.getUnitList();
},
handleUnitClick(row) {
this.curIndex = row.id;
this.dialogTableVisible = true;
this.curOrderId = row.orderId;
this.unitquery = {
key: "",
page: 1,
limit: 10
}
this.getUnitList();
},
closeDetailDialog(val) {
this.codeDetailVisible = false;
@ -326,6 +352,7 @@ export default {
.then((response) => {
this.loading = false;
this.unitlist = response.data.list || [];
this.unitTotal = response.data.total || 0;
})
.catch(() => {
this.loading = false;
@ -367,11 +394,15 @@ export default {
this.deleteData.orderId = data;
deleteByOrderId(this.deleteData)
.then((response) => {
if (response.code === 20000) {
this.getList();
this.$message({
type: "success",
message: "删除成功!"
});
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});

@ -172,25 +172,25 @@
<el-table-column label="销售清单号(第二票)" width="180" prop="secSalesListNo">
<template slot-scope="scope">
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.secSalesListNo"
placeholder="请输入"></el-input>
placeholder="请输入" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="销售发票号(第一票)" width="180" prop="firstSalesInvNo">
<template slot-scope="scope">
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.firstSalesInvNo"
placeholder="请输入"></el-input>
placeholder="请输入" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="销售发票号(第二票)" width="180" prop="secSalesInvNo">
<template slot-scope="scope">
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.secSalesInvNo"
placeholder="请输入"></el-input>
placeholder="请输入" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="发票日期" width="150" prop="invoiceDate">
<template slot-scope="scope">
<el-date-picker :disabled="scope.$index !== currentCheckIndex" format="yyyy-MM-dd"
value-format="yyyy-MM-dd" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd" type="date" placeholder="选择日期" clearable
v-model="scope.row.invoiceDate" style="width: 100%;"></el-date-picker>
</template>
</el-table-column>
@ -665,6 +665,7 @@ export default {
if (this.$isNotBlank(row)) {
this.detailQuery.orderId = row.orderId;
}
this.currentCheckIndex = -1;
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {

@ -10,16 +10,16 @@
>
<el-row style="width: 100%">
<el-form-item class="query-form-item">
<el-input v-model="query.billNo" placeholder="单据号"></el-input>
<el-input v-model="query.orderId" placeholder="单据号"></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.billType" placeholder="请选择业务类型" clearable="true" size="mini">
<el-select v-model="query.action" placeholder="请选择业务类型" clearable="true" size="mini">
<el-option
v-for="item in busTypes"
:key="item.localName"
:label="item.localName"
:value="item.localAction">
<span style="float: left">{{ item.localName }}</span>
:key="item.name"
:label="item.name"
:value="item.action">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
@ -454,12 +454,12 @@ export default {
data() {
return {
query: {
billType: null,
action: null,
corpName: null,
locStorageCode: null,
startTime: "",
endTime: "",
billNo: "",
orderId: "",
status: 3,
page: 1,
limit: 10
@ -562,10 +562,13 @@ export default {
path: ""
});
this.query = {
billNo: "",
status: 4,
action: null,
corpName: null,
locStorageCode: null,
startTime: "",
endTime: "",
orderId: "",
status: 3,
page: 1,
limit: 10
};

Loading…
Cancel
Save