Browse Source

优化供应商发起报价

master
邓平艺 5 years ago
parent
commit
ca65b493f2
  1. 17
      canteen/pages/delivery/apply.vue
  2. 2
      canteen/pages/purchase/launch.vue
  3. 9
      supplier/pages/offer/index.vue
  4. 9
      supplier/pages/order/detail.vue

17
canteen/pages/delivery/apply.vue

@ -34,14 +34,29 @@
data(){
return {
headers: [{
label: '菜品名称',
label: '物资名称',
key: 'material_name'
},{
label: '规格',
key: 'spec_name'
},{
key: 'brand',
label: '品牌'
},{
key: 'quality_level',
label: '品级'
},{
label: '编号',
key: 'm_sn'
},{
label: '供应商',
key: 'supplier_name'
},{
label: '批次',
key: 'purchase_id'
},{
key: 'delivery_number',
label: '出库数量'
}],
contents: [],
warehouse_list: {}

2
canteen/pages/purchase/launch.vue

@ -213,7 +213,7 @@
m_spec_id: item.spec_id,
tax_price: item.tax_price,
non_tax_price: item.non_tax_price,
purchase_number: item.purchase_number.value || 0
purchase_number: Number(item.purchase_number.value) || item.purchase_limit
}
});
// :

9
supplier/pages/offer/index.vue

@ -241,16 +241,17 @@
id: item.quotation_id,
tax_price: item.tax_price.value,
non_tax_price: item.non_tax_price.value,
purchase_limit: item.purchase_limit.value || 1
purchase_limit: Number(item.purchase_limit.value) || 1
})
});
//
let state = ['待发起', '待审核'][_t];
this.$http(this.API.API_SUPPLIER_QUOTATIONSAVE, {
data: list,
state: state
state: state,
q_sn: this.code
}).then(res => {
this.$msg(res.data).then(result => {
this.$msg('操作成功').then(result => {
this.$toBack();
})
})
@ -271,7 +272,7 @@
m_spec_id: item.spec_id,
tax_price: item.tax_price.value,
non_tax_price: item.non_tax_price.value,
purchase_limit: item.purchase_limit.value || 1
purchase_limit: Number(item.purchase_limit.value) || 1
})
}
});

9
supplier/pages/order/detail.vue

@ -73,7 +73,8 @@
key: 'non_tax_price'
}],
contents: [],
q_sn: '' //
q_sn: '', //
show_count: 0
}
},
computed: {
@ -93,6 +94,12 @@
this.q_sn = options.q_sn;
this.getDetail();
},
onShow(options){
this.show_count++;
if(this.show_count > 1){
this.getDetail();
}
},
methods: {
stateType(val){
let type = 0;

Loading…
Cancel
Save