绑定工位 取消多选

20240912_adapter_z
wangwei 11 months ago
parent f4971f044e
commit 37d4f0c8e8

@ -94,10 +94,10 @@
>查询 >查询
</el-button </el-button
> >
<el-button type="primary" icon="el-icon-position" @click="bindWorkPlace" <!--<el-button type="primary" icon="el-icon-position" @click="bindWorkPlace"-->
>绑定工位 <!--&gt;绑定工位-->
</el-button <!--</el-button-->
> <!--&gt;-->
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
@ -236,7 +236,7 @@
append-to-body append-to-body
> >
<bindWorkDialog <bindWorkDialog
:prescribeList="this.multiplePreSelection" :prescribeListData="this.prescribeListData"
:closeDialog="this.closeDialog" :closeDialog="this.closeDialog"
></bindWorkDialog> ></bindWorkDialog>
</el-dialog> </el-dialog>
@ -325,6 +325,7 @@ export default {
bindWorkPlaceVisible: false, bindWorkPlaceVisible: false,
multiplePreSelection: [], multiplePreSelection: [],
prescribeListData: {},
curRow: null, curRow: null,
panelALive: false, panelALive: false,
@ -374,12 +375,13 @@ export default {
this.getList(); this.getList();
}, },
bindWorkPlace() { bindWorkPlace(_this,row) {
if (this.multiplePreSelection.length == 0) { // if (this.multiplePreSelection.length == 0) {
this.$message.warning('请先选择处方!'); // this.$message.warning('!');
return // return
} // }
this.bindWorkPlaceVisible = true; _this.prescribeListData = row
_this.bindWorkPlaceVisible = true;
}, },

@ -59,7 +59,7 @@ import {bindWork} from "@/api/basic/sicker/prescribeApi";
export default { export default {
name: "bindWorkDialog", name: "bindWorkDialog",
props: { props: {
prescribeList: { prescribeListData: {
type: Object, type: Object,
required: true, required: true,
}, },
@ -201,12 +201,12 @@ export default {
bindWork() { bindWork() {
let query = { let query = {
prescribeList: this.prescribeList, prescribeListData: this.prescribeListData,
workplaceCode: this.currentRow.workplaceId workplaceCode: this.currentRow.workplaceId
} }
bindWork(query).then(res => { bindWork(query).then(res => {
if (res.code != 20000) { if (res.code != 20000) {
this.$message.error('删除错误') this.$message.error(res.message)
} else { } else {
this.$message.success(res.data) this.$message.success(res.data)
this.closeDialog(); this.closeDialog();

Loading…
Cancel
Save