Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/sync/SysUdimsData.vue
ywj_dev
wj 2 years ago
commit a8c62fcfe3

@ -3,7 +3,8 @@
<el-card style="margin: 5px;margin-top: -20px"> <el-card style="margin: 5px;margin-top: -20px">
<el-form :model="orderFormData" :rules="formRules" ref="dataForm" label-width="100px" <el-form :model="orderFormData" :rules="formRules" ref="dataForm" label-width="100px"
style="margin-bottom: -15px"> style="margin-bottom: -15px">
<el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px"> <el-button-group
style="display: flex; margin: 0px 0 15px 75%; height: 35px">
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@ -11,13 +12,14 @@
>草稿保存 >草稿保存
</el-button </el-button
> >
<el-button <el-button size="mini" type="primary" @click.native="submit()"
size="mini" v-if="curAction.checkWebNew != 2 || viewType !=1"
type="primary"
@click.native="submit()"
>立即提交 >立即提交
</el-button </el-button>
> <el-button size="mini" type="primary" @click.native="submit(1)"
v-if="curAction.checkWebNew > 1 && viewType == 1"
>待配货提交
</el-button>
<el-button size="mini" type="primary" @click.native="submit(1)" <el-button size="mini" type="primary" @click.native="submit(1)"
v-if="curAction.checkWebNew == 3" v-if="curAction.checkWebNew == 3"

@ -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"

@ -75,7 +75,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item prop="name" label="仓库名称"> <el-form-item prop="invName" label="仓库名称">
<el-input v-model="formData.invName" disabled auto-complete="off" style="width: 90%" <el-input v-model="formData.invName" disabled auto-complete="off" style="width: 90%"
></el-input> ></el-input>
</el-form-item> </el-form-item>

@ -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" disabled>
<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" disabled>
<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: [],

@ -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>
@ -120,7 +121,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,
@ -198,8 +199,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() {
@ -275,7 +276,8 @@ export default {
.then(() => { .then(() => {
this.createSchedule(type); this.createSchedule(type);
}) })
.catch(() => {}); .catch(() => {
});
} else { } else {
this.createSchedule(type); this.createSchedule(type);
} }
@ -298,7 +300,8 @@ export default {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
type: "warning", type: "warning",
callback: action => {} callback: action => {
}
}); });
} else { } else {
@ -334,7 +337,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) {
@ -355,7 +359,7 @@ export default {
return statusMap[status]; return statusMap[status];
}, },
wmsFilterType(status) { wmsFilterType(status) {
return status?'success':'warning'; return status ? 'success' : 'warning';
}, },
@ -366,7 +370,8 @@ export default {
this.configParms = response.data; this.configParms = response.data;
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
detailDialog(id) { detailDialog(id) {
this.syncVisible = true; this.syncVisible = true;

@ -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() {

@ -252,6 +252,8 @@ export default {
this.cancelDialog(); this.cancelDialog();
this.loading = false; this.loading = false;
this.getList(); this.getList();
} else {
this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;

@ -453,8 +453,8 @@ export default {
// //
this.formVisible = false; this.formVisible = false;
this.subFormVisible = false; this.subFormVisible = false;
let Item = JSON.parse(localStorage.getItem('obj')) // let Item = JSON.parse(localStorage.getItem('obj'))
this.subData=Item; // this.subData=Item;
this.getSubList(); this.getSubList();
return true; return true;
}, },

Loading…
Cancel
Save