Browse Source

完善简易订单

zhanglei
yunuo970428 3 years ago
parent
commit
87393ba597
  1. 27
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue
  2. 10
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue
  3. 5
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzecheliang.vue
  4. 5
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang.vue
  5. 27
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue
  6. 19
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjinAdd.vue

27
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue

@ -4,8 +4,8 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button>
</div> </div>
</div> </div>
<div class=""> <div class="">
@ -81,7 +81,7 @@
<el-table-column align="center" label="序号" type="index" width="60"/> <el-table-column align="center" label="序号" type="index" width="60"/>
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.row,scope.$index)">删除 <el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -257,10 +257,8 @@ export default {
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
saveChe(this.temp).then((response) => { saveChe(this.temp).then((response) => {
this.FormLoading = true if (response.success) {
if (response.code === '200') { this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.FormLoading = false
this.$message({ showClose: true, type: 'success', message: '提交成功' })
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -269,6 +267,8 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.submitdisabled = false
} }
}) })
} }
@ -301,13 +301,8 @@ export default {
console.log('提交时sid', this.temp.sid) console.log('提交时sid', this.temp.sid)
// //
submitVehicleApprove(this.temp).then((response) => { submitVehicleApprove(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.$notify({ this.$message({ showClose: true, type: 'success', message: '提交成功' })
title: '提示',
message: '提交成功',
type: 'success',
duration: 2000
})
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -316,6 +311,8 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.submitdisabled = false
} }
}) })
} }
@ -349,7 +346,7 @@ export default {
} }
}, },
// //
handleDelete(row, index) { handleDelete(index) {
this.temp.carList.splice(index, 1) this.temp.carList.splice(index, 1)
}, },
// ------------ ------------ // ------------ ------------

10
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue

@ -447,7 +447,7 @@ export default {
this.temp.userSid = window.sessionStorage.getItem('userSid') this.temp.userSid = window.sessionStorage.getItem('userSid')
saveDing(this.temp).then((response) => { saveDing(this.temp).then((response) => {
if (response.success) { if (response.success) {
this.$message({ showClose: true, type: 'success', message: '修改成功' }) this.$message({ showClose: true, type: 'success', message: '保存成功' })
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -456,6 +456,8 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.submitdisabled = false
} }
}) })
} }
@ -496,11 +498,7 @@ export default {
} }
}, '*') }, '*')
} else { } else {
this.$notify({ this.submitdisabled = false
title: '提交失败',
message: response.msg,
type: 'error'
})
} }
}) })
} }

5
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/relation/xuanzecheliang.vue

@ -154,10 +154,8 @@ export default {
} else { } else {
this.listQuery.params.vinNoList = [] this.listQuery.params.vinNoList = []
} }
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
this.getcarbrand() this.getcarbrand()
this.handleReset()
}, },
// //
clicksearchShow() { clicksearchShow() {
@ -213,7 +211,6 @@ export default {
}) })
} }
}) })
this.getList()
}, },
// //
handleConfirm() { handleConfirm() {

5
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/com/xuanzecheliang.vue

@ -154,10 +154,8 @@ export default {
} else { } else {
this.listQuery.params.vinNoList = [] this.listQuery.params.vinNoList = []
} }
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
this.getcarbrand() this.getcarbrand()
this.handleReset()
}, },
// //
clicksearchShow() { clicksearchShow() {
@ -213,7 +211,6 @@ export default {
}) })
} }
}) })
this.getList()
}, },
// //
handleConfirm() { handleConfirm() {

27
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue

@ -82,7 +82,7 @@
<el-table-column align="center" label="序号" type="index" width="60"/> <el-table-column align="center" label="序号" type="index" width="60"/>
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.row,scope.$index)">删除 <el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -260,15 +260,11 @@ export default {
this.temp.staffSid = window.sessionStorage.getItem('staffSid') this.temp.staffSid = window.sessionStorage.getItem('staffSid')
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
saveChe(this.temp).then((response) => { saveChe(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.submitdisabled = false
title: '提示',
message: '添加失败',
type: 'error',
duration: 2000
})
} }
}) })
} }
@ -305,20 +301,11 @@ export default {
console.log('提交时sid', this.temp.sid) console.log('提交时sid', this.temp.sid)
// //
submitVehicleApprove(this.temp).then((response) => { submitVehicleApprove(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.$notify({ this.$message({ showClose: true, type: 'success', message: '提交成功' })
title: '提示',
message: '提交成功',
type: 'success',
duration: 2000
})
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.submitdisabled = false
title: '提交失败',
message: response.msg,
type: 'error'
})
} }
}) })
} }

19
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xunidingdan/xunidingjinAdd.vue

@ -449,15 +449,11 @@ export default {
this.temp.orgSid = window.sessionStorage.getItem('orgSid') this.temp.orgSid = window.sessionStorage.getItem('orgSid')
this.temp.userSid = window.sessionStorage.getItem('userSid') this.temp.userSid = window.sessionStorage.getItem('userSid')
saveDing(this.temp).then((response) => { saveDing(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.submitdisabled = false
title: '提示',
message: '添加失败',
type: 'error',
duration: 2000
})
} }
}) })
} }
@ -487,14 +483,11 @@ export default {
this.temp.userSid = window.sessionStorage.getItem('userSid') this.temp.userSid = window.sessionStorage.getItem('userSid')
// //
submitApprove(this.temp).then((response) => { submitApprove(this.temp).then((response) => {
if (response.code === '200') { if (response.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.submitdisabled = false
title: '提交失败',
message: response.msg,
type: 'error'
})
} }
}) })
} }

Loading…
Cancel
Save