扫码明细问题

20240912_adapter_z
yewj 8 months ago
parent fbf5f3b75e
commit f919cf3177

@ -209,14 +209,14 @@
:prescribeData="curRow" :prescribeData="curRow"
></prescribeOriginPanel> ></prescribeOriginPanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="扫码明细"> <!-- <el-tab-pane label="扫码明细">-->
<PanelOrderManuTagCode <!-- <PanelOrderManuTagCode-->
v-if="panelALive" <!-- v-if="panelALive"-->
:fifoSplit="3" <!-- :fifoSplit="3"-->
:prescribeData="curRow" <!-- :prescribeData="curRow"-->
:refreshPanel="refreshCodesPanelP" <!-- :refreshPanel="refreshCodesPanelP"-->
></PanelOrderManuTagCode> <!-- ></PanelOrderManuTagCode>-->
</el-tab-pane> <!-- </el-tab-pane>-->
<el-tab-pane label="拆零详情"> <el-tab-pane label="拆零详情">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"

@ -126,7 +126,7 @@
<script> <script>
import {convertDate} from "@/utils/date"; import {convertDate} from "@/utils/date";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
import {autoCodeDetail, autoCodeResult, manualCodeDetail,codeRemove} from "@/api/collect/collectOrder"; import {autoCodeDetail, autoCodeResult, manualCodeDetail, codeRemove} from "@/api/collect/collectOrder";
export default { export default {
@ -139,11 +139,20 @@ export default {
type: Function, type: Function,
required: true, required: true,
}, },
closeScanDialog: {
type: Function,
required: true,
},
prescribeData: { prescribeData: {
type: Object, type: Object,
default: null, default: null,
required: true required: true
}, },
bizId: {
type: Object,
default: null,
required: true
},
//1:2:;3 //1:2:;3
fifoSplit: { fifoSplit: {
type: Object, type: Object,
@ -195,7 +204,7 @@ export default {
_this.codeRemoveMan(row.id, 1); _this.codeRemoveMan(row.id, 1);
}) })
}, },
codeRemoveMan(codeManId,delType){ codeRemoveMan(codeManId, delType) {
let post = { let post = {
codeManId: codeManId, codeManId: codeManId,
delType: delType delType: delType
@ -203,7 +212,8 @@ export default {
codeRemove(post).then((response) => { codeRemove(post).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("操作成功!"); this.$message.success("操作成功!");
this.refreshPanel() this.refreshPanel(this)
this.getList()
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -239,6 +249,7 @@ export default {
if (_this.prescribeData != null) { if (_this.prescribeData != null) {
_this.codeQuery.page = 1 _this.codeQuery.page = 1
_this.codeQuery.orderIdFk = this.prescribeData.billNo _this.codeQuery.orderIdFk = this.prescribeData.billNo
_this.codeQuery.bizIdFk = this.bizId
} }
_this.codeLoading = true; _this.codeLoading = true;
if (_this.fifoSplit == 3) { if (_this.fifoSplit == 3) {
@ -317,7 +328,7 @@ export default {
this.getList(this); this.getList(this);
}); });
} else { } else {
this.getPrescribeDetail(this); this.getList(this);
} }

@ -120,6 +120,24 @@
@pagination="preHandleCurrentChange" @pagination="preHandleCurrentChange"
></pagination> ></pagination>
<el-dialog
title="扫码明细"
:visible.sync="scanDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="scanDetailVisible"
width="65%"
append-to-body
>
<PanelOrderManuTagCode
:fifoSplit="3"
:prescribeData="prescribeData"
:bizId="bizId"
:closeScanDialog="closeScanDialog"
></PanelOrderManuTagCode>
</el-dialog>
</div> </div>
</template> </template>
@ -128,6 +146,7 @@ import {convertDate} from "@/utils/date";
import {detail} from "@/api/basic/sicker/prescribeApi"; import {detail} from "@/api/basic/sicker/prescribeApi";
import {executeFuc, getHead} from "@/utils/customConfig"; import {executeFuc, getHead} from "@/utils/customConfig";
import {orderDetail, codeRemove} from "@/api/collect/collectOrder"; import {orderDetail, codeRemove} from "@/api/collect/collectOrder";
import PanelOrderManuTagCode from "@/views/collect/PanelOrderManuTagCode";
/** /**
* 原始处方明细 * 原始处方明细
@ -175,7 +194,8 @@ export default {
}, },
countVisible: false, countVisible: false,
scanDetailVisible: false,
bizId: null,
} }
}, },
methods: { methods: {
@ -264,6 +284,16 @@ export default {
}) })
}, },
scanDetail(_this, row) {
_this.bizId = row.id;
_this.scanDetailVisible = true;
},
closeScanDialog() {
this.getPrescribeDetail(this);
},
rowStyle({row, rowIndex}) { rowStyle({row, rowIndex}) {
let rowBackground = {}; let rowBackground = {};
if (row.count != row.scanCount) { if (row.count != row.scanCount) {
@ -275,6 +305,11 @@ export default {
}, },
}, },
components: {
PanelOrderManuTagCode
},
created() { created() {
if (this.tableHeader1 == null || this.tableHeader1.length == 0) { if (this.tableHeader1 == null || this.tableHeader1.length == 0) {
getHead("prescribeOriginPanel", "1").then((re) => { getHead("prescribeOriginPanel", "1").then((re) => {

Loading…
Cancel
Save