From ddc54b3269a0c93beb9ff24ab538b344291e44f8 Mon Sep 17 00:00:00 2001
From: dy <dingyang@lnfxkj.tech>
Date: 星期一, 14 四月 2025 18:50:54 +0800
Subject: [PATCH] 焊缝前台代码提交
---
src/api/mainPlan/weldSeam/weldSeam.js | 70 +++++
src/components/HxlhTable/index.vue | 2
src/views/mainPlan/weldSeam/index.vue | 637 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 708 insertions(+), 1 deletions(-)
diff --git a/src/api/mainPlan/weldSeam/weldSeam.js b/src/api/mainPlan/weldSeam/weldSeam.js
new file mode 100644
index 0000000..0994c01
--- /dev/null
+++ b/src/api/mainPlan/weldSeam/weldSeam.js
@@ -0,0 +1,70 @@
+import request from '@/utils/request'
+
+// 鏌ヨ鐒婄紳鍒楄〃
+export function listWeldSeam(query) {
+ return request({
+ url: '/weldSeam/weldSeam/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 鏌ヨ鐒婄紳璇︾粏
+export function getWeldSeam(id) {
+ return request({
+ url: '/weldSeam/weldSeam/' + id,
+ method: 'get'
+ })
+}
+
+// 鏂板鐒婄紳
+export function addWeldSeam(data) {
+ return request({
+ url: '/weldSeam/weldSeam',
+ method: 'post',
+ data: data
+ })
+}
+
+// 淇敼鐒婄紳
+export function updateWeldSeam(data) {
+ return request({
+ url: '/weldSeam/weldSeam',
+ method: 'put',
+ data: data
+ })
+}
+
+// 鍒犻櫎鐒婄紳
+export function delWeldSeam(id) {
+ return request({
+ url: '/weldSeam/weldSeam/' + id,
+ method: 'delete'
+ })
+}
+
+// 鏌ヨ鐒婄紳璁″垝绠$悊鍒楄〃
+export function examplePlan(query) {
+ return request({
+ url: '/aps/weldSeamTemp/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 鏌ヨ闆朵欢璁″垝绠$悊鍒楄〃
+export function confirmWeldSeam(data) {
+ return request({
+ url: '/aps/weldSeam/confirmWeldSeam',
+ method: 'post',
+ data: data
+ })
+}
+
+// 鏌ヨ闆朵欢缁熻琛ㄥ垪琛�
+export function query() {
+ return request({
+ url: '/aps/weldSeamStatistics/list',
+ method: 'get'
+ })
+}
\ No newline at end of file
diff --git a/src/components/HxlhTable/index.vue b/src/components/HxlhTable/index.vue
index 54ee3f1..111a639 100644
--- a/src/components/HxlhTable/index.vue
+++ b/src/components/HxlhTable/index.vue
@@ -33,7 +33,7 @@
@checkbox-all="checkChangeall"
>
<template v-slot:buttons>
- <slot />
+ <slot name="buttons"/>
</template>
</vxe-grid>
</div>
diff --git a/src/views/mainPlan/weldSeam/index.vue b/src/views/mainPlan/weldSeam/index.vue
new file mode 100644
index 0000000..9b73426
--- /dev/null
+++ b/src/views/mainPlan/weldSeam/index.vue
@@ -0,0 +1,637 @@
+<template>
+ <div class="app-container">
+
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="info"
+ plain
+ icon="Upload"
+ @click="handleImport"
+ v-hasPermi="['weldSeam:weldSeam:import']"
+ >瀵煎叆</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="warning"
+ plain
+ icon="Download"
+ @click="handleExport"
+ v-hasPermi="['weldSeam:weldSeam:export']"
+ >瀵煎嚭</el-button>
+ </el-col>
+ <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
+ </el-row>
+
+ <HxlhTable
+ style="width: 100%"
+ :columns="columns"
+ :data="dataList"
+ :loading="loading"
+ :height="height"
+ @on-checkbox="handleCheckboxChange"
+ >
+ <template #buttons="{row}">
+ <vxe-button mode="text" @click="viewEvent(row)">缂栬緫</vxe-button>
+ </template>
+ </HxlhTable>
+
+ <!-- 瀵煎叆瀵硅瘽妗� -->
+ <el-dialog :title="upload.title" v-model="upload.open" width="90%" append-to-body @close="dialogCancel">
+ <el-row :gutter="10">
+ <el-col>
+ <div style="border-bottom: 1px solid #ccc;" >
+ <p>涓婁紶Excel鏂囦欢锛屽寘鍚剨缂濆伐鍗曚俊鎭�傜郴缁熷皢瑙f瀽鏁版嵁骞朵繚瀛樺埌鏈湴锛岀敤浜庡叧鑱斿埌鐒婄紳璁″垝涓��</p>
+ </div>
+ </el-col>
+ <el-col >
+ <div></div>
+ </el-col>
+ </el-row>
+ <el-row>
+ <el-col>
+ <el-upload ref="uploadRef" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="true" drag>
+ <el-icon class="el-icon--upload"><upload-filled /></el-icon>
+ <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
+ <template #tip>
+ <div class="el-upload__tip">
+ <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
+ </div>
+ </template>
+ </el-upload>
+ </el-col>
+ </el-row>
+ <el-row>
+ <el-col style="margin-top: 20px;">
+ <div v-show="isVisible">
+ <el-alert icon="Check" :show-icon="true" title="鐒婄紳宸ュ崟鏁版嵁宸叉垚鍔熻В鏋�" type="success" :closable="false"/>
+ </div>
+ <div v-show="isError">
+ <el-alert icon="Close" :show-icon="true" title="鐒婄紳宸ュ崟鏁版嵁宸茶В鏋愬け璐�" type="error" :closable="false"/>
+ </div>
+ </el-col>
+ </el-row>
+ <el-row v-show="isVisible">
+ <el-col>
+ <div>
+ <h2>鏁版嵁棰勮</h2>
+ </div>
+ <HxlhTable
+ style="width: 100%"
+ :columns="exampleColumns"
+ :data="exampleList"
+ :loading="loading"
+ :maxHeight="exampleHeight"
+ >
+ </HxlhTable>
+ </el-col>
+ <el-col>
+ <div style="text-align: right;">
+ <h4>鍏变笂浼�<span style="color: blue;">{{ total }}</span>鏉$剨缂濆伐鍗曟暟鎹�</h4>
+ </div>
+ </el-col>
+ </el-row>
+ <template #footer>
+ <div class="dialog-footer">
+ <el-button
+ type="success"
+ plain
+ icon="Check"
+ :disabled="planned"
+ @click="uploadParse"
+ v-hasPermi="['weldSeam:weldSeam:confirmPart']"
+ >纭涓婁紶</el-button>
+ <el-button @click="dialogCancel">鍙� 娑�</el-button>
+ </div>
+ </template>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀圭剨缂濆璇濇 -->
+ <el-dialog :title="title" v-model="open" width="700px" append-to-body>
+ <el-form ref="weldSeamRef" :model="form" :rules="rules" label-width="150px">
+ <el-form-item label="骞翠唤" prop="year">
+ <el-input v-model="form.year" placeholder="骞翠唤" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="鏈堜唤" prop="month">
+ <el-input v-model="form.month" placeholder="鏈堜唤" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="鐢熶骇鍩哄湴" prop="productionBase">
+ <el-input v-model="form.productionBase" placeholder="鐢熶骇鍩哄湴" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="绠¤矾璁㈠崟闇�姹�" prop="pipingOrderRequirement">
+ <el-input v-model="form.pipingOrderRequirement" placeholder="绠¤矾璁㈠崟闇�姹�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="姘旀煖璁㈠崟闇�姹�" prop="gasOrderRequirement">
+ <el-input v-model="form.gasOrderRequirement" placeholder="姘旀煖璁㈠崟闇�姹�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="绠¤矾棰勬祴闇�姹�" prop="pipingPredictionRequirement">
+ <el-input v-model="form.pipingPredictionRequirement" placeholder="绠¤矾棰勬祴闇�姹�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="姘旀煖棰勬祴闇�姹�" prop="gasPredictionRequirement">
+ <el-input v-model="form.gasPredictionRequirement" placeholder="姘旀煖棰勬祴闇�姹�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="棰勭暀绱ф�ヨ鍗曚骇鍑�" prop="reserveEmergencyOrderOutput">
+ <el-input v-model="form.reserveEmergencyOrderOutput" placeholder="璇疯緭棰勭暀绱ф�ヨ鍗曚骇鍑�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="鍚堣" prop="total">
+ <el-input v-model="form.total" placeholder="璇疯緭鍏ュ悎璁�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="澶╂暟" prop="produceMonth">
+ <el-input v-model="form.produceMonth" placeholder="璇疯緭鍏ュぉ鏁�" :disabled="isDisabled"/>
+ </el-form-item>
+ <el-form-item label="闇�姹傛棩鐒婄紳" prop="requirementDayWeldSeam">
+ <el-date-picker clearable
+ v-model="form.requirementDayWeldSeam"
+ type="date"
+ value-format="YYYY-MM-DD"
+ placeholder="璇烽�夋嫨闇�姹傛棩鐒婄紳鏃ユ湡" :disabled="isDisabled">
+ </el-date-picker>
+ </el-form-item>
+ <el-form-item label="鐢熶骇鏃ョ剨缂�" prop="productionDayWeldSeam">
+ <el-date-picker clearable
+ v-model="form.productionDayWeldSeam"
+ type="date"
+ value-format="YYYY-MM-DD"
+ placeholder="璇烽�夋嫨鐢熶骇鏃ョ剨缂濇棩鏈�">
+ </el-date-picker>
+ </el-form-item>
+ <el-form-item label="鏄惁婊¤冻" prop="isSatisfy">
+ <el-input v-model="form.isSatisfy" placeholder="璇疯緭鍏ユ槸鍚︽弧瓒�" :disabled="isDisabled"/>
+ </el-form-item>
+ </el-form>
+ <template #footer>
+ <div class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </template>
+ </el-dialog>
+ </div>
+</template>
+
+<script setup name="WeldSeam">
+import { listWeldSeam, getWeldSeam, delWeldSeam, addWeldSeam, updateWeldSeam ,examplePlan ,confirmWeldSeam ,query} from "@/api/mainPlan/weldSeam/weldSeam";
+import { getToken } from "@/utils/auth";
+import HxlhTable from '@/components/HxlhTable'
+import { ref } from "vue";
+
+const { proxy } = getCurrentInstance();
+
+const open = ref(false);
+const loading = ref(true);
+const showSearch = ref(true);
+const ids = ref([]);
+const single = ref(true);
+const multiple = ref(true);
+const total = ref(0);
+const title = ref("");
+const daterangeThisFeedbackDay = ref([]);
+const daterangeMaterialsRequirementDay = ref([]);
+const isVisible = ref(false);
+const isError = ref(false);
+const planned = ref(true);
+const height = ref(document.documentElement.clientHeight - 210 + "px;")
+const exampleHeight = ref("500px");
+const uploadRef = ref();
+const exampleList = ref([]);
+const batchNumber = ref(null);
+const dataList = ref([]);
+const isDisabled = ref(true);
+
+/** 瀵煎叆鍙傛暟 */
+const upload = reactive({
+ // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛�
+ open: false,
+ // 寮瑰嚭灞傛爣棰橈紙鐢ㄦ埛瀵煎叆锛�
+ title: "",
+ // 鏄惁绂佺敤涓婁紶
+ isUploading: false,
+ // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
+ updateSupport: 0,
+ // 璁剧疆涓婁紶鐨勮姹傚ご閮�
+ headers: { Authorization: "Bearer " + getToken() },
+ // 涓婁紶鐨勫湴鍧�
+ url: import.meta.env.VITE_APP_BASE_API + "/aps/weldSeam/importData"
+});
+
+// 琛ㄦ牸閰嶇疆
+const columns = ref([
+ { type: 'seq', title: '搴忓彿', width: 60 },
+ {
+ title: '骞翠唤',
+ field: 'year',
+ width: 100,
+ },
+ {
+ title: '鏈堜唤',
+ field: 'month',
+ width: 80,
+ },
+ {
+ title: '鐢熶骇鍩哄湴',
+ field: 'productionBase',
+ width: 150,
+ },
+ {
+ title: '璁㈠崟闇�姹�',
+ field: 'order',
+ children: [
+ { field: 'pipingOrderRequirement', title: '绠¤矾', width: 140 },
+ { field: 'gasOrderRequirement', title: '姘旀煖', width: 120 },
+ ],
+ width: 150,
+ },
+ {
+ title: '棰勬祴闇�姹�',
+ field: 'info',
+ children: [
+ { field: 'pipingPredictionRequirement', title: '绠¤矾', width: 140 },
+ { field: 'gasPredictionRequirement', title: '姘旀煖', width: 120 },
+ ],
+ width: 150,
+ },
+ {
+ title: '棰勭暀绱ф�ヨ鍗曚骇鍑�',
+ field: 'reserveEmergencyOrderOutput',
+ width: 150,
+ },
+ {
+ title: '鍚堣',
+ field: 'total',
+ width: 150,
+ },
+ {
+ title: '澶╂暟',
+ field: 'days',
+ width: 150,
+ },
+ {
+ title: '闇�姹傛棩鐒婄紳',
+ field: 'requirementDayWeldSeam',
+ width: 100,
+ },
+ {
+ title: '鐢熶骇鏃ョ剨缂�',
+ field: 'productionDayWeldSeam',
+ width: 150,
+ },
+ {
+ title: '鏄惁婊¤冻',
+ field: 'isSatisfy',
+ width: 150,
+ },
+ { title: '鎿嶄綔', width: 100, fixed:"right", slots: { default: 'buttons' } }
+]);
+
+// 琛ㄦ牸閰嶇疆
+const exampleColumns = ref([
+ { type: 'seq', title: '搴忓彿', width: 60 },
+ {
+ title: '宸ュ崟绫诲瀷',
+ field: 'workOrderType',
+ width: 100,
+ },
+ /* {
+ title: '鍛ㄦ棩',
+ field: 'weekDay',
+ width: 100,
+ formatter: (({ cellValue, row, column }) => {
+ if (cellValue) {
+ const weekDay = new Date(cellValue);
+ const year = weekDay.getFullYear();
+ const month = String(weekDay.getMonth() + 1).padStart(2, '0');
+ const day = String(weekDay.getDate()).padStart(2, '0');
+ return `${month}-${day}`;
+ }
+ return '';
+ })
+ }, */
+ {
+ title: '鐗╂枡缂栫爜',
+ field: 'materialCode',
+ width: 80,
+ },
+ {
+ title: '瀹㈡埛鍥惧彿',
+ field: 'customerDrawingNumber',
+ width: 150,
+ },
+ {
+ title: '缁勭粐璐﹀彿',
+ field: 'organizeNumber',
+ width: 150,
+ },
+ {
+ title: '鐢熶骇鍩哄湴',
+ field: 'productionBase',
+ width: 200,
+ },
+ {
+ title: '鍒嗙被(姘旀煖/绠¤矾)',
+ field: 'classification',
+ width: 150,
+ },
+ {
+ title: '鐢熶骇骞翠唤',
+ field: 'produceYear',
+ width: 150,
+ },
+ {
+ title: '鐢熶骇鏈堜唤',
+ field: 'produceMonth',
+ width: 150,
+ },
+ {
+ title: '鐢熸垚鏁伴噺',
+ field: 'productionQuantity',
+ width: 100,
+ },
+ {
+ title: '瀹㈡埛',
+ field: 'customer',
+ width: 150,
+ },
+ {
+ title: '鍗曚欢鐒婄紳',
+ field: 'singleWeldSeam',
+ width: 150,
+ },
+ {
+ title: '鎬荤剨缂�',
+ field: 'totalWeldSeam',
+ width: 100,
+ },
+ {
+ title: '鏈鍙嶉鏃ユ湡',
+ field: 'thisFeedbackDay',
+ width: 100,
+ },
+ {
+ title: '鐗╂枡闇�姹傛棩鏈�',
+ field: 'materialsRequirementDay',
+ width: 100,
+ },
+ {
+ title: '閿�鍞鍗曞彿',
+ field: 'saleOrderNo',
+ width: 150,
+ },
+ {
+ title: '閿�鍞鍗曡',
+ field: 'saleOrderLine',
+ width: 150,
+ },
+ {
+ title: '涓诲伐鍗曞彿',
+ field: 'mainWorkOrderNo',
+ width: 100,
+ },
+ {
+ title: '涓婄骇宸ュ崟鍙�',
+ field: 'superiorWorkOrderNo',
+ width: 100,
+ },
+ {
+ title: '宸ュ崟鍙�',
+ field: 'workOrderNo',
+ width: 100,
+ },
+]);
+
+const data = reactive({
+ form: {},
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ workOrderType: null,
+ materialCode: null,
+ customerDrawingNumber: null,
+ organizeNumber: null,
+ productionBase: null,
+ classification: null,
+ produceYear: null,
+ produceMonth: null,
+ productionQuantity: null,
+ customer: null,
+ singleWeldSeam: null,
+ totalWeldSeam: null,
+ thisFeedbackDay: null,
+ materialsRequirementDay: null,
+ saleOrderNo: null,
+ saleOrderLine: null,
+ mainWorkOrderNo: null,
+ superiorWorkOrderNo: null,
+ workOrderNo: null,
+ plant: null,
+ batchNumber: null
+ },
+ rules: {
+ }
+});
+
+const { queryParams, form, rules } = toRefs(data);
+
+/** 鏌ヨ鐒婄紳鍒楄〃 */
+function getList() {
+ loading.value = true;
+ query(queryParams.value).then(response => {
+ console.log(response);
+ dataList.value = response.rows;
+ loading.value = false;
+ });
+}
+
+// 鍙栨秷鎸夐挳
+function cancel() {
+ open.value = false;
+ reset();
+}
+
+// 琛ㄥ崟閲嶇疆
+function reset() {
+ form.value = {
+ workOrderType: null,
+ materialCode: null,
+ customerDrawingNumber: null,
+ organizeNumber: null,
+ productionBase: null,
+ classification: null,
+ produceYear: null,
+ produceMonth: null,
+ productionQuantity: null,
+ customer: null,
+ singleWeldSeam: null,
+ totalWeldSeam: null,
+ thisFeedbackDay: null,
+ materialsRequirementDay: null,
+ saleOrderNo: null,
+ saleOrderLine: null,
+ mainWorkOrderNo: null,
+ superiorWorkOrderNo: null,
+ workOrderNo: null,
+ plant: null
+ };
+ proxy.resetForm("weldSeamRef");
+}
+
+/** 鎼滅储鎸夐挳鎿嶄綔 */
+function handleQuery() {
+ queryParams.value.pageNum = 1;
+ getList();
+}
+
+/** 閲嶇疆鎸夐挳鎿嶄綔 */
+function resetQuery() {
+ daterangeThisFeedbackDay.value = [];
+ daterangeMaterialsRequirementDay.value = [];
+ proxy.resetForm("queryRef");
+ handleQuery();
+}
+
+// 澶氶�夋閫変腑鏁版嵁
+function handleSelectionChange(selection) {
+ ids.value = selection.map(item => item.id);
+ single.value = selection.length != 1;
+ multiple.value = !selection.length;
+}
+
+/** 鏂板鎸夐挳鎿嶄綔 */
+function handleAdd() {
+ reset();
+ open.value = true;
+ title.value = "娣诲姞鐒婄紳";
+}
+
+/** 淇敼鎸夐挳鎿嶄綔 */
+function handleUpdate(row) {
+ reset();
+ const _id = row.id || ids.value
+ getWeldSeam(_id).then(response => {
+ form.value = response.data;
+ open.value = true;
+ title.value = "淇敼鐒婄紳";
+ });
+}
+
+/** 鎻愪氦鎸夐挳 */
+function submitForm() {
+ proxy.$refs["weldSeamRef"].validate(valid => {
+ if (valid) {
+ if (form.value.id != null) {
+ updateWeldSeam(form.value).then(response => {
+ proxy.$modal.msgSuccess("淇敼鎴愬姛");
+ open.value = false;
+ getList();
+ });
+ } else {
+ addWeldSeam(form.value).then(response => {
+ proxy.$modal.msgSuccess("鏂板鎴愬姛");
+ open.value = false;
+ getList();
+ });
+ }
+ }
+ });
+}
+
+/** 鍒犻櫎鎸夐挳鎿嶄綔 */
+function handleDelete(row) {
+ const _ids = row.id || ids.value;
+ proxy.$modal.confirm('鏄惁纭鍒犻櫎鐒婄紳缂栧彿涓�"' + _ids + '"鐨勬暟鎹」锛�').then(function() {
+ return delWeldSeam(_ids);
+ }).then(() => {
+ getList();
+ proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ }).catch(() => {});
+}
+
+/** 瀵煎叆鎸夐挳鎿嶄綔 */
+function handleImport() {
+ upload.title = "鐒婄紳宸ュ崟鏁版嵁涓婁紶";
+ upload.open = true;
+};
+
+/** 瀵煎嚭鎸夐挳鎿嶄綔 */
+function handleExport() {
+ proxy.download('weldSeam/weldSeam/export', {
+ ...queryParams.value
+ }, `weldSeam_${new Date().getTime()}.xlsx`)
+}
+
+/** dialog鍙栨秷 */
+function dialogCancel(){
+ if (uploadRef.value) {
+ uploadRef.value.clearFiles();
+ }
+ isVisible.value = false;
+ isError.value = false;
+ planned.value = true;
+ upload.open = false;
+ upload.isUploading = false;
+}
+
+/**鏂囦欢涓婁紶涓鐞� */
+const handleFileUploadProgress = (event, file, fileList) => {
+ upload.isUploading = true;
+};
+
+/** 鏂囦欢涓婁紶鎴愬姛澶勭悊 */
+const handleFileSuccess = (response, file, fileList) => {
+ if(response.code == '200'){
+ batchNumber.value = response.data;
+ isVisible.value = true;
+ planned.value = false;
+ isError.value = false;
+ getExampleList();
+ }else{
+ isError.value = true;
+ proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "瀵煎叆缁撴灉", { dangerouslyUseHTMLString: true });
+ }
+ proxy.$refs["uploadRef"].handleRemove(file);
+ upload.isUploading = false;
+};
+
+/** 涓婁紶骞惰В鏋愭寜閽搷浣� */
+function uploadParse() {
+ queryParams.value.params = {};
+ queryParams.value.params["batchNumber"] = batchNumber.value;
+ confirmWeldSeam(queryParams.value).then(response => {
+ exampleList.value = response.rows;
+ loading.value = false;
+ isVisible.value = false;
+ isError.value = false;
+ planned.value = true;
+ upload.open = false;
+ ElMessage({
+ message: '鐒婄紳宸ュ崟鏁版嵁宸叉垚鍔熶笂浼犲拰瑙f瀽',
+ type: 'success',
+ })
+ getList();
+ });
+}
+
+/** 鏌ヨ闆朵欢璁″垝涓存椂绠$悊鍒楄〃 */
+function getExampleList() {
+ loading.value = true;
+ queryParams.value = {};
+ queryParams.value.batchNumber = batchNumber.value;
+ examplePlan(queryParams.value).then(response => {
+ exampleList.value = response.rows;
+ total.value = response.total;
+ loading.value = false;
+ });
+}
+
+/** 缂栬緫 */
+function viewEvent(row){
+ console.log(row);
+ /* const _id = row.id
+ getWeldSeam(_id).then(response => {
+ form.value = response.data;
+ open.value = true;
+ title.value = "淇敼鐒婄紳";
+ }); */
+}
+
+getList();
+</script>
--
Gitblit v1.9.3