From d24862719714be5f76fb3dc81a3a3da8de4cc5a4 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 02 七月 2022 16:23:03 +0800
Subject: [PATCH] 关于打印功能的测试内容
---
src/views/jcsz/zzjg.vue | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/views/jcsz/zzjg.vue b/src/views/jcsz/zzjg.vue
index 235f4ac..140fd2a 100644
--- a/src/views/jcsz/zzjg.vue
+++ b/src/views/jcsz/zzjg.vue
@@ -107,7 +107,7 @@
>
<template slot-scope="{row}">
<div class="operationClass">
- <el-button type="text" @click="edit('edit',row)">淇敼</el-button>
+ <el-button type="text" @click="edit('edit',row)">缂栬緫</el-button>
<el-button type="text" @click="del(row.id)">鍒犻櫎</el-button>
</div>
</template>
@@ -128,10 +128,11 @@
</div>
<el-dialog
- :title="operation==='add'?'鏂板':'淇敼'"
+ :title="operation==='add'?'鏂板':'缂栬緫'"
:visible.sync="dialogVisible"
width="50%"
top="15vh"
+ :close-on-click-modal="false"
@closed="handleClose"
@close="handleClose"
>
@@ -150,7 +151,7 @@
</el-radio-group>
</el-form-item>
<el-form-item label="缁勭粐缂栫爜" prop="OrgCode">
- <el-input v-model="dialogForm.OrgCode" :disabled="operation!=='add'" style="width: 220px" />
+ <el-input v-model="dialogForm.OrgCode" disabled style="width: 220px" />
</el-form-item>
<el-form-item label="缁勭粐鍚嶇О" prop="OrgName">
<el-input v-model="dialogForm.OrgName" style="width: 220px" />
@@ -186,6 +187,7 @@
import Pagination from '@/components/Pagination'
import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz'
import { getCookie } from '@/utils/auth'
+import { getNewEncodingRules } from '@/utils/global'
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
@@ -215,6 +217,7 @@
return {
mainHeight: 0,
tableHeight: 0,
+ numvalue: 0,
form: {
OrgCode: '', // 缁勭粐鏋舵瀯浠g爜
OrgName: '', // 缁勭粐鏋舵瀯鍚嶇О
@@ -319,9 +322,13 @@
},
// 鏂板鎸夐挳
- add(operation) {
+ async add(operation) {
this.operation = operation
this.dialogVisible = true
+
+ const res = await getNewEncodingRules(getCookie('ruleCode'))
+ this.dialogForm.OrgCode = res.RightCode
+ this.numvalue = res.numvalue
},
// 淇敼鎸夐挳
edit(operation, row) {
@@ -382,6 +389,8 @@
OrganType: this.dialogFormOrgTypeSelected,
OrganCode: this.dialogForm.OrgCode,
OrganName: this.dialogForm.OrgName,
+ RightCode: this.operation === 'add' ? getCookie('ruleCode') : '',
+ numvalue: this.operation === 'add' ? this.numvalue : '',
SupUnit: this.dialogFormOrgTypeSelected === 'F' ? '0' : this.dialogForm.SupUnit,
OperType: this.operation === 'add' ? 'Add' : 'Update',
Operator: getCookie('admin')
--
Gitblit v1.9.3