|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-form :model="formData" :rules="formRules" ref="dataForm" label-width="100px">
|
|
|
|
|
<el-row type="flex" justify="end">
|
|
|
|
|
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -10px">
|
|
|
|
|
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;">
|
|
|
|
|
<el-button type="primary" @click.native="generateQRCodeText()" :loading="loading">生成内部码</el-button>
|
|
|
|
|
<el-button type="primary" @click.native="printStockOrderDetailPDF()" :loading="loading">打印全部</el-button>
|
|
|
|
|
<el-switch style="margin-left: 50px;" v-model="filterUDIType" active-text="过滤已有UDI码的产品"></el-switch>
|
|
|
|
@ -17,25 +17,28 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="单据日期" prop="billdate">
|
|
|
|
|
<el-input v-model="formData.createTime" style="width: 90%" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
<el-input v-model="formData.createTime" style="width: 90%" auto-complete="off"
|
|
|
|
|
:disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="送货单位" prop="corpName">
|
|
|
|
|
<el-input v-model="formData.customerName" style="width: 90%" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
<el-input v-model="formData.customerName" style="width: 90%" auto-complete="off"
|
|
|
|
|
:disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="业务类型" prop="billTypeName">
|
|
|
|
|
<el-input v-model="formData.billTypeName" style="width: 90%" auto-complete="off" :disabled="true"></el-input>
|
|
|
|
|
<el-input v-model="formData.billTypeName" style="width: 90%" auto-complete="off"
|
|
|
|
|
:disabled="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" max-height="350" height="350"
|
|
|
|
|
border ref="multipleTable">
|
|
|
|
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
|
|
|
@ -58,7 +61,7 @@
|
|
|
|
|
<span>{{ scope.row.updateTime }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作"width="150">
|
|
|
|
|
<el-table-column label="操作" width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
@ -70,7 +73,6 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
@ -80,7 +82,7 @@
|
|
|
|
|
@pagination="handleCurrentChange"
|
|
|
|
|
></pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
@ -195,7 +197,7 @@ export default {
|
|
|
|
|
printCodeIdFk: null,
|
|
|
|
|
stockOrderFk: null,
|
|
|
|
|
},
|
|
|
|
|
filterUDIType:false,
|
|
|
|
|
filterUDIType: false,
|
|
|
|
|
statusMap: {
|
|
|
|
|
0: "未打印",
|
|
|
|
|
1: "已打印",
|
|
|
|
@ -281,7 +283,7 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
generateInCodeQRCodeText({orderIdFk:this.formData.billNo,chack:this.filterUDIType})
|
|
|
|
|
generateInCodeQRCodeText({orderIdFk: this.formData.billNo, chack: this.filterUDIType})
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -405,7 +407,8 @@ export default {
|
|
|
|
|
2: "danger"
|
|
|
|
|
};
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
}},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
@ -419,7 +422,7 @@ export default {
|
|
|
|
|
this.codeArray = [];
|
|
|
|
|
if (this.$isNotBlank(this.idQuery.id)) {
|
|
|
|
|
this.formData = this.idQuery.formData;
|
|
|
|
|
this.query.orderIdFk=this.formData.billNo;
|
|
|
|
|
this.query.orderIdFk = this.formData.billNo;
|
|
|
|
|
this.query.sOrderId = this.formData.orderIdFk;
|
|
|
|
|
this.getStockQRCodeTextList();
|
|
|
|
|
}
|
|
|
|
|