diff --git a/src/components/addHealthConfigModal.vue b/src/components/addHealthConfigModal.vue index eea785f..f7c8640 100644 --- a/src/components/addHealthConfigModal.vue +++ b/src/components/addHealthConfigModal.vue @@ -187,7 +187,9 @@ const changePackage=(val)=>{ packagePrice.value=item.discount_product_total_amount; } }) - + if(tuwenPrice.value) { + emits('setPrice',tuwenPrice.value*0.6*5+packagePrice.value) + } } const healthConfig=async()=>{ const {code,data}=await getHealthConfigAddList({ diff --git a/src/views/medince/sys-medince/index.vue b/src/views/medince/sys-medince/index.vue index f8891e5..c788df8 100644 --- a/src/views/medince/sys-medince/index.vue +++ b/src/views/medince/sys-medince/index.vue @@ -33,6 +33,12 @@ + + + 正序 + 倒序 + + 未知 @@ -136,7 +142,7 @@ }; // form const queryForm = reactive({ - order:null + order:{} }); const modalForm = reactive({ user:{}, @@ -170,30 +176,7 @@ { title: '批准文号', dataIndex: 'license_number',width:200 }, { title: '生产厂家', dataIndex: 'manufacturer',width:200 }, { title: '药店编码', dataIndex: 'product_pharmacy_code',width:100 }, - { title: '库存', dataIndex: 'stock',width:100,sortable: { - sortDirections: ['ascend', 'descend',''], - sorter:false - // sorter:function(a,b,extra){ - - // console.log(extra); - // if(extra.direction=='ascend'){ - // queryForm.order={ - // stock:'asc' - // } - // }else if(extra.direction=='descend'){ - // queryForm.order={ - // stock:'desc' - // } - // }else{ - // queryForm.order=null - // } - // if(!lock.value){ - // getMedinceInfo({ ...pager, ...queryForm }); - // lock.value=true; - // } - // return true - // } - }, }, + { title: '库存', dataIndex: 'stock',width:100 }, { title: '购买上限', dataIndex: 'prescription_num',width:100 }, { title: '状态', dataIndex: 'product_status',slotName:'product_status',width:100 }, // { title: '启用状态', dataIndex: 'status', slotName: 'status' },