|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
<div class="table-cell count">{{ scope.row.count }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="应扫码数量" prop="scanActCount" :min-width="120">
|
|
|
|
|
<el-table-column label="应扫整取码数量" prop="scanActCount" :min-width="120">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<!--<div v-if="scope.row.autoTagStatus === 2" class="table-cell warning">-->
|
|
|
|
|
<!-- 无需扫码-->
|
|
|
|
@ -60,13 +60,19 @@
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120"
|
|
|
|
|
width="240"
|
|
|
|
|
>
|
|
|
|
|
<!-- :disabled="!scope.row.scanCount"-->
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" @click="scanDetail(scope.row)" style="font-size: 14px"
|
|
|
|
|
:disabled="!scope.row.scanCount"
|
|
|
|
|
>
|
|
|
|
|
扫码明细({{ scope.row.scanCount || 0 }})
|
|
|
|
|
赋码明细
|
|
|
|
|
<!--({{ scope.row.scanCount || 0 }})-->
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" @click="splitReturnOrder(scope.row)" style="font-size: 14px"
|
|
|
|
|
:disabled="scope.row.isSplit != 1"
|
|
|
|
|
>
|
|
|
|
|
拆零退货
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -80,24 +86,79 @@
|
|
|
|
|
@pagination="preHandleCurrentChange"
|
|
|
|
|
></pagination>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="扫码明细"
|
|
|
|
|
:visible.sync="scanDetailVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
v-if="scanDetailVisible"
|
|
|
|
|
width="65%"
|
|
|
|
|
width="75%"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<PanelOrderManuTagCode
|
|
|
|
|
:fifoSplit="3"
|
|
|
|
|
:prescribeData="prescribeData"
|
|
|
|
|
:bizId="bizId"
|
|
|
|
|
:closeScanDialog="closeScanDialog"
|
|
|
|
|
></PanelOrderManuTagCode>
|
|
|
|
|
<div class="double-table-container">
|
|
|
|
|
<!-- 第一个表格 -->
|
|
|
|
|
<div class="table-wrapper">
|
|
|
|
|
<h3>原始处方追溯码</h3>
|
|
|
|
|
<div class="table-scroll">
|
|
|
|
|
<el-table
|
|
|
|
|
:data="codeDetailList"
|
|
|
|
|
style="width: 100%; min-width: 500px;" max-height="500" :row-style="{height: '32.8px' }">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="index"
|
|
|
|
|
label="序号"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column property="udiCode" label="追溯码" width="180" />
|
|
|
|
|
<el-table-column property="cpmctymc" label="产品通用名称" width="100" />
|
|
|
|
|
<el-table-column property="nameCode" label="产品标识" width="100" />
|
|
|
|
|
<el-table-column property="ggxh" label="规格" width="80" />
|
|
|
|
|
<el-table-column property="batchNo" label="批次号" width="100" />
|
|
|
|
|
<el-table-column property="scanCount" label="扫码数量" width="80" />
|
|
|
|
|
<el-table-column property="produceDate" label="生产日期" width="100" />
|
|
|
|
|
<el-table-column property="expireDate" label="过期时间" width="100" />
|
|
|
|
|
<el-table-column property="serialNo" label="序列号" width="100" />
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 第二个表格 -->
|
|
|
|
|
<div class="table-wrapper">
|
|
|
|
|
<h3>退货处方追溯码</h3>
|
|
|
|
|
<div class="table-scroll">
|
|
|
|
|
<el-table
|
|
|
|
|
:data="codeReturnDetailList"
|
|
|
|
|
style="width: 100%; min-width: 500px;"max-height="500">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="index"
|
|
|
|
|
label="序号"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column property="udiCode" label="追溯码" width="180" />
|
|
|
|
|
<el-table-column property="cpmctymc" label="产品通用名称" width="100" />
|
|
|
|
|
<el-table-column property="nameCode" label="产品标识" width="100" />
|
|
|
|
|
<el-table-column property="ggxh" label="规格" width="80" />
|
|
|
|
|
<el-table-column property="batchNo" label="批次号" width="100" />
|
|
|
|
|
<el-table-column property="scanCount" label="扫码数量" width="80" />
|
|
|
|
|
<el-table-column property="produceDate" label="生产日期" width="100" />
|
|
|
|
|
<el-table-column property="expireDate" label="过期时间" width="100" />
|
|
|
|
|
<el-table-column property="serialNo" label="序列号" width="100" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="100">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button @click="deleteCode(scope.row)" type="text" size="small">减一</el-button>
|
|
|
|
|
<el-button @click="deleteMan(scope.row)" type="text" size="small">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -105,8 +166,13 @@
|
|
|
|
|
import { convertDate } from '@/utils/date'
|
|
|
|
|
import { detail } from '@/api/basic/sicker/prescribeApi'
|
|
|
|
|
import { executeFuc, getHead } from '@/utils/customConfig'
|
|
|
|
|
import { orderDetail, codeRemove } from '@/api/collect/collectOrder'
|
|
|
|
|
import PanelOrderManuTagCode from '@/views/collect/PanelOrderManuTagCode'
|
|
|
|
|
import {
|
|
|
|
|
returnOrderDetail,
|
|
|
|
|
codeRemove,
|
|
|
|
|
splitReturnOrderCode,
|
|
|
|
|
manualCodeDetail,
|
|
|
|
|
autoCodeResult, codeReturnRemove
|
|
|
|
|
} from '@/api/collect/collectOrder'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 处方退药码明细
|
|
|
|
@ -147,39 +213,57 @@ export default {
|
|
|
|
|
countVisible: false,
|
|
|
|
|
scanDetailVisible: false,
|
|
|
|
|
bizId: null,
|
|
|
|
|
codingStatus: '已赋码'
|
|
|
|
|
codingStatus: '已赋码',
|
|
|
|
|
//赋码明细界面
|
|
|
|
|
fifoSplit:3,
|
|
|
|
|
codeQuery: {
|
|
|
|
|
fifoSplit: null,
|
|
|
|
|
bizIdFk: null,
|
|
|
|
|
relId:null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
codeRetureQuery: {
|
|
|
|
|
fifoSplit: null,
|
|
|
|
|
bizIdFk: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
codeDetailList: [],
|
|
|
|
|
codeReturnDetailList: [],
|
|
|
|
|
codeTotal: 0,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
deleteMan(_this, row) {
|
|
|
|
|
_this.$confirm('是否确定删除该条扫码?', '提示', {
|
|
|
|
|
deleteMan(row) {
|
|
|
|
|
this.$confirm('是否确定删除该条扫码?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
_this.loading = true
|
|
|
|
|
_this.codeRemoveMan(row.id, 2)
|
|
|
|
|
this.codeRemoveMan(row.id, 2)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
deleteCode(_this, row) {
|
|
|
|
|
_this.$confirm('是否确定移除一个条码?', '提示', {
|
|
|
|
|
deleteCode(row) {
|
|
|
|
|
this.$confirm('是否确定移除一个条码?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
_this.loading = true
|
|
|
|
|
_this.codeRemoveMan(row.id, 1)
|
|
|
|
|
this.codeRemoveMan(row.id, 1)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
codeRemoveMan(codeManId, delType) {
|
|
|
|
|
let post = {
|
|
|
|
|
codeManId: codeManId,
|
|
|
|
|
delType: delType
|
|
|
|
|
delType: delType,
|
|
|
|
|
orderId:this.prescribeData.billNo
|
|
|
|
|
}
|
|
|
|
|
codeRemove(post).then((response) => {
|
|
|
|
|
codeReturnRemove(post).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success('操作成功!')
|
|
|
|
|
this.getList(this)
|
|
|
|
|
this.getReturnCodeDetailList()
|
|
|
|
|
this.getPrescribeDetail(this)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
@ -223,7 +307,7 @@ export default {
|
|
|
|
|
_this.preQuery.orderIdFk = this.prescribeData.billNo
|
|
|
|
|
}
|
|
|
|
|
_this.preLoading = true
|
|
|
|
|
orderDetail(_this.preQuery).then(res => {
|
|
|
|
|
returnOrderDetail(_this.preQuery).then(res => {
|
|
|
|
|
_this.preLoading = false
|
|
|
|
|
if (res.code != 20000) {
|
|
|
|
|
_this.$message.error(res.message)
|
|
|
|
@ -239,8 +323,26 @@ export default {
|
|
|
|
|
|
|
|
|
|
scanDetail(row) {
|
|
|
|
|
this.bizId = row.id
|
|
|
|
|
this.getCodeDetailList(row)
|
|
|
|
|
this.getReturnCodeDetailList()
|
|
|
|
|
this.scanDetailVisible = true
|
|
|
|
|
},
|
|
|
|
|
//拆零退货
|
|
|
|
|
splitReturnOrder(row){
|
|
|
|
|
let query = {
|
|
|
|
|
billNo :row.orderIdFk,
|
|
|
|
|
workPlaceCode: this.$route.query.workplaceId,
|
|
|
|
|
relId:row.relId
|
|
|
|
|
}
|
|
|
|
|
splitReturnOrderCode(query).then(res => {
|
|
|
|
|
if (res.code == 20000){
|
|
|
|
|
this.getPrescribeDetail(this)
|
|
|
|
|
return this.$message.success("拆零成功")
|
|
|
|
|
}else {
|
|
|
|
|
return this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
closeScanDialog() {
|
|
|
|
|
this.getPrescribeDetail(this)
|
|
|
|
@ -261,12 +363,47 @@ export default {
|
|
|
|
|
if (row.shouldCount === 0) return 'error'
|
|
|
|
|
return row.scanCount < row.shouldCount ? 'error' : 'success'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getCodeDetailList(row) {
|
|
|
|
|
this.fifoSplit = 3
|
|
|
|
|
if (this.prescribeData == null)
|
|
|
|
|
return
|
|
|
|
|
if (this.prescribeData != null) {
|
|
|
|
|
this.codeQuery.orderIdFk = this.prescribeData.remark
|
|
|
|
|
this.codeQuery.relId = row.relId
|
|
|
|
|
}
|
|
|
|
|
manualCodeDetail(this.codeQuery).then(res => {
|
|
|
|
|
this.codeLoading = false
|
|
|
|
|
if (res.code != 20000) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.codeDetailList = res.data.list
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message.error("数据加载失败")
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getReturnCodeDetailList() {
|
|
|
|
|
this.fifoSplit = 3
|
|
|
|
|
if (this.prescribeData == null)
|
|
|
|
|
return
|
|
|
|
|
if (this.prescribeData != null) {
|
|
|
|
|
this.codeRetureQuery.orderIdFk = this.prescribeData.billNo
|
|
|
|
|
this.codeRetureQuery.bizIdFk = this.bizId
|
|
|
|
|
}
|
|
|
|
|
manualCodeDetail(this.codeRetureQuery).then(res => {
|
|
|
|
|
if (res.code != 20000) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.codeReturnDetailList = res.data.list
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message.error("数据加载失败")
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
PanelOrderManuTagCode
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getPrescribeDetail(this)
|
|
|
|
@ -308,4 +445,22 @@ export default {
|
|
|
|
|
color: #56a717;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.double-table-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-wrapper {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
h3 {
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
/*.table-scroll {*/
|
|
|
|
|
/* overflow-x: auto;*/
|
|
|
|
|
/*}*/
|
|
|
|
|
</style>
|
|
|
|
|