Browse Source

申请出库添加库存数量显示 修改发起采购页面显示

master
Enzo 5 years ago
parent
commit
933d15907e
  1. 4
      canteen/common/api.js
  2. 7
      canteen/pages/delivery/apply.vue
  3. 2
      canteen/pages/purchase/launch.vue
  4. 4
      supplier/common/api.js

4
canteen/common/api.js

@ -2,8 +2,8 @@
export const DEV = "dev"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号
// export const DEVURL = 'http://192.168.3.78'; // 测试服请求地址
export const DEVURL = 'http://fsc.lanzulive.com'; // 测试服请求地址
// export const DEVURL = 'http://192.168.43.78'; // 测试服请求地址
// export const DEVURL = 'http://fsc.lanzulive.com'; // 测试服请求地址
export const DEVURL = 'http://192.168.3.133'; // 测试服请求地址
export const PRODURL = ''; // 正式服请求地址
export const API_CANTEEN_LOGIN = '/api/canteen/login'; // 登录

7
canteen/pages/delivery/apply.vue

@ -72,6 +72,9 @@
},{
label: '批次',
key: 'batch_sn'
},{
key: 'stock_number',
label: '库存数量'
},{
key: 'delivery_number',
label: '出库数量'
@ -112,6 +115,7 @@
warehouse_list[i].operation = {button: true, key: 'delete', value: '删除'};
warehouse_list[i].unit = warehouse_list[i].unit.unit_name;
warehouse_list[i].category = warehouse_list[i].category.m_cate_name;
warehouse_list[i].stock_number = warehouse_list[i].stock;
contents.push(warehouse_list[i]);
}
this.contents = contents;
@ -129,10 +133,13 @@
let list = res.data.sheet || [];
let warehouse_list = {};
list.map(item => {
console.log('======',item)
console.log('===库存===',item.warehouse.stock)
warehouse_list[item.id] = {
batch_sn: item?.purchase?.batch_sn || '',
brand: item?.material?.brand || '',
checked: true,
stock: item.warehouse.stock,
m_sn: item?.material?.m_sn || '',
material_id: item?.material?.id || 0,
material_name: item?.material?.m_name || '',

2
canteen/pages/purchase/launch.vue

@ -23,7 +23,7 @@
<self-line></self-line>
<!-- 收货时间 -->
<view class="lf-row-between lf-p-30 lf-p-l-32 lf-p-r-32 lf-font-28">
<view class="lf-color-black">收货时间</view>
<view class="lf-color-black">预计收货时间</view>
<picker mode="date" :value="date" @change="pickerChange">
<!-- <view class="lf-color-555 lf-text-right" style="width: 400rpx;">{{ '请选择收货时间...' }}</view> -->
<view class="lf-color-555 lf-text-right" style="width: 400rpx;">{{ date }}</view>

4
supplier/common/api.js

@ -1,8 +1,8 @@
// appId: 正式 null | 测试 null
export const DEV = "dev"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号
// export const DEVURL = 'http://192.168.3.5'; // 测试服请求地址
export const DEVURL = 'http://fsc.lanzulive.com'; // 测试服请求地址
export const DEVURL = 'http://192.168.3.133'; // 测试服请求地址
// export const DEVURL = 'http://fsc.lanzulive.com'; // 测试服请求地址
export const PRODURL = ''; // 正式服请求地址
export const API_SUPPLIER_INDEX = '/api/supplier/index'; // 落地页

Loading…
Cancel
Save