|
|
|
@ -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;
|
|
|
|
|