1.修复部分bug

master
x_z 3 years ago
parent 74b33f07ec
commit 35edfc24f4

@ -258,6 +258,7 @@ export default {
if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") { if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") {
this.getOrderType(); this.getOrderType();
} }
console.log(this.inputQuery);
this.getList(); this.getList();
this.getStorage(); this.getStorage();

@ -4,7 +4,7 @@
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini"> <el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="filterQuery.orderId" placeholder="单号"></el-input> <el-input v-model="filterQuery.orderId" placeholder="单号" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
@ -78,13 +78,13 @@
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="校验状态" prop="contrastStatus" width="120"> <!-- <el-table-column label="状态" prop="contrastStatus" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType"> <el-tag :type="(scope.row.status === 1) | statusFilterType">
{{ erpCheckStatus[scope.row.contrastStatus] }} {{ erpCheckStatus[scope.row.contrastStatus] }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>-->
<el-table-column label="单据状态" prop="status" width="100"> <el-table-column label="单据状态" prop="status" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.status == 3) | statusFilterType">{{ <el-tag :type="(scope.row.status == 3) | statusFilterType">{{
@ -122,7 +122,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="deleteDialog(scope.row.id)" @click.native.stop="deleteDialog(scope.row.orderId)"
>删除 >删除
</el-button </el-button
> >
@ -319,11 +319,7 @@ export default {
}, },
addType: "edit", addType: "edit",
deleteData: { deleteData: {
id: "" orderId: ""
},
erpCheckStatus: {
1: "异常",
0: "正常"
}, },
dialogTableVisible: false, dialogTableVisible: false,
formLoading: false, formLoading: false,
@ -419,14 +415,18 @@ export default {
deleteOrders(data) { deleteOrders(data) {
this.loading = true; this.loading = true;
this.deleteData.id = data; this.deleteData.orderId = data;
deleteByOrderId(this.deleteData) deleteByOrderId(this.deleteData)
.then((response) => { .then((response) => {
this.getList(); if (response.code === 20000) {
this.$message({ this.getList();
type: "success", this.$message({
message: "删除成功!" type: "success",
}); message: "删除成功!"
});
} else {
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
}); });

@ -252,7 +252,8 @@ export default {
let products = []; let products = [];
this.detailList.forEach(item => { this.detailList.forEach(item => {
let product = { let product = {
relId: item.relId, nameCode: item.nameCode,
uuidFk: item.uuidFk,
batchNo: item.batchNo batchNo: item.batchNo
}; };
products.push(product); products.push(product);
@ -264,7 +265,7 @@ export default {
} }
}) })
let tQuery = { let tQuery = {
stockOrderId: this.curRow.id, orderId: this.curRow.orderId,
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
action: this.formData.action, action: this.formData.action,
mainAction: this.formData.mainAction, mainAction: this.formData.mainAction,

@ -375,7 +375,6 @@ export default {
idQuery: { idQuery: {
id: "" id: ""
}, },
distributionVisible: false,
detailFormRules: { detailFormRules: {
batchNo: [ batchNo: [
{required: true, message: "请输入批次号", trigger: "blur"} {required: true, message: "请输入批次号", trigger: "blur"}
@ -593,11 +592,10 @@ export default {
if (this.$isNotBlank(row.id)) { if (this.$isNotBlank(row.id)) {
this.idQuery.id = row.id; this.idQuery.id = row.id;
this.idQuery.formData = row; this.idQuery.formData = row;
this.distributionVisible = true;
} }
}, },
closeDialog(type) { closeDialog(type) {
this.distributionVisible = false; this.stockChangeVisible = false;
this.getList(); this.getList();
if (this.$isNotBlank(type)) { if (this.$isNotBlank(type)) {
this.detailList = []; this.detailList = [];

@ -166,6 +166,8 @@
:visible.sync="codeDetailVisible" :visible.sync="codeDetailVisible"
width="80%" width="80%"
v-if="codeDetailVisible" v-if="codeDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
> >
<codeReplace <codeReplace
:idQuery="idQuery" :idQuery="idQuery"

Loading…
Cancel
Save