录数据-临时修改
This commit is contained in:
parent
89bb45bc47
commit
f3caba7cdc
|
|
@ -29,11 +29,11 @@ service.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
config.headers['Authorization'] = localStorage.getItem('tokenNew')
|
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) {
|
if (config.method === 'get' && config.params) {
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,8 @@ const equipmentDeployment = (row: any) => {
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
originaValue: '',
|
originaValue: '',
|
||||||
|
itemTypeModel: '',
|
||||||
|
buyPrice: '',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -267,6 +269,8 @@ const getDetailData = async (row: any) => {
|
||||||
// deviceTypeList,
|
// deviceTypeList,
|
||||||
deviceCount,
|
deviceCount,
|
||||||
originaValue,
|
originaValue,
|
||||||
|
itemTypeModel,
|
||||||
|
buyPrice,
|
||||||
unitName,
|
unitName,
|
||||||
code,
|
code,
|
||||||
brand,
|
brand,
|
||||||
|
|
@ -294,6 +298,8 @@ const getDetailData = async (row: any) => {
|
||||||
deviceName,
|
deviceName,
|
||||||
deviceCount,
|
deviceCount,
|
||||||
originaValue,
|
originaValue,
|
||||||
|
itemTypeModel,
|
||||||
|
buyPrice,
|
||||||
unitName,
|
unitName,
|
||||||
code,
|
code,
|
||||||
brand,
|
brand,
|
||||||
|
|
@ -514,6 +520,8 @@ const equipmentDeploymentParams: any = ref({
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
originaValue: '',
|
originaValue: '',
|
||||||
|
itemTypeModel: '',
|
||||||
|
buyPrice: '',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -592,6 +600,20 @@ const equipRules = ref({
|
||||||
trigger: 'blur',
|
trigger: 'blur',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
buyPrice: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入原值',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
itemTypeModel: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入规格型号',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
deviceName: [
|
deviceName: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
|
@ -698,6 +720,7 @@ const submitBtn = async () => {
|
||||||
}
|
}
|
||||||
const submitFun = (type: any) => {
|
const submitFun = (type: any) => {
|
||||||
// type 1 提交(新增时) 2 存草稿(新增时) 3 编辑时的提交 4 编辑时存草稿
|
// type 1 提交(新增时) 2 存草稿(新增时) 3 编辑时的提交 4 编辑时存草稿
|
||||||
|
console.log('🚀 ~ submitFun ~ addAndEditForm:', addAndEditForm)
|
||||||
console.log(isAdd.value, isEditForm.value)
|
console.log(isAdd.value, isEditForm.value)
|
||||||
if (isAdd.value || isEditForm.value) {
|
if (isAdd.value || isEditForm.value) {
|
||||||
addAndEditForm.mainFileList = Array.from(
|
addAndEditForm.mainFileList = Array.from(
|
||||||
|
|
@ -1032,6 +1055,8 @@ const addAndEditForm = reactive<any>({
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
originaValue: '',
|
originaValue: '',
|
||||||
|
itemTypeModel: '',
|
||||||
|
buyPrice: '',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -1272,6 +1297,8 @@ const onDialogClose = () => {
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
originaValue: '',
|
originaValue: '',
|
||||||
|
itemTypeModel: '',
|
||||||
|
buyPrice: '',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -1828,16 +1855,31 @@ const handleDel = (index: any) => {
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="12">
|
<!-- 临时录入使用 - start -->
|
||||||
<el-form-item label="原值:" prop="originaValue">
|
<el-col :span="12">
|
||||||
<el-input
|
<el-form-item label="原值:" prop="buyPrice">
|
||||||
v-model="addAndEditForm.originaValue"
|
<el-input-number
|
||||||
|
v-model="addAndEditForm.buyPrice"
|
||||||
placeholder="请输入原值"
|
placeholder="请输入原值"
|
||||||
clearable
|
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"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
|
<!-- 临时录入使用 - end -->
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- 1.13 需求变动要求隐藏 -->
|
<!-- 1.13 需求变动要求隐藏 -->
|
||||||
<!-- <el-row :gutter="20">
|
<!-- <el-row :gutter="20">
|
||||||
|
|
@ -1883,7 +1925,8 @@ const handleDel = (index: any) => {
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row> -->
|
</el-row> -->
|
||||||
<div>
|
<!-- 临时录入暂时隐藏 - 2025年09月13日 -->
|
||||||
|
<div v-show="false">
|
||||||
<el-row
|
<el-row
|
||||||
v-for="(item, index) in chunkedItems"
|
v-for="(item, index) in chunkedItems"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|
@ -2819,4 +2862,7 @@ const handleDel = (index: any) => {
|
||||||
background-color: #2fa18f !important;
|
background-color: #2fa18f !important;
|
||||||
border-color: #2fa18f !important;
|
border-color: #2fa18f !important;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-input-number .el-input__inner {
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue