Lvtianfang
杜函宇 2 years ago
parent 2989abc4b7
commit fbb44958a6

@ -23,10 +23,12 @@ export default {
}, },
}; };
}, },
mounted(){ mounted() {
setTimeout(async () => {
let msg1 = await this.$api.toLogin.frimLogin();
} localStorage.setItem("MSSM-LIAONING__TOKEN", msg1.data.result.userToken);
}, 100);
},
}; };
</script> </script>
<style scoped> <style scoped>

@ -22,22 +22,17 @@ export default {
// }&flag=${this.$route.query.flag}&data=${ // }&flag=${this.$route.query.flag}&data=${
// this.$route.query.data // this.$route.query.data
// }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`, // }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`,
url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation` // url: `https://dev-mssm-liaoning.imian.org.cn/ggfw-iframe/#/productinformation`
url: `http://localhost:81?type=${
this.$route.query.type
}&flag=${this.$route.query.flag}&data=${
this.$route.query.data
}&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`
}; };
}, },
methods: {}, methods: {},
created() { created() {
this.$nextTick(() => { this.$nextTick(() => {
let oFrame = this.$refs.iframes;
oFrame.contentWindow.postMessage(
{
type: this.$route.query.type,
flag: this.$route.query.flag,
data: this.$route.query.data,
token: localStorage.getItem("MSSM-LIAONING__TOKEN"),
},
"*"
);
}); });
}, },
mounted() { mounted() {

@ -14,7 +14,15 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="药品分类"> <el-form-item label="药品分类">
<el-input v-model="form1.ypfl"></el-input> <el-select v-model="form1.ypfl" placeholder="请选择药品分类">
<el-option
v-for="item in ypType"
:key="item"
:label="item"
:value="item"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
@ -34,10 +42,10 @@
<el-form-item label="剂型"> <el-form-item label="剂型">
<el-select v-model="form1.types" placeholder="请选择剂型"> <el-select v-model="form1.types" placeholder="请选择剂型">
<el-option <el-option
v-for="item in options" v-for="item in jxType"
:key="item.value" :key="item"
:label="item.label" :label="item"
:value="item.value" :value="item"
> >
</el-option> </el-option>
</el-select> </el-form-item </el-select> </el-form-item
@ -56,6 +64,9 @@
<div class="headerText"> <div class="headerText">
<div class="searchP">药品列表</div> <div class="searchP">药品列表</div>
</div> </div>
<div class="exportBtn">
<el-button type="primary" icon="el-icon-edit-outline">导出</el-button>
</div>
<section class="table-box"> <section class="table-box">
<div class="table-item"> <div class="table-item">
<el-table <el-table
@ -137,7 +148,6 @@ export default {
loading: false, loading: false,
tableData: [], tableData: [],
total: 0, total: 0,
options: [],
form1: { form1: {
types: "", types: "",
ypfl: "", ypfl: "",
@ -145,6 +155,21 @@ export default {
size: 10, size: 10,
current: 1, current: 1,
}, },
//
ypType: ["中药", "辅料", "生物制品", "化学药品"],
//
jxType: [
"散剂",
"片剂",
"颗粒剂",
"胶囊剂",
"溶液剂",
"乳剂",
"混悬剂",
"注射剂",
"喷雾剂",
"气雾剂",
],
}; };
}, },
mounted() {}, mounted() {},
@ -156,12 +181,12 @@ export default {
toDetail(e) { toDetail(e) {
this.$router.push({ this.$router.push({
path: `/cosmeticsDetail`, path: `/cosmeticsDetail`,
query: { type: '2', data:e.yppzwh }, query: { type: "2", data: e.yppzwh },
}); });
}, },
// //
searchList() { searchList() {
this.form1.current = 1 this.form1.current = 1;
this.chinaCosmetics(); this.chinaCosmetics();
}, },
getPagination(e) { getPagination(e) {

Loading…
Cancel
Save