|
|
|
@ -53,23 +53,26 @@ |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
headers: [{ |
|
|
|
label: '菜品名称', |
|
|
|
label: '物资名称', |
|
|
|
key: 'name' |
|
|
|
},{ |
|
|
|
label: '规格', |
|
|
|
key: 'spec' |
|
|
|
},{ |
|
|
|
label: '单位', |
|
|
|
key: 'unit' |
|
|
|
},{ |
|
|
|
label: '品牌', |
|
|
|
key: 'brand' |
|
|
|
},{ |
|
|
|
label: '品质', |
|
|
|
label: '品级', |
|
|
|
key: 'quality_level' |
|
|
|
},{ |
|
|
|
label: '报价', |
|
|
|
key: 'offer' |
|
|
|
label: '编号', |
|
|
|
key: 'number' |
|
|
|
},{ |
|
|
|
label: '含税价', |
|
|
|
key: 'tax_price' |
|
|
|
},{ |
|
|
|
label: '非含税价', |
|
|
|
key: 'no_tax_price' |
|
|
|
}], |
|
|
|
contents: [], |
|
|
|
is_show: false, |
|
|
|
@ -125,6 +128,7 @@ |
|
|
|
// 获取物资列表 |
|
|
|
getMaterialList(){ |
|
|
|
this.$http(this.API.API_SUPPLIER_MATERIALLIST).then(res => { |
|
|
|
|
|
|
|
let list = res.data.spec || []; |
|
|
|
let contents = list.map(item => { |
|
|
|
return { |
|
|
|
@ -132,10 +136,11 @@ |
|
|
|
material_id: item?.material?.id || 0, |
|
|
|
spec: item.name, |
|
|
|
spec_id: item.id, |
|
|
|
unit: item?.material?.unit?.unit_name || '', |
|
|
|
brand: item?.material?.brand || '', |
|
|
|
quality_level: item?.material?.quality_level || '', |
|
|
|
offer: {edit: true, value: ''} |
|
|
|
number: item?.material?.m_sn || '', |
|
|
|
tax_price: {edit: true, value: ''}, |
|
|
|
no_tax_price: {edit: true, value: ''} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.contents = contents; |
|
|
|
|