Browse Source

销售订单

master
Zhao Qiqi 3 years ago
parent
commit
611da58a65
  1. 103
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue
  2. 223
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue
  3. 9
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanInfo.vue
  4. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanSubmit.vue

103
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue

@ -70,10 +70,7 @@
:disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '' ? false : true" :disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '' ? false : true"
@click="changeNodeState(scope.row)">办理 @click="changeNodeState(scope.row)">办理
</el-button> </el-button>
<el-button size="small" type="primary" <el-button size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button>
:disabled="scope.row.nodeState == '' ? false : true"
@click="handleCheck(scope.row)">查看
</el-button>
<!-- <el-button size="small" type="primary" @click="printContract(scope.row)">打印合同</el-button>--> <!-- <el-button size="small" type="primary" @click="printContract(scope.row)">打印合同</el-button>-->
</div> </div>
</template> </template>
@ -152,10 +149,10 @@
</template> </template>
<script> <script>
import { delBySids, dictType, getListOrg, getListPage } from '@/api/salesManagement/orderManagement' import {delBySids, dictType, getListOrg, getListPage} from '@/api/salesManagement/orderManagement'
import { submitSales, updateSales } from '@/api/portal/workFlow' import {submitSales, updateSales} from '@/api/portal/workFlow'
import { loginDetails } from '@/api/dictcommons/basemanufacturer' import {loginDetails} from '@/api/dictcommons/basemanufacturer'
import { getStorage } from '@/utils/auth' import {getStorage} from '@/utils/auth'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import divAdd from './xiaoshoudingdanAdd.vue' import divAdd from './xiaoshoudingdanAdd.vue'
@ -208,12 +205,13 @@ export default {
current: 1, current: 1,
size: 20, size: 20,
params: { params: {
customerName: '', createDateEnd: '', //
modelName: '', createDateStart: '', //
orgName: '', customerName: '', //
payType: '', modelName: '', //
saleType: '', orgName: '', //
staffName: '' payTypeKey: '',
staffSid: window.sessionStorage.getItem('staffSid'), //sid
} }
}, },
temp: { temp: {
@ -245,7 +243,6 @@ export default {
// ------------------ // ------------------
resetState() { resetState() {
this.visible = true this.visible = true
this.getList()
}, },
xiaoshouhetong(row) { xiaoshouhetong(row) {
console.log('9511', row) console.log('9511', row)
@ -255,7 +252,7 @@ export default {
// //
handleCheck(row) { handleCheck(row) {
this.visible = false this.visible = false
this.$refs['dingdanxinxiinfo'].showInfo(row.billNo) this.$refs['dingdanxinxiinfo'].showInfo(row.sid)
}, },
// //
handleCreate(row) { handleCreate(row) {
@ -412,78 +409,48 @@ export default {
submitSales(this.submitDto).then((response) => { submitSales(this.submitDto).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.updateDto.nodeState = response.data.nodeState this.updateDto.nodeState = response.data.nodeState
this.$notify({
title: '提示',
message: '添加成功',
type: 'success',
duration: 2000
})
//
this.updateDto.sid = this.sids[0]
updateSales(this.updateDto).then((response) => {
if (response.code === '200') {
this.$notify({
title: '提示',
message: '更新成功',
type: 'success',
duration: 2000
})
this.getList()
} else {
this.$notify({
title: '更新失败',
message: response.msg,
type: 'error'
})
}
})
} else { } else {
this.$notify({ this.$message({
title: '添加失败', showClose: true,
message: response.msg, message: '提交失败!',
type: 'error' type: 'error'
}) });
} }
}) })
}) })
} else if (this.sids.length == 0) { } else if (this.sids.length == 0) {
this.$notify({ this.$message({
title: '您还未选择,请选择数据!!!', showClose: true,
message: '您还未选择,请选择数据!',
type: 'error' type: 'error'
}) });
} else if (this.sids.length > 1) { } else if (this.sids.length > 1) {
this.$notify({ this.$message({
title: '您选择的数据过多,请选择一条数据编辑!!', showClose: true,
message: '您选择的数据过多,请选择一条数据编辑!',
type: 'error' type: 'error'
}) });
} }
}, },
// sid // sid
handleDelete() { handleDelete() {
if (this.sids.length === 0) { if (this.sids.length === 0) {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '没有选择!!', message: '请选择数据!',
type: 'warning', type: 'error'
duration: 2000 });
})
return return
} }
delBySids(this.sids.join(',')).then((response) => { delBySids(this.sids).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.$notify({
title: '提示',
message: '删除成功',
type: 'success',
duration: 2000
})
this.getList() this.getList()
} else { } else {
this.$notify({ this.$message({
title: '删除失败', showClose: true,
message: response.msg, message: '删除失败!',
type: 'error' type: 'error'
}) });
} }
}) })
}, },

223
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue

@ -185,7 +185,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderModel.finalPrice" class="addinputw" clearable <el-input oninput="value = value.replace(/[^\d.]/g,'')" v-model.number="temp.busSalesOrderModel.finalPrice" class="addinputw" clearable
maxlength="125" placeholder="请输入单台成交价"/> maxlength="125" placeholder="请输入单台成交价"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -311,7 +311,8 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderMakeup.topPrice" class="addinputw" clearable <el-input oninput="value = value.replace(/[^0-9.]/g, '')" v-model.number="temp.busSalesOrderMakeup.topPrice" class="addinputw"
clearable
placeholder="请输入上装价格"/> placeholder="请输入上装价格"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -387,7 +388,7 @@
</el-col> </el-col>
<el-col v-show="isXuanzeShow == '3'" :span="4"> <el-col v-show="isXuanzeShow == '3'" :span="4">
<el-form-item> <el-form-item>
<el-input v-model="quantity" class="addinputw" <el-input oninput="value = value.replace(/[^0-9.]/g, '')" v-model.number="quantity" class="addinputw"
placeholder="请输入台数" placeholder="请输入台数"
clearable/> clearable/>
</el-form-item> </el-form-item>
@ -493,7 +494,8 @@
</el-col> </el-col>
<el-col :span="4" class="baoxianInput"> <el-col :span="4" class="baoxianInput">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderInsurance.insuranceCarMoney" class="addinputw" <el-input oninput="value = value.replace(/[^0-9.]/g, '')" v-model.number="temp.busSalesOrderInsurance.insuranceCarMoney"
class="addinputw"
clearable placeholder="请输入单台车保费预估金额"/> clearable placeholder="请输入单台车保费预估金额"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -537,7 +539,8 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderDeposit.deposit" class="addinputw" clearable <el-input oninput="value = value.replace(/[^0-9.]/g, '')" v-model.number="temp.busSalesOrderDeposit.deposit" class="addinputw"
clearable
placeholder="请输入单台订金"/> placeholder="请输入单台订金"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -560,11 +563,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<span>需补交</span> <span>需补交</span>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<span>{{ temp.busSalesOrderDeposit.makeUpDeposit }}</span> <span>{{ NumberMakeUpDeposit() }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -602,7 +605,8 @@
</el-table-column> </el-table-column>
<el-table-column label="本次结转金额" align="center"> <el-table-column label="本次结转金额" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input @blur="handleJiezhuan(scope.row,scope.row.price)" v-model="scope.row.price" <el-input oninput="value = value.replace(/[^0-9.]/g, '')" @blur="handleJiezhuan(scope.row,scope.row.price)"
v-model.number="scope.row.price"
placeholder="请输入本次结转金额" placeholder="请输入本次结转金额"
class="addinputw" class="addinputw"
clearable/> clearable/>
@ -621,12 +625,13 @@
<span>补充说明</span> <span>补充说明</span>
</div> </div>
<el-row> <el-row>
<el-input v-model="temp.remarks" type="textarea" placeholder="补充说明" class="addinputw"/> <el-input v-model="temp.notes" type="textarea" placeholder="补充说明" class="addinputw"/>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
</div> </div>
<!-- 打开新增客户 --> <!-- 打开新增客户 -->
<el-dialog :visible.sync="customerVisible" title="客户登记-类型" top="13%" width="28%"> <el-dialog :visible.sync="customerVisible" title="客户登记-类型" top="13%" width="28%">
<el-form :model="customerTypeList"> <el-form :model="customerTypeList">
@ -790,7 +795,8 @@ import {
getPdfByOrderSid, getPdfByOrderSid,
getXianList, getXianList,
saveOrderForm, saveOrderForm,
selectCount selectCount,
fetchDetailsBySid
} from '@/api/salesManagement/orderManagement' } from '@/api/salesManagement/orderManagement'
import {getNamesDown,} from '@/api/dictcommons/basemanufacturer' import {getNamesDown,} from '@/api/dictcommons/basemanufacturer'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
@ -1234,28 +1240,21 @@ export default {
this.relState = '1' this.relState = '1'
this.dialogStatus = 'add' this.dialogStatus = 'add'
}, },
showEdit(data) { showEdit(sid) {
this.relState = '1' this.relState = '1'
this.dialogStatus = 'edit' this.dialogStatus = 'edit'
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()
this.resetTemp() this.resetTemp()
}) })
// this.getpayTypeList() fetchDetailsBySid({
// this.getManufacturerList() sid: sid,
this.getCustomerInfo()
getOneOrder({
busOrderSid: data,
}).then((response) => { }).then((response) => {
if (response.code === '200') { if (response.success) {
// this.$refs['dataForm'].clearValidate()
this.nodeState = response.data.busOrderDto.nodeState
this.getBrand(response.data.modelDto.manufacturerSid)
this.getCarModel(response.data.modelDto.brandSid)
this.temp = response.data this.temp = response.data
this.orderSid = data
} }
}) })
}, },
// ---------------- ---------------- // ---------------- ----------------
// //
@ -1296,16 +1295,29 @@ export default {
}, },
// //
NumberMulThree() { NumberMulThree() {
const taishu = [] //
this.temp.busSalesVehicleOrderList.forEach((element) => { if (this.isXuanzeShow == '1') {
taishu.push(element.usingNum) if (this.temp.busSalesOrderVehicleList.length > 0) {
}) this.temp.busSalesOrderPrice.quantity = this.temp.busSalesOrderVehicleList.length
if (taishu.length > 0) { return this.temp.busSalesOrderPrice.quantity.toString()
this.temp.busSalesOrderPrice.quantity = taishu.reduce(this.getSum); }
} else { }
this.temp.busSalesOrderPrice.quantity = 0 //
return this.temp.busSalesOrderPrice.quantity if (this.isXuanzeShow == '2') {
if (this.temp.busSalesVehicleOrderList.length > 0) {
const taishu = []
this.temp.busSalesVehicleOrderList.forEach((element) => {
taishu.push(element.usingNum)
})
if (taishu.length > 0) {
this.temp.busSalesOrderPrice.quantity = taishu.reduce(this.getSum);
} else {
this.temp.busSalesOrderPrice.quantity = 0
return this.temp.busSalesOrderPrice.quantity
}
}
} }
}, },
// //
NumberMulFour() { NumberMulFour() {
@ -1336,8 +1348,8 @@ export default {
const value = Number(chejia1.replace(',', '')) * Number(chejia2.replace(',', '')) const value = Number(chejia1.replace(',', '')) * Number(chejia2.replace(',', ''))
this.temp.busSalesOrderPrice.priceSum = value.toString() this.temp.busSalesOrderPrice.priceSum = value.toString()
console.log('33333', value) console.log('33333', value)
if (this.temp.busSalesOrderPrice.priceSum == 0) { if (this.temp.busSalesOrderPrice.priceSum == '0') {
this.temp.busSalesOrderPrice.priceSum = 0 this.temp.busSalesOrderPrice.priceSum = '0'
return this.temp.busSalesOrderPrice.priceSum return this.temp.busSalesOrderPrice.priceSum
} }
return this.temp.busSalesOrderPrice.priceSum return this.temp.busSalesOrderPrice.priceSum
@ -1349,22 +1361,39 @@ export default {
return 0 return 0
} }
// //
if (this.temp.busSalesOrderPrice.quantity == '') { if (this.temp.busSalesOrderPrice.quantity == '' && this.quantity == '') {
return 0 return 0
} }
var deposit = 0 if (this.quantity !== '') {
var quantity = 0 var deposit = 0
deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit) var quantity = 0
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity) deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit)
const s1 = deposit.toString() quantity = parseFloat(this.quantity)
const s2 = quantity.toString() const s1 = deposit.toString()
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', '')) const s2 = quantity.toString()
this.temp.busSalesOrderDeposit.depositAll = value.toString() const value = Number(s1.replace(',', '')) * Number(s2.replace(',', ''))
if (this.temp.busSalesOrderDeposit.depositAl == '') { this.temp.busSalesOrderDeposit.depositAll = value.toString()
this.temp.busSalesOrderDeposit.depositAl = 0 if (this.temp.busSalesOrderDeposit.depositAl == '') {
return this.temp.busSalesOrderDeposit.depositAl this.temp.busSalesOrderDeposit.depositAl = 0
return this.temp.busSalesOrderDeposit.depositAl
}
return this.temp.busSalesOrderDeposit.depositAll
} else if (this.temp.busSalesOrderPrice.quantity !== '') {
var deposit = 0
var quantity = 0
deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit)
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity)
const s1 = deposit.toString()
const s2 = quantity.toString()
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', ''))
this.temp.busSalesOrderDeposit.depositAll = value.toString()
if (this.temp.busSalesOrderDeposit.depositAl == '') {
this.temp.busSalesOrderDeposit.depositAl = 0
return this.temp.busSalesOrderDeposit.depositAl
}
return this.temp.busSalesOrderDeposit.depositAll
} }
return this.temp.busSalesOrderDeposit.depositAll
}, },
// //
handleChangeNum(num, row) { handleChangeNum(num, row) {
@ -1397,6 +1426,41 @@ export default {
return usingNum return usingNum
} }
}, },
//
NumberMakeUpDeposit() {
var depositAll = 0
var jiezhuan = 0
if (this.temp.busSalesOrderDeposit.depositAll !== '') {
depositAll = parseFloat(this.temp.busSalesOrderDeposit.depositAll)
} else {
depositAll = 0
}
console.log('aaaaaaaa', depositAll)
if (this.temp.busDepositFictitiousList.length > 0) {
const jiezhuanAll = []
this.temp.busDepositFictitiousList.forEach((element) => {
jiezhuanAll.push(element.price)
})
console.log('bbbbbbbb020202', jiezhuanAll)
if (jiezhuanAll[0] == '') {
jiezhuan = 0
} else {
jiezhuan = parseFloat(jiezhuanAll.reduce(this.getSum))
}
// jiezhuan = parseFloat(this.temp.busSalesOrderMakeup.topPrice)
} else {
jiezhuan = 0
}
console.log('bbbbbbbb', jiezhuan)
const s1 = depositAll.toString()
const s2 = jiezhuan.toString()
console.log('cccccccc', s1, s2)
const value = Number(s1.replace(',', '')) - Number(s2.replace(',', ''))
this.temp.busSalesOrderDeposit.makeUpDeposit = value.toString()
return this.temp.busSalesOrderDeposit.makeUpDeposit
},
// ---------------- ---------------- // ---------------- ----------------
// //
handleCreate() { handleCreate() {
@ -1410,21 +1474,22 @@ export default {
} else { } else {
this.temp.isInsurance = '0' this.temp.isInsurance = '0'
} }
//
if (this.temp.busSalesOrderDeposit.depositTypeKey == '01') { if (this.temp.busSalesOrderDeposit.depositTypeKey == '01') {
this.temp.busSalesOrderDeposit.depositType = '现交订金' this.temp.busSalesOrderDeposit.depositType = '现交订金'
} else { } else {
this.temp.busSalesOrderDeposit.depositType = '订金结转' this.temp.busSalesOrderDeposit.depositType = '订金结转'
} }
if (this.isXuanzeShow == '3') { if (this.isXuanzeShow == '3') {
this.busSalesOrderPrice.quantity = Number(this.quantity) this.temp.busSalesOrderPrice.quantity = Number(this.quantity)
} else { } else {
this.busSalesOrderPrice.quantity = Number(this.busSalesOrderPrice.quantity) this.temp.busSalesOrderPrice.quantity = Number(this.temp.busSalesOrderPrice.quantity)
} }
console.log('type', this.isXuanzeShow) console.log('type', this.isXuanzeShow)
this.temp.type = this.isXuanzeShow this.temp.type = this.isXuanzeShow
const priceList = [] const priceList = []
this.temp.busSalesOrderDiscountList.forEach((element) => { this.temp.busSalesOrderDiscountList.forEach((element) => {
priceList.push(toString(element.totalValue)) priceList.push(element.totalValue)
}) })
this.temp.priceList = priceList this.temp.priceList = priceList
console.log(this.temp) console.log(this.temp)
@ -1436,39 +1501,26 @@ export default {
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
this.orderSid = response.data this.orderSid = response.data
this.$notify({
title: '提示',
message: '添加成功',
type: 'success',
duration: 2000,
})
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '添加失败', message: '添加失败!',
type: 'error', type: 'error'
duration: 2000, });
})
} }
}) })
} else { } else {
saveOrderForm(this.temp).then((response) => { saveOrderForm(this.temp).then((response) => {
this.FormLoading = false this.FormLoading = false
if (response.code === '200') { if (response.code === '200') {
this.$notify({
title: '提示',
message: '修改成功',
type: 'success',
duration: 2000,
})
this.handleReturn('true') this.handleReturn('true')
} else { } else {
this.$notify({ this.$message({
title: '失败', showClose: true,
message: '修改失败', message: '修改失败!',
type: 'error', type: 'error'
}) });
} }
}) })
} }
@ -1619,7 +1671,6 @@ export default {
message: '请选择一个客户!', message: '请选择一个客户!',
type: 'error' type: 'error'
}); });
} }
}, },
// //
@ -1701,7 +1752,11 @@ export default {
this.xiancheList.params.customerSid = this.temp.customerSid this.xiancheList.params.customerSid = this.temp.customerSid
this.xiancheList.params.modelConfigSid = this.temp.busSalesOrderModel.modelConfigSid this.xiancheList.params.modelConfigSid = this.temp.busSalesOrderModel.modelConfigSid
this.xiancheList.params.modelSid = this.temp.busSalesOrderModel.modelSid this.xiancheList.params.modelSid = this.temp.busSalesOrderModel.modelSid
this.xiancheList.params.sidList = this.temp.busSalesOrderVehicleList const aa = []
this.temp.busSalesOrderVehicleList.forEach((element) => {
aa.push(element.linkSid)
})
this.xiancheList.params.sidList = aa
getXianList(this.xiancheList).then((response) => { getXianList(this.xiancheList).then((response) => {
this.xiancheLoading = false this.xiancheLoading = false
if ( if (
@ -1711,6 +1766,11 @@ export default {
) { ) {
this.listXianche = response.data.records this.listXianche = response.data.records
this.xianchetotal = response.data.total this.xianchetotal = response.data.total
if (this.listXianche.isFictitious == '1') {
this.listXianche.isFictitious = '是'
} else if (this.listXianche.isFictitious == '0') {
this.listXianche.isFictitious = '否'
}
} else { } else {
this.listXianche = [] this.listXianche = []
this.xianchetotal = 0 this.xianchetotal = 0
@ -1732,7 +1792,11 @@ export default {
this.caigouLoading = true this.caigouLoading = true
this.caigouList.params.configSid = this.temp.busSalesOrderModel.modelConfigSid this.caigouList.params.configSid = this.temp.busSalesOrderModel.modelConfigSid
this.caigouList.params.modelSid = this.temp.busSalesOrderModel.modelSid this.caigouList.params.modelSid = this.temp.busSalesOrderModel.modelSid
this.caigouList.params.sidList = this.temp.busSalesVehicleOrderList const aa = []
this.temp.busSalesVehicleOrderList.forEach((element) => {
aa.push(element.linkSid)
})
this.caigouList.params.sidList = aa
getXianList(this.caigouList).then((response) => { getXianList(this.caigouList).then((response) => {
this.caigouLoading = false this.caigouLoading = false
if ( if (
@ -1770,7 +1834,6 @@ export default {
this.xiancheList.params.sidList = xincheSids this.xiancheList.params.sidList = xincheSids
this.vehicleList = xincheSids this.vehicleList = xincheSids
this.xiancheVisible = false this.xiancheVisible = false
console.log('确认选择现车:', this.temp.busSalesOrderVehicleList, this.vehicleList)
} else { } else {
this.$message({ this.$message({
showClose: true, showClose: true,
@ -1812,6 +1875,7 @@ export default {
this.temp.customerClassKey = row.customerTypeKey this.temp.customerClassKey = row.customerTypeKey
this.temp.customerPhoto = row.customerPhoto this.temp.customerPhoto = row.customerPhoto
this.customerList = row this.customerList = row
console.log('选择客户',this.temp)
}, },
// //
addCustomer() { addCustomer() {
@ -1832,6 +1896,8 @@ export default {
modelName: modelData.modelAlias, // modelName: modelData.modelAlias, //
modelSid: modelData.modelSid, //sid modelSid: modelData.modelSid, //sid
moreConfig: modelData.otherConfig, // moreConfig: modelData.otherConfig, //
specialConfig: '',
finalPrice: '',
} }
const countList = { const countList = {
customerSid: this.temp.customerSid, //sid customerSid: this.temp.customerSid, //sid
@ -1862,6 +1928,8 @@ export default {
modelName: modelData.modelAlias, // modelName: modelData.modelAlias, //
modelSid: modelData.modelSid, //sid modelSid: modelData.modelSid, //sid
moreConfig: modelData.otherConfig, // moreConfig: modelData.otherConfig, //
specialConfig: '',
finalPrice: '',
} }
const countList = { const countList = {
customerSid: this.temp.customerSid, //sid customerSid: this.temp.customerSid, //sid
@ -1892,6 +1960,8 @@ export default {
modelName: modelData.modelName, // modelName: modelData.modelName, //
modelSid: modelData.modelSid, //sid modelSid: modelData.modelSid, //sid
moreConfig: modelData.moreConfig, // moreConfig: modelData.moreConfig, //
specialConfig: '',
finalPrice: '',
} }
const countList = { const countList = {
customerSid: this.temp.customerSid, //sid customerSid: this.temp.customerSid, //sid
@ -1908,6 +1978,7 @@ export default {
}) })
}, },
selectYouhui(row) { selectYouhui(row) {
console.log('所选优惠包', row) console.log('所选优惠包', row)
row.forEach((element) => { row.forEach((element) => {

9
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanInfo.vue

@ -424,8 +424,15 @@
} }
}, },
methods: { methods: {
showInfo(billNo) { showInfo(sid) {
this.relState = '2' this.relState = '2'
fetchDetailsBySid({
sid: sid,
}).then((response) => {
if (response.success) {
this.temp = response.data
}
})
}, },
handleReturn() { handleReturn() {
this.relState = '' this.relState = ''

2
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanSubmit.vue

@ -397,7 +397,7 @@ export default {
this.relState = '3' this.relState = '3'
}, },
handleReturn() { handleReturn() {
this.$emit('doback') this.$emit('handleReturn')
} }
} }
} }

Loading…
Cancel
Save