@@ -15,84 +15,50 @@
-
-
+
+
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -119,17 +85,9 @@
验车情况说明
-
-
+
-
-
-
@@ -153,7 +111,7 @@ export default {
data() {
return {
viewTitle: '',
- isCheck:true,
+ isCheck: true,
// --按钮菜单-------
sid: '',
datas: null,
@@ -170,8 +128,9 @@ export default {
config: '',
model: '',
inspectedSid: '',
- modelDifferenceExplain:'',
- guaranteeCardNo:''
+ modelDifferenceExplain: '',
+ guaranteeCardNo: '',
+ engineNo: ''
}, // 添加和修改
dialogFormVisible: false, // 添加修改对话框状态
dialogFormShowVisible: false, // 查看对话框默认关闭状态
@@ -187,12 +146,12 @@ export default {
methods: {
// 输入数字正则
oninput(val, limit = 0) {
- val = val.replace(/[^\d.]/g, '') //保留数字
- val = val.replace(/^00/, '0.') //开头不能有两个0
- val = val.replace(/^\./g, '0.') //开头为小数点转换为0.
- val = val.replace(/\.{2,}/g, '.') //两个以上的小数点转换成一个
- val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); //只保留一个小数点
- /^0\d+/.test(val) ? val = val.slice(1) : '' //两位以上数字开头不能为0
+ val = val.replace(/[^\d.]/g, '') // 保留数字
+ val = val.replace(/^00/, '0.') // 开头不能有两个0
+ val = val.replace(/^\./g, '0.') // 开头为小数点转换为0.
+ val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个
+ val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点
+ /^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
@@ -208,7 +167,7 @@ export default {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
- console.log('点击验车跳转页面',row)
+ console.log('点击验车跳转页面', row)
this.dialogStatus = 'add'
this.viewTitle = '验车单'
const data = {
@@ -270,11 +229,11 @@ export default {
// this.getZuZhi()
// this.getUseOrg()
// },
- handleChecklist(){
+ handleChecklist() {
this.isCheck = false
this.$refs['divchecklist'].showCheck(this.temp.inspectedSid)
},
- resetState(){
+ resetState() {
this.isCheck = true
},
// 获得使用组织
@@ -333,8 +292,9 @@ export default {
config: '',
model: '',
inspectedSid: '',
- modelDifferenceExplain:'',
- guaranteeCardNo:''
+ modelDifferenceExplain: '',
+ guaranteeCardNo: '',
+ engineNo: ''
}
this.imgList01 = []
this.imgList02 = []
@@ -346,20 +306,20 @@ export default {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
- if (this.temp.carInspectedImage.length == 0) {
+ if (this.temp.carInspectedImage.length === 0) {
this.$message({
showClose: true,
message: '请上传验车相关照片!',
type: 'error'
- });
+ })
return
}
- if (this.temp.factoryImage.length == 0) {
+ if (this.temp.factoryImage.length === 0) {
this.$message({
showClose: true,
message: '请上传厂家验车单照片!',
type: 'error'
- });
+ })
return
}
// 只需添加和修改
@@ -368,12 +328,6 @@ export default {
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
- } else {
- // this.$message({
- // showClose: true,
- // message: '添加失败!',
- // type: 'error'
- // });
}
})
}
@@ -385,23 +339,23 @@ export default {
if (valid) {
submitCarInspectedInfo(this.temp).then((response) => {
this.FormLoading = false
- if (this.temp.carInspectedImage.length == 0) {
- this.$message({
- showClose: true,
- message: '请上传验车相关照片!',
- type: 'error'
- });
- return
- }
- console.log('照片02',this.temp.factoryImage)
- if (this.temp.factoryImage.length == 0) {
- this.$message({
- showClose: true,
- message: '请上传厂家验车单照片!',
- type: 'error'
- });
- return
- }
+ if (this.temp.carInspectedImage.length === 0) {
+ this.$message({
+ showClose: true,
+ message: '请上传验车相关照片!',
+ type: 'error'
+ })
+ return
+ }
+ console.log('照片02', this.temp.factoryImage)
+ if (this.temp.factoryImage.length === 0) {
+ this.$message({
+ showClose: true,
+ message: '请上传厂家验车单照片!',
+ type: 'error'
+ })
+ return
+ }
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
@@ -451,10 +405,12 @@ export default {
line-height: 40px !important;
font-weight: 600;
}
-.addinputw_copy{
+
+.addinputw_copy {
width: 92% !important;
}
-.formadd .last_btn{
+
+.formadd .last_btn {
float: right;
top: 30px;
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliInfo.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliInfo.vue
index a7ac24f5be..5830ccc332 100644
--- a/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliInfo.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliInfo.vue
@@ -13,43 +13,48 @@