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>
</template>
</el-table-column>
<el-table-column label="备注" prop="remark" fixed></el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button

@ -303,7 +303,9 @@
</el-form>
<div slot="footer" class="dialog-footer">
<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>
</el-dialog>
</div>
@ -464,29 +466,18 @@ export default {
this.editQuery = row;
} else {
this.editQuery =
{
this.editQuery = {
id: "",
thirdId:
"",
erpId:
"",
name:
"",
spell:
"",
addr:
"",
status:
"",
type:
"",
creditNo:
"",
contact:
"",
mobile:
""
thirdId: "",
erpId: "",
name: "",
spell: "",
addr: "",
status: "",
type: "",
creditNo: "",
contact: "",
mobile: ""
};
}

@ -77,6 +77,7 @@
</el-form-item>
<el-form-item style="display: flex">
<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" size="mini" icon="search" @click="combine"
:loading="combineLoading"
@ -177,6 +178,16 @@ export default {
this.unitQuery.page = 1;
this.getList();
},
onReset() {
this.unitQuery = {
page: 1,
limit: 10,
key: "",
thirdSys: null,
}
this.total = 0;
this.getList();
},
getList() {
this.loading = true;
this.unitQuery.thirdSys = this.thirdSysFk;

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

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

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

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

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

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

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

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

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

@ -8,10 +8,12 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="search" @click="onSubmit"
>查询</el-button
>查询
</el-button
>
<el-button type="primary" icon="search" @click="deleteDialog"
>删除</el-button
>删除
</el-button
>
</el-button-group>
</el-form-item>
@ -126,6 +128,10 @@ export default {
},
deleteDialog() {
if (this.multipleSelection.length < 1) {
this.$message.error("请选择需要删除的条码!")
return;
}
this.$confirm("是否删除所选条码?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -134,12 +140,12 @@ export default {
.then(() => {
this.onDelete();
})
.catch(() => {});
.catch(() => {
});
},
onDelete() {
var selectData = this.multipleSelection;
var codeList = [];
selectData.forEach((obj, index) => {
codeList.push(obj.id);

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

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

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

@ -517,7 +517,6 @@ export default {
});
},
storageChange(row) {
console.log(row);
this.formData.corpId = row.code;
this.formData.corpName = row.name;
},
@ -526,7 +525,6 @@ export default {
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
this.findSubInvs();
})
.catch(() => {
});
@ -566,7 +564,6 @@ export default {
tQuery.editStatus = status;
tQuery.subErpOrders = this.codeArray;
// tQuery.billType = this.formData.bi;
console.log(tQuery);
inserThrOrderWeb(tQuery)
.then(response => {
this.loading = false;
@ -632,7 +629,6 @@ export default {
rData.forEach((obj, index) => {
this.codeArray.unshift(obj);
});
console.log(this.codeArray);
this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
this.currentRow = this.codeArray[0];
this.selectedIndex = 0;
@ -856,7 +852,6 @@ export default {
this.loading = true;
getThrOrderDetails(this.query) //
.then((response) => {
console.log(response)
this.codeArray = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false;
@ -890,7 +885,6 @@ export default {
this.formData.unitIdFk = event.erpId;
},
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,
@ -933,7 +927,6 @@ export default {
}
},
actionChange(item) {
console.log(item);
this.curAction = this.getActionItem(item);
this.locInChange();
this.findMethod();
@ -947,6 +940,7 @@ export default {
this.$forceUpdate();
this.getBusType(item);
this.findStorageMethod();
this.findSubInvs();
},
findSubInvs() {
this.subInvList = [];

Loading…
Cancel
Save