修复:扫码单据删除,内部单据选择仓库信息等问题

master
anthonywj 3 years ago
parent 0ba5ba265f
commit 2d35f4005d

@ -67,7 +67,7 @@
<div class="itemTag">
<span>本地业务单据:&nbsp;</span>
</div>
<el-select v-model="inputQuery.localAction" placeholder="请选择">
<el-select v-model="inputQuery.localAction" placeholder="请选择" clearable>
<el-option
v-for="item in localTypes"
:key="item.action"

@ -62,6 +62,10 @@ export default {
return {
query: {key: "", page: 1, limit: 20},
list: [],
enableMap: {
true: "寄售",
false: "仓库",
},
}
},
methods: {
@ -70,7 +74,7 @@ export default {
filterAll(this.query)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.list = response.data || [];
})
.catch(() => {
this.loading = false;

@ -203,6 +203,18 @@
</el-table>
</el-dialog>
<el-dialog
title="选择仓库信息"
:visible.sync="dialogStorageVisible"
width="70%"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="dialogStorageVisible"
>
<dialogSelectInvStorage v-on:selectStorage="selectStorage"></dialogSelectInvStorage>
</el-dialog>
<el-dialog
title="单号详情"
:visible.sync="codeDetailVisible"
@ -238,6 +250,7 @@ import {
import draggable from "vuedraggable";
import {saveAs} from "file-saver";
import codeDetail from "./errorCode";
import dialogSelectInvStorage from "./DialogSelectInvStorage";
import addOrder from "./addOrder";
import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType";
@ -295,6 +308,7 @@ export default {
adListNoDataText: "无数据",
queryAdIdAsyncLoading: false,
codeDetailVisible: false,
dialogStorageVisible:false,
total: 0,
loading: true,
index: null,
@ -318,6 +332,7 @@ export default {
components: {
draggable,
codeDetail,
dialogSelectInvStorage,
addOrder,
},
methods: {
@ -346,8 +361,12 @@ export default {
handleUnitClick(row) {
this.curIndex = row.id;
let actionItem = this.getActionItem(row.action);
// if(actionItem.co)
this.dialogTableVisible = true;
if (actionItem.corpType == 0) {//
this.dialogTableVisible = true;
} else {
this.dialogStorageVisible = true;
}
},
closeDetailDialog(val) {
this.codeDetailVisible = false;
@ -382,6 +401,21 @@ export default {
this.dialogTableVisible = false;
});
},
selectStorage(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.code;
updateUnit(this.unitUpdateQuery)
.then((response) => {
this.dialogStorageVisible = false;
this.getList();
})
.catch(() => {
this.dialogStorageVisible = false;
});
},
//
getList() {
this.loading = true;

Loading…
Cancel
Save