1.修复部分bug

purchase
x_z 3 years ago
parent 5fe9c76d1b
commit e062765db5

@ -504,7 +504,7 @@ export default {
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //

@ -634,6 +634,7 @@ export default {
}; };
this.getList(); this.getList();
this.detailList = []; this.detailList = [];
this.detailTotal = 0;
this.haveDistributionVisible = false; this.haveDistributionVisible = false;
this.actDateRange = []; this.actDateRange = [];
}, },
@ -658,7 +659,7 @@ export default {
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //

@ -613,7 +613,7 @@ export default {
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //

@ -8,10 +8,12 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="onSubmit" <el-button type="primary" icon="search" @click="onSubmit"
>查询</el-button >查询
</el-button
> >
<el-button type="primary" icon="search" @click="deleteDialog" <el-button type="primary" icon="search" @click="deleteDialog"
>删除</el-button >删除
</el-button
> >
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -34,7 +36,7 @@
width="220" width="220"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="创建时间" prop="actDate" > <el-table-column label="创建时间" prop="actDate">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
@ -59,7 +61,7 @@ import {
deleteCodes, deleteCodes,
} from "../../api/inout/order"; } from "../../api/inout/order";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import { saveAs } from "file-saver"; import {saveAs} from "file-saver";
export default { export default {
name: "idQuery", name: "idQuery",
@ -126,6 +128,10 @@ export default {
}, },
deleteDialog() { deleteDialog() {
if (this.multipleSelection.length < 1) {
this.$message.error("请选择需要删除的条码!")
return;
}
this.$confirm("是否删除所选条码?", "提示", { this.$confirm("是否删除所选条码?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -134,12 +140,12 @@ export default {
.then(() => { .then(() => {
this.onDelete(); this.onDelete();
}) })
.catch(() => {}); .catch(() => {
});
}, },
onDelete() { onDelete() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
var codeList = []; var codeList = [];
selectData.forEach((obj, index) => { selectData.forEach((obj, index) => {
codeList.push(obj.id); codeList.push(obj.id);

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

@ -517,7 +517,6 @@ export default {
}); });
}, },
storageChange(row) { storageChange(row) {
console.log(row);
this.formData.corpId = row.code; this.formData.corpId = row.code;
this.formData.corpName = row.name; this.formData.corpName = row.name;
}, },
@ -565,7 +564,6 @@ export default {
tQuery.editStatus = status; tQuery.editStatus = status;
tQuery.subErpOrders = this.codeArray; tQuery.subErpOrders = this.codeArray;
// tQuery.billType = this.formData.bi; // tQuery.billType = this.formData.bi;
console.log(tQuery);
inserThrOrderWeb(tQuery) inserThrOrderWeb(tQuery)
.then(response => { .then(response => {
this.loading = false; this.loading = false;
@ -631,7 +629,6 @@ export default {
rData.forEach((obj, index) => { rData.forEach((obj, index) => {
this.codeArray.unshift(obj); this.codeArray.unshift(obj);
}); });
console.log(this.codeArray);
this.$refs.multipleTable.setCurrentRow(this.codeArray[0]); this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
this.currentRow = this.codeArray[0]; this.currentRow = this.codeArray[0];
this.selectedIndex = 0; this.selectedIndex = 0;
@ -855,7 +852,6 @@ export default {
this.loading = true; this.loading = true;
getThrOrderDetails(this.query) // getThrOrderDetails(this.query) //
.then((response) => { .then((response) => {
console.log(response)
this.codeArray = response.data.list || []; this.codeArray = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
this.loading = false; this.loading = false;
@ -889,7 +885,6 @@ export default {
this.formData.unitIdFk = event.erpId; this.formData.unitIdFk = event.erpId;
}, },
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -932,7 +927,6 @@ export default {
} }
}, },
actionChange(item) { actionChange(item) {
console.log(item);
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.locInChange(); this.locInChange();
this.findMethod(); this.findMethod();

Loading…
Cancel
Save