|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="bg">
|
|
|
<el-dialog
|
|
|
width="21cm"
|
|
|
- height="10cm"
|
|
|
+ height="12cm"
|
|
|
:modal-append-to-body="false"
|
|
|
title="物料标签"
|
|
|
:visible.sync="scanVisible"
|
|
|
@@ -43,7 +43,7 @@
|
|
|
"
|
|
|
>
|
|
|
<span> 物料名称:</span>
|
|
|
- <p style="width: 150px; margin: 0px">
|
|
|
+ <p style="width: 180px; margin: 0px">
|
|
|
{{ item1.wu_liao_ming_chen }}
|
|
|
</p>
|
|
|
</div>
|
|
|
@@ -62,11 +62,11 @@
|
|
|
</div>
|
|
|
<div class="la">
|
|
|
<div style="display: flex">
|
|
|
- <div class="lh" style="display: flex;">
|
|
|
+ <div class="lh" style="display: flex">
|
|
|
<div>货号:</div>
|
|
|
<div>{{ item1.huo_hao_ }}</div>
|
|
|
</div>
|
|
|
- <div class="lh" style="display: flex;margin-left:1px;">
|
|
|
+ <div class="lh" style="display: flex; margin-left: 1px">
|
|
|
<div>批号:</div>
|
|
|
<div>{{ item1.pi_hao_ }}</div>
|
|
|
</div>
|
|
|
@@ -80,7 +80,11 @@
|
|
|
{{ item1.wai_jian_ | timesfiltes(listtimes) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="lh" style="margin-left:1px;">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="la">
|
|
|
+ <div style="display: flex">
|
|
|
+ <div class="lh" style="margin-left: 1px">
|
|
|
<div>有效期:</div>
|
|
|
<div>{{ item1.you_xiao_qi_ }}</div>
|
|
|
</div>
|
|
|
@@ -100,10 +104,12 @@
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
- style="page-break-after: always; display: block !important;height: 40px"
|
|
|
- >
|
|
|
-
|
|
|
- </div>
|
|
|
+ style="
|
|
|
+ page-break-after: always;
|
|
|
+ display: block !important;
|
|
|
+ height: 40px;
|
|
|
+ "
|
|
|
+ ></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -166,23 +172,20 @@ export default {
|
|
|
filters: {
|
|
|
timesfiltes: function (value, arr) {
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
- // console.log(arr[i].id_==value)
|
|
|
if (arr[i].id_ == value) {
|
|
|
- console.log(arr[i].yan_shou_ru_ku_ri);
|
|
|
return arr[i].yan_shou_ru_ku_ri;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- fenyefiltes: function (fenye, index) {
|
|
|
- console.log(fenye);
|
|
|
- },
|
|
|
- },
|
|
|
- update() {
|
|
|
- console.log("数据变动");
|
|
|
},
|
|
|
created() {
|
|
|
this.getInit();
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ obj() {
|
|
|
+ this.getInit();
|
|
|
+ },
|
|
|
+ },
|
|
|
// destroyed() {
|
|
|
// window.location.reload()
|
|
|
// document.body.innerHTML = oldContent
|
|
|
@@ -194,7 +197,6 @@ export default {
|
|
|
// this.$refs.easyPrint.window.print()
|
|
|
},
|
|
|
getInit() {
|
|
|
- // console.log(this.obj)
|
|
|
var idStr = "";
|
|
|
this.obj.forEach((item) => {
|
|
|
idStr += item + ",";
|
|
|
@@ -208,14 +210,11 @@ export default {
|
|
|
let sql = `select * FROM t_cgysjlb WHERE FIND_IN_SET(wai_jian_,'${id}')`;
|
|
|
|
|
|
repostCurd("sql", sql).then((res) => {
|
|
|
- console.log(sql, "sql");
|
|
|
this_.list = res.variables.data;
|
|
|
- console.log(this_.list);
|
|
|
});
|
|
|
let sql1 = `select id_,yan_shou_ru_ku_ri FROM t_yszb WHERE FIND_IN_SET(id_,'${id}')`;
|
|
|
repostCurd("sql", sql1).then((res) => {
|
|
|
this_.listtimes = res.variables.data;
|
|
|
- console.log(this_.listtimes);
|
|
|
});
|
|
|
},
|
|
|
},
|