Merge remote-tracking branch 'origin/master'

prod
郑明梁 2 years ago
commit e3fb944dd2

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development' ENV = 'development'
# 开发环境 # 开发环境
VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5004/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://127.0.0.1:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001" VUE_APP_SYNC_API ="http://127.0.0.1:10001"

@ -928,6 +928,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
}else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -163,6 +163,7 @@
<!-- >报表打印--> <!-- >报表打印-->
<!-- </el-button--> <!-- </el-button-->
<!-- >--> <!-- >-->
<!-- 暂时隐藏-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -301,8 +302,7 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="upload(scope.row)" @click.native.stop="upload(scope.row)"
v-if="scope.row.checkFileName != null" >编辑
>预览
</el-button </el-button
> >
</template> </template>
@ -400,7 +400,8 @@
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<el-dialog <el-dialog
@ -419,7 +420,6 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="根据当前单据生成新单据" title="根据当前单据生成新单据"
:visible.sync="stockChangeVisible" :visible.sync="stockChangeVisible"
@ -466,8 +466,6 @@ import {
} from "@/api/itextpdf/itextpdf"; } from "@/api/itextpdf/itextpdf";
const formJson = { const formJson = {
site_id: "", site_id: "",
site_name: "", site_name: "",
@ -659,7 +657,9 @@ export default {
console.log(this.imgList) console.log(this.imgList)
this.imgViewerVisible = true; this.imgViewerVisible = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
@ -676,7 +676,9 @@ export default {
console.log(this.imgListCold) console.log(this.imgListCold)
this.imgViewerVisibleCold = true; this.imgViewerVisibleCold = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
@ -684,14 +686,18 @@ export default {
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold() { closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },

@ -150,6 +150,8 @@
</el-button </el-button
> >
<!-- 暂时隐藏-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -301,7 +303,8 @@
</el-table> </el-table>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<pagination <pagination
@ -762,7 +765,9 @@ export default {
console.log(this.imgListCold) console.log(this.imgListCold)
this.imgViewerVisibleCold = true; this.imgViewerVisibleCold = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
@ -778,7 +783,9 @@ export default {
closeImgViewerCold() { closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
@ -954,6 +961,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -732,6 +732,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
}else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -266,7 +266,6 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160" fixed="right"> <el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -368,8 +367,8 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<el-dialog <el-dialog
@ -644,13 +643,14 @@ export default {
console.log(this.imgListCold) console.log(this.imgListCold)
this.imgViewerVisibleCold = true; this.imgViewerVisibleCold = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { const m = (e) => {
@ -662,7 +662,9 @@ export default {
closeImgViewerCold() { closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },

@ -456,6 +456,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -406,6 +406,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -488,6 +488,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -409,6 +409,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -574,6 +574,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -535,6 +535,9 @@ export default {
} else if (response.code == 520) { } else if (response.code == 520) {
this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.$message.error("新增扫码单据列表已不存在该扫码单据!");
this.getList(); this.getList();
} else {
this.$message.error(response.message);
this.getList();
} }
}) })

@ -161,9 +161,6 @@
<el-table-column label="入库数量" prop="inCount" width="120"></el-table-column> <el-table-column label="入库数量" prop="inCount" width="120"></el-table-column>
<el-table-column label="出库数量" prop="outCount" width="120"></el-table-column> <el-table-column label="出库数量" prop="outCount" width="120"></el-table-column>
<el-table-column label="结余数量" prop="reCount" width="120"> <el-table-column label="结余数量" prop="reCount" width="120">
<template slot-scope="scope">
<span>{{ scope.row.inCount - scope.row.outCount }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="部门" prop="deptName" v-if="showSup" <el-table-column label="部门" prop="deptName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>

@ -161,11 +161,12 @@
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="批次号" prop="batchNo" width="120"></el-table-column> <el-table-column label="批次号" prop="batchNo" width="120"></el-table-column>
<el-table-column label="入库数量" prop="inCount" width="120"></el-table-column> <el-table-column label="入库数量" prop="inCount" width="120"></el-table-column>
<el-table-column label="出库数量" prop="outCount" width="120"></el-table-column> <el-table-column label="出库数量" prop="outCount" width="120">
</el-table-column>
<el-table-column label="结余数量" prop="reCount" width="120"> <el-table-column label="结余数量" prop="reCount" width="120">
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span>{{ scope.row.inCount - scope.row.outCount }}</span> <!-- <span>{{ scope.row.inCount - scope.row.outCount }}</span>-->
</template> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column label="部门" prop="deptName" v-if="showSup" <el-table-column label="部门" prop="deptName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>

@ -162,9 +162,6 @@
<el-table-column label="入库数量" prop="inCount" width="120"></el-table-column> <el-table-column label="入库数量" prop="inCount" width="120"></el-table-column>
<el-table-column label="出库数量" prop="outCount" width="120"></el-table-column> <el-table-column label="出库数量" prop="outCount" width="120"></el-table-column>
<el-table-column label="结余数量" prop="reCount" width="120"> <el-table-column label="结余数量" prop="reCount" width="120">
<template slot-scope="scope">
<span>{{ scope.row.inCount - scope.row.outCount }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="部门" prop="deptName" v-if="showSup" <el-table-column label="部门" prop="deptName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>

@ -474,22 +474,6 @@ export default {
this.successOrderExportPDFSettingVisible = false; this.successOrderExportPDFSettingVisible = false;
this.getList(); this.getList();
}, },
deleteOrders(data) {
this.loading = true;
this.deleteData.id = data;
deleteByOrderId(this.deleteData)
.then((response) => {
this.getList();
this.refresgOrderDetail();
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
});
},
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.reCount === row.count) { if (row.reCount === row.count) {
return "success-row"; return "success-row";
@ -497,7 +481,6 @@ export default {
return "warning-row"; return "warning-row";
} }
}, },
exportDialog(value) { exportDialog(value) {
var mOrder = value; var mOrder = value;
if (mOrder.exportStatus === "已上传") { if (mOrder.exportStatus === "已上传") {
@ -651,18 +634,6 @@ export default {
}); });
}, },
deleteDialog(rowId) {
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteOrders(rowId);
})
.catch(() => {
});
},
closeDetailDialog(val) { closeDetailDialog(val) {
this.codeDetailVisible = false; this.codeDetailVisible = false;
}, },

Loading…
Cancel
Save