Merge branch 'fengcang' into busUser

purchase
anthonyywj2 3 years ago
commit eba2c3953d

@ -584,7 +584,7 @@ export default {
} }
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //
@ -697,9 +697,7 @@ export default {
.then((response) => { .then((response) => {
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
/*this.detailList.forEach(data => { this.detailTotal = response.data.total;
data['edit'] = false;
});*/
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

@ -343,6 +343,12 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="实际数量"
prop="reCount"
show-overflow-tooltip
></el-table-column>
<el-table-column label="操作" fixed="right" width="250"> <el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -409,11 +409,13 @@
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
width="80%" width="80%"
v-if="addDialogVisible" v-if="addDialogVisible"
> >
<selectErpOrder <selectErpOrder
v-on:closeManuDialog="closeManuDialog" v-on:closeManuDialog="closeManuDialog"
:orderId="orderId" :orderId="orderId"
:orderAction="billAction" :orderAction="billAction"
:curLocInv="curLocInv"
></selectErpOrder> ></selectErpOrder>
</el-dialog> </el-dialog>
@ -577,6 +579,7 @@ export default {
index: null, index: null,
formName: null, formName: null,
orderId: "", orderId: "",
curLocInv: null,
formMap: { formMap: {
add: "新增", add: "新增",
edit: "编辑", edit: "编辑",
@ -1087,6 +1090,7 @@ export default {
importOrder(row) { importOrder(row) {
this.orderId = row.id; this.orderId = row.id;
this.billAction = row.action; this.billAction = row.action;
this.curLocInv = row.locStorageCode;
this.addDialogVisible = true; this.addDialogVisible = true;
}, },
invChange() { invChange() {

@ -83,6 +83,17 @@
:disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input> :disabled="editData.serialNo!=null && editData.serialNo!='' "></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3">
<div class="ao-text">
<span>是否以使用单元数量入库</span>
</div>
</el-col>
<el-col :span="7">
<el-form-item>
<el-checkbox v-model="isUseDyCheck" disabled></el-checkbox>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="17"> <el-col :span="17">
@ -129,6 +140,7 @@ export default {
data() { data() {
return { return {
xlhEnable: false, xlhEnable: false,
isUseDyCheck: false
}; };
}, },
@ -162,6 +174,9 @@ export default {
if (response.data.scbssfbhxlh == "否") { if (response.data.scbssfbhxlh == "否") {
this.xlhEnable = true; this.xlhEnable = true;
} }
if (response.data.zxxsbzbhsydysl > 1) {
this.isUseDyCheck = true;
}
} else { } else {
} }
this.loading = false; this.loading = false;

@ -242,6 +242,7 @@ export default {
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -265,7 +266,6 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
filterProducts(this.filterQuery) filterProducts(this.filterQuery)
.then((response) => { .then((response) => {

@ -82,7 +82,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="searchCode"
>查询 >查询
</el-button </el-button
> >
@ -144,6 +144,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next,total" layout="prev, pager, next,total"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</div> </div>
@ -219,7 +220,10 @@ export default {
this.query.page = val; this.query.page = val;
this.getCodeList(); this.getCodeList();
}, },
searchCode() {
this.query.page = 1;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.productIdFk = this.idQuery.relIdFk; this.query.productIdFk = this.idQuery.relIdFk;

Loading…
Cancel
Save