Browse Source

车辆台账查看已买断

master
Zhao Qiqi 3 years ago
parent
commit
7bf768fb91
  1. 14
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue
  2. 24
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMaiInfo.vue
  3. 16
      anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/vehiclechecklistInfo.vue
  4. 4
      anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

14
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue

@ -112,7 +112,7 @@
<!-- 出库 -->
<cheliangtaizhang-chu v-show="viewState == 6" ref="divChu" @doback="resetState"/>
<!-- 买断 -->
<cheliangtaizhang-mai v-show="viewState == 7" ref="divMai" @doback="resetState"/>
<cheliangtaizhang-mai v-show="viewState == 7" ref="divMai" @doback="resetState" @reloadlist="getList"/>
<!-- 买断详情 -->
<cheliangtaizhang-mai-info v-show="viewState == 8" ref="divMaiInfo" @doback="resetState"/>
</div>
@ -510,8 +510,16 @@ export default {
},
//
handleCheckMai(row) {
this.viewState = 8
this.$refs['divMaiInfo'].showMaiInfo(row)
if (row.settlementStatus == '已买断'){
this.viewState = 8
this.$refs['divMaiInfo'].showMaiInfo(row)
}else {
this.$message({
showClose: true,
message: '该车辆非已买断车辆!',
type: 'error'
})
}
},
//
createData() {

24
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMaiInfo.vue

@ -40,13 +40,12 @@
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<el-form-item><!--v-for="(item,index) in temp.commonAppendix"-->
<el-image
style="width: 178px;height: 178px;"
v-for="(item,index) in temp.commonAppendix"
:key="index"
:src="item"
:preview-src-list="temp.commonAppendix">
:key="temp.path"
:src="temp.path"
:preview-src-list="imgList">
</el-image>
<!-- <upload ref="uploadImg" v-model="imgList" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>-->
</el-form-item>
@ -59,6 +58,7 @@
<script>
import Upload from '@/components/uploadFile/upload_maiduan.vue'
import { vehicleBuyBreakInfo } from '@/api/cheliang/basevehicle'
export default {
name: 'cheliangtaizhangMai',
@ -68,7 +68,7 @@ export default {
data() {
return {
temp: {
commonAppendix: {},
commonAppendix: [],
solidDate: '',
vehicleSid: [],
vinNo: ''
@ -80,12 +80,12 @@ export default {
},
methods: {
showMaiInfo(row) {
// details(row.sid).then((response) => {
// console.log('', response)
// if (response.code === '200') {
// this.temp = response.data
// }
// })
vehicleBuyBreakInfo(row.sid).then((response) => {
if (response.code === '200') {
this.temp = response.data
this.imgList.push(this.temp.path)
}
})
},
//
handleReturn(isreload) {

16
anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/vehiclechecklistInfo.vue

@ -41,7 +41,7 @@
<!-- :autosize="{ minRows: 2, maxRows: 8 }"></el-input>-->
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="left" width="570">
<el-table-column label="操作" header-align="center" align="left" width="360">
<template slot-scope="scope">
<div v-if="scope.row.itemImgVoList.length > 0">
<div class="operate" v-for="(item,index) in scope.row.itemImgVoList">
@ -52,12 +52,12 @@
<el-button type="primary" size="small"
@click="handleLookImg(scope.row.itemImgVoList[index].imgUrlList)">查看
</el-button>
<div class="upload_img"> <!-- @change="getUrl($event, index,scope.$index)" -->
<upload_jianchabiao ref="uploadMoreImg"
v-model="scope.row.itemImgVoList[index].imgUrlList"
:limit="1" bucket="map"
:upload-data="{type:'0001'}"/>
</div>
<!-- <div class="upload_img"> &lt;!&ndash; @change="getUrl($event, index,scope.$index)" &ndash;&gt;-->
<!-- <upload_jianchabiao ref="uploadMoreImg"-->
<!-- v-model="scope.row.itemImgVoList[index].imgUrlList"-->
<!-- :limit="1" bucket="map"-->
<!-- :upload-data="{type:'0001'}"/>-->
<!-- </div>-->
<!-- <el-button type="primary" size="small" @click="handleUpload">上传</el-button>-->
<el-button type="primary" size="small"
@click="handleExample(scope.row.itemImgVoList[index].imgPathList)">图片示例
@ -103,7 +103,7 @@
</template>
<script>
import { getVehinspectItemInfo, saveResultImage } from '@/api/supplychain/yancheguanli'
import { getVehinspectItemInfo } from '@/api/supplychain/yancheguanli'
import upload_jianchabiao from '@/components/uploadFile/upload_jianchabiao'
export default {

4
anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

@ -20,7 +20,7 @@
v-model="temp.vin"
placeholder="请输入车架号"
class="addinputw"
:readonly="temp.purchaseKey !== '01'"
:readonly="temp.purchaseKey !== '001' && temp.purchaseKey !== '002'"
/>
</el-form-item>
</el-col>
@ -210,7 +210,7 @@ export default {
this.temp.config = res.data.config
this.temp.model = res.data.model
this.temp.inspectedSid = res.data.inspectedSid
this.temp.purchaseKey = res.data.purchaseKey
this.temp.purchaseKey = res.data.purchaseKey //
if (this.temp.carInspectedImage.length > 0) {
for (var i = 0; i < this.temp.carInspectedImage.length; i++) {
const imgName = this.temp.carInspectedImage[i].split('/')

Loading…
Cancel
Save