Browse Source

修改自提备货查询

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
e55aea531e
  1. 4
      src/option/distribution/distributionStockup.js
  2. 7
      src/views/distribution/inventory/distributionStockArticleDetails.vue
  3. 81
      src/views/distribution/stockup/distributionStockupDetailsSelf.vue
  4. 2
      src/views/distribution/stockup/distributionStockupSelf.vue

4
src/option/distribution/distributionStockup.js

@ -724,6 +724,10 @@ export default {
label: "备货区",
prop: "stockupArea",
},
{
label: "操作",
prop: "stockupArea",
},
],
columnBasic: [ //基本信息
{

7
src/views/distribution/inventory/distributionStockArticleDetails.vue

@ -1370,11 +1370,14 @@ export default {
},
onLoad(page, params = {}) {
this.loading = true;
console.log("执行了查询零零零零");
this.query.ids = this.$route.query.id;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
getDetail(this.$route.query.id).then(res => {
console.log("返回的数据》》》》",res.data.data);
const data = res.data.data;
// this.page.total = data.total;
this.data = data.records;
this.data[0]= data;
this.loading = false;
this.selectionClear();
});

81
src/views/distribution/stockup/distributionStockupDetailsSelf.vue

@ -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);
// // datahtml
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){

2
src/views/distribution/stockup/distributionStockupSelf.vue

@ -65,7 +65,7 @@
>
<template #default="slotProps">
<el-text type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)">查看</el-text>
<el-text type="primary" text icon="el-icon-edit" @click="handleEdit(slotProps.scope)">编辑</el-text>
<el-text type="primary" text icon="el-icon-edit" @click="handleEdit(slotProps.scope)" v-if="slotProps.scope.row.stockupStatus != '40'">编辑</el-text>
<!-- <el-button type="primary" text icon="el-icon-edit" @click="handleEdit(slotProps.scope)">取消</el-button>-->
<!-- <el-text type="primary" text icon="el-icon-edit" @click="handleEditPrint(slotProps.scope)">打印</el-text>-->
</template>

Loading…
Cancel
Save