Browse Source

Merge branch 'dev' into pre-production

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
22308488d1
  1. 14
      src/api/distribution/distributionStockArticle.js
  2. 7
      src/api/distribution/distributionStockList.js
  3. 248
      src/views/mail/order/add.vue

14
src/api/distribution/distributionStockArticle.js

@ -252,6 +252,20 @@ export const selectStockArticleInfoList = (current, size, params) => {
}
})
}
export const selectStockArticleInfoListByMail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleInfoListByMail',
method: 'get',
params: {
...params,
current,
size,
}
})
}
// 在库订单
export const $_selectStockArticleInfoList = (params) => {
return request({

7
src/api/distribution/distributionStockList.js

@ -36,6 +36,13 @@ export const getStockListOwn = (current, size, params) => {
})
}
/**
* 商场的库存品列表
* @param {*} current
* @param {*} size
* @param {*} params
* @returns
*/
export const getStockListClient = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionStockList/listClient',

248
src/views/mail/order/add.vue

@ -613,13 +613,13 @@
import {
getStockArticleList,
getPackageListByStockArticleId,
selectStockArticleInfoList,
getClientList,
selectUpdateAvailableStockArticle,
getZeroOrderDetail,
} from '@/api/distribution/distributionStockArticle';
import { getDetailDelivery } from '@/api/distribution/distributionDelivery';
import { addIncrement } from '@/api/distribution/distributionStockArticle';
import { getInventoryList, selectInventoryDetail } from '@/api/distribution/distributionStockList';
import {getStockListClient,selectInventoryDetail } from '@/api/distribution/distributionStockList';
import option from '@/option/distribution/distributionStockArticle';
import { mapGetters } from 'vuex';
@ -1298,221 +1298,270 @@
label: '序号',
type: 0,
values: '',
width: '50',
width: 55,
checkarr: [],
fixed: false,
sortable: true,
head: false,
fixed: true,
},
{
prop: 'orderCode',
label: '订单自编号',
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
fixed: true,
sortable: true,
head: false,
},
{
prop: 'marketCode',
label: '商场编码',
type: 2,
prop: 'serviceTypeName',
label: '服务类型',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
fixed: true,
sortable: true,
head: false,
},
// {
// prop: 'orderCode',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
prop: 'marketName',
label: '商场名称',
prop: 'descriptionGoods',
label: '货物名称',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'storeCode',
label: '门店编码',
prop: 'cargoNumber',
label: '货物编号',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'warehouse',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
prop: 'storeName',
label: '门店名称',
prop: 'despatch',
label: '物流车次',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoNumber',
label: '物料编码',
prop: 'incomingBatch',
label: '入库批次',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'materialId',
// label: 'ID',
// prop: 'mallName',
// label: '',
// type: 2,
// values: '',
// width: '150',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// head: false
// },
{
prop: 'descriptionGoods',
label: '物料名称',
type: 2,
prop: 'quantityStock',
label: '库存数量',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoUnit',
label: '物料单位',
type: 2,
prop: 'quantityOccupied',
label: '冻结数量',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'category',
label: '品分类',
type: 2,
},{
prop: 'outboundQuantity',
label: '出库数量',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'warehouseName',
label: '仓库名称',
/* {
prop: 'despatch',
label: '物流发运车次',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
},*/
// {
// prop: 'category',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
prop: 'quantityStock',
label: '库存数量',
prop: 'brandName',
label: '品牌',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'applyNum',
label: '可用数量',
prop: 'marketName',
label: '商场/客户',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'quantityOccupied',
label: '冻结数量',
prop: 'storeName',
label: '门店名称',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'storeCode',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
// {
// prop: 'marketCode',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
// {
// prop: 'shoppingMall',
// label: '',
// type: 2,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
prop: 'outboundQuantity',
label: '出库数量',
prop: 'warehouseName',
label: '仓库名称',
type: 2,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'brand',
label: '品牌',
type: 2,
prop: 'cargoUnit',
label: '物料单位',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoNumber',
label: '规格',
type: 2,
prop: 'unpackingQuantity',
label: '拆包数量',
type: 1,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoUnit',
label: '单位',
type: 2,
prop: 'unpack',
label: '拆包状态',
type: 1,
values: '',
width: '150',
checkarr: [],
width: '130',
checkarr: [ {
value: `true`,
label: '是',
},
{
value: `false`,
label: '否',
},],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'reservationNum',
label: '预约数量',
type: 10,
prop: '',
label: '操作',
type: 6,
values: '',
width: '150',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
fixed: 'right',
hide: true,
},
// ...
],
columnParcels: [
{
@ -1926,7 +1975,7 @@
let params = {};
this.query.serviceType = '2';
params.marketName = this.marketName;
getInventoryList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(
getStockListClient(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(
res => {
const inventoryList = res.data.data;
inventoryList.records.forEach(item => {
@ -2787,11 +2836,12 @@
if (this.orderData.length !== 0) {
this.query.orderIds = this.orderData.map(val => val.id).join(',');
}
const res = await selectStockArticleInfoList(
const res = await getClientList(
page.currentPage,
page.pageSize,
Object.assign(params, this.query)
);
console.log('res ===>>', res)
const { records, total } = res.data.data;
this.stockArticleInfo = records;

Loading…
Cancel
Save