|
@@ -28,7 +28,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 数据展示 -->
|
|
<!-- 数据展示 -->
|
|
|
<el-table ref="multipleTable" style="width: 100%" tooltip-effect="dark" :data="tableData" row-key="ID"
|
|
<el-table ref="multipleTable" style="width: 100%" tooltip-effect="dark" :data="tableData" row-key="ID"
|
|
|
- highlight-current-row="true" :cell-style="cellStyle" border @selection-change="handleSelectionChange" :show-overflow-tooltip="true" @row-dblclick="doubleClick">
|
|
|
|
|
|
|
+ highlight-current-row="true" :cell-style="cellStyle" border @selection-change="handleSelectionChange"
|
|
|
|
|
+ :show-overflow-tooltip="true" @row-dblclick="doubleClick">
|
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column align="left" label="创建用户" prop="sys_id" width="120" />
|
|
<el-table-column align="left" label="创建用户" prop="sys_id" width="120" />
|
|
|
<el-table-column align="left" label="日期" prop="sczl_rq" width="120"/>
|
|
<el-table-column align="left" label="日期" prop="sczl_rq" width="120"/>
|
|
@@ -57,7 +58,7 @@
|
|
|
<el-form-item label="日期" prop="name">
|
|
<el-form-item label="日期" prop="name">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <el-input v-model="formData.code" :clearable="true" placeholder="ZT01733" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_rq" :clearable="true" placeholder="ZT01733" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -92,151 +93,151 @@
|
|
|
<!-- 员工1 -->
|
|
<!-- 员工1 -->
|
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh1" :clearable="true" @keyup.enter.native="getGxMcsubmit($event, '1')" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx1" :clearable="true" placeholder="瞿春生" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc1" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc1" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl1" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl1" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd1" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 员工2 -->
|
|
<!-- 员工2 -->
|
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh2" :clearable="true" @keyup.enter.native="getGxMcsubmit($event, '2')" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx2" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc2" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc2" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl2" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl2" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd2" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 员工3 -->
|
|
<!-- 员工3 -->
|
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh3" :clearable="true" @keyup.enter.native="getGxMcsubmit($event, '3')" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx3" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc3" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc3" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl3" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl3" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd3" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 员工4 -->
|
|
<!-- 员工4 -->
|
|
|
- <el-row :gutter="5" style="margin-top: 10px;">
|
|
|
|
|
|
|
+ <el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh4" :clearable="true" @keyup.enter.native="getGxMcsubmit($event, '4')" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx4" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc4" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc4" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl4" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl4" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd4" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 员工5 -->
|
|
<!-- 员工5 -->
|
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh5" @keyup.enter.native="getGxMcsubmit($event, '5')" :clearable="true" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx5" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc5" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc5" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl5" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl5" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd5" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 员工6 -->
|
|
<!-- 员工6 -->
|
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
<el-row :gutter="5" style="margin-top: 10px;">
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="ZI00401" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gdbh6" :clearable="true" @keyup.enter.native="getGxMcsubmit($event, '6')" placeholder="ZI00401" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="瞿春生" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_yjGx6" :clearable="true" placeholder="瞿春生" data-="" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="11.0" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_gxmc6" :clearable="true" placeholder="11.0" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="打包废纸" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.Gd_cpmc6" :clearable="true" placeholder="打包废纸" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.sczl_cl6" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_PgCl6" :clearable="true" placeholder="是" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="2">
|
|
|
|
|
+ <el-input v-model="formData.sczl_clAdd6" :clearable="true" placeholder="是" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="2">
|
|
|
|
|
- <el-input v-model="formData.image" :clearable="true" placeholder="是" />
|
|
|
|
|
- </el-col>
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -265,6 +266,31 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ <el-dialog v-model="getGxMcshow" :before-close="closegetGxMcshow" :title="type==='create'?'添加':'修改'" destroy-on-close>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form :model="form" label-width="80px">
|
|
|
|
|
+ <div style="display: flex; justify-content: center;">
|
|
|
|
|
+ <el-form-item label="关键字">
|
|
|
|
|
+ <el-input v-model="name"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table ref="GxMctable" style="width: 100%" tooltip-effect="dark" :data="GxMctableData" row-key="ID"
|
|
|
|
|
+ highlight-current-row="true" :cell-style="cellStyle" border @selection-change="handleSelectionChange"
|
|
|
|
|
+ :show-overflow-tooltip="true" @row-dblclick="GxMcdoubleClick">
|
|
|
|
|
+ <el-table-column align="left" label="印件工序" prop="jyGx" width="120" />
|
|
|
|
|
+ <el-table-column align="left" label="工序名称" prop="Gy0_gxmc" width="120"/>
|
|
|
|
|
+ <el-table-column align="left" label="印件名称" prop="Gd_cpmc" width="800"/>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <el-button @click="closegetGxMcshow">取 消</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</el-container>
|
|
</el-container>
|
|
|
</el-container>
|
|
</el-container>
|
|
@@ -277,12 +303,14 @@ import {
|
|
|
getList,
|
|
getList,
|
|
|
getTab,
|
|
getTab,
|
|
|
locate,
|
|
locate,
|
|
|
- getInfo
|
|
|
|
|
|
|
+ getInfo,
|
|
|
|
|
+ getGxMc,
|
|
|
|
|
+ edit
|
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
|
|
|
|
|
// 全量引入格式化工具 请按需保留
|
|
// 全量引入格式化工具 请按需保留
|
|
|
import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
|
|
import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
|
|
|
+import { ElMessage, ElMessageBox, LAST_KEYS } from 'element-plus'
|
|
|
import { Search, Refresh, Download } from '@element-plus/icons-vue'
|
|
import { Search, Refresh, Download } from '@element-plus/icons-vue'
|
|
|
import { ref, reactive, onMounted, onBeforeMount } from 'vue'
|
|
import { ref, reactive, onMounted, onBeforeMount } from 'vue'
|
|
|
import { getPackingSideTable, getPackingTable } from '@/api/mes_api_gty/myapi'
|
|
import { getPackingSideTable, getPackingTable } from '@/api/mes_api_gty/myapi'
|
|
@@ -321,18 +349,86 @@ getTabdata();
|
|
|
|
|
|
|
|
// 自动化生成的字典(可能为空)以及字段
|
|
// 自动化生成的字典(可能为空)以及字段
|
|
|
const formData = ref({
|
|
const formData = ref({
|
|
|
- id: '',
|
|
|
|
|
- name: '',
|
|
|
|
|
- date: '',
|
|
|
|
|
- group: '',
|
|
|
|
|
- packingOutput: '',
|
|
|
|
|
- reworkOutput: '',
|
|
|
|
|
- pieceOutput: '',
|
|
|
|
|
- order: '',
|
|
|
|
|
- user: '',
|
|
|
|
|
- createTime: '',
|
|
|
|
|
- updateTime: '',
|
|
|
|
|
- uniqid: '',
|
|
|
|
|
|
|
+ sczl_rq: '',
|
|
|
|
|
+ sczl_gdbh1: '',
|
|
|
|
|
+ sczl_gdbh2: '',
|
|
|
|
|
+ sczl_gdbh3: '',
|
|
|
|
|
+ sczl_gdbh4: '',
|
|
|
|
|
+ sczl_gdbh5: '',
|
|
|
|
|
+ sczl_gdbh6: '',
|
|
|
|
|
+ sczl_yjGx1: '',
|
|
|
|
|
+ sczl_yjGx2: '',
|
|
|
|
|
+ sczl_yjGx3: '',
|
|
|
|
|
+ sczl_yjGx4: '',
|
|
|
|
|
+ sczl_yjGx5: '',
|
|
|
|
|
+ sczl_yjGx6: '',
|
|
|
|
|
+ sczl_cl1: '',
|
|
|
|
|
+ sczl_cl2: '',
|
|
|
|
|
+ sczl_cl3: '',
|
|
|
|
|
+ sczl_cl4: '',
|
|
|
|
|
+ sczl_cl5: '',
|
|
|
|
|
+ sczl_cl6: '',
|
|
|
|
|
+ sczl_PgCl1:'',
|
|
|
|
|
+ sczl_PgCl2: '',
|
|
|
|
|
+ sczl_PgCl3: '',
|
|
|
|
|
+ sczl_PgCl4: '',
|
|
|
|
|
+ sczl_PgCl5: '',
|
|
|
|
|
+ sczl_PgCl6: '',
|
|
|
|
|
+ Gd_cpmc1: '',
|
|
|
|
|
+ Gd_cpmc2: '',
|
|
|
|
|
+ Gd_cpmc3: '',
|
|
|
|
|
+ Gd_cpmc4: '',
|
|
|
|
|
+ Gd_cpmc5: '',
|
|
|
|
|
+ Gd_cpmc6: '',
|
|
|
|
|
+ sczl_clAdd1: '',
|
|
|
|
|
+ sczl_clAdd2: '',
|
|
|
|
|
+ sczl_clAdd3: '',
|
|
|
|
|
+ sczl_clAdd4: '',
|
|
|
|
|
+ sczl_clAdd5:'',
|
|
|
|
|
+ sczl_clAdd6: '',
|
|
|
|
|
+ UniqId:'000',
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const formData2 = ref({
|
|
|
|
|
+ UniqId:'000',
|
|
|
|
|
+ sczl_rq: '',
|
|
|
|
|
+ sczl_gdbh1: '',
|
|
|
|
|
+ sczl_gdbh2: '',
|
|
|
|
|
+ sczl_gdbh3: '',
|
|
|
|
|
+ sczl_gdbh4: '',
|
|
|
|
|
+ sczl_gdbh5: '',
|
|
|
|
|
+ sczl_gdbh6: '',
|
|
|
|
|
+ sczl_yjGx1: '',
|
|
|
|
|
+ sczl_yjGx2: '',
|
|
|
|
|
+ sczl_yjGx3: '',
|
|
|
|
|
+ sczl_yjGx4: '',
|
|
|
|
|
+ sczl_yjGx5: '',
|
|
|
|
|
+ sczl_yjGx6: '',
|
|
|
|
|
+ sczl_gxmc1: '',
|
|
|
|
|
+ sczl_gxmc2: '',
|
|
|
|
|
+ sczl_gxmc3: '',
|
|
|
|
|
+ sczl_gxmc4: '',
|
|
|
|
|
+ sczl_gxmc5: '',
|
|
|
|
|
+ sczl_gxmc6: '',
|
|
|
|
|
+ sczl_cl1: '',
|
|
|
|
|
+ sczl_cl2: '',
|
|
|
|
|
+ sczl_cl3: '',
|
|
|
|
|
+ sczl_cl4: '',
|
|
|
|
|
+ sczl_cl5: '',
|
|
|
|
|
+ sczl_cl6: '',
|
|
|
|
|
+ sczl_PgCl1:'',
|
|
|
|
|
+ sczl_PgCl2: '',
|
|
|
|
|
+ sczl_PgCl3: '',
|
|
|
|
|
+ sczl_PgCl4: '',
|
|
|
|
|
+ sczl_PgCl5: '',
|
|
|
|
|
+ sczl_PgCl6: '',
|
|
|
|
|
+ sczl_clAdd1: '',
|
|
|
|
|
+ sczl_clAdd2: '',
|
|
|
|
|
+ sczl_clAdd3: '',
|
|
|
|
|
+ sczl_clAdd4: '',
|
|
|
|
|
+ sczl_clAdd5:'',
|
|
|
|
|
+ sczl_clAdd6: '',
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
// 验证规则
|
|
// 验证规则
|
|
@@ -344,6 +440,8 @@ const elSearchFormRef = ref()
|
|
|
|
|
|
|
|
// =========== 表格控制部分 ===========
|
|
// =========== 表格控制部分 ===========
|
|
|
const tableData = reactive([])
|
|
const tableData = reactive([])
|
|
|
|
|
+const GxMctableData = reactive([])
|
|
|
|
|
+
|
|
|
const detailData = reactive([
|
|
const detailData = reactive([
|
|
|
{
|
|
{
|
|
|
gdbh: '2311736',
|
|
gdbh: '2311736',
|
|
@@ -467,6 +565,7 @@ const detailData = reactive([
|
|
|
},
|
|
},
|
|
|
])
|
|
])
|
|
|
const total=ref(0)
|
|
const total=ref(0)
|
|
|
|
|
+const inputname=ref(0)
|
|
|
const page = ref(1)
|
|
const page = ref(1)
|
|
|
const limit = ref(10)
|
|
const limit = ref(10)
|
|
|
const searchInfo = ref('')
|
|
const searchInfo = ref('')
|
|
@@ -484,6 +583,8 @@ const locatevalue={
|
|
|
}
|
|
}
|
|
|
let table=ref(5);
|
|
let table=ref(5);
|
|
|
let positionvalue=ref()
|
|
let positionvalue=ref()
|
|
|
|
|
+let GxMcvalue=ref()
|
|
|
|
|
+
|
|
|
// 分页设置
|
|
// 分页设置
|
|
|
const handleSizeChange = (val) => {
|
|
const handleSizeChange = (val) => {
|
|
|
limit.value = val;
|
|
limit.value = val;
|
|
@@ -491,6 +592,8 @@ const handleSizeChange = (val) => {
|
|
|
getTableData();
|
|
getTableData();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 页面跳转
|
|
// 页面跳转
|
|
|
const handleCurrentChange = (val) => {
|
|
const handleCurrentChange = (val) => {
|
|
|
page.value = val
|
|
page.value = val
|
|
@@ -520,6 +623,7 @@ const handleNodeClick = (node, check) => {
|
|
|
const Getlocate = async () => {
|
|
const Getlocate = async () => {
|
|
|
|
|
|
|
|
const response = await locate(locatevalue);
|
|
const response = await locate(locatevalue);
|
|
|
|
|
+ console.log(locatevalue)
|
|
|
console.log(response)
|
|
console.log(response)
|
|
|
if (response.code === 0) {
|
|
if (response.code === 0) {
|
|
|
tableData.splice(0, tableData.length, ...response.data.rows);
|
|
tableData.splice(0, tableData.length, ...response.data.rows);
|
|
@@ -527,9 +631,9 @@ const Getlocate = async () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const enterpositioning = async () => {
|
|
const enterpositioning = async () => {
|
|
|
- locatevalue.gdbh=positionvalue;
|
|
|
|
|
|
|
+ locatevalue.gdbh=positionvalue.value;
|
|
|
|
|
|
|
|
- console.log(locatevalue)
|
|
|
|
|
|
|
+ console.log(locatevalue.gdbh)
|
|
|
Getlocate()
|
|
Getlocate()
|
|
|
closepositioningVisible()
|
|
closepositioningVisible()
|
|
|
}
|
|
}
|
|
@@ -537,9 +641,94 @@ const enterpositioning = async () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
const getpickInfo = async (value) => {
|
|
const getpickInfo = async (value) => {
|
|
|
-
|
|
|
|
|
const response = await getInfo({UniqId:value});
|
|
const response = await getInfo({UniqId:value});
|
|
|
console.log(response)
|
|
console.log(response)
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
|
|
+ formData.value=response.data;
|
|
|
|
|
+ formData2.value=response.data;
|
|
|
|
|
+ console.log(formData2)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const GxMcedit = async () => {
|
|
|
|
|
+
|
|
|
|
|
+ console.log(formData2)
|
|
|
|
|
+ const response = await edit(formData2);
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
|
|
+ console.log(333)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const GetGxMc = async (value, num) => {
|
|
|
|
|
+ const response = await getGxMc({gdbh: value});
|
|
|
|
|
+ console.log(response);
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
|
|
+ if (response.data.length > 1) {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ GxMctableData.splice(0, GxMctableData.length, ...response.data);
|
|
|
|
|
+ getGxMcshow.value = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 取出 data 中的第一个元素
|
|
|
|
|
+ const item = response.data[0];
|
|
|
|
|
+
|
|
|
|
|
+ // 将数据拆分成变量名和内容
|
|
|
|
|
+ const variableName = Object.keys(item)[0]; // 变量名
|
|
|
|
|
+ const variableContent = item[variableName]; // 变量内容
|
|
|
|
|
+
|
|
|
|
|
+ const variableName1 = Object.keys(item)[1]; // 变量名
|
|
|
|
|
+ const variableContent1 = item[variableName1]; // 变量内容
|
|
|
|
|
+
|
|
|
|
|
+ const variableName2 = Object.keys(item)[2]; // 变量名
|
|
|
|
|
+ const variableContent2 = item[variableName2]; // 变量内容
|
|
|
|
|
+
|
|
|
|
|
+ console.log(variableContent2); // 输出生成的 Vue 代码
|
|
|
|
|
+
|
|
|
|
|
+ // 根据 response.data.length 的值动态给 formData 中的变量赋值
|
|
|
|
|
+ let Bname = 'Gd_cpmc' + num;
|
|
|
|
|
+ let Bname2= 'sczl_gxmc' + num;
|
|
|
|
|
+ let Bname3 = 'sczl_yjGx' + num;
|
|
|
|
|
+ formData.value[Bname] = variableContent; // 假设要赋的值是 123
|
|
|
|
|
+ formData.value[Bname2] = variableContent1;
|
|
|
|
|
+ formData.value[Bname3] = variableContent2;
|
|
|
|
|
+ console.log(formData.value[Bname]);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// const inputOnclick = (event, inputName) => {
|
|
|
|
|
+// if(formData.value.sczl_gdbh6.length!=7||formData.value.sczl_gdbh5.length!=7||formData.value.sczl_gdbh3.length!=7||formData.value.sczl_gdbh4.length!=7||formData.value.sczl_gdbh2.length!=7||formData.value.sczl_gdbh1.length!=7){
|
|
|
|
|
+// return false
|
|
|
|
|
+// }
|
|
|
|
|
+// // console.log(inputName);
|
|
|
|
|
+// let combinedString = 'formData.value.sczl_gdbh' + inputName;
|
|
|
|
|
+// // console.log(combinedString)
|
|
|
|
|
+// let variableName = 'sczl_gdbh'+inputName;
|
|
|
|
|
+// let variableValue = eval('formData.value.' + variableName);
|
|
|
|
|
+// console.log(variableValue)
|
|
|
|
|
+// // GetGxMc(combinedString)
|
|
|
|
|
+
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
|
|
+const getGxMcsubmit = (event, inputName) => {
|
|
|
|
|
+ if(formData.value.sczl_gdbh6.length!=7||formData.value.sczl_gdbh5.length!=7||formData.value.sczl_gdbh3.length!=7||formData.value.sczl_gdbh4.length!=7||formData.value.sczl_gdbh2.length!=7||formData.value.sczl_gdbh1.length!=7){
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ // console.log(inputName);
|
|
|
|
|
+ inputname.value=inputName
|
|
|
|
|
+ console.log(inputname.value)
|
|
|
|
|
+ let combinedString = 'formData.value.sczl_gdbh' + inputName;
|
|
|
|
|
+ // console.log(combinedString)
|
|
|
|
|
+ let variableName = 'sczl_gdbh'+inputName;
|
|
|
|
|
+ let variableValue = eval('formData.value.' + variableName);
|
|
|
|
|
+ console.log(variableValue)
|
|
|
|
|
+ GetGxMc(variableValue,inputName)
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 搜索
|
|
// 搜索
|
|
@@ -611,6 +800,7 @@ const updateCompanyFunc = async (row) => {
|
|
|
|
|
|
|
|
// 弹窗控制标记
|
|
// 弹窗控制标记
|
|
|
const positioningVisibleshow = ref(false)
|
|
const positioningVisibleshow = ref(false)
|
|
|
|
|
+const getGxMcshow = ref(false)
|
|
|
|
|
|
|
|
const positioningVisible = () => {
|
|
const positioningVisible = () => {
|
|
|
type.value = 'create'
|
|
type.value = 'create'
|
|
@@ -627,7 +817,9 @@ const closepositioningVisible = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+const closegetGxMcshow = () => {
|
|
|
|
|
+ getGxMcshow.value = false
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// 打开弹窗
|
|
// 打开弹窗
|
|
|
const openDialog = () => {
|
|
const openDialog = () => {
|
|
@@ -646,44 +838,47 @@ const closeDialog = () => {
|
|
|
}
|
|
}
|
|
|
// 弹窗确定
|
|
// 弹窗确定
|
|
|
const enterDialog = async () => {
|
|
const enterDialog = async () => {
|
|
|
- elFormRef.value?.validate( async (valid) => {
|
|
|
|
|
- if (!valid) return
|
|
|
|
|
- let res
|
|
|
|
|
- switch (type.value) {
|
|
|
|
|
- case 'create':
|
|
|
|
|
- res = await createCompany(formData.value)
|
|
|
|
|
- break
|
|
|
|
|
- case 'update':
|
|
|
|
|
- res = await updateCompany(formData.value)
|
|
|
|
|
- break
|
|
|
|
|
- default:
|
|
|
|
|
- res = await createCompany(formData.value)
|
|
|
|
|
- break
|
|
|
|
|
- }
|
|
|
|
|
- if (res.code === 0) {
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: '创建/更改成功'
|
|
|
|
|
- })
|
|
|
|
|
- closeDialog()
|
|
|
|
|
- getTableData()
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+
|
|
|
|
|
+ formData.value.UniqId=lastCellValue
|
|
|
|
|
+ GxMcedit()
|
|
|
|
|
+ // GxMcedit(lastCellValue)
|
|
|
|
|
+ // closeDialog()
|
|
|
|
|
+ // getTableData()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+let lastCellValue=ref()
|
|
|
// 双击表格操作
|
|
// 双击表格操作
|
|
|
-function doubleClick(row, column, event,rowIndex,columnIndex) {
|
|
|
|
|
|
|
+function doubleClick(row) {
|
|
|
|
|
|
|
|
- console.log(row, column, event);
|
|
|
|
|
|
|
+ // console.log(row, column, event);
|
|
|
// updateCompanyFunc(row);
|
|
// updateCompanyFunc(row);
|
|
|
type.value = 'update';
|
|
type.value = 'update';
|
|
|
dialogFormVisible.value = true
|
|
dialogFormVisible.value = true
|
|
|
- console.log(row[column.property])
|
|
|
|
|
- table.value=row[column.property]
|
|
|
|
|
- console.log(table.value)
|
|
|
|
|
|
|
+ lastCellValue= row['UniqId'];
|
|
|
|
|
+ console.log(lastCellValue)
|
|
|
|
|
+ table.value=lastCellValue
|
|
|
getpickInfo(table.value)
|
|
getpickInfo(table.value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+function GxMcdoubleClick(row) {
|
|
|
|
|
+
|
|
|
|
|
+ GxMcvalue=row
|
|
|
|
|
+ closegetGxMcshow()
|
|
|
|
|
+ console.log(GxMcvalue.Gd_cpmc)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 根据 response.data.length 的值动态给 formData 中的变量赋值
|
|
|
|
|
+ let Bname = 'Gd_cpmc' + inputname.value;
|
|
|
|
|
+ let Bname2= 'sczl_gxmc' + inputname.value;
|
|
|
|
|
+ let Bname3 = 'sczl_yjGx' + inputname.value;
|
|
|
|
|
+ formData.value[Bname] =GxMcvalue.Gd_cpmc; // 假设要赋的值是 123
|
|
|
|
|
+ formData.value[Bname2] = GxMcvalue.Gy0_gxmc;
|
|
|
|
|
+ formData.value[Bname3] = GxMcvalue.jyGx;
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 导出excel
|
|
// 导出excel
|
|
|
function exportExcel() {
|
|
function exportExcel() {
|
|
|
console.log('导出到excel');
|
|
console.log('导出到excel');
|