fix: BUG修改
This commit is contained in:
parent
2e21c23e2e
commit
400bbc9745
@ -5,8 +5,8 @@ NODE_ENV = "production"
|
|||||||
# VITE_API_URL = "http://139.9.66.234:6688"
|
# VITE_API_URL = "http://139.9.66.234:6688"
|
||||||
# VITE_API_URL = "http://182.90.224.147:6688"
|
# VITE_API_URL = "http://182.90.224.147:6688"
|
||||||
# VITE_API_URL = 'http://192.168.34.155:6688'
|
# VITE_API_URL = 'http://192.168.34.155:6688'
|
||||||
# VITE_API_URL = 'http://10.75.253.12:6090'
|
VITE_API_URL = 'http://10.75.253.12:6090'
|
||||||
VITE_API_URL = "http://182.90.224.147:9013"
|
# VITE_API_URL = "http://182.90.224.147:9013"
|
||||||
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
VITE_WPAPI_URL = "http://182.90.224.147:8081"
|
||||||
# VITE_API_URL = "http://101.43.164.214:6688"
|
# VITE_API_URL = "http://101.43.164.214:6688"
|
||||||
# VITE_API_URL = "https://wx.antjg.com:6081/"
|
# VITE_API_URL = "https://wx.antjg.com:6081/"
|
||||||
|
|||||||
@ -127,6 +127,8 @@
|
|||||||
<el-button class="hzCancelStyle" @click="cancelScore">取消</el-button>
|
<el-button class="hzCancelStyle" @click="cancelScore">取消</el-button>
|
||||||
<el-button class="btnStyle" type="primary" @click="saveScore"> 保存 </el-button>
|
<el-button class="btnStyle" type="primary" @click="saveScore"> 保存 </el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 打印评分表 -->
|
||||||
|
<scoreTableNewPrint :relativeInfo="relativeInfo" :formDataTable="formData" :recordTableData="recordData"></scoreTableNewPrint>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@ -135,6 +137,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|||||||
import type { FormInstance, UploadProps } from "element-plus";
|
import type { FormInstance, UploadProps } from "element-plus";
|
||||||
import { scoreSubItemList, scoreDetail, noScoreDetail, addScoreDetail, updateScoreDetail } from "@/api/modules/huizhou";
|
import { scoreSubItemList, scoreDetail, noScoreDetail, addScoreDetail, updateScoreDetail } from "@/api/modules/huizhou";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
import scoreTableNewPrint from "./scoreTableNewPrint.vue";
|
||||||
const formData = ref({});
|
const formData = ref({});
|
||||||
const emits = defineEmits(["confirm"]);
|
const emits = defineEmits(["confirm"]);
|
||||||
const props = defineProps(["relativeInfo"]);
|
const props = defineProps(["relativeInfo"]);
|
||||||
|
|||||||
@ -137,7 +137,7 @@ import { scoreSubItemList, scoreDetail, noScoreDetail, addScoreDetail, updateSco
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
const formData = ref({});
|
const formData = ref({});
|
||||||
const emits = defineEmits(["confirm"]);
|
const emits = defineEmits(["confirm"]);
|
||||||
const props = defineProps(["relativeInfo", "printVisible"]);
|
const props = defineProps(["relativeInfo", "formDataTable", "recordTableData"]);
|
||||||
const recordData = ref({});
|
const recordData = ref({});
|
||||||
const categoryList = ref([]);
|
const categoryList = ref([]);
|
||||||
const selectOptions = ref([{ label: "测试", value: 1 }]);
|
const selectOptions = ref([{ label: "测试", value: 1 }]);
|
||||||
@ -303,14 +303,32 @@ const getScoreSubItemData = async () => {
|
|||||||
}
|
}
|
||||||
console.log(res);
|
console.log(res);
|
||||||
};
|
};
|
||||||
|
// 监听属性变化
|
||||||
|
watch(
|
||||||
|
() => props.formDataTable,
|
||||||
|
(n, o) => {
|
||||||
|
formData.value = n;
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
|
// 监听属性变化
|
||||||
|
watch(
|
||||||
|
() => props.recordTableData,
|
||||||
|
(n, o) => {
|
||||||
|
recordData.value = n;
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getScoreSubItemData();
|
await getScoreSubItemData();
|
||||||
formData.value = { ...props.relativeInfo };
|
formData.value = props.formDataTable;
|
||||||
if (formData.value.startTime) {
|
recordData.value = props.recordTableData;
|
||||||
formData.value.timeRange = [formData.value.startTime, formData.value.endTime];
|
// formData.value = { ...props.relativeInfo };
|
||||||
}
|
// if (formData.value.startTime) {
|
||||||
formData.value.scoreTime = dayjs().format("YYYY-MM-DD");
|
// formData.value.timeRange = [formData.value.startTime, formData.value.endTime];
|
||||||
console.log(formData.value);
|
// }
|
||||||
|
// formData.value.scoreTime = dayjs().format("YYYY-MM-DD");
|
||||||
|
// console.log(formData.value);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
.left-content {
|
.left-content {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
background: var(--el-menu-bg-color);
|
background: var(--el-menu-bg-color);
|
||||||
|
|||||||
@ -45,7 +45,7 @@
|
|||||||
<!-- <img src="@/assets/images/tableIcon/configureIcon.png" alt="" class="configureIcon" /> -->
|
<!-- <img src="@/assets/images/tableIcon/configureIcon.png" alt="" class="configureIcon" /> -->
|
||||||
<span>新增打分</span>
|
<span>新增打分</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-else v-auth="'score_upddate'" class="btnStyle" type="primary" @click="openScoreTable(row)">
|
<el-button v-else v-auth="'score_update'" class="btnStyle" type="primary" @click="openScoreTable(row)">
|
||||||
<!-- <img src="@/assets/images/tableIcon/configureIcon.png" alt="" class="configureIcon" /> -->
|
<!-- <img src="@/assets/images/tableIcon/configureIcon.png" alt="" class="configureIcon" /> -->
|
||||||
<span>编辑打分</span>
|
<span>编辑打分</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -64,8 +64,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 评分表 -->
|
<!-- 评分表 -->
|
||||||
<scoreTableNew :relativeInfo="relativeInfo" @confirm="confirmScore"></scoreTableNew>
|
<scoreTableNew :relativeInfo="relativeInfo" @confirm="confirmScore"></scoreTableNew>
|
||||||
<!-- 打印评分表 -->
|
|
||||||
<scoreTableNewPrint :relativeInfo="relativeInfo" @confirm="confirmScore"></scoreTableNewPrint>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 新增单位 -->
|
<!-- 新增单位 -->
|
||||||
<el-dialog class="imgDialog" title="新增" width="50%" v-model="addVisible" show-close>
|
<el-dialog class="imgDialog" title="新增" width="50%" v-model="addVisible" show-close>
|
||||||
@ -140,12 +138,10 @@ import DialogForm from "@/components/DialogForm/index.vue";
|
|||||||
import scoreTable from "./components/scoreTable.vue";
|
import scoreTable from "./components/scoreTable.vue";
|
||||||
import addCompany from "./components/addCompany.vue";
|
import addCompany from "./components/addCompany.vue";
|
||||||
import scoreTableNew from "./components/scoreTableNew.vue";
|
import scoreTableNew from "./components/scoreTableNew.vue";
|
||||||
import scoreTableNewPrint from "./components/scoreTableNewPrint.vue";
|
|
||||||
import { getDicList } from "@/api/modules/jxjview";
|
import { getDicList } from "@/api/modules/jxjview";
|
||||||
import { scorePage, enterpriseList, engineerList, scoreAdd, deleteScoreDetail } from "@/api/modules/huizhou";
|
import { scorePage, enterpriseList, engineerList, scoreAdd, deleteScoreDetail } from "@/api/modules/huizhou";
|
||||||
import { useHandleData } from "@/hooks/useHandleData";
|
import { useHandleData } from "@/hooks/useHandleData";
|
||||||
import printJS from "print-js";
|
import printJS from "print-js";
|
||||||
const printVisible = ref(false);
|
|
||||||
const relativeInfo = ref({});
|
const relativeInfo = ref({});
|
||||||
const dicMainData = ref([]);
|
const dicMainData = ref([]);
|
||||||
const openScore = ref(false);
|
const openScore = ref(false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user