diff --git a/canteen/pages/delivery/apply.vue b/canteen/pages/delivery/apply.vue index 80e797d..887abc1 100644 --- a/canteen/pages/delivery/apply.vue +++ b/canteen/pages/delivery/apply.vue @@ -14,7 +14,12 @@ 物资明细 - + diff --git a/canteen/pages/purchase/detail.vue b/canteen/pages/purchase/detail.vue index 65dc088..af9c912 100644 --- a/canteen/pages/purchase/detail.vue +++ b/canteen/pages/purchase/detail.vue @@ -108,12 +108,30 @@ },{ key: 'spec', label: '规格' + },{ + key: 'brand', + label: '品牌' + },{ + key: 'quality_level', + label: '品级' + },{ + label: '编号', + key: 'm_sn' + },{ + label: '供应商', + key: 'supplier_name' },{ key: 'pre_tax_price', label: '税前价格' },{ key: 'after_tax_price', label: '税后价格' + },{ + key: 'purchase_limit', + label: '起购数' + },{ + key: 'purchase_number', + label: '采购数量' }], contents: [], order: {}, @@ -219,10 +237,14 @@ return { name: item.material.m_name, spec: item.spec.name, + brand: item.material.brand, + quality_level: item.material.quality_level, + m_sn: item.material.m_sn, + supplier_name: this.order.supplier.supplier_name, pre_tax_price: item.total_tax_amount, after_tax_price: item.total_non_tax_amount, - spec_id: item.spec.id, - material_id: item.material.id + purchase_limit: item.p_order_item.purchase_limit, + purchase_number: item.purchase_number } }) this.contents = contents; diff --git a/supplier/pages/gonghuo/order.vue b/supplier/pages/gonghuo/order.vue index 013ad23..c9ee4b6 100644 --- a/supplier/pages/gonghuo/order.vue +++ b/supplier/pages/gonghuo/order.vue @@ -15,7 +15,7 @@ 采购方 - {{ item.p_name }} + {{ item.canteen.canteen_name }} 发单时间 @@ -31,7 +31,7 @@ 订单状态 - {{ item.state }} + {{ item.state }} @@ -68,6 +68,10 @@ name: '待发货', list: [], ..._public + },{ + name: '已发货', + list: [], + ..._public },{ name: '已完成', list: [], @@ -81,6 +85,21 @@ windowHeight: 0 } }, + computed: { + stateClass(){ + return function(val){ + let class_name = { + '已发货': 'passed', + '已收货': 'passed', + '已入库': 'passed', + '备货中': 'wait', + '待接单': 'quoted-price', + '已退单': 'refuse' + } + return class_name[val]; + } + } + }, onLoad(){ this.windowHeight = uni.getSystemInfoSync().windowHeight; this.getData();