CTP 2 years ago
commit 5adcf1d575

@ -65,6 +65,8 @@ import {
} from "@/api/inventory/invPorduct"; } from "@/api/inventory/invPorduct";
import {addDetail} from "@/api/inout/receiveOrder"; import {addDetail} from "@/api/inout/receiveOrder";
import {addBizProduct} from "@/api/inout/orderDetailCode"; import {addBizProduct} from "@/api/inout/orderDetailCode";
import {getInvPreInProduct} from "@/api/inventory/invPreInSearch";
import {getInvPreProduct} from "@/api/inventory/invPreProduct";
export default { export default {
@ -162,19 +164,51 @@ export default {
}, },
getList() { getList() {
debugger
this.loading = true; this.loading = true;
getInvProduct(this.filterQuery) //
.then((response) => { if(this.invQueryData.advanceType==3){
this.showSup = response.data.showSup; getInvPreProduct(this.filterQuery)
this.loading = false; .then((response) => {
this.list = response.data.list || []; this.showSup = response.data.showSup;
this.total = response.data.total || 0; this.loading = false;
}) this.list = response.data.list || [];
.catch(() => { this.total = response.data.total || 0;
this.loading = false; })
this.list = []; .catch(() => {
this.total = 0; this.loading = false;
}); this.list = [];
this.total = 0;
});
//
}else if(this.invQueryData.advanceType==2){
getInvPreInProduct(this.filterQuery)
.then((response) => {
this.showSup = response.data.showSup;
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}else{
getInvProduct(this.filterQuery)
.then((response) => {
this.showSup = response.data.showSup;
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -59,7 +59,7 @@
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item class="query-form-item" prop="targetInvCode" label="往来信息:"> <el-form-item class="query-form-item" prop="targetInvCode" label="往来信息:">
<el-select v-model="formData.targetInvCode" placeholder="请选择往来信息" <el-select v-model="formData.targetInvCode" placeholder="请选择往来信息" @change="getTargerType"
clearable="true" clearable="true"
style="width: 100%" style="width: 100%"
> >
@ -277,6 +277,7 @@ export default {
findFromInv() { findFromInv() {
let cQuery = { let cQuery = {
locInvCode: this.formData.invCode, locInvCode: this.formData.invCode,
type:1,
}; };
findByFrom(cQuery) findByFrom(cQuery)
.then((response) => { .then((response) => {
@ -301,7 +302,10 @@ export default {
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
getTargerType(){
this.formData.advanceType= this.fromOptions.find(item => item.code == this.formData.targetInvCode).advanceType
console.log(this.formData)
},
saveOrder(status) { saveOrder(status) {
this.code = ""; this.code = "";
this.$refs.multipleTable.setCurrentRow(); this.$refs.multipleTable.setCurrentRow();

@ -22,7 +22,14 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="往来信息:"> <el-form-item label="往来信息:">
<el-input v-model="filterQuery.corpName" style="width: 90%" placeholder="请输入往来信息" clearable></el-input> <el-select v-model="filterQuery.corpName" placeholder="请输入往来信息" style="width: 100%;">
<el-option
v-for="item in corpList"
:key="item.code"
:label="item.name"
:value="item.code">
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="6">--> <!-- <el-col :span="6">-->
@ -147,7 +154,7 @@ import {selectIp} from "@/api/param/systemParamConfig";
import thrOrderNew from "./DialogNewReceive"; import thrOrderNew from "./DialogNewReceive";
import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder"; import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder";
import {getBusChange} from "@/api/basic/busTypeChange"; import {getBusChange} from "@/api/basic/busTypeChange";
import {findInvByUser} from "@/api/system/invSubWarehouse"; import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse";
export default { export default {
data() { data() {
@ -178,6 +185,7 @@ export default {
4: "已拒绝" 4: "已拒绝"
}, },
idQuery: {}, idQuery: {},
corpList: [],
total: 0, total: 0,
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
@ -373,6 +381,15 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
finCorpList(){
filterSubAll({})
.then((response) => {
this.corpList = response.data || [];
})
.catch(() => {
});
},
}, },
components: { components: {
thrOrderNew, thrOrderNew,
@ -382,6 +399,7 @@ export default {
created() { created() {
this.finCurInv(); this.finCurInv();
this.getBusType(); this.getBusType();
this.finCorpList();
}, },
}; };
</script> </script>

@ -12,18 +12,13 @@
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.status" placeholder="处理状态"> <el-select v-model="filterQuery.status" placeholder="处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="等待处理" value="0"></el-option> <el-option label="异常" value="1"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="2"></el-option>
<el-option label="异常" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-date-picker <el-date-picker v-model="filterQuery.syncTime" type="datetime" format="yyyy-MM-dd HH:mm:ss"
v-model="filterQuery.syncTime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择同步时间">
type="datetime"
format="yyyy-MM-dd HH:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择同步时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -31,114 +26,56 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(1)" <el-button type="primary" icon="search" @click="createScheduleDialog(1)"
:disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"> v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">
同步单据 同步单据
</el-button> </el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(2)" <!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"
:disabled="!configParms.typeBus&& !configParms.typeScan&& !configParms.typeThird"> v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1">
同步单据类型 同步单据类型
</el-button> </el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(3)" <el-button type="primary" icon="search" @click="createScheduleDialog(3)" v-if="configParms.basicProducts==1||configParms.basicCorp==1||configParms.basicInv==1||configParms.basicThirdProducts==1||
:disabled="!configParms.basicProducts&& !configParms.basicCorp&& configParms.basicThirdCorp==1||configParms.basicThirdInv==1||configParms.basicThirdBusOrder==1||configParms.sysUser==1">同步基础信息
!configParms.basicInv&&!configParms.basicThirdProducts&& !configParms.basicThirdCorp&& !configParms.basicThirdInv </el-button> -->
&& !configParms.basicThirdBusOrder&& !configParms.sysUser">同步基础信息
</el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<el-table <el-table v-loading="loading" :data="list" style="width: 100%">
v-loading="loading"
:data="list"
style="width: 100%"
>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column label="任务ID" prop="id" width="140" show-overflow-tooltip></el-table-column>
label="任务ID"
prop="id"
width="140"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column label="任务类型" prop="type" width="140" show-overflow-tooltip>
label="任务类型"
prop="idDatas"
width="140"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ type[scope.row.idDatas] }}</span> <span>{{ scope.row.type }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="状态" prop="status" width="140" show-overflow-tooltip>
label="状态"
prop="status"
width="140"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}
:type="statusFilterType(scope.row.status)" </el-tag>
>{{ status[scope.row.status] }}
</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="开始时间" width="180" prop="startTime" show-overflow-tooltip></el-table-column>
label="开始时间" <el-table-column label="结束时间" width="180" prop="endTime" show-overflow-tooltip></el-table-column>
width="180"
prop="startTime"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="结束时间"
width="180"
prop="endTime"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column label="同步信息" prop="remark" show-overflow-tooltip></el-table-column>
label="同步信息"
prop="remark"
show-overflow-tooltip
></el-table-column>
<el-table-column label="操作" fixed="right" width="160"> <el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button type="text" size="small" @click.native.stop="detailDialog(scope.row.id)">详情
type="text" </el-button>
size="small" <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row.id)">删除
@click.native.stop="detailDialog(scope.row.id)" </el-button>
>详情
</el-button
>
<el-button
type="text"
size="small"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination :page-size="filterQuery.limit" @current-change="handleCurrentChange" layout="prev, pager, next"
:page-size="filterQuery.limit" :total="total" :current-page="filterQuery.page"></el-pagination>
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card> </el-card>
<el-dialog <el-dialog title="同步信息" width="25%" :close-on-click-modal="false" :close-on-press-escape="false"
title="同步信息" :visible.sync="syncVisible">
width="25%"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="syncVisible"
>
<span v-text="syncInfo" style="white-space:pre-line;" class="syncInfo"></span> <span v-text="syncInfo" style="white-space:pre-line;" class="syncInfo"></span>
</el-dialog> </el-dialog>
@ -146,297 +83,286 @@
</template> </template>
<script> <script>
import {filterLog, deleteLog, createSchedule, findConfig, updateConfig} from "@/api/sync/spsSyncStatus"; import {
import store from "@/store"; filterLog,
deleteLog,
createSchedule,
findConfig,
updateConfig
} from "@/api/sync/spsSyncStatus";
import store from "@/store";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
id: null, id: null,
status: "1", status: "1",
page: 1, page: 1,
limit: 10, limit: 10,
syncTime: null, syncTime: null,
}, },
list: [], list: [],
headers: {}, headers: {},
detailList: [], detailList: [],
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
total: 0, total: 0,
currentRow: null, currentRow: null,
editQuery: null, editQuery: null,
type: { status: {
"AutoUploadOrder": "已完成单据", 1: "处理异常",
"AutoUploadBusType": "单据类型", 2: "处理完成",
"AutoUploadAllData": "基础信息", },
"AutoDownloadDiProducts": "国家库DI数据"
configQuery: {
id: null,
typeBus: null,
typeScan: null,
typeThird: null,
basicProducts: null,
basicCorp: null,
basicInv: null,
basicThirdProducts: null,
basicThirdCorp: null,
basicThirdInv: null,
basicThirdBusOrder: null,
orderScanFinish: null,
dbDiProducts: null,
downstreamEnable: null,
syncTime: null,
},
uploadFileUrl: null,
uploadData: {
thirdSys: "thirdId",
},
templateDlUrl: null,
checked: false,
configParms: {},
syncInfo: null,
syncVisible: false
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
syncTime: null,
id: null,
status: null,
page: 1,
limit: 20,
};
this.syncTime = null;
this.getList();
}, },
status: { getList() {
0: "等待处理", this.loading = true;
1: "处理完成", filterLog(this.filterQuery)
2: "处理异常", .then((response) => {
this.loading = false;
if (response.code == 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}, },
configQuery: { getConfig() {
id: null, findConfig()
typeBus: null, .then((response) => {
typeScan: null, if (response.code == 20000) {
typeThird: null, this.configQuery = response.data;
basicProducts: null, } else {
basicCorp: null, this.$message.error(response.message);
basicInv: null, }
basicThirdProducts: null, })
basicThirdCorp: null, .catch(() => {
basicThirdInv: null, this.loading = false;
basicThirdBusOrder: null, this.list = [];
orderScanFinish: null, this.total = 0;
dbDiProducts: null, });
downstreamEnable: null,
syncTime: null,
}, },
uploadFileUrl: null, saveConfig() {
uploadData: { updateConfig(this.configQuery)
thirdSys: "thirdId", .then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("更新成功!");
this.getConfig();
}
})
.catch(() => {
this.loading = false;
});
}, },
templateDlUrl: null,
checked: false,
configParms: {},
syncInfo: null,
syncVisible: false
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
syncTime: null,
id: null,
status: null,
page: 1,
limit: 20,
};
this.syncTime = null;
this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
getConfig() { cancelDialog(val) {
findConfig() this.udiImportDetailVisible = false;
.then((response) => { this.thrCorpSelectVisible = false;
if (response.code == 20000) { if (val) {
this.configQuery = response.data; this.getList();
} else { }
this.$message.error(response.message); },
} handleCurrentChange(val) {
}) this.filterQuery.page = val;
.catch(() => { this.getList();
this.loading = false; },
this.list = [];
this.total = 0;
});
},
saveConfig() {
updateConfig(this.configQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("更新成功!");
this.getConfig();
}
})
.catch(() => {
this.loading = false;
});
},
cancelDialog(val) { createScheduleDialog(type) {
this.udiImportDetailVisible = false; if (this.$isNotBlank(this.filterQuery.syncTime)) {
this.thrCorpSelectVisible = false; this.$confirm("此操作将从" + this.filterQuery.syncTime + "开始同步最新数据,是否继续", "提示", {
if (val) { confirmButtonText: "确定",
this.getList(); cancelButtonText: "取消",
} type: "warning",
} })
, .then(() => {
handleCurrentChange(val) { this.createSchedule(type);
this.filterQuery.page = val; })
this.getList(); .catch(() => {});
} } else {
, this.createSchedule(type);
}
},
createScheduleDialog(type) { createSchedule(type) {
if (this.$isNotBlank(this.filterQuery.syncTime)) { let query = {
this.$confirm("此操作将从" + this.filterQuery.syncTime + "开始同步最新数据,是否继续", "提示", { createType: type,
confirmButtonText: "确定", syncTime: this.filterQuery.syncTime,
cancelButtonText: "取消", }
type: "warning",
}) createSchedule(query)
.then(() => { .then((response) => {
this.createSchedule(type); this.loading = false;
if (response.code == 20000) {
this.$message.success("创建成功!");
} else if (response.code == 501) {
this.$message.warning(response.message);
} else {
this.$message.error(response.message);
}
this.getList();
}) })
.catch(() => { .catch(() => {
this.loading = false;
}); });
} else { },
this.createSchedule(type); deleteDialog(rowId) {
} this.$confirm("此操作将删除该任务信息, 是否继续?", "提示", {
confirmButtonText: "确定",
}, cancelButtonText: "取消",
type: "warning",
createSchedule(type) { })
let query = { .then(() => {
createType: type, let dQuery = {
syncTime: this.filterQuery.syncTime, id: rowId,
} };
deleteLog(dQuery)
createSchedule(query) .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 if (response.code == 501) { this.$message.error(response.message);
this.$message.warning(response.message); }
} else { this.getList();
this.$message.error(response.message); })
} .catch(() => {
this.loading = false;
});
})
.catch(() => {});
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
this.getList(); this.getList();
}) } else {
.catch(() => { // console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.loading = false; this.$message.success(response.data);
}); this.getList();
}, }
deleteDialog(rowId) { },
this.$confirm("此操作将删除该任务信息, 是否继续?", "提示", { statusFilterType(status) {
confirmButtonText: "确定", const statusMap = {
cancelButtonText: "取消", 2: "success",
type: "warning", 1: "danger",
}) };
.then(() => { return statusMap[status];
let dQuery = { },
id: rowId, getSyncConfig() {
}; findConfig()
deleteLog(dQuery) .then((response) => {
.then((response) => { if (response.code == 20000) {
this.loading = false; this.configParms = response.data;
if (response.code == 20000) { }
this.$message.success("删除成功"); })
} else { .catch(() => {});
this.$message.error(response.message); },
} detailDialog(id) {
this.getList(); this.syncVisible = true;
}) this.list.forEach(item => {
.catch(() => { if (id === item.id) {
this.loading = false; this.syncInfo = item.remark;
});
})
.catch(() => {
});
}
,
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
this.getList();
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
}
}
,
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "success",
2: "danger",
};
return statusMap[status];
}
,
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
} }
}) })
.catch(() => { }
});
}, },
detailDialog(id) {
this.syncVisible = true;
this.list.forEach(item => {
if (id === item.id) {
this.syncInfo = item.remark;
}
})
}
},
mounted() { mounted() {},
}, components: {},
components: {}, created() {
created() { this.headers = {
this.headers = { ADMIN_ID: store.getters.adminId,
ADMIN_ID: store.getters.adminId, ADMIN_TOKEN: store.getters.token,
ADMIN_TOKEN: store.getters.token, };
}; this.getSyncConfig();
this.getSyncConfig(); this.getList();
this.getList(); this.getConfig();
this.getConfig(); },
}, };
};
</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;
} }
.syncInfo { .syncInfo {
font-size: medium; font-size: medium;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
line-height: 25px; line-height: 25px;
} }
</style> </style>

@ -12,9 +12,8 @@
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.status" placeholder="处理状态"> <el-select v-model="filterQuery.status" placeholder="处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="等待处理" value="0"></el-option> <el-option label="异常" value="1"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="2"></el-option>
<el-option label="异常" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -23,14 +22,14 @@
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
<el-form-item> <!-- <el-form-item>
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="search" @click="downloadNow(1)"></el-button> <el-button type="primary" icon="search" @click="downloadNow(1)"></el-button>
<el-button type="primary" icon="search" @click="downloadNow(2)"></el-button> <el-button type="primary" icon="search" @click="downloadNow(2)"></el-button>
<el-button type="primary" icon="search" @click="downloadNow(3)"></el-button> <el-button type="primary" icon="search" @click="downloadNow(3)"></el-button>
<el-button type="primary" icon="search" @click="downloadNow(4)"></el-button> <el-button type="primary" icon="search" @click="downloadNow(4)"></el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item> -->
</el-row> </el-row>
</el-form> </el-form>
@ -49,12 +48,12 @@
<el-table-column <el-table-column
label="任务类型" label="任务类型"
prop="idDatas" prop="type"
width="140" width="140"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ type[scope.row.idDatas] }}</span> <span>{{scope.row.type }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -156,16 +155,9 @@ export default {
total: 0, total: 0,
currentRow: null, currentRow: null,
editQuery: null, editQuery: null,
type: {
"AutoDownloadOrder": "已完成单据",
"AutoDownloadBusType": "单据类型",
"AutoDownloadAllData": "基础信息",
"AutoDownloadDiProducts": "国家库DI数据"
},
status: { status: {
0: "等待处理", 1: "处理异常",
1: "处理完成", 2: "处理完成",
2: "处理异常",
}, },
configQuery: { configQuery: {
@ -204,7 +196,7 @@ export default {
}); });
this.filterQuery = { this.filterQuery = {
taskId: null, taskId: null,
status: "1", status: "",
page: 1, page: 1,
limit: 20, limit: 20,
}; };
@ -322,9 +314,8 @@ export default {
}, },
statusFilterType(status) { statusFilterType(status) {
const statusMap = { const statusMap = {
0: "warning", 2: "success",
1: "success", 1: "danger",
2: "danger",
}; };
return statusMap[status]; return statusMap[status];
}, },

Loading…
Cancel
Save