工器具修改

This commit is contained in:
cwchen 2025-11-03 14:27:21 +08:00
parent 1287a9776e
commit 8d2eedeaf4
4 changed files with 75 additions and 37 deletions

View File

@ -156,8 +156,9 @@ export default {
//
if (response && response.msg) {
const msg = response.msg.replace(/\n/g, '<br>');
this.$alert(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>",
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + msg + "</div>",
"导入结果",
{
dangerouslyUseHTMLString: true,

View File

@ -3,7 +3,7 @@
<div class="app-container">
<div class="content-header">
<el-button class="reset-btn" @click="handleClose()">返回</el-button>
<!-- <el-button class="search-btn" @click="handleSave()">编辑</el-button> -->
<el-button class="edit-btn" @click="handleEdit()">编辑</el-button>
</div>
<div class="content-body">
<el-row :gutter="24" class="content-row">
@ -24,7 +24,7 @@
</div>
</template>
<script>
import { decryptWithSM4 } from '@/utils/sm'
import { encryptWithSM4, decryptWithSM4 } from '@/utils/sm'
import BasicInfoDetail from './child/BasicInfoDetail.vue'
import LegalPersonDetail from './child/LegalPersonDetail.vue'
import AccountOpeningCertificateDetail from './child/AccountOpeningCertificateDetail.vue'
@ -58,6 +58,16 @@ export default {
const res = await getDetailDataAPI({ enterpriseId: this.enterpriseId })
this.detailData = res.data;
},
//
handleEdit() {
this.$router.push({
name: 'EnterpriseEditForm',
query: {
type: encryptWithSM4('edit'),
enterpriseId: encryptWithSM4(this.detailData.enterpriseId + '' || '0'),
}
})
}
}
}
@ -105,22 +115,23 @@ export default {
gap: 12px;
}
.search-btn {
background: #409EFF;
border-color: #409EFF;
.edit-btn {
width: 98px;
height: 36px;
background: #EAA819;
box-shadow: 0px 4px 8px 0px rgba(255,156,51,0.5);
border-radius: 4px 4px 4px 4px;
border-color: #EAA819;
color: #fff;
font-weight: 600;
padding: 12px 24px;
border-radius: 6px;
box-shadow: 0px 4px 12px 0px rgba(64, 158, 255, 0.4);
letter-spacing: 0.5px;
font-size: 14px;
transition: all 0.3s ease;
&:hover {
background: #66b1ff;
border-color: #66b1ff;
box-shadow: 0px 6px 16px 0px rgba(64, 158, 255, 0.5);
background: #ffb733;
border-color: #ffb733;
box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6);
transform: translateY(-1px);
}
}

View File

@ -3,7 +3,7 @@
<div class="app-container">
<div class="content-header">
<el-button class="reset-btn" @click="handleClose">返回</el-button>
<!-- <el-button class="search-btn" @click="handleSave">保存</el-button> -->
<el-button class="edit-btn" @click="handleEdit">编辑</el-button>
</div>
<div class="content-body">
<el-row :gutter="24" class="content-row">
@ -136,11 +136,22 @@ export default {
}
}
},
//
handleEdit() {
this.$router.push({
name: 'PersonnelEditForm',
query: {
type: encryptWithSM4('edit'),
enterpriseId: encryptWithSM4(this.enterpriseId || '0'),
personnelId: encryptWithSM4(this.personnelId + '' || '0'),
}
})
},
//
handlePersonnelPosition(data) {
this.personnelPosition = data
},
}
}
</script>
@ -186,20 +197,24 @@ export default {
gap: 12px;
}
.search-btn {
.edit-btn {
width: 98px;
height: 36px;
background: #1F72EA;
box-shadow: 0px 4px 8px 0px rgba(51, 135, 255, 0.5);
border-radius: 4px;
border: none;
background: #EAA819;
box-shadow: 0px 4px 8px 0px rgba(255,156,51,0.5);
border-radius: 4px 4px 4px 4px;
border-color: #EAA819;
color: #fff;
font-weight: 600;
letter-spacing: 0.5px;
font-size: 14px;
transition: all 0.3s ease;
&:hover {
background: #4A8BFF;
box-shadow: 0px 6px 12px 0px rgba(51, 135, 255, 0.6);
background: #ffb733;
border-color: #ffb733;
box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6);
transform: translateY(-1px);
}
}

View File

@ -3,6 +3,7 @@
<div class="app-container">
<div class="content-header">
<el-button class="reset-btn" @click="handleClose()">返回</el-button>
<el-button class="edit-btn" @click="handleEdit">编辑</el-button>
</div>
<div class="content-body">
<el-row :gutter="24" class="content-row">
@ -66,6 +67,18 @@ export default {
this.detailData = res.data;
}
},
//
handleEdit() {
this.$router.push({
name: 'TechnicalEdit',
query: {
enterpriseId: encryptWithSM4(this.enterpriseId || '0'),
technicalSolutionTypeId: encryptWithSM4(this.technicalSolutionTypeId || '0'),
type: encryptWithSM4('edit'),
technicalSolutionId: encryptWithSM4(this.technicalSolutionId + '' || '0'),
}
})
},
},
}
</script>
@ -121,26 +134,24 @@ export default {
gap: 12px;
}
.search-btn {
.edit-btn {
width: 98px;
height: 36px;
background: #1F72EA;
box-shadow: 0px 4px 8px 0px rgba(51, 135, 255, 0.5);
border-radius: 4px;
border: none;
background: #EAA819;
box-shadow: 0px 4px 8px 0px rgba(255,156,51,0.5);
border-radius: 4px 4px 4px 4px;
border-color: #EAA819;
color: #fff;
font-weight: 600;
letter-spacing: 0.5px;
font-size: 14px;
transition: all 0.3s ease;
&:hover {
background: #4A8BFF;
box-shadow: 0px 6px 12px 0px rgba(51, 135, 255, 0.6);
}
// loading
&.is-loading {
opacity: 0.7;
pointer-events: none;
background: #ffb733;
border-color: #ffb733;
box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6);
transform: translateY(-1px);
}
}