产品关联新增计量单位关联

fencang
anthonywj 3 years ago
parent 5000ad82b4
commit 703e78b06a

@ -165,10 +165,10 @@
</el-button </el-button
> >
<el-button type="primary" icon="search" @click="getSuperSeaech" size="mini" <el-button type="primary" icon="search" @click="getSuperSeaech" size="mini"
>国家同步库查询 >国家同步库查询
</el-button </el-button
> >
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -256,6 +256,7 @@ import {combineUdi} from "../../api/basic/udiRelevance";
import {getBasicThirdSys} from "../../api/basic/basicThirdSys"; import {getBasicThirdSys} from "../../api/basic/basicThirdSys";
import {getInvbasdoc} from "../../api/basic/getErps"; import {getInvbasdoc} from "../../api/basic/getErps";
import selectDiDetail from "@/views/basic/SelectDIDetailDialog"; import selectDiDetail from "@/views/basic/SelectDIDetailDialog";
export default { export default {
name: "closeDialog", name: "closeDialog",
props: { props: {
@ -291,6 +292,10 @@ export default {
thirdId: "", thirdId: "",
keys: [], keys: [],
thirdSys: null, thirdSys: null,
manufactory: null,
price: null,
erpName: null,
measname: null,
}, },
fromOptions: [], fromOptions: [],
checked: true, checked: true,
@ -341,29 +346,29 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
getSuperSeaech() { getSuperSeaech() {
if (this.unionQuery.nameCode == "") { if (this.unionQuery.nameCode == "") {
this.$message.warning("请输入查询条件"); this.$message.warning("请输入查询条件");
return; return;
} }
this.loading = true; this.loading = true;
superSearch(this.unionQuery) superSearch(this.unionQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.udidlList = response.data.list || []; this.udidlList = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.udidlList = []; this.udidlList = [];
this.total = 0; this.total = 0;
}); });
}, },
checkSelectable(row) { checkSelectable(row) {
return !row.check; return !row.check;
}, },
@ -436,6 +441,7 @@ export default {
} }
this.combineQuery.manufactory = this.currentRow.manufactory; this.combineQuery.manufactory = this.currentRow.manufactory;
this.combineQuery.price = this.currentRow.price; this.combineQuery.price = this.currentRow.price;
this.combineQuery.measname = this.currentRow.measname;
combineUdi(this.combineQuery) combineUdi(this.combineQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {

@ -301,9 +301,7 @@
<script> <script>
import {getBasicInstrumentMaintains, getBasicInstrumentMaintainsFilterProduct} from "../../api/basic/basicInstrumentMaintain"; import {getBasicInstrumentMaintains, getBasicInstrumentMaintainsFilterProduct} from "../../api/basic/basicInstrumentMaintain";
import {combineUdi} from "../../api/basic/basicInstrumentMaintainRelevance";
import store from "../../store"; import store from "../../store";
import {insertCompanySalesman, updateCompanySalesman} from "../../api/warehouse/companySalesman";
import {insertCompanyProductRelevance, updateCompanyProductRelevance} from "../../api/warehouse/companyProductRelevance"; import {insertCompanyProductRelevance, updateCompanyProductRelevance} from "../../api/warehouse/companyProductRelevance";
export default { export default {

Loading…
Cancel
Save