提交 18b723dd 编写于 作者: tao.wu's avatar tao.wu

默认带出机构

上级 c6a20335
...@@ -92,3 +92,14 @@ export const updateStock = (parm) => { ...@@ -92,3 +92,14 @@ export const updateStock = (parm) => {
description: '增加/减少库存', description: '增加/减少库存',
}) })
}; };
// http://dev-sc.yunqueyi.com/store/getHospitalInfoByStoreId?storeId=85
// GET header:token
export const getHospitalInfoByStoreId = (storeId) => {
return fetch({
headers,
url: getBaseUrl(`store/getHospitalInfoByStoreId?storeId=${storeId}`),
method: 'get',
description: '',
})
};
\ No newline at end of file
...@@ -723,7 +723,7 @@ ...@@ -723,7 +723,7 @@
let vm = null; let vm = null;
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import { doUpload, getFilePath } from "../../utils/qiniu-util"; import { doUpload, getFilePath } from "../../utils/qiniu-util";
import { updateGoods ,updateStock,dosageAll,getDeparts,getGoodsList, getGoodDetails, updateGoodsV2} from '@/utils/goods'; import { updateGoods ,updateStock,dosageAll,getDeparts,getGoodsList, getGoodDetails, updateGoodsV2, getHospitalInfoByStoreId } from '@/utils/goods';
import Cropper from '@/components/common/cropper.vue' import Cropper from '@/components/common/cropper.vue'
import { originRules1, originRules2, originRules } from './rules'; import { originRules1, originRules2, originRules } from './rules';
...@@ -803,6 +803,7 @@ ...@@ -803,6 +803,7 @@
rules2: {}, rules2: {},
goodsId: 0, // 新增时传0,更新时必需>0 goodsId: 0, // 新增时传0,更新时必需>0
goodsType: '', goodsType: '',
storeId: '',
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
...@@ -834,12 +835,14 @@ ...@@ -834,12 +835,14 @@
vm = this; vm = this;
const { id, storeId, goodsType } = this.$route.query; const { id, storeId, goodsType } = this.$route.query;
this.goodsType = goodsType; this.goodsType = goodsType;
this.storeId = storeId;
this.formData = originForm; this.formData = originForm;
this.formData1 = originForm1; this.formData1 = originForm1;
this.formData2 = originForm2; this.formData2 = originForm2;
this.rules = originRules; this.rules = originRules;
this.rules1 = originRules1; this.rules1 = originRules1;
this.rules2 = originRules2; this.rules2 = originRules2;
this.rules2.barCode = originRules.barCode;
this.jumPathThird = '/goods-manage?storeId='+storeId this.jumPathThird = '/goods-manage?storeId='+storeId
//this.jumPathThird = '/create-good?id=add&storeId=46' //this.jumPathThird = '/create-good?id=add&storeId=46'
...@@ -1048,6 +1051,9 @@ ...@@ -1048,6 +1051,9 @@
} else if(goodsType == 337){ } else if(goodsType == 337){
this.isMedic = false; this.isMedic = false;
this.isCheckServe = true; this.isCheckServe = true;
getHospitalInfoByStoreId(this.storeId).then(({code,message,data})=>{
this.formData2.hospitalName = data.hospital;
})
}else{ }else{
this.isMedic = false; this.isMedic = false;
this.isCheckServe = false; this.isCheckServe = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册