123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524 |
- <template>
- <div>
- <div class="Dialog" v-show="index==0" style="width: 11.8rem;">
- <div class="DialogTit">
- <span class="iconfont" @click="$emit('orderDialog')"></span>
- <h1 class="name">临时医嘱</h1>
- <span class="success"> </span>
- </div>
- <div class="yzNav" style="width:100%;">
- <span
- @click="openNewAdvice"
- :class="{ forbid: this.$store.getters.user.user.user_type == 3 }"
- >新增</span>
- <span
- v-if="isShowExce"
- @click="execAdvice"
- :class="{ forbid: (current_advice&& current_advice.parent_id > 0)||(this.$store.getters.user.user.user_type == 2 && !isPremission) }"
- >执行</span>
- <span
- v-if="isShowMofifyExce"
- @click="modifyExecAdvice"
- :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
- >执行</span>
- <span
- v-if="template_id != 6"
- @click="checkAdvice"
- :class="{ forbid: (current_advice&& current_advice.parent_id > 0) || (this.$store.getters.user.user.user_type == 2 && !isPremission) }"
- >核对</span>
- <span
- id="fontSize"
- @click="openNewChild"
- :class="{ forbid: current_advice == null || current_advice.parent_id > 0 || currentAdvices.length != 1 || this.$store.getters.user.user.user_type == 3 }"
- >添加子药</span>
- <span
- v-if="currentSubAdvices.length <= 0"
- @click="modifyAdviceAction"
- :class="{ forbid: current_group_index < 0 || currentAdvices.length != 1 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
- >修改</span>
- <span
- v-if="currentSubAdvices.length <= 0"
- @click="deleteAdviceAction"
- :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
- >删除</span>
-
- <span v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
- <span v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
- </div>
- <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
-
- <div class="content clearfix">
- <div class="orderTable">
-
- <table class="table">
- <tr @click="cancelAdviceSelect">
- <th width="8%">开嘱医生</th>
- <th width="12%">开始时间</th>
- <th width="52%">医嘱内容</th>
- <th width="12%">执行时间</th>
- <th width="8%">执行护士</th>
- <th v-if="template_id != 6" width="8%">核对人员</th>
- </tr>
- <template v-for="(group, group_index) in advice_groups">
- <tr
- v-for="(advice, advice_index) in group.advices"
- :key="advice.id"
- :class="{ 'row-class-active': current_group_index == group_index && current_advice_index < 0 }"
- >
- <td
- v-if="advice_index == 0"
- :rowspan="group.advices.length"
- @click="selectGroupAdviceAction(group_index, -1, null,group)"
- >
- <span v-if="advice.parent_id==0">{{getXuserName(advice.advice_doctor)}}</span>
- <span v-else></span>
- </td>
-
- <td
- v-if="advice_index == 0"
- :rowspan="group.advices.length"
- @click="selectGroupAdviceAction(group_index, -1, null,group)"
- >
- <span>{{uParseTime(advice.start_time, '{m}-{d} {h}:{i}')}}</span>
- </td>
-
- <td
- :class="{ 'advice_content': advice.parent_id == 0, 'subadvice_content': advice.parent_id > 0, 'td-active':current_group_index == group_index && advice.is_selected == 1 }"
- @click="selectAdviceAction(group_index, advice_index, advice)"
- >
- <div class="txt">
- <span>{{advice.advice_name }}</span>
- <span v-if="advice.advice_desc">({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
- <span v-if="advice.prescribing_number"> {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
- <span v-if="advice.single_dose && template_id == 6" >{{advice.single_dose}}{{advice.single_dose_unit}}</span>
- <span v-if="advice.single_dose && template_id != 6" >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
-
- <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
- <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
- <span
- v-if="advice.parent_id == 0 && advice.remark.length > 0"
- >({{advice.remark}})</span>
- </div>
- </td>
-
- <td
- :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
- @click="selectAdviceAction(group_index,advice_index, advice)"
- >{{uParseTime(advice.execution_time, '{m}-{d} {h}:{i}')}}</td>
-
- <td
- :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
- @click="selectAdviceAction(group_index,advice_index, advice)"
-
- > {{getXuserName(advice.execution_staff)}}
- </td>
- <td v-if="template_id != 6"
- :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
- @click="selectAdviceAction(group_index,advice_index, advice)"
- >{{getXuserName(advice.checker)}}</td>
- </tr>
- </template>
- </table>
- </div>
- <!-- <el-table
- :data="tableData"
- border
- style="width: 100%">
- <el-table-column fixed prop="date" label="开嘱医生" width="180" align="center">
- <template slot-scope="scope">
- {{getXuserName(scope.row.advice_doctor)}}
- </template>
- </el-table-column>
- <el-table-column prop="name" label="开始时间" width="180" align="center">
- <template slot-scope="scope">
- {{uParseTime(scope.row.start_time, '{m}-{d} {h}:{i}')}}
- </template>
- </el-table-column>
- <el-table-column prop="address" label="医嘱内容" align="center">
- <template slot-scope="scope">
- <span>{{scope.row.advice_name }}</span>
- <span
- v-if="scope.row.advice_desc"
- >({{ scope.row.advice_desc }}{{scope.row.drug_spec_unit}})</span>
- <span
- v-if="scope.row.prescribing_number"
- > {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}})</span>
- <span
- v-if="scope.row.single_dose && template_id != 6"
- >单次用量{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</span>
-
- <span v-if="scope.row.parent_id == 0">{{scope.row.delivery_way}}</span>
- <span v-if="scope.row.parent_id == 0">{{scope.row.execution_frequency}}</span>
- <span
- v-if="scope.row.parent_id == 0 && scope.row.remark.length > 0"
- >({{scope.row.remark}})</span>
- </template>
- </el-table-column>
- <el-table-column prop="address" label="执行时间" align="center">
- <template slot-scope="scope">
- {{uParseTime(scope.row.execution_time, '{m}-{d} {h}:{i}')}}
- </template>
- </el-table-column>
- <el-table-column prop="address" label="执行护士" align="center">
- <template slot-scope="scope">
- {{getXuserName(scope.row.checker)}}
- </template>
- </el-table-column>
- </el-table>-->
- </div>
- </div>
- </div>
-
- <add-new-order-dialog
- v-show="index==1&&isShowDialog"
- @back-action="index = 0"
- :patient_id="patient.id"
- :drug_spec_unit_options="unitsOption"
- :delivery_way_options="deliveryWayOptions"
- :execution_frequency_options="executionFrequencyOptions"
- :single_dose_unit_options="unitsOption"
- :prescribing_number_unit_options="unitsOption"
- :advice_templates="adviceTemplates"
- @did-create-advices="didCreateAdvices"
- ></add-new-order-dialog>
-
- <advice-form
- ref="subdrug_form"
- @back="index = 0"
- @did-create-subdrug="didAddSubdrug"
- :single_dose_unit_options="unitsOption"
- :prescribing_number_unit_options="unitsOption"
- :drug_spec_unit_options="unitsOption"
- ></advice-form>
-
- <modify-advice-form
- ref="modify_advice_form"
- @back="index = 0"
- @did-modify="didModifyAdvice"
- :drug_spec_unit_options="unitsOption"
- :delivery_way_options="deliveryWayOptions"
- :execution_frequency_options="executionFrequencyOptions"
- :single_dose_unit_options="unitsOption"
- :prescribing_number_unit_options="unitsOption"
- ></modify-advice-form>
-
- <modify-advice-group-dialog
- ref="modify_advice_group"
- @back="index = 0"
- :patient_id="patient.id"
- :delivery_way_options="deliveryWayOptions"
- :execution_frequency_options="executionFrequencyOptions"
- :single_dose_unit_options="unitsOption"
- :drug_spec_unit_options="unitsOption"
- :prescribing_number_unit_options="unitsOption"
- :advice_templates="adviceTemplates"
- @did-create-advices="didCreateAdvices"
- ></modify-advice-group-dialog>
-
- <mt-datetime-picker
- ref="exec_time"
- type="datetime"
- @confirm="handleExecTime"
- v-model="nowExecTime"
- ></mt-datetime-picker>
-
- <mt-datetime-picker
- ref="mofify_exec_time"
- type="datetime"
- @confirm="handleModifyExecTime"
- v-model="nowExecTime"
- ></mt-datetime-picker>
- </div>
- </template>
-
- <script>
- import {Dialog, Toast} from 'vant'
- import {
- CheckDoctorAdvice,
- CreateDoctorAdvice,
- DeleteDoctorAdviceNew,
- DeleteSubDoctorAdvice,
- EditDoctorAdvice,
- ExecDoctorAdvice,
- getAdviceConfig,
- ModifyExecDoctorAdvice
- } from '@/api/advice'
- import {uParseTime} from '@/utils/tools'
- import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
- import {getDataConfig} from '@/utils/data'
- import AddNewOrderDialog from './new_order/AddNewOrders'
- import AdviceForm from './new_order/order_form'
- import ModifyAdviceForm from './modify_order/modify_order_form'
- import ModifyAdviceGroupDialog from './modify_order/ModifyAdviceGroup'
-
- export default {
- name: 'OrdersDialog',
- components: {
- CheckBoxSubMenu,
- AddNewOrderDialog,
- AdviceForm,
- ModifyAdviceForm,
- ModifyAdviceGroupDialog,
-
- },
- props: {
- advice_groups: {
- type: Array,
- default: () => {
- return []
- }
- },
- patient_prop: {
- type: Object
- },
- advice_list_prop: {
- type: Array
- },
- admin_users_prop: {
- type: Array
- },
- special_premission:{
- type: Array
- }
-
- },
- data () {
- return {
- isShowDialog: true,
- template_id: 0,
- isShowExce: true,
- isShowMofifyExce: false,
- title: '临时医嘱',
- index: 0,
- doctor: '',
- adviceTemplates: [],
- drugOptions: {},
- deliveryWayOptions: [],
- executionFrequencyOptions: [],
- unitsOption: [],
- unitsObj: [],
- record_date: '',
- nowExecTime: new Date(),
- patient: {
- id: 0
- },
- admin_users: [],
- adviceList: [],
- parent_id: 0,
- current_select_object: -1,
- current_group_index: -1,
- current_advice_index: -1,
- current_advice: null,
- currentAdviceIdsStr: '',
- currentAdvices: [],
- currentSubAdvices: [],
- isPremission:false,
-
- }
- },
- created () {
- this.template_id = this.$store.getters.user.template_info.template_id
- var date = this.$route.query && this.$route.query.date
- date *= 1000
- var newDate = new Date(date)
-
- var y = newDate.getFullYear()
- var m = newDate.getMonth() + 1
- var d = newDate.getDate()
- if (isNaN(y) || isNaN(m) || isNaN(d)) {
- newDate = new Date()
- y = newDate.getFullYear()
- m = newDate.getMonth() + 1
- d = newDate.getDate()
- }
- this.record_date =
- y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
-
- this.patient = this.patient_prop
- this.adviceList = this.advice_list_prop
- this.admin_users = this.admin_users_prop
- this.doctor = this.$store.getters.user.user.user_name
- this.getAdviceConfig()
-
- this.unitsOption = getDataConfig('hemodialysis', 'units')
- for (var index in this.unitsOption) {
- this.unitsObj[this.unitsOption[index].id] = this.unitsOption[index]
- }
-
- for (let i = 0; i < this.special_premission.length; i++) {
- if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
- this.isPremission = true
- }
- }
-
-
- },
- watch: {
- 'advice_groups': function () {
-
- },
- 'currentAdvices': function (currentAdvices) {
- if (currentAdvices.length == 0) {
- this.isShowExce = true
- this.isShowMofifyExce = false
- } else {
- let a = 0
- for (let i = 0; i < currentAdvices.length; i++) {
- if (currentAdvices[i].execution_state == 1) {
- a = a + 1
- }
- }
-
-
- if (a == currentAdvices.length) {
- this.isShowExce = false
- this.isShowMofifyExce = true
- }else{
- this.isShowExce = true
- this.isShowMofifyExce = false
- }
- }
- }
-
- },
-
- methods: {
- modifyExecAdvice: function () {
- // if(!this.isPremission){
- // Toast.fail('你没有权限修改医嘱!')
- // }else{
- this.nowExecTime = new Date(this.currentAdvices[0].start_time * 1000)
- this.$refs.mofify_exec_time.open()
-
- // }
-
- },
- didCreateAdvices: function (advices) {
-
- if (advices.length == 0) {
- return
- }
- for (let i = 0; i < advices.length; i++) {
- advices[i]['is_selected'] = 0
- }
-
- var new_group = Object.assign(
- {},
- {
- group_no: 0,
- start_time: 0,
- advices: []
- }
- )
- new_group.group_no = advices[0].groupno
- new_group.start_time = advices[0].start_time
- new_group.advices.push(...advices)
-
- var insertIndex = -1
- for (let index = 0; index < this.advice_groups.length; index++) {
- const group = this.advice_groups[index]
- if (group.start_time < new_group.start_time) {
- insertIndex = index
- break
- }
- }
- if (insertIndex < 0) {
- this.advice_groups.push(new_group)
- } else {
- this.advice_groups.splice(insertIndex, 0, new_group)
- }
- this.index = 0
- this.advice_groups.sort((a, b) => a.start_time - b.start_time)
-
- },
- didModifyAdvice: function (advice) {
- Toast.loading({forbidClick: true, duration: 0})
- EditDoctorAdvice(advice.id, {
- advice_name: advice.title,
- advice_desc: advice.advice_desc,
- remark: advice.remark,
- start_time: advice.start_time,
- drug_spec: String(advice.drug_spec),
- drug_spec_unit: advice.drug_spec_unit,
- delivery_way: advice.delivery_way,
- execution_frequency: advice.execution_frequency,
- single_dose: String(advice.single_dose),
- single_dose_unit: advice.single_dose_unit,
- prescribing_number: String(advice.prescribing_number),
- prescribing_number_unit: advice.prescribing_number_unit
- })
- .then(rs => {
- if (rs.data.state == 1) {
- var resp_advice = rs.data.data.advice
- if(!rs.data.data.isChange){
- var group = this.advice_groups[this.current_group_index]
- for (let index = 0; index < group.advices.length; index++) {
- const advice = group.advices[index]
- if (advice.id == resp_advice.id) {
- advice.advice_name = resp_advice.advice_name
- advice.advice_desc = resp_advice.advice_desc
- advice.remark = resp_advice.remark;
- advice.start_time = resp_advice.start_time;
- advice.drug_spec = resp_advice.drug_spec;
- (advice.drug_spec_unit = resp_advice.drug_spec_unit),
- (advice.delivery_way = resp_advice.delivery_way),
- (advice.execution_frequency =
- resp_advice.execution_frequency),
- (advice.single_dose = resp_advice.single_dose),
- (advice.single_dose_unit = resp_advice.single_dose_unit),
- (advice.prescribing_number = resp_advice.prescribing_number),
- (advice.prescribing_number_unit =
- resp_advice.prescribing_number_unit)
- break
- }
- }
- }else{
- // var group = this.advice_groups[this.current_group_index]
- //先删除旧数据,再插入新数据
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let y = resp_advice.length - 1; y >= 0; y--) {
- for (let i = adviceArr.length - 1; i >= 0; i--) {
- if (adviceArr[i].id == resp_advice[y].id || adviceArr[i].parent_id == resp_advice[y].id) {
- adviceArr.splice(i, 1)
- }
- }
- }
- var newAdvice = {}
- newAdvice['advices'] = resp_advice
- newAdvice['group_no'] = resp_advice[0].groupno
- this.advice_groups.push(newAdvice)
- }
-
- this.currentAdvices = []
- this.currentSubAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
- console.log(this.advice_groups)
-
- this.advice_groups.sort((a, b) => a.advices[0].start_time - b.advices[0].start_time)
-
- this.$refs.modify_advice_form.dismiss()
- Toast.clear()
- this.index = 0
- } else {
- Toast.fail(rs.data.msg)
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- },
- uParseTime (time, format) {
- if (time == 0) {
-
- return ''
- }
- return uParseTime(time, format)
- },
- getXuserName (id) {
- if (id <= 0) {
- return ''
- }
- var name = ''
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == 'undefined'
- ) {
- return name
- }
- var leng = this.admin_users.length
- if (leng == 0) {
- return name
- }
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == id) {
- name = this.admin_users[index].name
- break
- }
- }
- return name
- },
- didAddSubdrug: function (subdrug) {
- Toast.loading({forbidClick: true, duration: 0})
- CreateDoctorAdvice(this.patient.id, {
- parent_id: subdrug.parent_id,
- advice_type: 2,
- advice_date: subdrug.record_time,
- start_time: subdrug.start_time,
- advice_name: subdrug.title,
- advice_desc: subdrug.advice_desc,
- drug_spec: String(subdrug.drug_spec),
- drug_spec_unit: subdrug.drug_spec_unit,
- single_dose: String(subdrug.single_dose),
- single_dose_unit: subdrug.single_dose_unit,
- prescribing_number: String(subdrug.prescribing_number),
- prescribing_number_unit: subdrug.prescribing_number_unit
- // delivery_way: subdrug.delivery_way,
- // execution_frequency: subdrug.execution_frequency
- })
- .then(response => {
- if (response.data.state == 0) {
- Toast.fail(response.data.msg)
- return false
- } else {
- Toast.success('添加成功')
- var resp_advice = response.data.data.advice
- var group_index = this.current_group_index
-
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].id == this.currentAdvices[0].id && adviceArr[i].is_selected == 1) {
- var advice_index = i
-
- }
- }
-
- var group = this.advice_groups[group_index]
-
- var insert_index = -1
- var last_child_index = -1
- for (
- let index = advice_index + 1;
- index < group.advices.length;
- index++
- ) {
- const advice = group.advices[index]
- if (resp_advice.parent_id != advice.parent_id) {
- insert_index = index
- break
- } else {
- last_child_index = index
- }
- }
- if (insert_index < 0) {
- if (last_child_index < 0) {
- group.advices.splice(advice_index + 1, 0, resp_advice)
- } else {
- group.advices.splice(last_child_index + 1, 0, resp_advice)
- }
- } else {
- group.advices.splice(insert_index, 0, resp_advice)
- }
-
- this.cancelAdviceSelect()
- this.$refs.subdrug_form.dismiss()
- this.index = 0
- // this.$emit("new_create", response.data.data.advice);
-
- this.currentAdvices = []
- this.currentSubAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
-
- return false
-
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- },
- getAdviceConfig () {
- getAdviceConfig().then(response => {
- if (response.data.state == 1) {
- this.deliveryWayOptions =
- response.data.data.drugways === null
- ? []
- : response.data.data.drugways
- this.executionFrequencyOptions =
- response.data.data.efs === null ? [] : response.data.data.efs
-
- this.adviceTemplates =
- response.data.data.advice_templates === null
- ? []
- : response.data.data.advice_templates
- }
- })
- },handleModifyExecTime(time){
- var exceTime = this.handleTime(time)
- var currentAdviceIdArr = []
- var exceParams = null
- for (let i = 0; i < this.currentAdvices.length; i++) {
- if ( this.currentAdvices[i].execution_state == 1) {
- currentAdviceIdArr.push(this.currentAdvices[i].id)
- }
- }
- this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
- if (this.current_select_object == 1) {
- exceParams = {
- groupno: 0,
- advice_id: this.currentAdviceIdsStr,
- execution_time: exceTime
- }
-
- } else {
- var group = this.advice_groups[this.current_group_index]
- exceParams = {
- groupno: group.group_no <= 0 ? 0 : group.group_no,
- advice_id: group.group_no <= 0 ? group.advices[0].id : 0,
- execution_time: exceTime
- }
- }
-
- ModifyExecDoctorAdvice(exceParams)
- .then(response => {
- if (response.data.state == 0) {
- Toast.fail(response.data.msg)
- return false
- } else {
- Toast.success('执行成功!')
- var advice = response.data.data.advice
- if (this.current_select_object == 1) {
- var ids = this.currentAdviceIdsStr.split(',')
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- for (let a = 0; a < ids.length; a++) {
- if ((adviceArr[i].execution_state == 1 && adviceArr[i].id == ids[a]) || (adviceArr[i].execution_state == 1 && adviceArr[i].parent_id == ids[a])) {
- adviceArr[i].execution_time = advice.execution_time
- }
- }
- }
- } else {
- for (let index = 0; index < group.advices.length; index++) {
- const adv = group.advices[index]
- if (adv.execution_state == 1) {
- adv.execution_time = advice.execution_time
- }
- }
- }
- }
- })
- .catch(err => {
- Toast.fail(err)
- return false
- })
-
-
-
- },
- handleExecTime (time) {
- var exceTime = this.handleTime(time)
- var exceParams = null
- if (this.current_select_object == 1) {
- exceParams = {
- groupno: 0,
- advice_id: this.currentAdviceIdsStr,
- execution_time: exceTime
- }
-
- } else {
- var group = this.advice_groups[this.current_group_index]
- exceParams = {
- groupno: group.group_no <= 0 ? 0 : group.group_no,
- advice_id: group.group_no <= 0 ? group.advices[0].id : 0,
- execution_time: exceTime
- }
- }
- Toast.loading({forbidClick: true, duration: 0})
- ExecDoctorAdvice(exceParams)
- .then(response => {
- if (response.data.state == 0) {
- Toast.fail(response.data.msg)
- return false
- } else {
- Toast.success('执行成功!')
- var advice = response.data.data.advice
- if (this.current_select_object == 1) {
- var ids = this.currentAdviceIdsStr.split(',')
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- for (let a = 0; a < ids.length; a++) {
- if ((adviceArr[i].execution_state == 2 && adviceArr[i].id == ids[a]) || (adviceArr[i].execution_state == 2 && adviceArr[i].parent_id == ids[a])) {
- adviceArr[i].execution_staff = advice.execution_staff
- adviceArr[i].execution_time = advice.execution_time
- adviceArr[i].execution_state = advice.execution_state
- }
- }
- }
- } else {
- for (let index = 0; index < group.advices.length; index++) {
- const adv = group.advices[index]
- if (adv.execution_state == 2) {
- adv.execution_staff = advice.execution_staff
- adv.execution_time = advice.execution_time
- adv.execution_state = advice.execution_state
- }
- }
- }
- }
- })
- .catch(err => {
- Toast.fail(err)
- return false
- })
-
- },
- handleTime (time) {
- var year = time.getFullYear()
- var month = time.getMonth() + 1
- var day = time.getDate()
- var hour = time.getHours()
- var minute = time.getMinutes()
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hour < 10) {
- hour = '0' + hour
- }
- if (minute < 10) {
- minute = '0' + minute
- }
- return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
- }, deleteSubAdviceAction: function () {
- if (this.currentSubAdvices.length <= 0) {
- return
- }
- Dialog.confirm({
- title: '删除医嘱',
- message: '确认删除医嘱吗?'
- }).then(() => {
- Toast.loading({forbidClick: true, duration: 0})
- DeleteSubDoctorAdvice(this.currentSubAdvices[0].id)
- .then(rs => {
- if (rs.data.state == 1) {
- Toast.success('删除成功')
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = adviceArr.length - 1; i >= 0; i--) {
- if (adviceArr[i].id == this.currentSubAdvices[0].id) {
- adviceArr.splice(i, 1)
- }
- }
- this.currentSubAdvices = []
- this.currentAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
-
- } else {
-
- Toast.fail(rs.data.msg)
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- })
-
- },
- deleteAdviceAction: function () {
- if (this.$store.getters.user.user.user_type == 3){
- return
- }
- if (this.current_select_object == 1) {
- if (this.currentAdvices.length <= 0) {
- return
- }
- Dialog.confirm({
- title: '删除医嘱',
- message: '确认删除医嘱吗?'
- }).then(() => {
- Toast.loading({forbidClick: true, duration: 0})
- var group_no = 0
- var advice_id = this.currentAdvices.join(',')
- var ids = []
- for (let i = 0; i < this.currentAdvices.length; i++) {
- ids.push(this.currentAdvices[i].id)
- }
- advice_id = ids.join(',')
-
- DeleteDoctorAdviceNew(group_no, advice_id)
- .then(rs => {
- if (rs.data.state == 1) {
- Toast.success('删除成功')
- var adviceArr = this.advice_groups[this.current_group_index].advices
-
- for (let y = ids.length - 1; y >= 0; y--) {
- for (let i = adviceArr.length - 1; i >= 0; i--) {
- if (adviceArr[i].id == ids[y] || adviceArr[i].parent_id == ids[y]) {
- adviceArr.splice(i, 1)
- }
- }
- }
- this.currentSubAdvices = []
- this.currentAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
-
- } else {
- Toast.fail(rs.data.msg)
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- })
-
- } else {
- if (this.current_group_index < 0) {
- return
- }
- var group = this.advice_groups[this.current_group_index]
- Dialog.confirm({
- title: '删除医嘱',
- message: '确认删除这组医嘱吗?'
- }).then(() => {
- Toast.loading({forbidClick: true, duration: 0})
- var group_no = group.group_no <= 0 ? 0 : group.group_no
- var advice_id = 0
- if (group.group_no <= 0) {
- advice_id = group.advices[0].id
- } else if (this.current_advice != null) {
- group_no = 0
- advice_id = this.current_advice.id
- }
-
- DeleteDoctorAdviceNew(group_no, advice_id)
- .then(rs => {
- if (rs.data.state == 1) {
- Toast.success('删除成功')
- // if (group.group_no <= 0) {
- // this.advice_groups.splice(this.current_group_index, 1);
- // } else {
- if (this.current_advice_index >= 0) {
- // if (group.advices.length <= 1) {
- // this.advice_groups.splice(this.current_group_index, 1);
- // } else {
- var advice = group.advices[this.current_advice_index]
- if (advice.parent_id > 0) {
- group.advices.splice(this.current_advice_index, 1)
- } else {
- var child_count = 0
- for (
- let index = this.current_advice_index + 1;
- index < group.advices.length;
- index++
- ) {
- const adv = group.advices[index]
- if (adv.parent_id == advice.id) {
- child_count++
- }
- }
- group.advices.splice(
- this.current_advice_index,
- child_count + 1
- )
- }
- if (group.advices.length == 0) {
- this.advice_groups.splice(this.current_group_index, 1)
- }
- // }
- } else {
- this.advice_groups.splice(this.current_group_index, 1)
- }
- // }
- this.cancelAdviceSelect()
- } else {
- Toast.fail(rs.data.msg)
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- })
- }
- },
- checkAdvice () {
- if (this.currentAdvices.length <= 0) {
- return
- }
-
- if (this.current_select_object == 1) {
- var isCheck = true
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].check_state == 0 && adviceArr[i].is_selected == 1) {
- isCheck = false
- }
- }
- if (isCheck) {
- Toast.fail('所选医嘱已核对')
- return false
- }
-
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.user.id) {
- Toast.fail('核对与执行不能是同一人')
- return false
- }
- }
-
- var currentAdviceIdArr = []
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1) {
- currentAdviceIdArr.push(adviceArr[i].id)
- }
- }
- this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
-
- } else {
- if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
- return
- }
- var isCheck = true
- var group_top_advice = this.advice_groups[this.current_group_index]
- .advices[0]
-
- var adviceArr = this.advice_groups[this.current_group_index].advices
- var advice = null
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].check_state == 0) {
- isCheck = false
- }
- }
-
- if (isCheck) {
- Toast.fail('所选医嘱已核对')
- return false
- }
-
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.user.id) {
- Toast.fail('核对与执行不能是同一人')
- return false
- }
- }
-
- // if (
- // group_top_advice.execution_staff > 0 &&
- // group_top_advice.execution_staff == this.$store.getters.user.user.id
- // ) {
- // Toast.fail('核对与执行不能是同一人')
- // return false
- // }
- }
-
- Dialog.confirm({
- title: '医嘱核对',
- message: '确认提交核对?'
- }).then(() => {
- var params = null
- Toast.loading({forbidClick: true, duration: 0})
- if (this.current_select_object == 1) {
- params = {
- groupno: 0,
- advice_id: this.currentAdviceIdsStr
- }
- } else {
- var group = this.advice_groups[this.current_group_index]
- params = {
- groupno: group.group_no <= 0 ? 0 : group.group_no,
- advice_id: group.group_no <= 0 ? group.advices[0].id : 0
- }
- }
-
- CheckDoctorAdvice(params)
- .then(response => {
- if (response.data.state == 0) {
- Toast.fail('你没有权限核对医嘱!')
- return false
- } else {
- Toast.success('核对成功!')
-
- var advice = response.data.data.advice
- if (this.current_select_object == 1) {
- var ids = this.currentAdviceIdsStr.split(',')
-
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- for (let a = 0; a < ids.length; a++) {
- if ((adviceArr[i].check_state == 0 && adviceArr[i].id == ids[a]) || (adviceArr[i].check_state == 0 && adviceArr[i].parent_id == ids[a])) {
- adviceArr[i].checker = advice.checker
- adviceArr[i].check_time = advice.check_time
- adviceArr[i].check_state = advice.check_state
- }
- }
- }
- } else {
- for (let index = 0; index < group.advices.length; index++) {
- const adv = group.advices[index]
- adv.checker = advice.checker
- adv.check_time = advice.check_time
- adv.check_state = advice.check_state
- }
- }
-
- }
- })
- .catch(err => {
- Toast.fail(err)
- })
- })
- // .catch(err => {
- // Toast.fail(err);
- // });
- },
- execAdvice () {
-
- if (this.currentAdvices.length <= 0) {
- return
- }
- if (this.current_select_object == 1) {
- var isExecution = true
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].execution_state == 2 && adviceArr[i].is_selected == 1) {
- isExecution = false
- }
- }
- if (isExecution) {
- Toast.fail('所选医嘱已停止或执行')
- return false
- }
-
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.user.id) {
- Toast.fail('核对与执行不能是同一人')
- return false
- }
- }
- var currentAdviceIdArr = []
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1) {
- currentAdviceIdArr.push(adviceArr[i].id)
- }
- }
- this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
- this.nowExecTime = new Date(adviceArr[0].start_time * 1000)
- } else {
- if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
- return
- }
- var isExecution = true
- var group_top_advice = this.advice_groups[this.current_group_index]
- .advices[0]
-
- var adviceArr = this.advice_groups[this.current_group_index].advices
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_state == 2) {
- isExecution = false
- }
- }
- if (isExecution) {
- Toast.fail('所选医嘱已停止或执行')
- return false
- }
-
- for (let i = 0; i < adviceArr.length; i++) {
- if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.user.id) {
- Toast.fail('核对与执行不能是同一人')
- return false
- }
- }
-
- this.nowExecTime = new Date(group_top_advice.start_time * 1000)
- }
- this.$refs.exec_time.open()
- },
- openNewChild () {
- if (this.$store.getters.user.user.user_type == 3) {
- Toast.fail('你没有权限添加子药!')
- return
- }
-
- if (this.currentAdvices.length == 0) {0
- return false
- }
- this.current_advice = this.currentAdvices[0]
-
- if (
- this.current_advice.stop_state == 1 ||
- this.current_advice.execution_state == 1 ||
- this.current_advice.check_state == 1
-
- ) {
- Toast.fail('所选医嘱已停止或执行或核对')
- return false
- }
-
- this.index = 2
- var start_time = uParseTime(
- this.current_advice.start_time,
- '{y}-{m}-{d} {h}:{i}'
- )
- this.$refs.subdrug_form.showWithNewSubDrug(
- this.current_advice.id,
- this.record_date,
- start_time,
- this.current_advice.delivery_way,
- this.current_advice.execution_frequency
- )
- return
- },
- openNewAdvice () {
- if (this.$store.getters.user.user.user_type == 3) {
- Toast.fail('你没有权限新增医嘱!')
- return
- }
-
- this.currentAdvices = []
- this.currentSubAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
-
- this.index = 1
- this.current_group_index = -1
- this.current_advice_index = -1
- this.current_advice = null
- }, modifySubdviceAction: function () {
- if (this.currentSubAdvices.length <= 0) {
- return
- }
-
- if (this.current_advice_index >= 0) {
- this.index = 3
- var advice = this.currentSubAdvices[0]
- this.$refs.modify_advice_form.showWithModify({
- id: advice.id,
- parent_id: advice.parent_id,
- title: advice.advice_name,
- advice_desc: advice.advice_desc,
- remark: advice.remark,
- drug_spec: advice.drug_spec,
- drug_spec_unit: advice.drug_spec_unit,
- delivery_way: advice.delivery_way,
- execution_frequency: advice.execution_frequency,
- single_dose: advice.single_dose,
- single_dose_unit: advice.single_dose_unit,
- prescribing_number: advice.prescribing_number,
- prescribing_number_unit: advice.prescribing_number_unit
- })
- }
-
- },
- modifyAdviceAction: function () {
- if (this.$store.getters.user.user.user_type == 3){
- return
- }
- if (this.current_group_index < 0) {
- return
- }
- var group = this.advice_groups[this.current_group_index]
-
- if (this.current_advice_index >= 0) {
- this.index = 3
- var advice = this.currentAdvices[0]
- this.$refs.modify_advice_form.showWithModify({
- id: advice.id,
- parent_id: advice.parent_id,
- title: advice.advice_name,
- advice_desc: advice.advice_desc,
- remark: advice.remark,
- start_time: advice.start_time,
- drug_spec: advice.drug_spec,
- drug_spec_unit: advice.drug_spec_unit,
- delivery_way: advice.delivery_way,
- execution_frequency: advice.execution_frequency,
- single_dose: advice.single_dose,
- single_dose_unit: advice.single_dose_unit,
- prescribing_number: advice.prescribing_number,
- prescribing_number_unit: advice.prescribing_number_unit
- })
- } else {
- if (group.group_no <= 0) {
- this.index = 3
- var advice = group.advices[0]
- this.$refs.modify_advice_form.showWithModify({
- id: advice.id,
- parent_id: advice.parent_id,
- title: advice.advice_name,
- advice_desc: advice.advice_desc,
- remark: advice.remark,
-
- drug_spec: advice.drug_spec,
- drug_spec_unit: advice.drug_spec_unit,
- delivery_way: advice.delivery_way,
- execution_frequency: advice.execution_frequency,
- single_dose: advice.single_dose,
- single_dose_unit: advice.single_dose_unit,
- prescribing_number: advice.prescribing_number,
- prescribing_number_unit: advice.prescribing_number_unit
- })
- } else {
- this.index = 4
- this.$refs.modify_advice_group.show(group.group_no, group.advices)
- }
- }
- },
-
- cancelAdviceSelect: function () {
- this.current_group_index = -1
- this.current_advice_index = -1
- this.current_advice = null
- },
- selectAdviceAction: function (group_index, advice_index, advice) {
- console.log(this.current_group_index)
- console.log(group_index)
- console.log(advice.parent_id)
-
-
-
- if ((this.current_group_index != -1 && this.current_group_index != group_index) || advice.parent_id > 0) { //选择其他组,将原来的组选择状态清除
- this.currentAdvices = []
- this.currentSubAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
- }
-
- for (let i = 0; i < this.advice_groups.length; i++) { //选择子医嘱,将已经选择的医嘱选择状态清除
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- if (advices.parent_id > 0) {
- advices.is_selected = 0
- }
- }
- }
-
- for (let i = 0; i < this.advice_groups.length; i++) { //设置选择状态
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- if (advices.id == advice.id) {
- if (advice.is_selected == 1) {
- advice.is_selected = 0
- for (let a = this.currentAdvices.length - 1; a >= 0; a--) {
- if (this.currentAdvices[a].id == advice.id) {
- this.currentAdvices.splice(a, 1)
- }
- }
- } else {
- advice.is_selected = 1
- if (advice.parent_id == 0) {
- this.currentAdvices.push(advice)
- }
- }
- }
-
- }
- }
-
- if (advice.parent_id == 0) {
- this.currentSubAdvices = []
- } else {
- this.currentSubAdvices.push(advice)
- }
-
- this.current_select_object = 1 //单条医嘱
- this.current_group_index = group_index
- this.current_advice_index = advice_index
- this.current_advice = advice
-
- }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
-
- if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
- this.currentAdvices = []
- this.currentSubAdvices = []
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- advices.is_selected = 0
- }
- }
- }
-
- for (let i = 0; i < this.advice_groups.length; i++) { //选择子医嘱,将已经选择的医嘱选择状态清除
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- if (advices.parent_id > 0) {
- advices.is_selected = 0
- }
- }
- }
-
- for (let i = 0; i < this.advice_groups.length; i++) {
- for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
- var advices = this.advice_groups[i].advices[y]
- if (advices.groupno == group.group_no) {
- advices.is_selected = 1
- this.currentAdvices.push(advices)
- }
- }
- }
- this.current_select_object = 2 //单组医嘱
- this.current_group_index = group_index
- this.current_advice_index = advice_index
- this.current_advice = advice
- }
- }
- }
- </script>
-
-
- <style style="stylesheet/scss" lang="scss" scoped>
- #dialogTop{
- @media only screen and (max-width: 415px){
- height: 13.8rem !important;
- }
- }
- .DialogContent {
- .content {
- .yzNav {
- position: fixed;
- top: 0.16rem;
- }
- }
- }
- .orderTable{
- width: 100%;
- }
- .table {
- width: 1200px;
- @media only screen and (max-width: 767px) {
- width: 800px;
- }
- tr {
- th {
- background: $main-color;
- color: #fff;
- height: 1.2rem;
- line-height: 1.2rem;
- }
- td {
- line-height: 0.6rem;
- .txt {
- // float: left;
- padding: 0 10px 0 10px;
- // width: 75%;
- text-align: left;
- }
- .ico {
- float: right;
- width: 60px;
- text-align: right;
- padding-right: 3px;
- }
- .iconfont {
- font-size: 20px;
- padding: 0 2px;
- color: #7b8a97;
- }
- .handle {
- color: #409eff;
- // padding: 0 7px;
- }
- }
- .advice_content {
- // background: #eff6fc;
- }
- .subadvice_content {
- // background: #fafcfe;
- padding-left: 20px;
- }
- .td-active {
- background: #badcff !important;
- }
- }
- .row-class-active {
- td {
- background: #badcff;
- }
- }
- }
- .content {
- .cell {
- float: left;
- width: 3.42rem;
- margin: 0.35rem 0.3rem 0 0.4rem;
- label {
- display: block;
- height: 0.55rem;
- line-height: 0.55rem;
- color: $pgh-color;
- }
- select {
- width: 100%;
- padding: 0.2rem 0;
- border: 1px $border-color solid;
- border-radius: 2px;
- padding-left: 5px;
- }
-
- .inputBox {
- border: 1px $border-color solid;
- border-radius: 2px;
- padding: 0.18rem 0;
- padding-left: 5px;
- }
-
- .textarea {
- width: 100%;
- height: 1.22rem;
- border: 1px $border-color solid;
- border-radius: 2px;
- padding-left: 5px;
- }
- }
- .width {
- width: 90%;
- @include box-sizing;
- margin-top: 1rem;
- label {
- display: inline-block;
- }
- button {
- background: $main-color;
- color: #fff;
- border-radius: 6px;
- width: 3rem;
- height: 0.9rem;
- line-height: 0.9rem;
- text-align: center;
- margin: 0 0.1rem 0.6rem 0.1rem;
- border: 1px $main-color solid;
- &.smt-danger {
- background: #fff;
- color: $main-color;
- }
- }
- }
- .center {
- text-align: center;
- }
- }
- .yzNav {
- display: flex;
- flex-wrap: wrap;
- span {
- width: 15%;
- @media only screen and (max-width: 415px) {
- padding: 0;
- }
- // @media only screen and (min-width: 666px) and (max-width: 737px) {
- // width: 16% !important;
- // }
- }
- }
- #fontSize{
- font-size: 0.34rem;
- }
- </style>
|