|
|
@ -107,7 +107,7 @@
|
|
|
|
<!-- {{ scope.row.type | typeFilterName }}-->
|
|
|
|
<!-- {{ scope.row.type | typeFilterName }}-->
|
|
|
|
<!-- </template>-->
|
|
|
|
<!-- </template>-->
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
<el-table-column label="操作" fixed="right" width="120">
|
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<!-- type="text"-->
|
|
|
|
<!-- type="text"-->
|
|
|
@ -116,21 +116,32 @@
|
|
|
|
<!-- >码详情-->
|
|
|
|
<!-- >码详情-->
|
|
|
|
<!-- </el-button-->
|
|
|
|
<!-- </el-button-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- <el-button-->
|
|
|
|
<el-button
|
|
|
|
<!-- type="text"-->
|
|
|
|
type="text"
|
|
|
|
<!-- size="small"-->
|
|
|
|
size="small"
|
|
|
|
<!-- @click.native="printOrder(scope.row)"-->
|
|
|
|
@click.native="printOrder(scope.row)"
|
|
|
|
<!-- v-if="haveDistributionVisible"-->
|
|
|
|
|
|
|
|
<!-- >打印订单-->
|
|
|
|
>打印
|
|
|
|
<!-- </el-button-->
|
|
|
|
</el-button
|
|
|
|
<!-- >-->
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native="handleDetailForm(scope.$index, scope.row)"
|
|
|
|
@click.native="handleDetailForm(scope.$index, scope.row)"
|
|
|
|
>编辑
|
|
|
|
>发票
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native="generOrder(scope.row)"
|
|
|
|
|
|
|
|
>生成单据
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- v-if="haveDistributionVisible"-->
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="scope.row.enableSupplementOrder">
|
|
|
|
<div v-if="scope.row.enableSupplementOrder">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -291,6 +302,22 @@
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="根据当前单据生成新单据"
|
|
|
|
|
|
|
|
:visible.sync="stockChangeVisible"
|
|
|
|
|
|
|
|
width="60%"
|
|
|
|
|
|
|
|
v-if="stockChangeVisible"
|
|
|
|
|
|
|
|
@close='closeDialog'
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<DialogcChangeNewOrder
|
|
|
|
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
|
|
|
|
:curRow="curRow"
|
|
|
|
|
|
|
|
></DialogcChangeNewOrder>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -306,6 +333,7 @@ import {
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
import stockQRCodeExport from "./stockQRCodeExport";
|
|
|
|
import stockQRCodeExport from "./stockQRCodeExport";
|
|
|
|
|
|
|
|
import DialogcChangeNewOrder from "./DialogcChangeNewOrder";
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
|
|
|
|
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
|
|
|
|
import store from "../../store";
|
|
|
|
import store from "../../store";
|
|
|
@ -379,12 +407,14 @@ export default {
|
|
|
|
isSp: store.getters.customerId,
|
|
|
|
isSp: store.getters.customerId,
|
|
|
|
detailFormVisible: false,
|
|
|
|
detailFormVisible: false,
|
|
|
|
stockOrderEditVisible: false,
|
|
|
|
stockOrderEditVisible: false,
|
|
|
|
|
|
|
|
stockChangeVisible: false,
|
|
|
|
detailFormData: {},
|
|
|
|
detailFormData: {},
|
|
|
|
detailFormLoading: false,
|
|
|
|
detailFormLoading: false,
|
|
|
|
haveDistributionVisible: true,
|
|
|
|
haveDistributionVisible: true,
|
|
|
|
qrcodeDetailVisible: false,
|
|
|
|
qrcodeDetailVisible: false,
|
|
|
|
qrcodeExportVisible: false,
|
|
|
|
qrcodeExportVisible: false,
|
|
|
|
actDateRange: [],
|
|
|
|
actDateRange: [],
|
|
|
|
|
|
|
|
curRow: null,
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
shortcuts: [
|
|
|
|
shortcuts: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -467,6 +497,12 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generOrder(row) {
|
|
|
|
|
|
|
|
this.stockChangeVisible = true;
|
|
|
|
|
|
|
|
this.curRow = row;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
changeFun(row) {
|
|
|
|
changeFun(row) {
|
|
|
|
let _this = this;
|
|
|
|
let _this = this;
|
|
|
|
_this.multipId = []; //每次改动重置ID
|
|
|
|
_this.multipId = []; //每次改动重置ID
|
|
|
@ -573,6 +609,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeDialog(type) {
|
|
|
|
closeDialog(type) {
|
|
|
|
this.distributionVisible = false;
|
|
|
|
this.distributionVisible = false;
|
|
|
|
|
|
|
|
this.stockChangeVisible = false;
|
|
|
|
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
if (this.$isNotBlank(type)) {
|
|
|
|
if (this.$isNotBlank(type)) {
|
|
|
|
this.detailList = [];
|
|
|
|
this.detailList = [];
|
|
|
@ -587,12 +625,16 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
printOrder(row) {
|
|
|
|
printOrder(row) {
|
|
|
|
let tQuery = {queryId: row.id,}
|
|
|
|
let tQuery = {
|
|
|
|
|
|
|
|
queryId: row.id,
|
|
|
|
|
|
|
|
moduleId: 4,
|
|
|
|
|
|
|
|
}
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
tQuery = {
|
|
|
|
tQuery = {
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
|
|
|
|
moduleId: 4,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
stockOrderPDFFromTemplateFile(tQuery).then((response) => {
|
|
|
|
//将pdf文件转换为url。
|
|
|
|
//将pdf文件转换为url。
|
|
|
@ -825,7 +867,7 @@ export default {
|
|
|
|
stockOrderDistribution,
|
|
|
|
stockOrderDistribution,
|
|
|
|
stockOrderQRCodeDetail,
|
|
|
|
stockOrderQRCodeDetail,
|
|
|
|
stockQRCodeExport,
|
|
|
|
stockQRCodeExport,
|
|
|
|
StockOrderEdit
|
|
|
|
StockOrderEdit, DialogcChangeNewOrder
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|
statusFilterType(status) {
|
|
|
|
statusFilterType(status) {
|
|
|
|