|
|
@@ -1,47 +1,22 @@
|
|
|
<template>
|
|
|
<div class="bg">
|
|
|
- <el-dialog
|
|
|
- width="21cm"
|
|
|
- height="12cm"
|
|
|
- :modal-append-to-body="false"
|
|
|
- title="物料标签"
|
|
|
- :visible.sync="scanVisible"
|
|
|
- >
|
|
|
+ <el-dialog width="21cm" height="12cm" :modal-append-to-body="false" title="物料标签" :visible.sync="scanVisible">
|
|
|
<!-- 表单是否显示 -->
|
|
|
<div class="demo">
|
|
|
<div ref="qrcode" id="box">
|
|
|
- <vue-easy-print
|
|
|
- tableShow
|
|
|
- ref="easyPrint"
|
|
|
- :onePageRow="onePageRow"
|
|
|
- :spaceRow="spaceRow"
|
|
|
- >
|
|
|
- <div
|
|
|
- v-for="(item1, index1) in list"
|
|
|
- :key="index1"
|
|
|
- class="box-content"
|
|
|
- >
|
|
|
- <div
|
|
|
- v-for="(item2, index2) in parseInt(item1.shu_liang_) || 0"
|
|
|
- :key="index2"
|
|
|
- style="display: inline-block"
|
|
|
- >
|
|
|
+ <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow" :spaceRow="spaceRow">
|
|
|
+ <div v-for="(item1, index1) in list" :key="index1" class="box-content">
|
|
|
+ <div v-for="(item2, index2) in parseInt(item1.shu_liang_) || 0" :key="index2" style="display: inline-block">
|
|
|
<div class="tagBox">
|
|
|
<div class="logo">
|
|
|
- <img
|
|
|
- style="width: 90px; height: 20px"
|
|
|
- src="./ming.jpg"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <img style="width: 90px; height: 20px" src="./ming.jpg" alt="" />
|
|
|
</div>
|
|
|
<div class="la">
|
|
|
- <div
|
|
|
- style="
|
|
|
+ <div style="
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
text-align: left;
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
<span> 物料名称:</span>
|
|
|
<p style="width: 180px; margin: 0px">
|
|
|
{{ item1.wu_liao_ming_chen }}
|
|
|
@@ -103,13 +78,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div
|
|
|
- style="
|
|
|
+ <div style="
|
|
|
page-break-after: always;
|
|
|
display: block !important;
|
|
|
height: 40px;
|
|
|
- "
|
|
|
- ></div>
|
|
|
+ "></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -173,7 +146,7 @@ export default {
|
|
|
timesfiltes: function (value, arr) {
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
if (arr[i].id_ == value) {
|
|
|
- return arr[i].yan_shou_ru_ku_ri;
|
|
|
+ return arr[i].dao_huo_ri_qi_;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -205,16 +178,17 @@ export default {
|
|
|
|
|
|
this.getLook(idStr);
|
|
|
},
|
|
|
- getLook(id) {
|
|
|
+ async getLook(id) {
|
|
|
let this_ = this;
|
|
|
- this.list=[];
|
|
|
+ this.list = [];
|
|
|
let sql = `select * FROM t_cgysjlb WHERE FIND_IN_SET(wai_jian_,'${id}')`;
|
|
|
|
|
|
- repostCurd("sql", sql).then((res) => {
|
|
|
+ await repostCurd("sql", sql).then((res) => {
|
|
|
this_.list = res.variables.data;
|
|
|
});
|
|
|
- let sql1 = `select id_,yan_shou_ru_ku_ri FROM t_yszb WHERE FIND_IN_SET(id_,'${id}')`;
|
|
|
- repostCurd("sql", sql1).then((res) => {
|
|
|
+ let sql1 = `select id_,dao_huo_ri_qi_ FROM t_yszb WHERE FIND_IN_SET(id_,'${id}')`;
|
|
|
+ console.log(sql1)
|
|
|
+ await repostCurd("sql", sql1).then((res) => {
|
|
|
this_.listtimes = res.variables.data;
|
|
|
});
|
|
|
},
|