Merge remote-tracking branch 'origin/master'

pro
anthonywj 2 years ago
commit e827ef144f

@ -1,43 +1,54 @@
import axios from "@/utils/request"; import axios from "@/utils/request";
export function filterCompanyProductRelevance(query) { export function filterCompanyProductRelevance(query) {
return axios( return axios(
{ {
url: "/sale/info/company/product/relevance/filter", url: "/sale/info/company/product/relevance/filter",
method: "get", method: "get",
params: query params: query
} }
) )
} }
export function filterCompanyProductplanRelevance(query) {
return axios(
{
url: "/sale/info/company/product/plan/relevance/filter",
method: "get",
params: query
}
)
}
export function insertFilter(query) { export function insertFilter(query) {
return axios( return axios(
{ {
url: "/sale/info/insertFilter", url: "/sale/info/insertFilter",
method: "post", method: "post",
data: query data: query
} }
); );
} }
export function insertCompanyProductRelevance(query) { export function insertCompanyProductRelevance(query) {
return axios( return axios(
{ {
url: "/sale/info/insertCompanyProductRelevance", url: "/sale/info/insertCompanyProductRelevance",
method: "post", method: "post",
data: query data: query
} }
); );
} }
export function deleteCompanyProductRelevance(query) { export function deleteCompanyProductRelevance(query) {
return axios( return axios(
{ {
url: "/sale/info/deleteCompanyProductRelevance", url: "/sale/info/deleteCompanyProductRelevance",
method: "post", method: "post",
data: query data: query
} }
); );
} }

@ -138,7 +138,7 @@
</template> </template>
<script> <script>
import {filterCompanyProductRelevance} from "../../../api/basic/udiRlSuptRelevance"; import {filterCompanyProductplanRelevance, filterCompanyProductRelevance} from "../../../api/basic/udiRlSuptRelevance";
import {addApplyDetail, addApply} from "../../../api/purchase/purApply"; import {addApplyDetail, addApply} from "../../../api/purchase/purApply";
import store from "../../../store"; import store from "../../../store";
import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog"; import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog";
@ -297,7 +297,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
filterCompanyProductRelevance(this.listQuery) filterCompanyProductplanRelevance(this.listQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
@ -328,17 +328,14 @@ export default {
if (this.ids.length > 0) { if (this.ids.length > 0) {
for (var i = 0; i < this.ids.length; i++) { for (var i = 0; i < this.ids.length; i++) {
if (this.ids[i] == this.multipleSelection.rlId) { if (this.ids[i] == this.multipleSelection.id) {
this.$message.error("该产品已录入!"); this.$message.error("该产品已录入!");
return return
} }
} }
} }
if (!this.multipleSelection.companyName) {
this.$message.error("配送企业为空!请重新选择!");
return;
}
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
@ -352,7 +349,7 @@ export default {
combine() { combine() {
this.loading = true; this.loading = true;
let tQuery = { let tQuery = {
productId: this.multipleSelection.rlId, productId: this.multipleSelection.id,
productName: this.multipleSelection.cpmctymc, productName: this.multipleSelection.cpmctymc,
count: 1, count: 1,
orderIdFk: this.pId, orderIdFk: this.pId,

@ -165,7 +165,7 @@
<el-option v-for="item in suppliers" <el-option v-for="item in suppliers"
:key="item.erpId" :key="item.erpId"
:label="item.name" :label="item.name"
:value="item.name"> :value="item.erpId">
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
@ -441,7 +441,7 @@ export default {
this.selectedIndex = val.index; this.selectedIndex = val.index;
filterSupList({productId:val.productId}) // filterSupList({productId:val.productId}) //
.then((response) => { .then((response) => {
this.suppliers = response.data.list || []; this.suppliers = response.data || [];
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save