5..24更新平台药品
This commit is contained in:
parent
cf21b62b18
commit
794a8b35ca
@ -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
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user