fix:玻纤大箱发货标签放到详情里
This commit is contained in:
parent
9f35d79424
commit
353871c2d8
|
|
@ -9,7 +9,8 @@
|
||||||
<div style="padding: 8px">
|
<div style="padding: 8px">
|
||||||
<div>
|
<div>
|
||||||
<el-card style="width: 100%" header="基本信息" shadow="hover">
|
<el-card style="width: 100%" header="基本信息" shadow="hover">
|
||||||
<el-button type="primary" @click="handlePrint" style="position: absolute;right: 40px;">打印</el-button>
|
<el-button type="primary" v-if="project_code=='bxerp'" @click="printSaleOut(mioObj,'out')" style="position: absolute;right: 40px;">发货标签</el-button>
|
||||||
|
<el-button type="primary" v-else @click="handlePrint" style="position: absolute;right: 40px;">打印</el-button>
|
||||||
<el-descriptions>
|
<el-descriptions>
|
||||||
<el-descriptions-item label="编号">{{
|
<el-descriptions-item label="编号">{{
|
||||||
mioObj.number
|
mioObj.number
|
||||||
|
|
@ -70,6 +71,7 @@
|
||||||
v-if="mioObj.state == 10&&mode!=='show'&&type=='sale_out'&&project_code=='bxerp'"
|
v-if="mioObj.state == 10&&mode!=='show'&&type=='sale_out'&&project_code=='bxerp'"
|
||||||
>装箱</el-button>
|
>装箱</el-button>
|
||||||
<scFileImport
|
<scFileImport
|
||||||
|
v-if="mioObj.state == 10&&mode!=='show'"
|
||||||
:templateUrl="mioitemT"
|
:templateUrl="mioitemT"
|
||||||
:name = "'导入明细'"
|
:name = "'导入明细'"
|
||||||
accept=".xlsx"
|
accept=".xlsx"
|
||||||
|
|
|
||||||
|
|
@ -513,7 +513,7 @@ export default {
|
||||||
that.wprList = [];
|
that.wprList = [];
|
||||||
that.mioitems = [];
|
that.mioitems = [];
|
||||||
if(items){
|
if(items){
|
||||||
if(that.form.type == 'do_out'&&that.project_code=='bxerp'){
|
if(that.form.type == 'sale_out'&&that.project_code=='bxerp'){
|
||||||
let count = 0;
|
let count = 0;
|
||||||
if(that.tableDatas.length>0){
|
if(that.tableDatas.length>0){
|
||||||
that.tableDatas.forEach((item0) => {
|
that.tableDatas.forEach((item0) => {
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ export default {
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
props: {
|
props: {
|
||||||
type: { type: String, default: "" },
|
type: { type: String, default: "" },
|
||||||
mioitemObj: { type: Object },
|
mioObj: { type: Object },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -135,7 +135,29 @@ export default {
|
||||||
printer_name:localStorage.getItem("printer_name"),
|
printer_name:localStorage.getItem("printer_name"),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {
|
||||||
|
let that = this;
|
||||||
|
console.log(that.type);
|
||||||
|
console.log(that.mioObj);
|
||||||
|
that.$nextTick(() => {
|
||||||
|
if(that.type=="in"){//里面的小箱子
|
||||||
|
that.form.name = that.mioObj.material_?that.mioObj.material_.name:'';
|
||||||
|
that.form.model = that.mioObj.material_?that.mioObj.material_.model:'';
|
||||||
|
that.form.batch = that.mioObj.batch;
|
||||||
|
that.form.count = that.mioObj.count;
|
||||||
|
}else{//外面的大箱子
|
||||||
|
let date = new Date();
|
||||||
|
that.form.date = that.$TOOL.dateFormat2(date);
|
||||||
|
console.log(that.form.date);
|
||||||
|
let items = that.mioObj.items;
|
||||||
|
that.form.date = that.mioObj.date;
|
||||||
|
that.form.packNum = items.length;
|
||||||
|
that.form.pack = items.map(item=>item.count).reduce((a,b)=>a+b);
|
||||||
|
that.form.name = items[0].material_.name;
|
||||||
|
that.form.model = items[0].material_.model;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//显示
|
//显示
|
||||||
open() {
|
open() {
|
||||||
|
|
@ -159,9 +181,9 @@ export default {
|
||||||
"WINTEXT 80,750,36,90,0,0,Simhei,名称",
|
"WINTEXT 80,750,36,90,0,0,Simhei,名称",
|
||||||
"WINTEXT 80,600,36,90,0,0,Simhei," + this.form.name,
|
"WINTEXT 80,600,36,90,0,0,Simhei," + this.form.name,
|
||||||
"WINTEXT 130,750,36,90,0,0,Simhei,批号",
|
"WINTEXT 130,750,36,90,0,0,Simhei,批号",
|
||||||
"WINTEXT 130,600,36,90,0,0,Simhei," + this.form.model,
|
"WINTEXT 130,600,36,90,0,0,Simhei," + this.form.batch,
|
||||||
"WINTEXT 180,750,36,90,0,0,Simhei,型号" ,
|
"WINTEXT 180,750,36,90,0,0,Simhei,型号" ,
|
||||||
"WINTEXT 180,600,36,90,0,0,Simhei," + this.form.batch,
|
"WINTEXT 180,600,36,90,0,0,Simhei," + this.form.model,
|
||||||
"WINTEXT 230,750,36,90,0,0,Simhei,数量" ,
|
"WINTEXT 230,750,36,90,0,0,Simhei,数量" ,
|
||||||
"WINTEXT 230,600,36,90,0,0,Simhei," + this.form.count,
|
"WINTEXT 230,600,36,90,0,0,Simhei," + this.form.count,
|
||||||
"PRINT 1",
|
"PRINT 1",
|
||||||
|
|
|
||||||
|
|
@ -95,11 +95,11 @@
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-link
|
<!-- <el-link
|
||||||
type="primary"
|
type="primary"
|
||||||
v-if="scope.row.state == 20"
|
v-if="scope.row.state == 20"
|
||||||
@click="printSaleOut(scope.row,'out')"
|
@click="printSaleOut(scope.row,'out')"
|
||||||
>发货标签</el-link>
|
>发货标签</el-link> -->
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="warning"
|
type="warning"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue