Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop

This commit is contained in:
shijing 2022-03-10 09:15:21 +08:00
commit d78e871233
3 changed files with 42 additions and 6 deletions

View File

@ -47,10 +47,15 @@
<el-table-column label="规格型号"> <el-table-column label="规格型号">
<template slot-scope="scope">{{ scope.row.material_.specification }}</template> <template slot-scope="scope">{{ scope.row.material_.specification }}</template>
</el-table-column> </el-table-column>
<el-table-column label="有效期">
<template slot-scope="scope">{{ scope.row.expiration_date }}</template> <el-table-column label="有效期" >
<template slot-scope="scope">
<el-tag v-if="scope.row.expiration_date" :type="setClass(scope.row.expiration_date)">
{{scope.row.expiration_date}}
</el-tag>
<div v-else></div></template
>
</el-table-column> </el-table-column>
<el-table-column label="物料编号"> <el-table-column label="物料编号">
<template slot-scope="scope">{{ <template slot-scope="scope">{{
scope.row.material_.number scope.row.material_.number
@ -130,7 +135,23 @@ export default {
this.listLoading = false; this.listLoading = false;
}); });
}, },
//校准时间提醒
setClass:function(check_date) {
let obj = {};
if(check_date!=null){
let dat = new Date();
let time = dat.getTime();
let check = new Date(check_date).getTime();
let timeDiffer = (check-time)/1000/60/60/24;
if (timeDiffer<0) {
obj = "danger";
}
}
return obj;
},
handleFilter() { handleFilter() {
this.listQuery.page = 1; this.listQuery.page = 1;
this.getList(); this.getList();

View File

@ -26,7 +26,7 @@
{{ salesdetail.order_.number }} {{ salesdetail.order_.number }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="物流详情" v-if="ship_pic!=''"> <el-descriptions-item label="物流详情" v-if="ship_pic!=''">
<el-link :href="salesdetail.ship_pic">物流单</el-link></el-descriptions-item> <el-link type="primary" :href="salesdetail.ship_pic">物流单</el-link></el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-button type="primary" style="margin-top:10px" @click="upload">上传物流信息</el-button> <el-button type="primary" style="margin-top:10px" @click="upload">上传物流信息</el-button>
</el-card> </el-card>
@ -295,6 +295,7 @@ export default {
}, },
handleUpSuccess(res, file, filelist) { handleUpSuccess(res, file, filelist) {
this.ship.path = res.data.path; this.ship.path = res.data.path;
this.salesdetail.ship_pic=res.data.path;
console.log(this.ship.path) console.log(this.ship.path)
}, },
handleRemove(file, filelist){ handleRemove(file, filelist){

View File

@ -935,7 +935,13 @@
//车间物料表 //车间物料表
this.getwmaterialLists(); this.getwmaterialLists();
// 半成品表 // 半成品表
this.getwproductLists(); getwproductList({page:0,tag:'no_scrap'}).then((response) => {
if (response.data) {
this.wproductData = response.data;
//console.log( this.wproductData)
}
});
}, },
//大工序下子工序产出的半成品 //大工序下子工序产出的半成品
@ -1009,6 +1015,14 @@
this.dialogVisiblenw = false; this.dialogVisiblenw = false;
this.$message.success("领料成功!"); this.$message.success("领料成功!");
this.listQuery.process = this.process;
getsubplanList(this.listQuery).then((response) => {
if (response.data) {
this.subproductionplanList = response.data;
}
});
//车间物料表 //车间物料表
this.getwmaterialLists(); this.getwmaterialLists();
// 半成品表 // 半成品表