This commit is contained in:
bb_pan 2025-03-19 14:46:21 +08:00
parent 5d87951337
commit 697538d222
9 changed files with 31 additions and 15 deletions

View File

@ -478,6 +478,9 @@ export default {
message: '请上传委托书',
trigger: 'change'
}
],
deviceType: [
{ required: true, message: '请选择类型规格', trigger: 'blur' }
]
},
maTypeList: [], //
@ -542,6 +545,19 @@ export default {
return this.maForm.bmFileInfos && this.maForm.bmFileInfos.length == 5
}
},
watch: {
equipmentList(newVal) {
if (newVal && newVal.length > 0) {
// deviceType
this.rules.deviceType = []
} else {
// deviceType
this.rules.deviceType = [{ required: true, message: '请选择类型规格', trigger: 'blur' }]
}
//
this.$refs.maForm.clearValidate('deviceType')
}
},
created() {
// getCode()
if (this.$route.query.type == 'edit') {

View File

@ -256,7 +256,7 @@
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="print"> </el-button>
<el-button type="primary" @click="">查看PDF</el-button>
<!-- <el-button type="primary" @click="">查看PDF</el-button> -->
<el-button @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>

View File

@ -187,12 +187,12 @@
:action="upload.url" style="width: 100%;" :file-list="fileList"
:on-success="handleSuccess" :on-error="handleError" :on-remove="handleFileRemove"
:before-upload="beforeUpload"
accept=".rar,.zip"
accept="image/*,.pdf,.doc,.docx"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
<div class="el-upload__tip text-center" slot="tip">
<span>按住Ctrl可同时多选支持上传rar/zip格式文件单个文件不能超过5M</span>
<span>按住Ctrl可同时多选支持上传PDFWord格式文件单个文件不能超过5M</span>
</div>
</el-upload>
<div slot="footer" class="dialog-footer">

View File

@ -4,8 +4,8 @@
<el-form-item prop="dateRange">
<el-date-picker
v-model="dateRange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">

View File

@ -4,8 +4,8 @@
<el-form-item prop="dateRange">
<el-date-picker
v-model="dateRange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">

View File

@ -4,8 +4,8 @@
<el-form-item prop="dateRange">
<el-date-picker
v-model="dateRange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">

View File

@ -4,8 +4,8 @@
<el-form-item prop="dateRange">
<el-date-picker
v-model="dateRange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">

View File

@ -4,8 +4,8 @@
<el-form-item prop="dateRange">
<el-date-picker
v-model="dateRange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">

View File

@ -36,13 +36,13 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://36.33.26.201:19988/prod-api`,
// target: `http://192.168.0.15:18080`,//马
target: `http://192.168.0.96:18080`,//马
// target: `http://192.168.0.244:18580`,//测试
// target: `http://192.168.2.223:18080`,//山
// target: `http://192.168.2.23:18080`,//洪
// target: `http://192.168.0.234:18080`, //阮
// target: `http://192.168.137.1:18080`,//
target: `http://192.168.0.15:18080`, // 韩傲宇
// target: `http://192.168.0.15:18080`, // 韩傲宇
// target: `http://192.168.0.60:18080`, // 赵福海
changeOrigin: true,
pathRewrite: {