界面优化备份

ywj_dev
anthonywj 2 years ago
parent 2bd4195f23
commit a2f288f0ad

@ -83,6 +83,12 @@
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="货位"
prop="invSpaceName"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="入库数量" label="入库数量"
prop="inCount" prop="inCount"

@ -83,6 +83,12 @@
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="货位"
prop="invSpaceName"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="入库数量" label="入库数量"
prop="inCount" prop="inCount"

@ -81,6 +81,12 @@
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="货位"
prop="invSpaceName"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="入库数量" label="入库数量"
prop="inCount" prop="inCount"

@ -60,7 +60,7 @@
</el-descriptions> </el-descriptions>
</el-collapse-item> </el-collapse-item>
<!-- 上传值UDI自助平台基础数据 --> <!-- 上传值UDI自助平台基础数据 -->
<el-collapse-item title="上传至UDI自助平台基础数据" name="2"> <el-collapse-item title="基础数据同步" name="2">
<el-descriptions class="margin-top" :column="1" :size="100" border> <el-descriptions class="margin-top" :column="1" :size="100" border>
<!-- 参数设置 --> <!-- 参数设置 -->
<el-descriptions-item> <el-descriptions-item>
@ -291,6 +291,25 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 其他数据</template>
<el-form label-positiom="right" label-width="200px" :inline="true">
<el-form-item label="UDI码补齐数据">
<el-select v-model="configQuery.udiCodeLost">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
<el-form-item label="UDI关联关系">
<el-select v-model="configQuery.udiCodeRel">
<el-option :value="0" label="不同步"></el-option>
<el-option :value="1" label="由内向外"></el-option>
<el-option :value="2" label="由外向内"></el-option>
</el-select>
</el-form-item>
</el-form>
</el-descriptions-item>
<!-- 第三方基础信息 --> <!-- 第三方基础信息 -->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 第三方基础信息</template> <template slot="label"> 第三方基础信息</template>
@ -795,6 +814,8 @@ export default {
scanChangeConfig: null, scanChangeConfig: null,
busChangeConfig: null, busChangeConfig: null,
dbDiCompany: null, dbDiCompany: null,
udiCodeLost:null,
udiCodeRel:null,
}, },
checkedBusTypes: [], checkedBusTypes: [],
checkedToInBusTypes: [], checkedToInBusTypes: [],

@ -29,7 +29,7 @@
<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 type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)">--> <!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)">-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- &lt;!&ndash; :disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"&ndash;&gt;--> <!-- &lt;!&ndash; :disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"&ndash;&gt;-->
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"--> <!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"-->
@ -48,7 +48,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%" border>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="任务ID" prop="id" width="140" show-overflow-tooltip></el-table-column> <el-table-column label="任务ID" prop="id" width="140" show-overflow-tooltip></el-table-column>
@ -72,9 +72,9 @@
<el-table-column label="开始时间" width="180" prop="startTime" show-overflow-tooltip></el-table-column> <el-table-column label="开始时间" 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 label="结束时间" width="180" prop="endTime" show-overflow-tooltip></el-table-column>
<el-table-column label="备注" prop="remark" show-overflow-tooltip></el-table-column> <el-table-column label="同步信息" prop="remark" show-overflow-tooltip></el-table-column>
<el-table-column label="同步信息" prop="cacheFilePath" show-overflow-tooltip></el-table-column> <el-table-column label="文件路径" prop="cacheFilePath" 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">
@ -83,7 +83,8 @@
<el-button type="text" size="small" slot="reference">下载 <el-button type="text" size="small" slot="reference">下载
</el-button> </el-button>
</el-popconfirm> </el-popconfirm>
<el-popconfirm v-if="scope.row.status==4" @confirm="deleteData(scope.row.id)" confirm-button-text='' cancel-button-text='' <el-popconfirm v-if="scope.row.status==4" @confirm="deleteData(scope.row.id)" confirm-button-text=''
cancel-button-text='不用了'
icon="el-icon-info" icon-color="red" title="是否确认要删除这条数据?"> icon="el-icon-info" icon-color="red" title="是否确认要删除这条数据?">
<el-button type="text" size="small" slot="reference">删除 <el-button type="text" size="small" slot="reference">删除
</el-button> </el-button>
@ -119,7 +120,7 @@ export default {
return { return {
filterQuery: { filterQuery: {
id: null, id: null,
status: "1", status: null,
page: 1, page: 1,
limit: 10, limit: 10,
syncTime: null, syncTime: null,
@ -197,8 +198,8 @@ export default {
this.syncTime = null; this.syncTime = null;
this.getList(); this.getList();
}, },
search(){ search() {
this.filterQuery.page=1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
getList() { getList() {
@ -274,7 +275,8 @@ export default {
.then(() => { .then(() => {
this.createSchedule(type); this.createSchedule(type);
}) })
.catch(() => {}); .catch(() => {
});
} else { } else {
this.createSchedule(type); this.createSchedule(type);
} }
@ -297,7 +299,8 @@ export default {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
type: "warning", type: "warning",
callback: action => {} callback: action => {
}
}); });
} else { } else {
@ -333,7 +336,8 @@ export default {
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => {}); .catch(() => {
});
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
if (response.code != 20000) { if (response.code != 20000) {
@ -354,7 +358,7 @@ export default {
return statusMap[status]; return statusMap[status];
}, },
wmsFilterType(status) { wmsFilterType(status) {
return status?'success':'warning'; return status ? 'success' : 'warning';
}, },
@ -365,7 +369,8 @@ export default {
this.configParms = response.data; this.configParms = response.data;
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
detailDialog(id) { detailDialog(id) {
this.syncVisible = true; this.syncVisible = true;
@ -401,11 +406,13 @@ export default {
} }
this.getList(); this.getList();
}) })
.catch(() => {}); .catch(() => {
});
} }
}, },
mounted() {}, mounted() {
},
components: {}, components: {},
created() { created() {
this.headers = { this.headers = {

@ -28,6 +28,7 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
border
style="width: 100%" style="width: 100%"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -91,7 +92,7 @@
<el-button type="text" size="small" slot="reference">下载 <el-button type="text" size="small" slot="reference">下载
</el-button> </el-button>
</el-popconfirm> </el-popconfirm>
<el-popconfirm @confirm="deleteData(scope.row.id)" confirm-button-text='' cancel-button-text='' <el-popconfirm @confirm="deleteData(scope.row.id)" confirm-button-text='' cancel-button-text=''
icon="el-icon-info" icon-color="red" title="是否确认要删除这条数据?"> icon="el-icon-info" icon-color="red" title="是否确认要删除这条数据?">
<el-button type="text" size="small" slot="reference">删除 <el-button type="text" size="small" slot="reference">删除
</el-button> </el-button>
@ -122,7 +123,7 @@
</template> </template>
<script> <script>
import {filterLog, deleteLog, findConfig,downloadFile} from "@/api/sync/spsSyncDownload"; import {filterLog, deleteLog, findConfig, downloadFile} from "@/api/sync/spsSyncDownload";
import store from "@/store"; import store from "@/store";
export default { export default {
@ -204,7 +205,7 @@ export default {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total?Number.parseInt(response.data.total):0; this.total = response.data.total ? Number.parseInt(response.data.total) : 0;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -298,34 +299,35 @@ export default {
} }
}) })
}, },
downFile(rows) { downFile(rows) {
downloadFile({ downloadFile({
'id': rows.id 'id': rows.id
}).then(res => { }).then(res => {
let blob = new Blob([res]) let blob = new Blob([res])
let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/')) let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/'))
let link = document.createElement("a") let link = document.createElement("a")
link.href = window.URL.createObjectURL(blob) link.href = window.URL.createObjectURL(blob)
link.download = fileName link.download = fileName
link.style.display = 'none' link.style.display = 'none'
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
window.URL.revokeObjectURL(link.href) window.URL.revokeObjectURL(link.href)
document.body.removeChild(link) document.body.removeChild(link)
}) })
}, },
deleteData(id) { deleteData(id) {
deleteLog({id}).then((response) => { deleteLog({id}).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.filterQuery.page = 1 this.filterQuery.page = 1
this.$message.success("删除成功"); this.$message.success("删除成功");
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.getList(); this.getList();
}) })
.catch(() => {}); .catch(() => {
} });
}
}, },
mounted() { mounted() {

Loading…
Cancel
Save