1.部分页面添加重置按钮

2.调整复制单据未根据单据类型查询往来单位回信息候选数据问题
master
x_z 3 years ago
parent f1f47e571a
commit da3a91fabf

@ -1,21 +1,5 @@
import axios from "../../utils/axios";
export function saveUnits(query) {
return axios({
url: "/warehouse/unit/save",
method: "post",
data: query
});
}
export function unitList(query) {
return axios({
url: "/warehouse/unit/list",
method: "get",
params: query
});
}
export function unitListBykey(query) {
return axios({
url: "/warehouse/unitMaintain/filter",
@ -23,21 +7,3 @@ export function unitListBykey(query) {
params: query
});
}
export function customerUnit(query) {
return axios({
url: "/warehouse/unit/customerUnit",
method: "get",
params: query
});
}
export function ucloudUnit(query) {
return axios({
url: "/warehouse/ucloud/filter",
method: "get",
params: query
});
}

@ -72,6 +72,11 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-button-group>
<el-button
type="primary"
icon="el-icon-refresh"
@click="onReset"
></el-button>
<el-button type="primary" icon="search" @click="searchList" size="mini"
>查询
</el-button
@ -221,6 +226,22 @@ export default {
};
},
methods: {
onReset() {
this.unionQuery = {
page: 1,
limit: 10,
udiCode: "",
nameCode: "",
cpmctymc: "",
ylqxzcrbarmc: "",
ggxh: "",
zczbhhzbapzbh: "",
isCheck: 1
}
this.udidlList = [];
this.total = 0;
this.getList();
},
searchList() {
this.unionQuery.page = 1;
this.getList();

@ -59,7 +59,7 @@
<span>{{ getActionName(scope.row.action) }}</span>
</template>
</el-table-column>
<el-table-column label="单号" prop="orderId"></el-table-column>
<el-table-column label="号" prop="orderId"></el-table-column>
<!-- <el-table-column label="来源订单号" prop="corpOrderId"></el-table-column>-->
<el-table-column label="来源" prop="fromType"></el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250">

@ -327,6 +327,20 @@ export default {
limit: 100
};
if (this.curAction.corpType == 0) {
//
cQuery.corpType = 2;
} else if (this.curAction.corpType == 1) {
//
cQuery.corpTyp = 1;
} else if (this.curAction.corpType == 2) {
//
cQuery.corpTyp = 1;
} else if (this.curAction.corpType == 3) {
//
cQuery.corpTyp = 4;
}
unitListBykey(cQuery)
.then((response) => {
this.loading = false;

@ -7,7 +7,8 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="search" @click="getCodeList"
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"
>查询
</el-button
>
@ -88,7 +89,6 @@ export default {
});
this.query = {
code: "",
corpOrderId: "",
page: 1,
limit: 20,
};
@ -109,7 +109,10 @@ export default {
this.query.page = val;
this.getCodeList();
},
search() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() {
this.loading = true;
// this.query.corpOrderId = this.idQuery.id;

@ -7,6 +7,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="onSubmit"
>查询
</el-button
@ -160,7 +161,6 @@ export default {
});
this.query = {
code: "",
corpOrderId: "",
page: 1,
limit: 20,
};
@ -171,6 +171,7 @@ export default {
path: "",
query: this.query,
});
this.query.page = 1;
this.getCodeList();
},
handleSizeChange(val) {

@ -511,11 +511,6 @@ export default {
},
intentDetail(row) {
// this.$router.push({
// path: "../inout/detail",
// query: { id: row.id },
// });
this.codeDetailVisible = true;
this.idQuery.id = row.orderId;
},

Loading…
Cancel
Save