Merge branch 'dev'
This commit is contained in:
commit
892ee13d1f
@ -49,10 +49,11 @@ export function getMedinceDetail(id){//商品详情-平台
|
|||||||
data:data
|
data:data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function getList(){//获取商品列表-平台
|
export function getList(params){//获取商品列表-平台
|
||||||
return request({
|
return request({
|
||||||
url:`/admin/product/platform/list`,
|
url:`/admin/product/platform/list`,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -145,7 +145,7 @@
|
|||||||
<a-row :gutter="24" style="margin-top: 35px;">
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item field="common_name" label="药品通用名称:">
|
<a-form-item field="common_name" label="药品通用名称:">
|
||||||
<a-input :style="{ width: '200px' }" v-model="modalForm.common_name" placeholder="请输入药品通用名称" />
|
<a-input :disabled="modalSatus=='edit'" :style="{ width: '200px' }" v-model="modalForm.common_name" placeholder="请输入药品通用名称" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -169,7 +169,7 @@
|
|||||||
<a-row :gutter="24" style="margin-top: 35px;">
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item field="license_number" label="批准文号:">
|
<a-form-item field="license_number" label="批准文号:">
|
||||||
<a-input :style="{ width: '200px' }" v-model="modalForm.license_number" placeholder="请输入批准文号" />
|
<a-input :disabled="modalSatus=='edit'" :style="{ width: '200px' }" v-model="modalForm.license_number" placeholder="请输入批准文号" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -181,7 +181,7 @@
|
|||||||
<a-row :gutter="24" style="margin-top: 35px;">
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item field="product_platform_code" label="处方平台编码:">
|
<a-form-item field="product_platform_code" label="处方平台编码:">
|
||||||
<a-input :style="{ width: '200px' }" v-model="modalForm.product_platform_code" placeholder="请输入处方平台编码" />
|
<a-input :disabled="modalSatus=='edit'" :style="{ width: '200px' }" v-model="modalForm.product_platform_code" placeholder="请输入处方平台编码" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -280,6 +280,7 @@ const handAdd=async()=>{
|
|||||||
delete modalForm.value.avatar;
|
delete modalForm.value.avatar;
|
||||||
delete modalForm.value.product_id
|
delete modalForm.value.product_id
|
||||||
modalForm.value.product_status=1;
|
modalForm.value.product_status=1;
|
||||||
|
|
||||||
const {code}=await addSysMedince(modalForm.value);
|
const {code}=await addSysMedince(modalForm.value);
|
||||||
if(code==200){
|
if(code==200){
|
||||||
Message.success("添加成功");
|
Message.success("添加成功");
|
||||||
@ -311,12 +312,14 @@ const handleEditStatus=async(status)=>{
|
|||||||
const { code, data, message } = await getMedinceDetail(product_platform_id);
|
const { code, data, message } = await getMedinceDetail(product_platform_id);
|
||||||
|
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
Object.assign(modalForm, data);
|
|
||||||
|
Object.assign(modalForm.value,data);
|
||||||
modalForm.value.stock=data.stock;
|
modalForm.value.stock=data.stock;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const handList= async(value)=>{
|
const handList= async(value)=>{
|
||||||
loading.value=true;
|
loading.value=true;
|
||||||
|
console.log(value)
|
||||||
const {code,data}=await getList({
|
const {code,data}=await getList({
|
||||||
product_name: value,
|
product_name: value,
|
||||||
});
|
});
|
||||||
@ -332,7 +335,7 @@ const changeMedince = (value) => {
|
|||||||
modalForm.value.product_spec=arr[0].product_spec;
|
modalForm.value.product_spec=arr[0].product_spec;
|
||||||
modalForm.value.product_pharmacy_code=arr[0].product_pharmacy_code;
|
modalForm.value.product_pharmacy_code=arr[0].product_pharmacy_code;
|
||||||
modalForm.value.manufacturer=arr[0].manufacturer;
|
modalForm.value.manufacturer=arr[0].manufacturer;
|
||||||
handleDetail(arr[0].product_platform_id)
|
handleDetail(arr[0].product_platform_id);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user