浏览代码

药品追溯码字段根据条件隐藏

hd 4 天之前
父节点
当前提交
e96f6e512d

+ 2 - 2
mini-pro-web/src/views/device/detail.vue

@ -117,7 +117,7 @@
    <div class="mt10 bgc-fff c-border-tb">
      <div class="panel-title">操作日志</div>
      <div class="grid-4 c-f14 c-333 ptb15">
        <div class="c-t-center" @click="gotoUrl('/device/infoLog/index', { deviceId: id, equNum: info.equNum })">
        <div class="c-t-center" @click="gotoUrl('/device/infoLog/index', { deviceId: id, equNum: info.equNum,isDrugCode: info.isDrugCode })">
          <div>
            <van-image class="ability" :src="require('@/assets/images/xinxirizhi.png')" />
          </div>
@ -129,7 +129,7 @@
          </div>
          <div>申领记录</div>
        </div>
        <div class="c-t-center" @click="gotoUrl('/replenishment/record/list', { deviceId: id })">
        <div class="c-t-center" @click="gotoUrl('/replenishment/record/list', { deviceId: id,isDrugCode: info.isDrugCode  })">
          <div>
            <van-image class="ability" :src="require('@/assets/images/buhuojilu.png')" />
          </div>

+ 4 - 2
mini-pro-web/src/views/device/infoLog/deviceLog.vue

@ -13,7 +13,7 @@
                            <div v-for='(citem) in item.shipmentLogs' :key="citem.id" class='item bgc-fff plr10 c-333 c-f14  '>
                                <div class=''>
                                    <div>药品名称:{{citem.drugName}}</div>
                                    <div>药品追溯码:{{citem.traceabilityCode}}</div>
                                    <div v-if="isDrugCode==1">药品追溯码:{{citem.traceabilityCode}}</div>
                                    <div>出货状态:<span>{{citem.status==1? '未出货' : citem.status==2? '已出货' : citem.status==3? '出货故障' : ""}}</span></div>
                                    <div>货道信息:{{citem.layerNo}}层 {{citem.wayerNo}}道</div>
                                    <div>出货时间:{{citem.outTime}}</div>
@ -49,7 +49,9 @@ export default{
            list: [],
            startDate: '',
            endDate: '',
            activeNames: []
            activeNames: [],
            isDrugCode: this.$route.query.isDrugCode,
        }
    },
    methods:{

+ 2 - 1
mini-pro-web/src/views/replenishment/record/list.vue

@ -22,7 +22,7 @@
                        <div v-else-if="active==3">下架药品:{{citem.drugName}}</div>
                        <div v-if="citem.quantity >= citem.oldQuantity">变动数:{{citem.quantity - citem.oldQuantity}}</div>
                        <div v-else>变动数:{{citem.quantity}}</div>
                        <div>药品追溯码:{{citem.traceabilityCode}}</div>
                        <div v-if="isDrugCode == 1">药品追溯码:{{citem.traceabilityCode}}</div>
                        <div>操作人员:{{citem.name}}</div>
                    </template>
                    <!-- <template>
@ -70,6 +70,7 @@ export default{
    data(){
        return {
            deviceId: this.$route.query.deviceId,
            isDrugCode: this.$route.query.isDrugCode,
            active: 0,
            activeName: '',
            list: [],