|
|
|
@ -147,7 +147,7 @@
|
|
|
|
|
<el-table-column label="生产日期" width="120" prop="produceDate"></el-table-column>
|
|
|
|
|
<el-table-column label="失效日期" width="120" prop="expireDate"></el-table-column>
|
|
|
|
|
<el-table-column label="数量" width="100" prop="count"></el-table-column>
|
|
|
|
|
<el-table-column label="价格" width="120" prop="price">
|
|
|
|
|
<el-table-column label="单价" width="120" prop="price">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input :disabled="scope.$index !== currentCheckIndex" v-model="scope.row.price"
|
|
|
|
|
placeholder="请输入"></el-input>
|
|
|
|
@ -271,24 +271,24 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
import {
|
|
|
|
|
stockOrderList, stockOrderDetail,
|
|
|
|
|
deleteStockOrderById, deleteStockOrderDetailById,
|
|
|
|
|
copyStockOrderDetail, uploadStockOrderDetail,
|
|
|
|
|
supplementOrder, updateStockOrderDetail
|
|
|
|
|
} from "../../api/warehouse/stockOrder";
|
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
|
import stockQRCodeExport from "./stockQRCodeExport";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import { inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile } from "../../api/itextpdf/itextpdf";
|
|
|
|
|
import store from "../../store";
|
|
|
|
|
import {getBusTypeByUser} from "../../api/warehouse/BusRole"
|
|
|
|
|
import { filterAllByUser } from "@/api/basic/invWarehouse";
|
|
|
|
|
import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
|
|
|
|
|
import {updateSpms} from "@/api/warehouse/order";
|
|
|
|
|
} from "../../api/warehouse/stockOrder";
|
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
|
import stockQRCodeExport from "./stockQRCodeExport";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
|
|
|
|
|
import store from "../../store";
|
|
|
|
|
import {getBusTypeByUser} from "../../api/warehouse/BusRole"
|
|
|
|
|
import {filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
|
import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
|
|
|
|
|
import {updateSpms} from "@/api/warehouse/order";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
export default {
|
|
|
|
|
name: "stockOrderDelSearch",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -335,16 +335,16 @@ export default {
|
|
|
|
|
distributionVisible: false,
|
|
|
|
|
detailFormRules: {
|
|
|
|
|
batchNo: [
|
|
|
|
|
{ required: true, message: "请输入批次号", trigger: "blur" }
|
|
|
|
|
{required: true, message: "请输入批次号", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
productDate: [
|
|
|
|
|
{ required: true, message: "请输入生产日期", trigger: "blur" }
|
|
|
|
|
{required: true, message: "请输入生产日期", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
expireDate: [
|
|
|
|
|
{ required: true, message: "请输入失效日期", trigger: "blur" }
|
|
|
|
|
{required: true, message: "请输入失效日期", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
sweepCount: [
|
|
|
|
|
{ required: true, message: "请输入扫码数量", trigger: "blur" }
|
|
|
|
|
{required: true, message: "请输入扫码数量", trigger: "blur"}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
sourceMap: {
|
|
|
|
@ -561,12 +561,16 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
printOrder(row) {
|
|
|
|
|
let tQuery = { queryId: row.orderId };
|
|
|
|
|
let tQuery = {
|
|
|
|
|
queryId: row.orderId,
|
|
|
|
|
moduleId: 4
|
|
|
|
|
};
|
|
|
|
|
this.loading = true;
|
|
|
|
|
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
tQuery = {
|
|
|
|
|
orderId: row.orderId
|
|
|
|
|
orderId: row.orderId,
|
|
|
|
|
moduleId: 4
|
|
|
|
|
};
|
|
|
|
|
stockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
|
//将pdf文件转换为url。
|
|
|
|
@ -574,7 +578,7 @@ export default {
|
|
|
|
|
binaryData.push(response);
|
|
|
|
|
//获取blob链接。
|
|
|
|
|
let url = window.URL.createObjectURL(
|
|
|
|
|
new Blob(binaryData, { type: "application/pdf" })
|
|
|
|
|
new Blob(binaryData, {type: "application/pdf"})
|
|
|
|
|
);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
window.open(url);//打开新标签页,预览pdf。
|
|
|
|
@ -627,7 +631,7 @@ export default {
|
|
|
|
|
type: "warning"
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
deleteStockOrderById({ id: row.id })
|
|
|
|
|
deleteStockOrderById({id: row.id})
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -675,7 +679,7 @@ export default {
|
|
|
|
|
type: "warning"
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.detailLoading = true;
|
|
|
|
|
deleteStockOrderDetailById({ id: row.id })
|
|
|
|
|
deleteStockOrderDetailById({id: row.id})
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.detailLoading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -842,12 +846,12 @@ export default {
|
|
|
|
|
this.actDateRange = [start, end];
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
.el-dialog {
|
|
|
|
|
.el-dialog {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
@ -855,12 +859,12 @@ export default {
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-dialog .el-dialog__body {
|
|
|
|
|
.el-dialog .el-dialog__body {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|