Merge branch 'fencang' into busUser

featFunction
anthonywj 3 years ago
commit bf7b40c505

@ -58,16 +58,16 @@
<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="submit"></el-button> <el-button type="primary" icon="search" @click="submit"></el-button>
<el-button type="primary" icon="search" @click="intentDetail" <el-button type="primary" icon="search" @click="intentDetail" :disabled="!configParms.basicProducts"
>关联添加 >关联添加
</el-button> </el-button>
<el-button type="primary" icon="search" @click="intentImportUdi" <el-button type="primary" icon="search" @click="intentImportUdi" :disabled="!configParms.basicProducts"
>添加DI信息 >添加DI信息
</el-button </el-button
> >
<el-button type="primary" icon="search" @click="intentImportErp" <el-button type="primary" icon="search" @click="intentImportErp" :disabled="!configParms.basicProducts"
>添加产品信息 >添加产品信息
</el-button </el-button
> >
@ -150,7 +150,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.originUuid != null" :disabled="scope.row.originUuid != null || !configParms.basicProducts"
@click.native.stop="intentSelectUdi(scope.row)" @click.native.stop="intentSelectUdi(scope.row)"
>关联DI >关联DI
</el-button> </el-button>
@ -164,10 +164,10 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)" :disabled="!configParms.basicProducts"
>编辑 >编辑
</el-button> </el-button>
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" :disabled="!configParms.basicProducts"
>删除 >删除
</el-button> </el-button>
</template> </template>
@ -846,6 +846,7 @@ import selectUdi from "./UdiInfoRelevance.vue";
import selectErp from "./UdiInfoselectErpUdi"; import selectErp from "./UdiInfoselectErpUdi";
import selectLocalUdi from "./UdiInfoSelectLocalUdi"; import selectLocalUdi from "./UdiInfoSelectLocalUdi";
import selectUdiVersion from "./UdiinfoSelectVersion"; import selectUdiVersion from "./UdiinfoSelectVersion";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default { export default {
data() { data() {
@ -908,6 +909,7 @@ export default {
selectLocalVisible: false, //UDI selectLocalVisible: false, //UDI
isUseDyCheck: false, isUseDyCheck: false,
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"}, lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
configParms: {},
}; };
}, },
@ -1325,6 +1327,16 @@ export default {
this.cancelDialog(); this.cancelDialog();
}); });
}, },
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
selectSysParam() { selectSysParam() {
let query = { let query = {
@ -1383,6 +1395,7 @@ export default {
this.getList(); this.getList();
this.selectSysParam(); this.selectSysParam();
this.getSysFilter(); this.getSysFilter();
this.getSyncConfig();
}, },
}; };
</script> </script>

@ -372,6 +372,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.sptm" v-model="editQuery.sptm"
@ -385,6 +386,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.ybbm" v-model="editQuery.ybbm"
@ -671,13 +673,13 @@
<el-checkbox v-model="editQuery.isAdavence" disabled <el-checkbox v-model="editQuery.isAdavence" disabled
>是否寄售 >是否寄售
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.allowNoBatch" class="" <el-checkbox v-model="editQuery.allowNoBatch" class="" disabled
>允许无批次号 >允许无批次号
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.allowNoExpire" class="" <el-checkbox v-model="editQuery.allowNoExpire" class="" disabled
>允许无失效日期 >允许无失效日期
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.allowNoProduct" class="" <el-checkbox v-model="editQuery.allowNoProduct" class="" disabled
>允许无生产日期 >允许无生产日期
</el-checkbox> </el-checkbox>
</div> </div>

@ -367,7 +367,7 @@ export default {
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
this.getConfig(); // this.getConfig();
}) })
.catch(() => { .catch(() => {
}); });
@ -411,7 +411,7 @@ export default {
ADMIN_ID: store.getters.adminId, ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token, ADMIN_TOKEN: store.getters.token,
}; };
this.getConfig();
this.getBusType(); this.getBusType();
}, },
} }

@ -370,12 +370,10 @@ export default {
} }
, ,
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
this.getList(); this.getList();
} else { } else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data); this.$message.success(response.data);
this.getList(); this.getList();
} }

@ -134,6 +134,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicThirdInv"
@click.native.stop="handleSubForm( scope.row, 'edit')" @click.native.stop="handleSubForm( scope.row, 'edit')"
>编辑 >编辑
</el-button </el-button
@ -141,7 +142,7 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!configParms.basicInv" :disabled="!configParms.basicThirdInv"
@click.native.stop="handleSubDel(scope.row)" @click.native.stop="handleSubDel(scope.row)"
>删除 >删除
</el-button </el-button

@ -298,6 +298,12 @@ export default {
this.$message.error("产品列表不能为空"); this.$message.error("产品列表不能为空");
return; return;
} }
if (this.formData.locStorageCode === this.formData.fromCorp || this.formData.invWarehouseCode === this.formData.fromSubInvCode) {
this.$message.error("当前仓库和往来仓库不能相同!");
return;
}
let products = []; let products = [];
this.detailList.forEach(item => { this.detailList.forEach(item => {
let product = { let product = {

@ -426,6 +426,7 @@
v-on:closeManuDialog="closeManuDialog" v-on:closeManuDialog="closeManuDialog"
:orderId="orderId" :orderId="orderId"
:orderAction="billAction" :orderAction="billAction"
:curLocInv="curLocInv"
></selectErpOrder> ></selectErpOrder>
</el-dialog> </el-dialog>
@ -597,6 +598,7 @@ export default {
index: null, index: null,
formName: null, formName: null,
orderId: "", orderId: "",
curLocInv: null,
formMap: { formMap: {
add: "新增", add: "新增",
edit: "编辑", edit: "编辑",
@ -711,7 +713,6 @@ export default {
this.getList(); this.getList();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -777,7 +778,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
filterOrder(this.filterQuery) filterOrder(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
@ -885,7 +885,6 @@ export default {
refresgOrderDetail() { refresgOrderDetail() {
orderDetail(this.detailQuery) orderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.detailList = response.data || []; this.detailList = response.data || [];
}) })
@ -928,7 +927,6 @@ export default {
this.successOrderExportPDFSettingVisible = true; this.successOrderExportPDFSettingVisible = true;
}, },
successOrderExportPDF(row) { successOrderExportPDF(row) {
console.log(row)
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
customerId: store.getters.customerId customerId: store.getters.customerId
@ -1187,7 +1185,6 @@ export default {
}, },
uploadOrderDialog(value) { uploadOrderDialog(value) {
console.log(value.id + "---" + value.orderid);
this.uploadQuery = { this.uploadQuery = {
orderId: value.id, orderId: value.id,
}; };
@ -1238,6 +1235,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() {

@ -345,6 +345,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

@ -201,6 +201,11 @@
width="80" width="80"
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 <el-table-column
label="生产日期" label="生产日期"
prop="produceDate" prop="produceDate"

@ -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">
@ -130,6 +141,7 @@ export default {
data() { data() {
return { return {
xlhEnable: false, xlhEnable: false,
isUseDyCheck: false
}; };
}, },
@ -167,6 +179,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;

@ -62,7 +62,7 @@
</el-col> </el-col>
</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>
@ -163,7 +163,7 @@
</el-col> </el-col>
</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>
@ -1269,7 +1269,6 @@ export default {
actionChange(item) { actionChange(item) {
this.curAction = this.getActionItem(item); this.curAction = this.getActionItem(item);
this.formData.corpName = ''; this.formData.corpName = '';
if (this.$isNotBlank(this.formData.fromSubInvCode)) { if (this.$isNotBlank(this.formData.fromSubInvCode)) {
this.formData.fromSubInvCode = ''; this.formData.fromSubInvCode = '';
} }
@ -1288,8 +1287,8 @@ export default {
this.getBusType(); this.getBusType();
}, },
invChange() { invChange() {
if (this.$isNotBlank(this.formData.invWarehouseCode)) /*if (this.$isNotBlank(this.formData.invWarehouseCode))
this.formData.invWarehouseCode = null; this.formData.invWarehouseCode = null;*/
this.findSubInvs(); this.findSubInvs();
}, },

@ -497,6 +497,8 @@ export default {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
this.actDateRange = []; this.actDateRange = [];
this.resetDetailQuery();
}, },
onSubmit() { onSubmit() {
if (this.actDateRange !== null) { if (this.actDateRange !== null) {
@ -506,16 +508,26 @@ export default {
this.query.startTime = null; this.query.startTime = null;
this.query.endTime = null; this.query.endTime = null;
} }
this.query.page = 1;
this.getList(); this.getList();
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
this.resetDetailQuery();
},
resetDetailQuery() {
this.detailQuery = {
orderIdFk: "",
page: 1,
limit: 20
};
this.detailTotal = 0;
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.query.page = val; this.query.page = val;
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //
@ -621,9 +633,9 @@ export default {
this.detailLoading = true; this.detailLoading = true;
stockOrderDetail(this.detailQuery) stockOrderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

@ -161,6 +161,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -239,6 +240,7 @@
@current-change="detailHandleCurrentChange" @current-change="detailHandleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="detailTotal" :total="detailTotal"
:current-page="detailQuery.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -575,7 +577,7 @@ export default {
} }
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //

@ -80,11 +80,8 @@
<el-table v-loading="loading" <el-table v-loading="loading"
:data="list" :data="list"
style="width: 100%; " style="width: 100%; "
highlight-current-row
@row-click="getStockOrderDetailList" ref="multipleTable"> @row-click="getStockOrderDetailList" ref="multipleTable">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column> <el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -129,8 +126,6 @@
>单据打印 >单据打印
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -139,6 +134,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="query.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -146,6 +142,7 @@
<el-card class="el-card"> <el-card class="el-card">
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
:data="detailList" :data="detailList"
highlight-current-row
style="width: 100%"> style="width: 100%">
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="产品通用名" width="150" prop="productName"></el-table-column> <el-table-column label="产品通用名" width="150" prop="productName"></el-table-column>
@ -190,6 +187,7 @@
@current-change="detailHandleCurrentChange" @current-change="detailHandleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="detailTotal" :total="detailTotal"
:current-page="detailTotal.page"
> >
</el-pagination> </el-pagination>
</el-card> </el-card>
@ -628,6 +626,8 @@ export default {
this.detailList = []; this.detailList = [];
this.haveDistributionVisible = false; this.haveDistributionVisible = false;
this.actDateRange = []; this.actDateRange = [];
this.resetDetailQuery();
}, },
onSubmit() { onSubmit() {
if (this.actDateRange !== null) { if (this.actDateRange !== null) {
@ -638,19 +638,30 @@ export default {
this.query.endTime = null; this.query.endTime = null;
} }
this.query.page = 1;
this.getList(); this.getList();
if (this.query.status === "202") { if (this.query.status === "202") {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
} else { } else {
this.haveDistributionVisible = false; this.haveDistributionVisible = false;
} }
this.resetDetailQuery();
},
resetDetailQuery() {
this.detailQuery = {
orderIdFk: "",
page: 1,
limit: 20
};
this.detailTotal = 0;
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.query.page = val; this.query.page = val;
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //
@ -755,6 +766,7 @@ export default {
.then((response) => { .then((response) => {
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

@ -591,6 +591,17 @@ export default {
this.haveNewDistributionVisible = false; this.haveNewDistributionVisible = false;
this.actDateRange = []; this.actDateRange = [];
//
this.resetDetailQuery();
},
resetDetailQuery() {
this.detailTotal = {
orderIdFk: "",
page: 1,
limit: 20
};
this.detailTotal = 0;
}, },
onSubmit() { onSubmit() {
if (this.actDateRange !== null) { if (this.actDateRange !== null) {
@ -607,13 +618,14 @@ export default {
} else { } else {
this.haveNewDistributionVisible = false; this.haveNewDistributionVisible = false;
} }
this.resetDetailQuery();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.query.page = val; this.query.page = val;
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //

@ -63,7 +63,7 @@
</el-col> </el-col>
</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">
@ -98,7 +98,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">

@ -81,10 +81,6 @@
:data="list" highlight-current-row :data="list" highlight-current-row
style="width: 100%;" style="width: 100%;"
@row-click="getStockOrderDetailList" ref="multipleTable"> @row-click="getStockOrderDetailList" ref="multipleTable">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column> <el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
@ -477,6 +473,7 @@ export default {
this.query.endTime = null; this.query.endTime = null;
} }
this.query.page = 1;
this.getList(); this.getList();
if (this.query.status === "202" || this.query.status === "502") { if (this.query.status === "202" || this.query.status === "502") {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
@ -506,7 +503,7 @@ export default {
this.getList(); this.getList();
}, },
detailHandleCurrentChange(val) { detailHandleCurrentChange(val) {
this.query.page = val; this.detailQuery.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
// //
@ -610,9 +607,9 @@ export default {
this.detailLoading = true; this.detailLoading = true;
stockOrderDetail(this.detailQuery) stockOrderDetail(this.detailQuery)
.then((response) => { .then((response) => {
console.log(response)
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

Loading…
Cancel
Save