界面优化备份

ywj_dev
anthonywj 2 years ago
parent 2bd4195f23
commit a2f288f0ad

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

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

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

@ -60,7 +60,7 @@
</el-descriptions>
</el-collapse-item>
<!-- 上传值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-item>
@ -291,6 +291,25 @@
</el-form-item>
</el-form>
</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>
<template slot="label"> 第三方基础信息</template>
@ -795,6 +814,8 @@ export default {
scanChangeConfig: null,
busChangeConfig: null,
dbDiCompany: null,
udiCodeLost:null,
udiCodeRel:null,
},
checkedBusTypes: [],
checkedToInBusTypes: [],

@ -29,7 +29,7 @@
<el-button-group style="display:flex;">
<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="createScheduleDialog(1)">-->
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)">-->
<!-- </el-button>-->
<!-- &lt;!&ndash; :disabled="!configParms.orderScanFinish&& !configParms.orderUnReceive&& !configParms.orderUnCheck"&ndash;&gt;-->
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"-->
@ -48,7 +48,7 @@
</el-row>
</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="任务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="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">
<template slot-scope="scope">
@ -83,7 +83,8 @@
<el-button type="text" size="small" slot="reference">下载
</el-button>
</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="是否确认要删除这条数据?">
<el-button type="text" size="small" slot="reference">删除
</el-button>
@ -119,7 +120,7 @@ export default {
return {
filterQuery: {
id: null,
status: "1",
status: null,
page: 1,
limit: 10,
syncTime: null,
@ -197,8 +198,8 @@ export default {
this.syncTime = null;
this.getList();
},
search(){
this.filterQuery.page=1;
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
@ -274,7 +275,8 @@ export default {
.then(() => {
this.createSchedule(type);
})
.catch(() => {});
.catch(() => {
});
} else {
this.createSchedule(type);
}
@ -297,7 +299,8 @@ export default {
this.$alert(response.message, '提示', {
confirmButtonText: '确定',
type: "warning",
callback: action => {}
callback: action => {
}
});
} else {
@ -333,7 +336,8 @@ export default {
this.loading = false;
});
})
.catch(() => {});
.catch(() => {
});
},
handleChange(response, files, fileList) {
if (response.code != 20000) {
@ -354,7 +358,7 @@ export default {
return statusMap[status];
},
wmsFilterType(status) {
return status?'success':'warning';
return status ? 'success' : 'warning';
},
@ -365,7 +369,8 @@ export default {
this.configParms = response.data;
}
})
.catch(() => {});
.catch(() => {
});
},
detailDialog(id) {
this.syncVisible = true;
@ -401,11 +406,13 @@ export default {
}
this.getList();
})
.catch(() => {});
.catch(() => {
});
}
},
mounted() {},
mounted() {
},
components: {},
created() {
this.headers = {

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

Loading…
Cancel
Save