录数据-临时修改

This commit is contained in:
bb_pan 2025-09-13 20:02:53 +08:00
parent 89bb45bc47
commit f3caba7cdc
2 changed files with 55 additions and 9 deletions

View File

@ -29,11 +29,11 @@ service.interceptors.request.use(
(config) => {
config.headers['Authorization'] = localStorage.getItem('tokenNew')
// 入参是否加密
config.headers['encryptRequest'] = 'true'
config.headers['encryptRequest'] = VITE_ENV == 'development' ? 'false' : 'true'
// 数据完整性校验
config.headers['checkIntegrity'] = 'true'
config.headers['checkIntegrity'] = VITE_ENV == 'development' ? 'false' : 'true'
// 回参是否加密
config.headers['encryptResponse'] = 'true'
config.headers['encryptResponse'] = VITE_ENV == 'development' ? 'false' : 'true'
// 对请求数据进行加密
if (config.method === 'get' && config.params) {

View File

@ -169,6 +169,8 @@ const equipmentDeployment = (row: any) => {
deviceTypeList: [],
deviceCount: 1,
originaValue: '',
itemTypeModel: '',
buyPrice: '',
unitName: '',
code: '',
brand: '',
@ -267,6 +269,8 @@ const getDetailData = async (row: any) => {
// deviceTypeList,
deviceCount,
originaValue,
itemTypeModel,
buyPrice,
unitName,
code,
brand,
@ -294,6 +298,8 @@ const getDetailData = async (row: any) => {
deviceName,
deviceCount,
originaValue,
itemTypeModel,
buyPrice,
unitName,
code,
brand,
@ -514,6 +520,8 @@ const equipmentDeploymentParams: any = ref({
deviceTypeList: [],
deviceCount: 1,
originaValue: '',
itemTypeModel: '',
buyPrice: '',
unitName: '',
code: '',
brand: '',
@ -592,6 +600,20 @@ const equipRules = ref({
trigger: 'blur',
},
],
buyPrice: [
{
required: true,
message: '请输入原值',
trigger: 'blur',
},
],
itemTypeModel: [
{
required: true,
message: '请输入规格型号',
trigger: 'blur',
},
],
deviceName: [
{
required: true,
@ -698,6 +720,7 @@ const submitBtn = async () => {
}
const submitFun = (type: any) => {
// type 1 () 2 稿() 3 4 稿
console.log('🚀 ~ submitFun ~ addAndEditForm:', addAndEditForm)
console.log(isAdd.value, isEditForm.value)
if (isAdd.value || isEditForm.value) {
addAndEditForm.mainFileList = Array.from(
@ -1032,6 +1055,8 @@ const addAndEditForm = reactive<any>({
deviceTypeList: [],
deviceCount: 1,
originaValue: '',
itemTypeModel: '',
buyPrice: '',
unitName: '',
code: '',
brand: '',
@ -1272,6 +1297,8 @@ const onDialogClose = () => {
deviceTypeList: [],
deviceCount: 1,
originaValue: '',
itemTypeModel: '',
buyPrice: '',
unitName: '',
code: '',
brand: '',
@ -1828,16 +1855,31 @@ const handleDel = (index: any) => {
/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="原值:" prop="originaValue">
<el-input
v-model="addAndEditForm.originaValue"
<!-- 临时录入使用 - start -->
<el-col :span="12">
<el-form-item label="原值:" prop="buyPrice">
<el-input-number
v-model="addAndEditForm.buyPrice"
placeholder="请输入原值"
clearable
maxlength="20"
:controls="false"
align="left"
style="width: 100%;"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="规格型号:" prop="itemTypeModel">
<el-input
v-model="addAndEditForm.itemTypeModel"
placeholder="请输入规格型号"
clearable
maxlength="11"
/>
</el-form-item>
</el-col> -->
</el-col>
<!-- 临时录入使用 - end -->
</el-row>
<!-- 1.13 需求变动要求隐藏 -->
<!-- <el-row :gutter="20">
@ -1883,7 +1925,8 @@ const handleDel = (index: any) => {
</el-form-item>
</el-col>
</el-row> -->
<div>
<!-- 临时录入暂时隐藏 - 2025年09月13日 -->
<div v-show="false">
<el-row
v-for="(item, index) in chunkedItems"
:key="index"
@ -2819,4 +2862,7 @@ const handleDel = (index: any) => {
background-color: #2fa18f !important;
border-color: #2fa18f !important;
}
::v-deep .el-input-number .el-input__inner {
text-align: left !important;
}
</style>