|
|
|
@ -57,7 +57,7 @@
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="8">
|
|
|
|
|
<el-col v-for="(bazi,key) in list" :key="key" :xs="12" :sm="8" :md="8" :lg="6">
|
|
|
|
|
<BaziPanel :info="bazi" @baziPanel="getValue"></BaziPanel>
|
|
|
|
|
<BaziPanel :info="bazi" @baziPanel="getValue" @deleteBaziPanel="deleteBaziPanel"></BaziPanel>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<!-- <pagination style="height: 20px"-->
|
|
|
|
@ -191,7 +191,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import BaziPanel from '@/components/inout/baziPanel.vue'
|
|
|
|
|
import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode} from '@/api/inout/ioDepartmentOrder'
|
|
|
|
|
import {getSkSickerList, getOrderListbyCode, addInfoSkSicker, clickToTriggerbyCode,deleteSkSicker} from '@/api/inout/ioDepartmentOrder'
|
|
|
|
|
import addOrder from "@/views/inout/DialogCreateOrder";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
@ -212,6 +212,7 @@ export default {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
name: '',
|
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 12,
|
|
|
|
|
startTime: null,
|
|
|
|
@ -305,6 +306,23 @@ export default {
|
|
|
|
|
window.removeEventListener('resize', this.handleResize);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
deleteBaziPanel(info) {
|
|
|
|
|
let query = {
|
|
|
|
|
adNum: info.adNum
|
|
|
|
|
}
|
|
|
|
|
deleteSkSicker(query).then((response) => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("操作成功!")
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
this.$message.error(error.message)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getValue(info) {
|
|
|
|
|
console.log(info)
|
|
|
|
|
let query = {
|
|
|
|
@ -324,11 +342,12 @@ export default {
|
|
|
|
|
this.idQuery = this.orderListDate[0]; // 确保数组不为空
|
|
|
|
|
} else {
|
|
|
|
|
// 处理订单列表为空的情况,设置默认值或者显示消息
|
|
|
|
|
this.idQuery = {};
|
|
|
|
|
}
|
|
|
|
|
this.sickerAdNum = info.adNum;
|
|
|
|
|
this.sickerAdName = info.name;
|
|
|
|
|
this.addOrderVisible = true;
|
|
|
|
|
this.list = response.data || [];
|
|
|
|
|
this.addOrderVisible = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
@ -409,6 +428,7 @@ export default {
|
|
|
|
|
onReset() {
|
|
|
|
|
this.filterQuery = {
|
|
|
|
|
name: '',
|
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 24
|
|
|
|
|
}
|
|
|
|
|