工器具修改

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) { if (response && response.msg) {
const msg = response.msg.replace(/\n/g, '<br>');
this.$alert( 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, dangerouslyUseHTMLString: true,

View File

@ -3,28 +3,28 @@
<div class="app-container"> <div class="app-container">
<div class="content-header"> <div class="content-header">
<el-button class="reset-btn" @click="handleClose()">返回</el-button> <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>
<div class="content-body"> <div class="content-body">
<el-row :gutter="24" class="content-row"> <el-row :gutter="24" class="content-row">
<!-- 基本信息 --> <!-- 基本信息 -->
<el-col :span="6" class="pane-left"> <el-col :span="6" class="pane-left">
<BasicInfoDetail ref="basicInfoDetail" :detailData="detailData"/> <BasicInfoDetail ref="basicInfoDetail" :detailData="detailData" />
</el-col> </el-col>
<!-- 法人信息 --> <!-- 法人信息 -->
<el-col :span="6" class="pane-center"> <el-col :span="6" class="pane-center">
<LegalPersonDetail ref="legalPersonDetail" :detailData="detailData"/> <LegalPersonDetail ref="legalPersonDetail" :detailData="detailData" />
</el-col> </el-col>
<!-- 开户证明 --> <!-- 开户证明 -->
<el-col :span="6" class="pane-right"> <el-col :span="6" class="pane-right">
<AccountOpeningCertificateDetail ref="accountOpeningCertificateDetail" :detailData="detailData"/> <AccountOpeningCertificateDetail ref="accountOpeningCertificateDetail" :detailData="detailData" />
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { decryptWithSM4 } from '@/utils/sm' import { encryptWithSM4, decryptWithSM4 } from '@/utils/sm'
import BasicInfoDetail from './child/BasicInfoDetail.vue' import BasicInfoDetail from './child/BasicInfoDetail.vue'
import LegalPersonDetail from './child/LegalPersonDetail.vue' import LegalPersonDetail from './child/LegalPersonDetail.vue'
import AccountOpeningCertificateDetail from './child/AccountOpeningCertificateDetail.vue' import AccountOpeningCertificateDetail from './child/AccountOpeningCertificateDetail.vue'
@ -58,6 +58,16 @@ export default {
const res = await getDetailDataAPI({ enterpriseId: this.enterpriseId }) const res = await getDetailDataAPI({ enterpriseId: this.enterpriseId })
this.detailData = res.data; 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; gap: 12px;
} }
.search-btn { .edit-btn {
background: #409EFF; width: 98px;
border-color: #409EFF; 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; color: #fff;
font-weight: 600; 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; letter-spacing: 0.5px;
font-size: 14px; font-size: 14px;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
background: #66b1ff; background: #ffb733;
border-color: #66b1ff; border-color: #ffb733;
box-shadow: 0px 6px 16px 0px rgba(64, 158, 255, 0.5); box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6);
transform: translateY(-1px); transform: translateY(-1px);
} }
} }

View File

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