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>
<style scoped>

@ -22,22 +22,17 @@ export default {
// }&flag=${this.$route.query.flag}&data=${
// this.$route.query.data
// }&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: {},
created() {
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() {

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

Loading…
Cancel
Save