Merge remote-tracking branch 'origin/busUser' into busUser

purchase
anthonyywj2 3 years ago
commit e40e1f5a25

@ -55,6 +55,7 @@
<span>{{ enableMap[scope.row.spUse] }}</span> <span>{{ enableMap[scope.row.spUse] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="remark" fixed></el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -303,7 +303,9 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button> <el-button @click.native="hideForm">取消</el-button>
<el-button type="primary" @click.native="formSubmit()" :loading="formLoading" :disabled="!configParms.basicCorp">提交</el-button> <el-button type="primary" @click.native="formSubmit()" :loading="formLoading"
:disabled="!configParms.basicCorp">提交
</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -464,29 +466,18 @@ export default {
this.editQuery = row; this.editQuery = row;
} else { } else {
this.editQuery = this.editQuery = {
{
id: "", id: "",
thirdId: thirdId: "",
"", erpId: "",
erpId: name: "",
"", spell: "",
name: addr: "",
"", status: "",
spell: type: "",
"", creditNo: "",
addr: contact: "",
"", mobile: ""
status:
"",
type:
"",
creditNo:
"",
contact:
"",
mobile:
""
}; };
} }

@ -77,6 +77,7 @@
</el-form-item> </el-form-item>
<el-form-item style="display: flex"> <el-form-item style="display: flex">
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="searchList"></el-button> <el-button type="primary" icon="search" @click="searchList"></el-button>
<el-button type="primary" size="mini" icon="search" @click="combine" <el-button type="primary" size="mini" icon="search" @click="combine"
:loading="combineLoading" :loading="combineLoading"
@ -177,6 +178,16 @@ export default {
this.unitQuery.page = 1; this.unitQuery.page = 1;
this.getList(); this.getList();
}, },
onReset() {
this.unitQuery = {
page: 1,
limit: 10,
key: "",
thirdSys: null,
}
this.total = 0;
this.getList();
},
getList() { getList() {
this.loading = true; this.loading = true;
this.unitQuery.thirdSys = this.thirdSysFk; this.unitQuery.thirdSys = this.thirdSysFk;
@ -235,7 +246,7 @@ export default {
this.$message.warning("未选择往来单位!"); this.$message.warning("未选择往来单位!");
return; return;
} }
if( this.combineQuery.erpUnitsResponse.checked == true){ if (this.combineQuery.erpUnitsResponse.checked == true) {
this.$message.warning("该往来单位已被关联,不能重复选入!"); this.$message.warning("该往来单位已被关联,不能重复选入!");
return; return;
} }

@ -67,7 +67,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="search"></el-button>
<el-button <el-button
type="primary" type="primary"
icon="search" icon="search"
@ -850,6 +850,10 @@ export default {
limit: 20, limit: 20,
addType: 1, addType: 1,
}; };
this.total = 0;
},
search() {
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
getList() { getList() {

@ -1610,7 +1610,7 @@ export default {
}, },
intentSelect(row) { intentSelect(row) {
if (row != null) if (row != null && row.sysId != undefined)
this.currentSysId = row.sysId; this.currentSysId = row.sysId;
// //
this.thirdQuery.thirdSysFk = this.currentSysId; this.thirdQuery.thirdSysFk = this.currentSysId;

@ -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();
}, },
// //

@ -164,7 +164,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px"> <el-row :gutter="20" style="margin-top: 0px">
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>当前仓库</span> <span>当前仓库</span>
@ -247,7 +247,7 @@
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;"> <el-row :gutter="20" style="margin-top: -5px;">
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span></span> <span></span>

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

@ -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();
}, },
// //

@ -424,6 +424,8 @@
<el-dialog <el-dialog
:title="editTitle" :title="editTitle"
:visible.sync="editCodeVisible" :visible.sync="editCodeVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body width="70%" append-to-body width="70%"
v-if="editCodeVisible" v-if="editCodeVisible"
> >
@ -462,13 +464,12 @@ import {filterSubByInv} from "../../api/basic/invSubWarehouse";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import {parseTime} from "../../filtres/index"; import {parseTime} from "../../filtres/index";
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
import {deleteWarehouse, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {getLocalJoinByUser} from "../../api/basic/busLocalType";
import DialogSelectUnit from "./DialogSelectUnit"; import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl"; import selectRlDialog from "./DialogSelectRl";
import editCodeDialog from "./editCode"; import editCodeDialog from "./editCode";
import A from "../../plugin/KeyScaner" import A from "../../plugin/KeyScaner"
import {deleteLog} from "@/api/basic/udiinfolog";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";

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

@ -170,6 +170,7 @@ export default {
path: "", path: "",
query: this.query, query: this.query,
}); });
this.query.page = 1;
this.getCodeList(); this.getCodeList();
}, },
handleSizeChange(val) { handleSizeChange(val) {

@ -123,6 +123,8 @@
:close-on-press-escape="false" :close-on-press-escape="false"
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"

@ -481,6 +481,7 @@ export default {
// //
handleForm(node, data, formName) { handleForm(node, data, formName) {
this.formVisible = true; this.formVisible = true;
this.resetForm();
let no = Math.floor(Math.random() * 10000000) let no = Math.floor(Math.random() * 10000000)
this.pidData = data || null; this.pidData = data || null;
formJson.pid = (data && parseInt(data.id)) || ""; formJson.pid = (data && parseInt(data.id)) || "";
@ -689,7 +690,6 @@ export default {
getBasicThirdSys(query) getBasicThirdSys(query)
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.query.thirdSysFk = this.thirdSys[0].thirdId;
this.getThirdSysDetail(); this.getThirdSysDetail();
}) })
.catch(() => { .catch(() => {

@ -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;
}, },
@ -526,7 +525,6 @@ export default {
filterAllByUser() filterAllByUser()
.then((response) => { .then((response) => {
this.storageList = response.data || []; this.storageList = response.data || [];
this.findSubInvs();
}) })
.catch(() => { .catch(() => {
}); });
@ -566,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;
@ -632,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;
@ -856,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;
@ -890,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,
@ -933,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();
@ -947,6 +940,7 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
this.getBusType(item); this.getBusType(item);
this.findStorageMethod(); this.findStorageMethod();
this.findSubInvs();
}, },
findSubInvs() { findSubInvs() {
this.subInvList = []; this.subInvList = [];

Loading…
Cancel
Save