Commit 44af44c7 authored by 黄媛媛's avatar 黄媛媛

1

parent 7702de5b
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -44,7 +44,7 @@
<span v-if="scope.row.Type==2">集团</span>
</template>
</el-table-column>
<el-table-column label="类型">
<el-table-column label="状态">
<template slot-scope="scope">
<span v-if="scope.row.Status==1">待审核</span>
<span v-if="scope.row.Status==2">已审核</span>
......@@ -52,7 +52,7 @@
<span v-if="scope.row.Status==4">已作废</span>
</template>
</el-table-column>
<el-table-column prop="CreateBy" label="创建人Id"></el-table-column>
<!-- <el-table-column prop="CreateBy" label="创建人Id"></el-table-column> -->
<el-table-column prop="EmpName" label="创建人姓名"></el-table-column>
<el-table-column prop="DomainName" label="域名"></el-table-column>
<el-table-column prop="Account" label="关联erp账号"></el-table-column>
......
<style>
.printManage .mimitBody {
padding: 20px;
background-color: #fff;
margin: 10px 0 20px 0;
display: table;
width: 100%;
}
.printManage .tpEdit_header {
padding: 18px;
background: #fff;
color: #606266;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row;
}
.printManage .mimitList {
margin-bottom: 15px;
display: flex;
flex-direction: row;
}
.printManage .mimitBody .el-tag {
min-width: 120px;
padding-right: 50px;
}
.printManage .el-button--small {
padding: 9px 25px;
}
.printManage .print_item{
border: 5px solid #000;
padding: 10px;
cursor: pointer;
margin-bottom: 20px;
}
.printManage .print_item2{
border: 5px solid #F56C6C;
padding: 10px;
cursor: pointer;
margin-bottom: 20px;
}
.printManage .print_item_c_r_s{
display: inline-block;
width: 62px;
}
.printManage .xuanzhong_item{
width: 360px;
height: 360px;
border: 1px solid #000;
padding: 10px;
}
</style>
<template>
<div class="printManage">
<div class="tpEdit_header">
<div>
<span style="color:rgb(64, 158, 255);cursor:pointer;" @click="CommonJump('procurementMaage')">采购管理</span><span
style="margin:0 9px;color:#C0C4CC">/</span><span>打印</span>
</div>
<el-button type="primary" size="small" @click="batchprint">批量打印</el-button>
</div>
<div class="mimitBody">
<div>
<el-checkbox v-model="allchecked" @change="allcheckbtn">全选</el-checkbox>
<span style='margin-left:10px'>入库批次</span>
<el-select v-model="msg.StockInId" placeholder="请选择" size="small" clearable @change="allchecked = false,getList()">
<el-option label="不限" :value="0" ></el-option>
<el-option :label="item.StockInNum" :value="item.StockInId" v-for="(item,index2) in options" :key="index2"></el-option>
</el-select>
</div>
<div style="margin-top:30px">
<el-row :gutter="30">
<el-col :span="6" v-for="(item,index) in dataList" :key="index" >
<div :class="item.Ischeck ==true? 'print_item2':'print_item'" @click="gocheke(index)">
<div>{{item.GoodsName}}</div>
<div>
<el-row :gutter="10">
<el-col :span="12">
<img :src="domainManager().DomainUrl+item.QRImage" alt="" style="width:100%">
</el-col>
<el-col :span="12" style='font-size:12px;'>
<div style='margin-top:20px'>
<span class="print_item_c_r_s">入库人:</span>
<span>{{item.EmName}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">入库时间:</span>
<span>{{item.CreateDate}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">仓库名称:</span>
<span>{{item.WareHouseName}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">商品规格:</span>
<span v-for="(x,y) in item.SpecificationList" :key="y">{{x}} <span v-if="item.SpecificationList.length !== y+1"> , </span></span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">成本价格:</span>
<span>{{item.CostMoney}}</span>
</div>
</el-col>
</el-row>
</div>
<div>
<img :src="domainManager().DomainUrl+item.TQRImage" alt="" >
</div>
<div style=" text-align: center;">
<span>{{item.TQRCode}}</span>
</div>
</div>
</el-col>
</el-row>
</div>
<div class="xuanzhong" id = 'xuanzhong' >
<div v-for="(item,index) in checkList" :key="index" class="xuanzhong_item" :id = "item.page" >
<div>{{item.GoodsName}}</div>
<div>
<el-row :gutter="10">
<el-col :span="12">
<img :src="domainManager().DomainUrl+item.QRImage" alt="" style="width:100%">
</el-col>
<el-col :span="12" style='font-size:12px;'>
<div style='margin-top:20px'>
<span class="print_item_c_r_s">入库人:</span>
<span>{{item.EmName}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">入库时间:</span>
<span>{{item.CreateDate}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">仓库名称:</span>
<span>{{item.WareHouseName}}</span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">商品规格:</span>
<span v-for="(x,y) in item.SpecificationList" :key="y">{{x}} <span v-if="item.SpecificationList.length !== y+1"> , </span></span>
</div>
<div style='margin-top:5px'>
<span class="print_item_c_r_s">成本价格:</span>
<span>{{item.CostMoney}}</span>
</div>
</el-col>
</el-row>
</div>
<div style=" margin:0 auto">
<img :src="domainManager().DomainUrl+item.TQRImage" alt="" >
</div>
<div style=" text-align: center;">
<span>{{item.TQRCode}}</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import {getJCP} from '../../assets/js/jcp-vue'
export default {
components:{
getJCP
},
data() {
return {
Detaildata:{},
msg:{
ProcurementId:0,
StockInId:0,
},
options:[],
dataList:[],
checkList:[],
allchecked:false,
};
},
created() {},
methods: {
getProcurementInfo(data) {//获取采购单 入库批次
this.assetsApipost("/api/property/GetProcurementSotckInBatchList", {ProcurementId:data.ID}, res => {
if (res.data.resultCode == 1) {
this.options = res.data.data;
} else {
this.Error(res.data.message);
}
})
},
getList(){//获取采购单 入库商品标签
this.assetsApipost("/api/property/GetProcurementStockInLableList", this.msg, res => {
if (res.data.resultCode == 1) {
this.dataList =res.data.data
this.dataList.forEach(x=>{
x.Ischeck = false
})
} else {
this.Error(res.data.message);
}
})
},
gocheke(index){
this.dataList[index].Ischeck = ! this.dataList[index].Ischeck;
let data = [];
this.dataList.forEach((x,i)=>{
if(x.Ischeck==true){
let obj = x;
data.push(obj)
}
})
this.checkList = data
this.checkList.forEach((x,i)=>{
x.page = 'page'+(i+1)
});
this.$forceUpdate()
},
allcheckbtn(){
if(this.allchecked==true){
let data = [];
this.dataList.forEach((x,i)=>{
x.Ischeck = true;
let obj = x;
obj.page = 'page'+(i+1)
data.push(obj)
})
this.checkList = data
}else{
this.dataList.forEach(x=>{
x.Ischeck = false;
})
this.checkList=[]
}
this.$forceUpdate()
},
batchprint(){//批量打印
var myDoc = {
documents : document, // 打印页面(div)们在本文档中
copyrights : '杰创软件拥有版权 www.jatools.com' // 版权声明必须
};
var jcp = getJCP();
jcp.printPreview(myDoc, false);
}
},
mounted() {
this.msg.ProcurementId = this.$route.query.ID;
this.getProcurementInfo(this.$route.query)
this.getList()
}
};
</script>
......@@ -160,8 +160,11 @@
<span v-if="scope.row.StockInStatus==3">已入库</span>
</template>
</el-table-column>
<el-table-column label="操作" width="120">
<el-table-column label="操作" width="150">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="入库" placement="top">
<img src="../../assets/img/userman/print2.png" alt="" class="temp_imgStyle" @click="goprint(scope.row)" style="width:20px;height:20px" >
</el-tooltip>
<el-tooltip class="item" effect="dark" content="入库" placement="top" v-if="scope.row.StockInStatus==1 || scope.row.StockInStatus==2 ">
<img src="../../assets/img/userman/status_4_active.png" alt="" class="temp_imgStyle" @click="putstorage(scope.row)" style="width:20px;height:20px" >
</el-tooltip>
......@@ -558,6 +561,11 @@
this.CommonJump('putinStorage', {
ID: row.Id,
});
},
goprint(row){
this.CommonJump('printManage', {
ID: row.Id,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment