|
|
|
@ -86,6 +86,13 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="intentDetail(scope.row)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
@ -105,7 +112,6 @@
|
|
|
|
|
v-if="scope.row.uploadFlag"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="scope.row.uploadStatus == 1"
|
|
|
|
|
@click.native.stop="uploadSpms(scope.row)"
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
@ -265,7 +271,17 @@
|
|
|
|
|
:detailList="detailList"
|
|
|
|
|
></StockOrderEdit>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="单号详情"
|
|
|
|
|
:visible.sync="codeDetailVisible"
|
|
|
|
|
width="80%"
|
|
|
|
|
v-if="codeDetailVisible"
|
|
|
|
|
>
|
|
|
|
|
<codeDetail
|
|
|
|
|
:idQuery="idQuery"
|
|
|
|
|
v-on:closeDetailDialog="closeDetailDialog"
|
|
|
|
|
></codeDetail>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -287,6 +303,7 @@
|
|
|
|
|
import {filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
|
import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
|
|
|
|
|
import {updateSpms} from "@/api/warehouse/order";
|
|
|
|
|
import codeDetail from "./code";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "stockOrderDelSearch",
|
|
|
|
@ -323,6 +340,7 @@
|
|
|
|
|
salesListNoFormVisible: false,
|
|
|
|
|
firstSalesInvNoFormVisible: false,
|
|
|
|
|
secSalesInvNoFormVisible: false,
|
|
|
|
|
codeDetailVisible: false,
|
|
|
|
|
formLabelWidth: "150px",
|
|
|
|
|
total: 0,
|
|
|
|
|
detailTotal: 0,
|
|
|
|
@ -696,6 +714,10 @@
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
intentDetail(row) {
|
|
|
|
|
this.codeDetailVisible = true;
|
|
|
|
|
this.idQuery.id = row.orderId;
|
|
|
|
|
},
|
|
|
|
|
// 显示表单
|
|
|
|
|
handleDetailForm(index, row) {
|
|
|
|
|
this.stockOrderEditVisible = true;
|
|
|
|
@ -787,37 +809,68 @@
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
uploadSpms(row) {
|
|
|
|
|
this.$confirm('是否确认提交到 “' + row.fromCorp + '” 的UDI自助平台?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let orderIds = [];
|
|
|
|
|
orderIds.push(row.orderId);
|
|
|
|
|
let query = {orderIds: orderIds};
|
|
|
|
|
row.uploadStatus = 1;
|
|
|
|
|
updateSpms(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
if (row.uploadStatus == "1") {
|
|
|
|
|
//单据已经提交,重新提交需要给提示
|
|
|
|
|
this.$confirm('单据已上传,是否确认重新上传到 “' + row.fromCorp + '” 的UDI自助平台?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let orderIds = [];
|
|
|
|
|
orderIds.push(row.orderId);
|
|
|
|
|
let query = {orderIds: orderIds};
|
|
|
|
|
row.uploadStatus = 1;
|
|
|
|
|
updateSpms(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$confirm('是否确认提交到 “' + row.fromCorp + '” 的UDI自助平台?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let orderIds = [];
|
|
|
|
|
orderIds.push(row.orderId);
|
|
|
|
|
let query = {orderIds: orderIds};
|
|
|
|
|
row.uploadStatus = 1;
|
|
|
|
|
updateSpms(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
draggable,
|
|
|
|
|
codeDetail,
|
|
|
|
|
stockOrderDistribution,
|
|
|
|
|
stockOrderQRCodeDetail,
|
|
|
|
|
stockQRCodeExport,
|
|
|
|
|