|
@@ -12,6 +12,7 @@
|
|
|
v-model="dataFormD.fleetCompanyId"
|
|
|
filterable
|
|
|
remote
|
|
|
+ :disabled="doNot"
|
|
|
reserve-keyword
|
|
|
placeholder="请输入关键词"
|
|
|
:remote-method="handleSelect"
|
|
@@ -26,49 +27,49 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车牌号" prop="carNum" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.carNum" style="width: 200px" placeholder="车牌号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.carNum" style="width: 200px" :disabled="doNot" placeholder="车牌号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="驾驶员" prop="carNum" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.driverName" style="width: 200px" placeholder="驾驶员"></el-input>
|
|
|
+ <el-input v-model="dataFormD.driverName" style="width: 200px" :disabled="doNot" placeholder="驾驶员"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="挂号" prop="hangNum" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.hangNum" style="width: 200px" placeholder="挂号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.hangNum" style="width: 200px" :disabled="doNot" placeholder="挂号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="燃油类型" prop="fuelType" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.fuelType" style="width: 200px" placeholder="燃油类型"></el-input>
|
|
|
+ <el-input v-model="dataFormD.fuelType" style="width: 200px" :disabled="doNot" placeholder="燃油类型"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车辆类型" prop="carType" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.carType" style="width: 200px" placeholder="车辆类型"></el-input>
|
|
|
+ <el-input v-model="dataFormD.carType" style="width: 200px" :disabled="doNot" placeholder="车辆类型"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车辆名称" prop="carName" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.carName" style="width: 200px" placeholder="车辆名称"></el-input>
|
|
|
+ <el-input v-model="dataFormD.carName" style="width: 200px" :disabled="doNot" placeholder="车辆名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车辆品牌" prop="carBrand" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.carBrand" style="width: 200px" placeholder="车辆品牌"></el-input>
|
|
|
+ <el-input v-model="dataFormD.carBrand" style="width: 200px" :disabled="doNot" placeholder="车辆品牌"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="制造单位" prop="manufactureUnit" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.manufactureUnit" style="width: 200px" placeholder="制造单位"></el-input>
|
|
|
+ <el-input v-model="dataFormD.manufactureUnit" style="width: 200px" :disabled="doNot" placeholder="制造单位"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发证机关" prop="officeOfCertificate" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.officeOfCertificate" style="width: 200px" placeholder="发证机关"></el-input>
|
|
|
+ <el-input v-model="dataFormD.officeOfCertificate" style="width: 200px" :disabled="doNot" placeholder="发证机关"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="牵引车辆型号" prop="pullCarType" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.pullCarType" style="width: 200px" placeholder="牵引车辆型号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.pullCarType" style="width: 200px" :disabled="doNot" placeholder="牵引车辆型号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="牵引车车架号" prop="pullCarShelfNum" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.pullCarShelfNum" style="width: 200px" placeholder="牵引车车架号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.pullCarShelfNum" style="width: 200px" :disabled="doNot" placeholder="牵引车车架号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="挂车型号" prop="mountCarType" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.mountCarType" style="width: 200px" placeholder="挂车型号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.mountCarType" style="width: 200px" :disabled="doNot" placeholder="挂车型号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="挂车车架号" prop="mountCarNum" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.mountCarNum" style="width: 200px" placeholder="挂车车架号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.mountCarNum" style="width: 200px" :disabled="doNot" placeholder="挂车车架号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发动机型号" prop="engine" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.engine" style="width: 200px" placeholder="发动机型号"></el-input>
|
|
|
+ <el-input v-model="dataFormD.engine" style="width: 200px" :disabled="doNot" placeholder="发动机型号"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="核载人数" prop="carLoadPersion" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.carLoadPersion" style="width: 200px" placeholder="核载人数"></el-input>
|
|
|
+ <el-input v-model="dataFormD.carLoadPersion" style="width: 200px" :disabled="doNot" placeholder="核载人数"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="购车日期" prop="buyCarDate" style="width: 325px">
|
|
|
<!-- <el-input v-model="dataForm.buyCarDate" placeholder="购车日期"></el-input>-->
|
|
@@ -77,6 +78,7 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
v-model="dataFormD.buyCarDate"
|
|
|
type="date"
|
|
|
+ :disabled="doNot"
|
|
|
placeholder="创建时间"
|
|
|
>
|
|
|
</el-date-picker>
|
|
@@ -88,6 +90,7 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
v-model="dataFormD.regiestDate"
|
|
|
type="date"
|
|
|
+ :disabled="doNot"
|
|
|
placeholder="创建时间"
|
|
|
>
|
|
|
</el-date-picker>
|
|
@@ -99,21 +102,22 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
v-model="dataFormD.abandonDate"
|
|
|
type="date"
|
|
|
+ :disabled="doNot"
|
|
|
placeholder="创建时间"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="外阔尺寸mm" prop="outerSize" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.outerSize" style="width: 200px" placeholder="外阔尺寸mm"></el-input>
|
|
|
+ <el-input v-model="dataFormD.outerSize" style="width: 200px" :disabled="doNot" placeholder="外阔尺寸mm"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="总重量kg" prop="sumWeight" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.sumWeight" style="width: 200px" placeholder="总重量kg"></el-input>
|
|
|
+ <el-input v-model="dataFormD.sumWeight" style="width: 200px" :disabled="doNot" placeholder="总重量kg"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="核定重量kg" prop="vouchWeight" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.vouchWeight" style="width: 200px" placeholder="核定重量kg"></el-input>
|
|
|
+ <el-input v-model="dataFormD.vouchWeight" style="width: 200px" :disabled="doNot" placeholder="核定重量kg"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="装备质量kg" prop="equipWeight" style="width: 325px">
|
|
|
- <el-input v-model="dataFormD.equipWeight" style="width: 200px" placeholder="装备质量kg"></el-input>
|
|
|
+ <el-input v-model="dataFormD.equipWeight" style="width: 200px" :disabled="doNot" placeholder="装备质量kg"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-collapse accordion>
|
|
@@ -132,8 +136,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[0].attachUrl" @click="preview(0)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[0].attachUrl" @click="preview(0)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="运营证头图片" style="width: 100%;">
|
|
@@ -148,8 +152,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[2].attachUrl" @click="preview(2)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[2].attachUrl" @click="preview(2)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="营运挂载图片" style="width: 100%;">
|
|
@@ -164,8 +168,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[4].attachUrl" @click="preview(4)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[4].attachUrl" @click="preview(4)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="二级维护图片" style="width: 100%;">
|
|
@@ -180,8 +184,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[6].attachUrl" @click="preview(6)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[6].attachUrl" @click="preview(6)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="承运人保险图片" style="width: 100%;">
|
|
@@ -196,8 +200,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[8].attachUrl" @click="preview(8)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[8].attachUrl" @click="preview(8)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -214,8 +218,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[1].attachUrl" @click="preview(1)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[1].attachUrl" @click="preview(1)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="技术评定证书图片" style="width: 100%;">
|
|
@@ -230,8 +234,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[3].attachUrl" @click="preview(3)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[3].attachUrl" @click="preview(3)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="二级维护图片" style="width: 100%;">
|
|
@@ -246,8 +250,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[5].attachUrl" @click="preview(5)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[5].attachUrl" @click="preview(5)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商业保险图片1" style="width: 100%;">
|
|
@@ -262,8 +266,8 @@
|
|
|
:limit="1"
|
|
|
:headers="headers"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <el-button size="small" type="primary" v-if="fTmsorderbillsattachs[7].attachUrl" @click="preview(7)">预览</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" :disabled="doNot" type="primary" v-if="fTmsorderbillsattachs[7].attachUrl" @click="preview(7)">预览</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -271,9 +275,9 @@
|
|
|
</el-form>
|
|
|
</el-collapse>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="info">修改</el-button>
|
|
|
+ <el-button type="info" @click="handleUpdata">修改</el-button>
|
|
|
<el-button @click="visible = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="dataFormSubmit">确定</el-button>
|
|
|
+ <el-button type="primary" :disabled="doNot" @click="dataFormSubmit">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -302,6 +306,7 @@ export default {
|
|
|
{attachUrl:'',attachName:'',actId:''},
|
|
|
{attachUrl:'',attachName:'',actId:''},
|
|
|
],
|
|
|
+ doNot:true,
|
|
|
imageUrl: '',
|
|
|
dataFormD: {},
|
|
|
visible: false,
|
|
@@ -322,59 +327,48 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleUpdata(){
|
|
|
+ this.doNot = false
|
|
|
+ },
|
|
|
handleAvatarSuccess(actid,res, file) {
|
|
|
console.log(actid)
|
|
|
switch (actid){
|
|
|
case 1:
|
|
|
- this.$set(this.fTmsorderbillsattachs[0], 'actId', actid)
|
|
|
- this.$set(this.fTmsorderbillsattachs[0], 'attachUrl', res.url)
|
|
|
- this.$set(this.fTmsorderbillsattachs[0], 'attachName', res.fileName)
|
|
|
- console.log(this.fTmsorderbillsattachs)
|
|
|
+ this.simplification(0)
|
|
|
break
|
|
|
case 2:
|
|
|
- this.fTmsorderbillsattachs[1].actId = actid
|
|
|
- this.fTmsorderbillsattachs[1].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[1].attachName = res.fileName
|
|
|
+ this.simplification(1)
|
|
|
break
|
|
|
case 3:
|
|
|
- this.fTmsorderbillsattachs[2].actId = actid
|
|
|
- this.fTmsorderbillsattachs[2].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[2].attachName = res.fileName
|
|
|
+ this.simplification(2)
|
|
|
break
|
|
|
case 4:
|
|
|
- this.fTmsorderbillsattachs[3].actId = actid
|
|
|
- this.fTmsorderbillsattachs[3].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[3].attachName = res.fileName
|
|
|
+ this.simplification(3)
|
|
|
break
|
|
|
case 5:
|
|
|
- this.fTmsorderbillsattachs[4].actId = actid
|
|
|
- this.fTmsorderbillsattachs[4].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[4].attachName = res.fileName
|
|
|
+ this.simplification(4)
|
|
|
break
|
|
|
case 6:
|
|
|
- this.fTmsorderbillsattachs[5].actId = actid
|
|
|
- this.fTmsorderbillsattachs[5].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[5].attachName = res.fileName
|
|
|
+ this.simplification(5)
|
|
|
break
|
|
|
case 7:
|
|
|
- this.fTmsorderbillsattachs[6].actId = actid
|
|
|
- this.fTmsorderbillsattachs[6].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[6].attachName = res.fileName
|
|
|
+ this.simplification(6)
|
|
|
break
|
|
|
case 8:
|
|
|
- this.fTmsorderbillsattachs[7].actId = actid
|
|
|
- this.fTmsorderbillsattachs[7].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[7].attachName = res.fileName
|
|
|
+ this.simplification(7)
|
|
|
break
|
|
|
case 9:
|
|
|
- this.fTmsorderbillsattachs[8].actId = actid
|
|
|
- this.fTmsorderbillsattachs[8].attachUrl = res.url
|
|
|
- this.fTmsorderbillsattachs[8].attachName = res.fileName
|
|
|
+ this.simplification(8)
|
|
|
break
|
|
|
default:
|
|
|
this.$message.error('未知错误,请稍后再试');
|
|
|
}
|
|
|
},
|
|
|
+ simplification(index){
|
|
|
+ this.fTmsorderbillsattachs[index].actId = actid
|
|
|
+ this.fTmsorderbillsattachs[index].attachUrl = res.url
|
|
|
+ this.fTmsorderbillsattachs[index].attachName = res.fileName
|
|
|
+ },
|
|
|
handleRemove(actid,file, fileList) {
|
|
|
this.fTmsorderbillsattachs[actid].attachUrl = ''
|
|
|
this.fTmsorderbillsattachs[actid].attachName = ''
|
|
@@ -393,6 +387,7 @@ export default {
|
|
|
this.visible = true
|
|
|
if (this.dataForm.Id) {
|
|
|
lookOver(this.dataForm.Id).then(data => {
|
|
|
+ this.doNot = true
|
|
|
console.log(data)
|
|
|
this.dataFormD = data.data.fleetCarManage
|
|
|
this.fTmsorderbillsattachs = data.data.fTmsorderbillsattachs
|
|
@@ -401,6 +396,42 @@ export default {
|
|
|
this.handleSelect()
|
|
|
}
|
|
|
})
|
|
|
+ }else {
|
|
|
+ this.dataFormD = {
|
|
|
+ fleetCompanyId:'',
|
|
|
+ carNum:'',
|
|
|
+ driverName:'',
|
|
|
+ hangNum:'',
|
|
|
+ fuelType:'',
|
|
|
+ carType:'',
|
|
|
+ carName:'',
|
|
|
+ carBrand:'',
|
|
|
+ manufactureUnit:'',
|
|
|
+ officeOfCertificate:'',
|
|
|
+ pullCarType:'',
|
|
|
+ pullCarShelfNum:'',
|
|
|
+ mountCarType:'',
|
|
|
+ mountCarNum:'',
|
|
|
+ engine:'',
|
|
|
+ carLoadPersion:'',
|
|
|
+ buyCarDate:'',
|
|
|
+ regiestDate:'',
|
|
|
+ abandonDate:'',
|
|
|
+ outerSize:'',
|
|
|
+ sumWeight:'',
|
|
|
+ vouchWeight:'',
|
|
|
+ equipWeight:''
|
|
|
+ }
|
|
|
+ this.fTmsorderbillsattachs = [{attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''},
|
|
|
+ {attachUrl:'',attachName:'',actId:''}]
|
|
|
+ this.doNot = false
|
|
|
}
|
|
|
},
|
|
|
preview(actid){
|