diff --git a/api/all.js b/api/all.js index 282bf42..543d50e 100644 --- a/api/all.js +++ b/api/all.js @@ -102,7 +102,7 @@ export function toUpload(data) { }) } -// 药师 编辑资料 +// 药师 编辑资料 export function toUploaded(data) { return req.request({ url: 'pharmacist/edit-info', @@ -150,7 +150,7 @@ export function doctorIncome(data) { // 医生 挂号收益统计 /** * @param {Object} data - * 参数名称 必须 参数类型 说明 + * 参数名称 必须 参数类型 说明 */ export function doctorRegister(data) { return req.request({ @@ -456,7 +456,7 @@ export function doctorTypeList(data) { }) } -// 中药西药 +// 中药西药 /** * @param {Object} data * 参数名称 必须 参数类型 说明 @@ -1120,7 +1120,7 @@ export function deleteCommon(data) { }) } -// 开处方-常用方详情(西药) +// 开处方-常用方详情(西药) /** * @param {Object} data * 参数名称 必须 参数类型 说明 @@ -1155,7 +1155,7 @@ export function addOneGranular(data) { }) } -// 添加颗粒药药方 +// 添加颗粒药药方 export function addGranularRecipe(data) { return req.request({ url: 'prescription/add-granular-recipe', @@ -1172,8 +1172,6 @@ export function addGranularPrescription(data) { }) } - - // 颗粒药常用方 export function saveGranularCommon(data) { return req.request({ diff --git a/common/js/index.js b/common/js/index.js index 429481c..fe99b4b 100644 --- a/common/js/index.js +++ b/common/js/index.js @@ -9,7 +9,7 @@ export const config = { } /** * 请求拦截器 - * @param {*} options + * @param {*} options */ const reqInterceptor = async (options) => { options.header = { @@ -109,5 +109,5 @@ function _responseLog(res, conf = {}, describe = null) { /** * 请求方法封装 */ - + export const req = new Request(config, reqInterceptor, resInterceptor) diff --git a/pages.json b/pages.json index 50eee87..7e45003 100644 --- a/pages.json +++ b/pages.json @@ -169,6 +169,12 @@ "navigationBarTitleText": "添加商品" } }, + { + "path": "workbench_recipe/addProductServicePackage", + "style": { + "navigationBarTitleText": "添加产品服务包" + } + }, { "path": "workbench_recipe/common", "style": { @@ -423,4 +429,4 @@ "navigationBarTextStyle": "black", "backgroundColor": "#f7f8fa" } -} \ No newline at end of file +} diff --git a/pages/login/index.vue b/pages/login/index.vue index f2bebc1..8258978 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -149,7 +149,7 @@ uni.setStorageSync('store_id', res.data['StoreDoctor']['store_id']) const data = { - store_id: uni.getStorageSync('store_id') || '11001', + store_id: uni.getStorageSync('store_id') || res.data['StoreDoctor']['store_id'] || '11001', } getUserInfo(data).then(res => { if (res.errcode != -1) { @@ -167,13 +167,13 @@ }) return } - + }).catch(() => { this.loading = false this.$toast(res.msg) }) - + // 药师 if (res.data.ServiceUser.role == 2 && res.data.ServiceUser.status ==2 ) { @@ -191,7 +191,7 @@ return } - + // 医生未通过审核 if (res.data.ServiceUser.role == 1 && res.data.ServiceUser.status == 3) { // this.$toast(res.data.ServiceUser.reason) @@ -200,16 +200,16 @@ }, 2000) return } - + // 医生审核中 if (res.data.ServiceUser.role == 1 && res.data.ServiceUser.status == 1) { - this.$toast('您的账号还在审核中') + this.$toast('您的账号还在审核中') setTimeout(() => { this.$go('/pages/workbench/examine') }, 2000) return } - + // 药师未通过审核 if (res.data.ServiceUser.role == 2 && res.data.ServiceUser.status == 3) { // this.$toast(res.data.ServiceUser.reason) @@ -218,10 +218,10 @@ }, 2000) return } - + // 药师审核中 if (res.data.ServiceUser.role == 2 && res.data.ServiceUser.status == 1) { - this.$toast('您的账号还在审核中') + this.$toast('您的账号还在审核中') setTimeout(() => { this.$go('/pages/workbench/examine') }, 2000) @@ -396,4 +396,4 @@ word-spacing: 3px; } } - \ No newline at end of file + diff --git a/subPackages/sub_my/my_diagnose_common.vue b/subPackages/sub_my/my_diagnose_common.vue index 1d19751..fb1a5ec 100644 --- a/subPackages/sub_my/my_diagnose_common.vue +++ b/subPackages/sub_my/my_diagnose_common.vue @@ -59,7 +59,7 @@ }; }, onShow() { - // this.templateLists(); + this.templateLists(); }, methods: { handleSelect(id) { diff --git a/subPackages/sub_workbench/workbench_recipe/common.vue b/subPackages/sub_workbench/workbench_recipe/common.vue index e8ca129..5cdacff 100644 --- a/subPackages/sub_workbench/workbench_recipe/common.vue +++ b/subPackages/sub_workbench/workbench_recipe/common.vue @@ -16,7 +16,7 @@ 西药(中成) - @@ -84,10 +84,10 @@ - 非药品 + 保健食品 - @@ -156,7 +156,7 @@ item: [], obj: {} }]) - + this.type = op['type'] || 0; console.log(this.type,'type') this.commonUse() diff --git a/subPackages/sub_workbench/workbench_recipe/components/add-setUsage.vue b/subPackages/sub_workbench/workbench_recipe/components/add-setUsage.vue index f1839f2..6f6fa1c 100644 --- a/subPackages/sub_workbench/workbench_recipe/components/add-setUsage.vue +++ b/subPackages/sub_workbench/workbench_recipe/components/add-setUsage.vue @@ -120,8 +120,74 @@ + 服务包 + + + + 名称: + {{obj.drug_name}} + + + + + + 规格: + {{obj.specification}} + + + 库存: + 剩余{{obj.stock}}件 + + + + + 毛利率: + {{getRate()}}% + + + + + 厂家: + {{obj.source}} + + + + + 功能主治: + {{obj.function}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +