|
|
@@ -78,8 +78,19 @@ const content = reactive({
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
"where": {
|
|
|
- isinstalled: "未安装",
|
|
|
- "condition": ""
|
|
|
+ "condition": "",
|
|
|
+ "tablefilter": {
|
|
|
+ "sku": null,
|
|
|
+ "topclassnum": null,
|
|
|
+ "itemno": null,
|
|
|
+ "itemname": null,
|
|
|
+ "model": null,
|
|
|
+ "phonenumber": null,
|
|
|
+ "cardno": null,
|
|
|
+ "agentnum": null,
|
|
|
+ "abbreviation": null,
|
|
|
+ "isinstalled": "未安装"
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
const list = ref([])
|
|
|
@@ -105,7 +116,7 @@ let tabList = ref([
|
|
|
current = ref(0);
|
|
|
|
|
|
function tabClick(e) {
|
|
|
- content.where.isinstalled = e.name;
|
|
|
+ content.where.tablefilter.isinstalled = e.name;
|
|
|
getList(true);
|
|
|
listBox.value.backToTop()
|
|
|
}
|
|
|
@@ -143,6 +154,7 @@ function getList(init = false) {
|
|
|
if (content.loading) return;
|
|
|
if (init) content.pageNumber = 1;
|
|
|
content.loading = true;
|
|
|
+ content.tableid = 784;
|
|
|
$Http.basic({
|
|
|
"id": "2025082210142103",
|
|
|
content
|
|
|
@@ -181,10 +193,22 @@ function getList(init = false) {
|
|
|
|
|
|
|
|
|
function getBadge() {
|
|
|
- let isvoid = content.where.isvoid ? 0 : 1;
|
|
|
+ let isvoid = content.where.tablefilter.isvoid ? 0 : 1;
|
|
|
$Http.basic({
|
|
|
- "id": "2025082210142103", "content":
|
|
|
- { "pageNumber": 1, "pageSize": 0, "nocache": true, "where": { isvoid, condition: content.where.condition } }
|
|
|
+ "id": "2025082210142103",
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 0,
|
|
|
+ tableid: 784,
|
|
|
+ "nocache": true,
|
|
|
+ "where": {
|
|
|
+ condition: content.where.condition,
|
|
|
+ tablefilter: {
|
|
|
+ ...content.where.tablefilter,
|
|
|
+ isvoid
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}).then(res => {
|
|
|
if (res.code == 1) tabList.value[isvoid].badge = {
|
|
|
value: res.total
|