5..24更新平台药品

This commit is contained in:
zoujiandong 2024-05-24 14:53:57 +08:00
parent cf21b62b18
commit 794a8b35ca
2 changed files with 30 additions and 5 deletions

View File

@ -14,11 +14,11 @@ export function getMedinceDetail(id){//商品详情-平台
method: 'get'
})
};
export function getSysMedinceList(params){//获取商品列表-分页-系统
export function getSysMedinceList(data){//获取商品列表-分页-系统
return request({
url:'/admin/product/page',
method: 'post',
params
data
})
};

View File

@ -53,7 +53,7 @@
<!-- action -->
<div class="action">
<a-space>
<a-button v-has="'admin:sysMedinceList:add'" type="primary" @click="handleAdd"><icon-plus /> 新增 </a-button>
<a-button v-has="'admin:sysMedinceList:add'" type="primary" @click="handleAdd"><icon-plus /> 新增 1</a-button>
<!-- <a-button v-has="'admin:sysMedinceList:remove'" type="primary" status="danger" @click="handleAdd"><icon-delete /> 删除 </a-button> -->
<a-button v-has="'admin:sysMedinceList:selectExport'" type="primary" @click="handlExport(2)"><icon-export /> 选择数据导出 </a-button>
<a-button v-has="'admin:sysMedinceList:searchExport'" type="primary" @click="handlExport(1)"><icon-export /> 当前搜索全部导出</a-button>
@ -115,6 +115,7 @@
const deleteVisible = ref(false)
// Akiraka 20230210
const okVisible = ref(false);
const lock= ref(false);
watch(() => deleteVisible.value, (value) => {
if (value == false) {
@ -135,7 +136,7 @@
};
// form
const queryForm = reactive({
order:null
});
const modalForm = reactive({
user:{},
@ -169,7 +170,30 @@
{ title: '批准文号', dataIndex: 'license_number',width:200 },
{ title: '生产厂家', dataIndex: 'manufacturer',width:200 },
{ title: '药店编码', dataIndex: 'product_pharmacy_code',width:100 },
{ title: '库存', dataIndex: 'stock',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: 'prescription_num',width:100 },
{ title: '状态', dataIndex: 'product_status',slotName:'product_status',width:100 },
// { title: '', dataIndex: 'status', slotName: 'status' },
@ -265,6 +289,7 @@
//
const getMedinceInfo = async (params = {}) => {
const { data, code, message } = await getSysMedinceList(params);
lock.value=false
if (code == 200) {
tableData.value = data.data;
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });