同步bug代码

ywj_dev
wangwei 2 years ago
parent 508073a569
commit 733337c948

@ -13,6 +13,8 @@
<span <span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;">({{ inv }})</span> style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;">({{ inv }})</span>
</div> </div>
<span style="font-weight: 500;color:rgb(51 48 48);">{{this.companyName}}</span>
<span style="font-weight: 500;color:rgb(51 48 48);">({{this.userName}})</span>
<search id="header-search" class="right-menu-item"/> <search id="header-search" class="right-menu-item"/>
<screenfull id="screenfull" class="right-menu-item hover-effect"/> <screenfull id="screenfull" class="right-menu-item hover-effect"/>
<el-tooltip content="布局大小" effect="dark" placement="bottom"> <el-tooltip content="布局大小" effect="dark" placement="bottom">
@ -124,6 +126,8 @@ export default {
userInfo: {}, userInfo: {},
deptList: [], deptList: [],
invList: [], invList: [],
userName:'',
companyName:'',
formRules: { formRules: {
locDeptCode: [ locDeptCode: [
{required: true, message: "请选择当前部门", trigger: "blur"} {required: true, message: "请选择当前部门", trigger: "blur"}
@ -270,6 +274,8 @@ export default {
}, },
created() { created() {
this.userName=this.$store.getters.name;
this.companyName=this.$store.getters.companyName;
this.userInfo = { this.userInfo = {
id: store.getters.adminId, id: store.getters.adminId,
locInvCode: store.getters.locInvCode, locInvCode: store.getters.locInvCode,

@ -88,6 +88,10 @@
>选入 >选入
</el-button </el-button
> >
<el-button type="primary" icon="el-icon-search" @click="getSuperSeaech" size="mini"
>国家同步库查询
</el-button
>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
@ -333,6 +337,7 @@
<script> <script>
import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo"; import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo";
import {superSearch} from "@/api/basic/udiInfo";
import {combineUdi, combineAllUdi, checkExitUdi} from "@/api/basic/product/udiRelevance"; import {combineUdi, combineAllUdi, checkExitUdi} from "@/api/basic/product/udiRelevance";
import selectDiDetail from "./SelectDIDetailDialog" import selectDiDetail from "./SelectDIDetailDialog"
@ -426,6 +431,40 @@ export default {
this.unionQuery.page = 1; this.unionQuery.page = 1;
this.getList(); this.getList();
}, },
getSuperSeaech() {
this.$confirm("此操作将访问国家库查询DI数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
if (this.unionQuery.nameCode == "") {
this.$message.warning("请输入完成DI信息进行查询");
return;
}
this.loading = true;
superSearch(this.unionQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.udidlList = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.udidlList = [];
this.total = 0;
});
})
.catch(() => {
});
},
getList() { getList() {
if ( if (

@ -80,6 +80,10 @@
<el-button icon="el-icon-view" type="primary" @click="hideThrSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideThrSearch">/</el-button>
<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="el-icon-search" @click="searchErpList"></el-button> <el-button type="primary" icon="el-icon-search" @click="searchErpList"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getSuperSeaech" size="mini"
>国家同步库查询
</el-button
>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
@ -277,6 +281,7 @@
<script> <script>
import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo"; import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo";
import {superSearch} from "@/api/basic/udiInfo";
import {combineUdi} from "@/api/basic/product/udiRelevance"; import {combineUdi} from "@/api/basic/product/udiRelevance";
import {getBasicThirdSys} from "@/api/thrsys/basicThirdSys"; import {getBasicThirdSys} from "@/api/thrsys/basicThirdSys";
import {getInvbasdoc} from "@/api/basic/product/getErps"; import {getInvbasdoc} from "@/api/basic/product/getErps";
@ -430,6 +435,40 @@ export default {
serchList() { serchList() {
this.unionQuery.page = 1; this.unionQuery.page = 1;
this.getList(); this.getList();
},
getSuperSeaech() {
this.$confirm("此操作将访问国家库查询DI数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
if (this.unionQuery.nameCode == "") {
this.$message.warning("请输入完成DI信息进行查询");
return;
}
this.loading = true;
superSearch(this.unionQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.udidlList = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.udidlList = [];
this.total = 0;
});
})
.catch(() => {
});
}, },
getList() { getList() {
if ( if (

@ -74,6 +74,7 @@
<el-dialog <el-dialog
:title="formMap[formName]" :title="formMap[formName]"
:visible.sync="supCompanyVisible" :visible.sync="supCompanyVisible"
:before-close="close"
width="80%" width="80%"
v-if="supCompanyVisible" v-if="supCompanyVisible"
@close='closeDialog' @close='closeDialog'
@ -517,13 +518,17 @@ export default {
this.manufacturerList = []; this.manufacturerList = [];
this.getManufacturerList(); this.getManufacturerList();
}, },
close(){
this.getList();
this.supCompanyVisible=false;
},
headClose(){ headClose(){
this.addInfoVisible = false; this.addInfoVisible = false;
this.getManufacturerList(); this.getManufacturerList();
}, },
onManufacturerSubmit() { onManufacturerSubmit() {
this.manufacturerList = []; this.onManufacturerReset();
this.getManufacturerList(); this.addInfoVisible=false;
}, },
hideSearch2() { hideSearch2() {
this.showSearch2 = !this.showSearch2; this.showSearch2 = !this.showSearch2;

@ -146,7 +146,7 @@ export default {
manufacturerIdFk: this.manufacturerId, manufacturerIdFk: this.manufacturerId,
productIdFk: this.productId, productIdFk: this.productId,
supCertSetEntities: this.multipleSelection, supCertSetEntities: this.multipleSelection,
customerId: this.customerId, customerId:this.$store.getters.customerId,
}; };
selectAllCert(postQuery) selectAllCert(postQuery)
.then(response => { .then(response => {

@ -328,6 +328,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.customerId=this.$store.getters.customerId
getCompanyBySup(this.filterQuery) getCompanyBySup(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -457,6 +458,7 @@ export default {
this.registrationId = row.id; this.registrationId = row.id;
this.curProductQuery = row; this.curProductQuery = row;
this.curProductQuery.cuStatus=this.currentManufacturer.auditStatus; this.curProductQuery.cuStatus=this.currentManufacturer.auditStatus;
this.curProductQuery.manufacturerId=this.registrationQuery.manufacturerIdFk
this.formName = "update"; this.formName = "update";
this.editProductType = 1; this.editProductType = 1;
} else { } else {
@ -464,7 +466,8 @@ export default {
this.formName = "add"; this.formName = "add";
this.curProductQuery = { this.curProductQuery = {
auditStatus: 0, auditStatus: 0,
cuStatus:this.currentManufacturer.auditStatus cuStatus:this.currentManufacturer.auditStatus,
manufacturerId:this.registrationQuery.manufacturerIdFk
}; };
} }
this.registrationVisible = true; this.registrationVisible = true;
@ -505,7 +508,7 @@ export default {
this.enterpriseId = null; this.enterpriseId = null;
this.registrationId = null; this.registrationId = null;
this.getList(); this.getList();
this.registrationList = []; // this.registrationList = [];
}, },
getRegistrationList() { getRegistrationList() {
this.registrationLoading = true; this.registrationLoading = true;

@ -48,8 +48,7 @@
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border highlight-current-row> <el-table v-loading="loading" :data="list" style="width: 100%" row-click="handleSelectionChange" border highlight-current-row>
<el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="最小销售产品标识" prop="nameCode" width="140"></el-table-column> <el-table-column label="最小销售产品标识" prop="nameCode" width="140"></el-table-column>
<el-table-column label="产品编码" prop="thirdId" show-overflow-tooltip></el-table-column> <el-table-column label="产品编码" prop="thirdId" show-overflow-tooltip></el-table-column>
@ -348,7 +347,7 @@ export default {
cpmctymc: null, cpmctymc: null,
ggxh: null ggxh: null
}, },
multipleSelection: [], multipleSelection: {},
editDialogVisible: false, editDialogVisible: false,
selectUdiDialogVisible: false, selectUdiDialogVisible: false,
selectErpDialogVisible: false, selectErpDialogVisible: false,
@ -434,11 +433,11 @@ export default {
selectExport() { selectExport() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
if (selectData == null || selectData.length == 0) { if (selectData == null ) {
this.$message.warning("请先选入产品!"); this.$message.warning("请先选入产品!");
return; return;
} }
this.closeSelDialog(selectData[0].id); this.closeSelDialog(selectData.id);
}, },
allExport() { allExport() {

@ -78,7 +78,7 @@
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="所属生产企业:" label-width="150px" prop="manufacturerIdFk"> <el-form-item label="所属生产企业:" label-width="150px" prop="manufacturerIdFk">
<el-select <el-select
v-model="inputQuery.manufacturerIdFk" v-model="inputQuery.companyName"
filterable filterable
remote remote
clearable="true" clearable="true"
@ -143,7 +143,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" class="el-col"> <el-col :span="10" class="el-col">
<el-form-item label="器械类别:" label-width="150px" prop="productType"> <el-form-item label="器械类别:" label-width="150px" prop="qxlb">
<el-select <el-select
size="small" size="small"
v-model="inputQuery.productType" v-model="inputQuery.productType"
@ -532,15 +532,16 @@ export default {
if (this.editType == 0) { if (this.editType == 0) {
this.inputQuery.productId = getUUID(""); this.inputQuery.productId = getUUID("");
this.inputQuery.customerId = this.currentManufacturer.customerId; this.inputQuery.customerId = this.currentManufacturer.customerId;
this.inputQuery.manufacturerIdFk = this.currentManufacturer.manufacturerId; this.inputQuery.companyName = this.currentManufacturer.companyName;
} else { } else {
this.getCompanyCertList(); this.getCompanyCertList();
this.pmQuery.customerId = this.inputQuery.customerId; this.pmQuery.customerId = this.inputQuery.customerId;
this.inputQuery.companyName = this.currentManufacturer.companyName;
} }
this.cuStatus=this.inputQuery.cuStatus; this.cuStatus=this.inputQuery.cuStatus;
this.manufacturerId = this.inputQuery.manufacturerIdFk this.manufacturerId = this.inputQuery.manufacturerId
this.productId = this.inputQuery.productId this.productId = this.inputQuery.productId
this.findMethod(); this.findMethod();
this.findPMMethod(); this.findPMMethod();
@ -644,10 +645,12 @@ export default {
auditStatus: this.inputQuery.auditStatus auditStatus: this.inputQuery.auditStatus
}; };
localStorage.setItem('key',this.inputQuery.companyName)
bindProduct(query).then(response => { bindProduct(query).then(response => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.inputQuery = response.data; let cname= localStorage.getItem('key')
this.inputQuery.companyName=cname;
this.selectSingleProductVisible = false; this.selectSingleProductVisible = false;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);

@ -60,6 +60,7 @@
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset" >重置 </el-button>
<el-button type="primary" icon="el-icon-search" @click="search"></el-button> <el-button type="primary" icon="el-icon-search" @click="search"></el-button>
<el-button type="primary" icon="el-icon-bottom-right" @click="selectProduct()"></el-button> <el-button type="primary" icon="el-icon-bottom-right" @click="selectProduct()"></el-button>
</el-button-group> </el-button-group>

@ -547,6 +547,7 @@ export default {
postQuery: { postQuery: {
price:null,
customerId: null, customerId: null,
uuids: [], uuids: [],
rlIds: [], rlIds: [],
@ -682,6 +683,7 @@ export default {
} }
this.postQuery.rlIds.splice(0); this.postQuery.rlIds.splice(0);
this.postQuery.rlIds.push(selectData.id); this.postQuery.rlIds.push(selectData.id);
this.postQuery.price=this.repEditQuery.price;
this.allExport(); this.allExport();
}, },

@ -37,7 +37,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="外部系统:"> <el-form-item label="外部系统:">
<el-select v-model="filterQuery.thirdSysFk" style="width: 90%" placeholder="请选择第三方系统" @change="thirdSysChange"> <el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option <el-option
v-for="item in thirdSys" v-for="item in thirdSys"
:key="item.value" :key="item.value"
@ -154,6 +154,7 @@ export default {
page: 1, page: 1,
limit: 20, limit: 20,
}, },
mainThirdSys:'',
total: 0, total: 0,
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
@ -207,7 +208,7 @@ export default {
this.curRow = row; this.curRow = row;
}, },
getList() { getList() {
if (this.filterQuery.thirdSysFk == null) { if (this.filterQuery.thirdSys == null) {
this.$message.warning("请先选择第三方系统!") this.$message.warning("请先选择第三方系统!")
return; return;
} }
@ -287,7 +288,12 @@ export default {
getBasicThirdSys(query) getBasicThirdSys(query)
.then((response) => { .then((response) => {
this.thirdSys = response.data.list || []; this.thirdSys = response.data.list || [];
this.filterQuery.thirdSys = this.thirdSys[0].thirdId; for(var i=0;i<this.thirdSys.length;i++){
if(this.thirdSys[i].mainSys){
this.filterQuery.thirdSys = this.thirdSys[i].thirdId;
this.mainThirdSys = this.thirdSys[i].thirdId;
}
}
this.uploadData.thirdSys = this.filterQuery.thirdSys; this.uploadData.thirdSys = this.filterQuery.thirdSys;
this.getThirdSysDetail(); this.getThirdSysDetail();
this.selectSysParam(); this.selectSysParam();

@ -4,7 +4,7 @@
<el-row type="flex"> <el-row type="flex">
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
<el-form-item label="第三方系统" prop="thirdSysFk"> <el-form-item label="第三方系统" prop="thirdSysFk">
<el-input style="width: 90%" size="small" :disabled="true" v-model="data.thirdSysName"></el-input> <el-input style="width: 90%" size="small" :disabled="true" v-model="data.thirdName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save