|
|
|
@ -225,6 +225,7 @@
|
|
|
|
|
<el-table-column prop="menu" label="操作" :width="220" align="center"> |
|
|
|
|
<template #="{ row }"> |
|
|
|
|
<el-button type="primary" text icon="el-icon-view" v-if=" row.stockupStatusName== '待备货' " @click="handleStockUp(row,'2')">备货</el-button> |
|
|
|
|
<el-button type="primary" text icon="el-icon-view" @click="handleQRCode(row)">查看包条码</el-button> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(row)">查看</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-delete" @click="rowDel(row)">删除</el-button>--> |
|
|
|
@ -248,6 +249,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="库存品" name="enter"> |
|
|
|
|
<el-button type="primary" text icon="el-icon-view" >批量打印</el-button> |
|
|
|
|
<el-table |
|
|
|
|
ref="table" |
|
|
|
|
v-loading="loading" |
|
|
|
@ -278,6 +280,14 @@
|
|
|
|
|
</el-table-column> |
|
|
|
|
</template> |
|
|
|
|
<!-- 操作栏模块 --> |
|
|
|
|
<el-table-column prop="menu" label="操作" :width="220" align="center"> |
|
|
|
|
<template #="{ row }"> |
|
|
|
|
<el-button type="primary" text icon="el-icon-view" v-if=" row.stockupStatusName== '已备货' " >明细</el-button> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(row)">查看</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-delete" @click="rowDel(row)">删除</el-button>--> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="avue-crud__pagination" style="width: 100%"> |
|
|
|
|
<!-- 分页模块 --> |
|
|
|
@ -312,6 +322,25 @@
|
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-row>--> |
|
|
|
|
<el-dialog title="二维码" :visible.sync="dialogVisible" width="780px" v-model="dialogVisible"> |
|
|
|
|
<div> |
|
|
|
|
<div v-html="html"></div> |
|
|
|
|
|
|
|
|
|
<!-- <div v-for="(item,index) in qrCodeObj"> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="24" > |
|
|
|
|
<el-image width="10" height="10" w-full :key="index" :src="item " alt="Preview Image"/> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</div> --> |
|
|
|
|
</div> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<!-- <el-button type="primary" @click="ddd">导 出</el-button>--> |
|
|
|
|
<el-button type="primary" @click="printTemplate">打 印</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
<el-dialog v-model="dialogHand" title="系统备货"> |
|
|
|
|
<el-form :model="form"> |
|
|
|
|
<el-form-item label="备货区域" :label-width="formLabelWidth" > |
|
|
|
@ -381,10 +410,14 @@ import { getDictionaryBiz } from '@/api/system/dict';
|
|
|
|
|
import { getParcelListOwn, getParcelListOwnSelf } from '@/api/distribution/distributionParcelList'; |
|
|
|
|
import { stockUp } from '@/api/basicdata/basicdataGoodsArea'; |
|
|
|
|
import { getStockDetail } from '@/api/distribution/distributionStock'; |
|
|
|
|
import { getStockTemplate, showOrderPackgeCode } from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { getLodop } from '@/utils/LodopFuncs'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
html: null, // 页面包条码内容 |
|
|
|
|
dialogVisible: false, //二维码控制 |
|
|
|
|
height: 0, |
|
|
|
|
activeName: 'reservation', |
|
|
|
|
// 弹框标题 |
|
|
|
@ -489,6 +522,54 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//打印 |
|
|
|
|
printTemplate() { |
|
|
|
|
let LODOP = getLodop(); |
|
|
|
|
console.log("LODOP>>>>>",LODOP); |
|
|
|
|
// console.log("this.ids>>>>>",this.selectionList); |
|
|
|
|
// if (this.selectionList.length === 0){ |
|
|
|
|
// this.$message.warning("请选择至少一条数据"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
getStockTemplate({ id: this.materialQRCode.id }).then(res => { |
|
|
|
|
console.log('返回的数据', res.data.data); |
|
|
|
|
let templateData = res.data.data; |
|
|
|
|
// let templateData = "res.data.data"; |
|
|
|
|
// console.log(templateData); |
|
|
|
|
LODOP.PRINT_INITA(1, 1, 900, 660, '测试预览功能'); |
|
|
|
|
LODOP.SET_PRINT_MODE('WINDOW_DEFPRINTER', 'Godex G500'); |
|
|
|
|
LODOP.SET_PRINT_STYLEA(0,"TextNeatRow",true);//允许标点溢出,且英文单词拆开 |
|
|
|
|
// // 设置打印整宽且不变形 |
|
|
|
|
LODOP.SET_PRINT_MODE('PRINT_PAGE_PERCENT', 'Auto-Width'); |
|
|
|
|
// // 设置打印后自动关闭 |
|
|
|
|
LODOP.SET_PRINT_MODE('AUTO_CLOSE_PREWINDOW', 1); |
|
|
|
|
// // data就是一段html文本 |
|
|
|
|
LODOP.ADD_PRINT_HTM('0%', '0%', '100%', '100%', templateData); |
|
|
|
|
// LODOP.PREVIEW(); //预览(预览打印无脚标) |
|
|
|
|
LODOP.PRINT(); //直接打印 |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//查看包条码 |
|
|
|
|
handleQRCode(row) { |
|
|
|
|
// this.title = '查看' |
|
|
|
|
// this.view = true; |
|
|
|
|
// this.box = true; |
|
|
|
|
this.materialQRCode = row; |
|
|
|
|
|
|
|
|
|
let qr = { |
|
|
|
|
ids: row.id, |
|
|
|
|
}; |
|
|
|
|
showOrderPackgeCode(qr).then(res => { |
|
|
|
|
// this.orderPackageCode = res.data |
|
|
|
|
console.log(res.data); |
|
|
|
|
this.html='' |
|
|
|
|
this.html=this.getHtmls(res.data.data.dataList,res.data.data.templateHtml) |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
}, |
|
|
|
|
//选择 |
|
|
|
|
getForklift(row,ty){ |
|
|
|
|
switch (ty){ |
|
|
|
|