Browse Source

完善销售订单列表、详情部分

master
yunuo970428 2 years ago
parent
commit
bcc850d3e4
  1. 420
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue
  2. 229
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanInfo.vue

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

@ -1,78 +1,56 @@
<template>
<div class="app-container">
<div v-show="visible">
<div class="tab-header webtop">
<div>销售订单管理</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button>
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button>
<!-- <el-button type="primary" size="small" :disabled="isableSub" @click="handleSubmit()">提交</el-button> -->
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="webcon">
<div v-show="viewState == 1">
<button-bar view-title="销售订单管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="部门名称" class="searchlist">
<el-input v-model="listQuery.params.orgName" placeholder="请填写" clearable class="filter-item" />
<!-- <el-select v-model="listQuery.params.orgName" class="filter-item" clearable placeholder="请选择">
<el-option :value="listQuery.params.orgName" style="height: auto">
<el-tree ref="tree" :data="treedata" default-expand-all show-checkbox check-strictly node-key="sid" highlight-current :props="defaultProps" @check-change="handleCheckChange" />
</el-option>
</el-select> -->
<el-input v-model="listQuery.params.orgName" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="业务员姓名" class="searchlist">
<el-input v-model="listQuery.params.staffName" placeholder="" clearable class="filter-item" />
<el-input v-model="listQuery.params.staffName" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="客户名称" class="searchlist">
<el-input v-model="listQuery.params.customerName" placeholder="" clearable class="filter-item" />
<el-input v-model="listQuery.params.customerName" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="单据日期" class="searchlist">
<el-date-picker v-model="listQuery.params.createDateStart" class="filter-item-time" type="date"
value-format="yyyy-MM-dd" placeholder="请选择" />
<el-date-picker v-model="listQuery.params.createDateStart" class="filter-item-time" type="date" value-format="yyyy-MM-dd" placeholder="请选择"/>
<label></label>
<el-date-picker v-model="listQuery.params.createDateEnd" class="filter-item-time" type="date"
value-format="yyyy-MM-dd" placeholder="请选择" />
<el-date-picker v-model="listQuery.params.createDateEnd" class="filter-item-time" type="date" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item>
<el-form-item label="支付方式" class="searchlist">
<el-select v-model="listQuery.params.payType" class="filter-item" clearable placeholder="请选择">
<el-option v-for="item2 in payTypeList" :key="item2.dictKey" :label="item2.dictValue"
:value="item2.dictValue" />
<el-select v-model="listQuery.params.payTypeKey" class="filter-item" clearable placeholder="请选择">
<el-option v-for="item in payTypeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="车型名称" class="searchlist">
<el-input v-model="listQuery.params.modelName" placeholder="" clearable class="filter-item" />
<el-input v-model="listQuery.params.modelName" placeholder="" clearable class="filter-item"/>
</el-form-item>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">销售订单列表</div>
<!-- 翻页分页 -->
<pageye v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList" />
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row
style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column width="160px" label="操作" align="center">
<template slot-scope="scope">
<div class="searchbtns">
<el-button size="small" type="primary"
:disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '' ? false : true"
@click="changeNodeState(scope.row)">办理
<el-button size="small" type="primary" :disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '' ? false : true" @click="toEdit(scope.row)">办理
</el-button>
<el-button size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button>
<el-button size="small" type="primary" @click="toInfo(scope.row)">查看</el-button>
<!-- <el-button size="small" type="primary" @click="printContract(scope.row)">打印合同</el-button>-->
</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
@ -133,42 +111,40 @@
</el-table>
</div>
<div class="pages">
<div class="tit" />
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList" />
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!--新增修改部分组件-->
<div-add @handleReturn="visible = true" ref="divadd" @doback="resetState" @reloadlist="getList" />
<div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"/>
<!--详情部分组件-->
<div-info @handleReturn="visible = true" ref="dingdanxinxiinfo" @doback="resetState" />
<div-info v-show="viewState == 4" ref="dingdanxinxiinfo" @doback="resetState"/>
<!-- 打印合同 -->
<print-contract />
<print-contract/>
<!-- 确认贷款人 -->
<confirm-lender />
<confirm-lender/>
</div>
</template>
<script>
import {delBySids, dictType, getListOrg, getListPage} from '@/api/salesManagement/orderManagement'
// import {delBySids, dictType, getListOrg, getListPage} from '@/apimock/salesManagement/orderManagement'
import {submitSales, updateSales} from '@/api/portal/workFlow'
import {loginDetails} from '@/api/dictcommons/basemanufacturer'
import {getStorage} from '@/utils/auth'
import { delBySids, getListPage } from '@/api/salesManagement/orderManagement'
import { typeValues } from '@/api/dictcommons/dictcommons'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import divAdd from './xiaoshoudingdanAdd.vue'
import divInfo from './xiaoshoudingdanInfo.vue'
import printContract from "@/views/xiaoshouguanli/xiaoshoudingdan/printContract";
import confirmLender from "@/views/xiaoshouguanli/xiaoshoudingdan/confirmLender";
import printContract from '@/views/xiaoshouguanli/xiaoshoudingdan/printContract'
import confirmLender from '@/views/xiaoshouguanli/xiaoshoudingdan/confirmLender'
export default {
name: 'xiaoshoudingdan',
components: {
Pagination,
pageye,
ButtonBar,
divAdd,
divInfo,
printContract,
@ -176,30 +152,43 @@ export default {
},
data() {
return {
isableSub: false,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
viewState: 1, // 1 2 3 4 5 6
xiaodaijinrongfanganInfoShow: false,
hetongdanganguanliAddShow: false,
treedata: [],
payTypeList: [],
saleTypeList: [],
isSearchShow: false,
searchxianshitit: '隐藏查询条件',
// -----------
tableKey: 0,
addOrUpdatetypes: '',
list: [],
sids: [],
nodeState_list: [],
defaultProps: {
children: 'children',
label: 'name'
},
total: 1,
listLoading: false,
listQuery: {
current: 1,
size: 20,
size: 10,
total: 0,
params: {
createDateEnd: '', //
createDateStart: '', //
@ -207,22 +196,16 @@ export default {
modelName: '', //
orgName: '', //
payTypeKey: '',
staffSid: window.sessionStorage.getItem('staffSid'), //sid
staffSid: '' // sid
}
}
},
temp: {
contactMobile: '1'
}, //
nodeState: '', //
visible: true
// ------------------------------------
}
},
computed: {},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
//
this.getList()
this.init()
},
methods: {
//
@ -235,222 +218,139 @@ export default {
}
},
init() {
},
// ------------------
resetState() {
this.visible = true
},
xiaoshouhetong(row) {
console.log('9511', row)
this.visible = false
this.$refs['hetongdanganguanli-Info'].showOrderHeTong(row.sid)
},
//
handleCheck(row) {
this.visible = false
this.$refs['dingdanxinxiinfo'].showInfo(row.sid)
},
//
handleCreate(row) {
this.visible = false
this.$refs['divadd'].showAdd()
},
//
changeNodeState(row) {
this.visible = false
this.$refs['divadd'].showEdit(row.sid)
},
//
openInfo() {
this.visible = false
this.$refs['dingdanxinxiinfo'].showInfo()
},
printContract(row) {
this.visible = false
this.$refs['divPrint'].showInfo(row)
typeValues({ type: 'purchaseType' }).then((response) => {
if (response.success) {
this.payTypeList = response.data
}
})
this.getList()
},
// ------------------
//
handleReset() {
this.listQuery.params.customerName = ''
this.listQuery.params.modelName = ''
this.listQuery.params.orgName = ''
this.listQuery.params.payType = ''
this.listQuery.params.saleType = ''
this.listQuery.params.staffName = ''
this.listQuery.params.createDateEnd = ''
this.listQuery.params.createDateStart = ''
// // this.getList()
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
// purchaseType
getpayTypeList() {
dictType({
type: 'purchaseType',
}).then((response) => {
if (response.code === '200' && response.data) {
this.payTypeList = response.data
}
//
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
},
//
getList() {
this.listLoading = true
this.listQuery.params.staffSid = window.sessionStorage.getItem('staffSid')
getListPage(this.listQuery).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
if (response.success) {
this.list = response.data.records
this.total = response.data.total
this.listQuery.total = response.data.total
} else {
this.list = []
this.total = 0
this.listQuery.total = 0
}
})
},
handleCheckChange(data, checked, node) {
this.listQuery.params.orgName = data.name
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleSelectionChange(row) {
const aa = []
const bb = []
row.forEach((element) => {
aa.push(element.sid)
bb.push(element.nodeState)
})
this.sids = aa
this.nodeState_list = bb
},
//
handleSubmit() {
if (this.sids.length == 1) {
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.submitDto.businessSid = this.sids[0]
submitSales(this.submitDto).then((response) => {
if (response.code === '200') {
this.updateDto.nodeState = response.data.nodeState
} else {
this.$message({
showClose: true,
message: '提交失败!',
type: 'error'
});
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
createDateEnd: '', //
createDateStart: '', //
customerName: '', //
modelName: '', //
orgName: '', //
payTypeKey: '',
staffSid: '' // sid
}
})
})
} else if (this.sids.length == 0) {
this.$message({
showClose: true,
message: '您还未选择,请选择数据!',
type: 'error'
});
} else if (this.sids.length > 1) {
this.$message({
showClose: true,
message: '您选择的数据过多,请选择一条数据编辑!',
type: 'error'
});
}
this.getList()
},
//
toAdd() {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
//
toEdit(row) {
this.viewState = 3
this.$refs['divadd'].showEdit(row.sid)
},
//
toInfo(row) {
this.viewState = 4
this.$refs['dingdanxinxiinfo'].showInfo(row.sid)
},
xiaoshouhetong(row) {
this.$refs['hetongdanganguanli-Info'].showOrderHeTong(row.sid)
},
printContract(row) {
this.$refs['divPrint'].showInfo(row)
},
// sid
handleDelete() {
doDel() {
if (this.sids.length === 0) {
this.$message({
showClose: true,
message: '请选择数据!',
type: 'error'
});
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
delBySids(this.sids).then((response) => {
if (response.code === '200') {
if (response.success) {
this.$message({ type: 'success', message: response.msg, showClose: true })
this.getList()
loading.close()
} else {
this.$message({
showClose: true,
message: '删除失败!',
type: 'error'
});
loading.close()
}
}).catch(() => {
loading.close()
})
},
handleReturn(){
},
//
handleDaoChu(row) {
this.$confirm('确定要导出数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
// .then(() => {
// const tempData = Object.assign({}, row) // copy obj
// // console.log('ID' + JSON.stringify(tempData.id))
// delServiceType(tempData.id).then(response => {
// if (response.code === 20000) {
// // console.log('' + JSON.stringify(response))
// this.$notify({
// title: '',
// message: '',
// type: 'success',
// duration: 2000
// })
// this.getList()
// } else {
// this.$notify({
// title: '',
// message: response.msg,
// type: 'error'
// })
// }
// })
// })
// .catch(() => {
// this.$message({
// type: 'info',
// message: ''
// })
// })
},
//
AddUpdateReturn() {
this.visible = true
},
//
dataCreated() {
this.visible = true
this.getList()
resetState() {
this.viewState = 1
},
//
dataUpdated() {
this.visible = true
this.getList()
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
@ -462,10 +362,4 @@ export default {
display: inline-block;
}
/* .filter-item-time {
padding: 0 10px;
width: 300px;
display: inline-block;
} */
/* .listcon{height: calc(100vh - 550px);overflow-y: auto;overflow-x: hidden;} */
</style>

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

@ -1,21 +1,15 @@
<template>
<div class="app-container">
<div v-show="relState == '2'">
<div>
<div class="tab-header webtop">
<div>销售订车单详情</div>
<!-- <div v-else></div> -->
<div>
<!-- <el-button :disabled="this.nodeState == '待提交' ? false : this.nodeState == '' ? false : true" size="small"-->
<!-- type="primary"-->
<!-- @click="handleSubmit()">-->
<!-- 提交-->
<!-- </el-button>-->
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd">
<!-- ----------s----------------订单----------------- -->
<!-- --------------------------订单----------------- -->
<div class="tit">
销售订单
<div class="times">
@ -136,7 +130,7 @@
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{temp.busSalesOrderModel.specialConfig}}</span>
<span>{{ temp.busSalesOrderModel.specialConfig }}</span>
</el-form-item>
</el-col>
</el-row>
@ -265,7 +259,7 @@
</el-col>
<el-col :span="10">
<el-form-item>
<span>{{contractName}}</span>
<span>{{ contractName }}</span>
</el-form-item>
</el-col>
</el-row>
@ -304,8 +298,6 @@
<el-col :span="4">
<el-form-item>
<span>{{ temp.busSalesOrderPrice.singleFinalPrice }}</span>
<!-- <el-input v-model="temp.busSalesOrderPrice.singleFinalPrice" class="addinputw" clearable-->
<!-- placeholder="请输入单台成交价"/>-->
</el-form-item>
</el-col>
<el-col :span="2"/>
@ -326,7 +318,6 @@
<el-col :span="10">
<el-form-item>
<span>{{ temp.busSalesOrderPrice.priceSum }}</span>
<!-- <span>{{ temp.busSalesOrderPrice.priceSum }}</span>-->
</el-form-item>
</el-col>
<el-col :span="2">
@ -351,11 +342,8 @@
<div class="titleleft space_up">主车优惠明细</div>
<template slot="title">
主车优惠明细
<el-button type="primary" size="small" class="btntopblueline zhucheBtn" @click="openZhuche()">选择
</el-button>
</template>
<el-table :key="tableKey" :data="temp.busSalesOrderDiscountList" border fit
highlight-current-row :index="index" style="width: 100%;">
<el-table :key="tableKey" :data="temp.busSalesOrderDiscountList" border fit highlight-current-row :index="index" style="width: 100%;">
<el-table-column label="序号" type="index" width="80" align="center"/>
<el-table-column label="优惠名称" align="center">
<template slot-scope="scope">
@ -428,10 +416,10 @@
<!-- ==================== 消贷金融方案(暂不考虑) ======================================== -->
<div class="titleleft">
<span>消贷金融方案</span>
<!-- <div class="jinrongTit">-->
<!-- <span>单车方案编辑</span>-->
<!-- <span> 预览总方案</span>-->
<!-- </div>-->
<!-- <div class="jinrongTit">-->
<!-- <span>单车方案编辑</span>-->
<!-- <span> 预览总方案</span>-->
<!-- </div>-->
</div>
<!-- ==================== 订金信息 ======================================== -->
<div class="titleleft space_up">
@ -479,8 +467,7 @@
<div class="titleleft">
<span>虚拟订单列表</span>
</div>
<el-table :key="tableKey2" :data="temp.busDepositFictitiousList" border fit
highlight-current-row style="width: 100%;">
<el-table :key="tableKey2" :data="temp.busDepositFictitiousList" border fit highlight-current-row style="width: 100%;">
<el-table-column label="序号" type="index" width="80" align="center"/>
<el-table-column label="虚拟订单编号" align="center">
<template slot-scope="scope">
@ -518,159 +505,153 @@
</template>
<script>
import {fetchDetailsBySid, selectCount, selectOrderCount} from '@/api/salesManagement/orderManagement'
import { fetchDetailsBySid, selectCount, selectOrderCount } from '@/api/salesManagement/orderManagement'
export default {
name: "xiaoshoudingdanInfo",
name: 'xiaoshoudingdanInfo',
data() {
return {
index: 1,
state: '',
relState: '', // 1 2 3 1.1 1.2 2.1 2.2 2.3
// 4.1 5.1
state: '', // 4.1 5.1
nodeState: '', //
tableKey: 0,
tableKey2: 1,
tableKey3: 2,
tableKey4: 3,
contractName:'',
contractName: '',
temp: {
billNo: '', //
affiliatedCompany: '', //
affiliatedCompanySid: '', //sid
billingType: '', //value
billingTypeKey: '', //key
affiliatedCompany: '', //
affiliatedCompanySid: '', // sid
billingType: '', // value
billingTypeKey: '', // key
busDepositFictitiousList: [{
depositBillNo: '', //
depositPrice: '', //
depositSid: '', //sid
payPath: '', //
price: '', //
}], //
depositBillNo: '', //
depositPrice: '', //
depositSid: '', // sid
payPath: '', //
price: '' //
}], //
busSalesOrderDeposit: {
deposit: '', //
depositAll: '', //
depositType: '', //
depositTypeKey: '', // key
makeUpDeposit: '', //
}, //
makeUpDeposit: '' //
}, //
busSalesOrderDiscountList: [{
discountExplain: '', //
name: '', //
num: '', //
price: '', //
salesPolicySid: '', //sid
totalValue: '', //
}], //
discountExplain: '', //
name: '', //
num: '', //
price: '', //
salesPolicySid: '', // sid
totalValue: '' //
}], //
busSalesOrderInsurance: {
insuranceCarMoney: '', //
insuranceName: '', //
insuranceNum: '', //
}, //
insuranceCarMoney: '', //
insuranceName: '', //
insuranceNum: '' //
}, //
busSalesOrderMakeup: {
announcementModel: '', //
contractPath: '', //
moreConfig: '', //
overallDimension: '', //
plateMaterial: '', //
plateThickness: '', //
refitFactory: '', //
refitMethod: '', //
topName: '', //
topPrice: '', //
}, //
announcementModel: '', //
contractPath: '', //
moreConfig: '', //
overallDimension: '', //
plateMaterial: '', //
plateThickness: '', //
refitFactory: '', //
refitMethod: '', //
topName: '', //
topPrice: '' //
}, //
busSalesOrderModel: {
brandName: '', //
config: '', //
finalPrice: '', //
guildPrice: '', //
modelConfig: '', //
modelConfigSid: '', //sid
modelName: '', //
modelSid: '', //sid
moreConfig: '', //
specialConfig: '', //
}, //
brandName: '', //
config: '', //
finalPrice: '', //
guildPrice: '', //
modelConfig: '', //
modelConfigSid: '', // sid
modelName: '', //
modelSid: '', // sid
moreConfig: '', //
specialConfig: '' //
}, //
busSalesOrderPrice: {
plannedPickUpDate: '', //
plannedPickUpLocation: '', //
priceSum: '', //
quantity: '', //
singleFinalPrice: '', // (
singleGuildPrice: '', // (
}, //
busSalesOrderVehicleList: [],//
busSalesVehicleOrderList: [], //
plannedPickUpDate: '', //
plannedPickUpLocation: '', //
priceSum: '', //
quantity: '', //
singleFinalPrice: '', // (
singleGuildPrice: '' // (
}, //
busSalesOrderVehicleList: [], //
busSalesVehicleOrderList: [], //
// {
// linkNo: '', //
// linkSid: '', //sid
// linkText: '', //
// }
createDate: '', //
customerName: '', //
customerSid: '', //sid
isInsurance: '', //
isTop: '', //
mobile: '', //
notes: '', //
orgName: window.sessionStorage.getItem('Orgname'), //
orgSid: window.sessionStorage.getItem('orgSid'), //sid
payType: '', //value
payTypeKey: '', //key
createDate: '', //
customerName: '', //
customerSid: '', // sid
isInsurance: '', //
isTop: '', //
mobile: '', //
notes: '', //
orgName: window.sessionStorage.getItem('Orgname'), //
orgSid: window.sessionStorage.getItem('orgSid'), // sid
payType: '', // value
payTypeKey: '', // key
sid: '',
staffName: window.sessionStorage.getItem('name'), //
staffSid: window.sessionStorage.getItem('staffSid'), //sid
type: '', // 123
}, //
// ------------------------------------
staffName: window.sessionStorage.getItem('name'), //
staffSid: window.sessionStorage.getItem('staffSid'), // sid
type: '' // 123
}
}
},
methods: {
showInfo(sid) {
this.relState = '2'
fetchDetailsBySid({
sid: sid,
}).then((response) => {
fetchDetailsBySid({ sid: sid }).then((response) => {
if (response.success) {
const temp_copy = response.data
if (temp_copy.busSalesOrderInsurance == null) {
temp_copy.busSalesOrderInsurance = {
insuranceCarMoney: '',
insuranceName: '',
insuranceNum: '',
insuranceNum: ''
}
}
if (temp_copy.busSalesOrderMakeup == null) {
temp_copy.busSalesOrderMakeup = {
announcementModel: '', //
contractPath: '', //
moreConfig: '', //
overallDimension: '', //
plateMaterial: '', //
plateThickness: '', //
refitFactory: '', //
refitMethod: '', //
topName: '', //
topPrice: '', //
remarks: '',//
announcementModel: '', //
contractPath: '', //
moreConfig: '', //
overallDimension: '', //
plateMaterial: '', //
plateThickness: '', //
refitFactory: '', //
refitMethod: '', //
topName: '', //
topPrice: '', //
remarks: '' //
}
}
this.temp = temp_copy
this.temp.sid = sid
if (this.temp.type == '1') {
if (this.temp.type === '1') {
this.temp.vehicleType = '现车'
} else if (this.temp.type == '2') {
} else if (this.temp.type === '2') {
this.temp.vehicleType = '采购订单'
} else if (this.temp.type == '3') {
} else if (this.temp.type === '3') {
this.temp.vehicleType = '排产'
}
const index = this.temp.busSalesOrderMakeup.contractPath.lastIndexOf('/')
this.contractName = this.temp.busSalesOrderMakeup.contractPath.substring(index + 1, this.temp.busSalesOrderMakeup.contractPath.length)
const countList = {
customerSid: this.temp.customerSid, //sid
modelConfigSid: this.temp.busSalesOrderModel.modelConfigSid, //sid
modelSid: this.temp.busSalesOrderModel.modelSid, //sid
staffSid: this.temp.staffSid, //sid
customerSid: this.temp.customerSid, // sid
modelConfigSid: this.temp.busSalesOrderModel.modelConfigSid, // sid
modelSid: this.temp.busSalesOrderModel.modelSid, // sid
staffSid: this.temp.staffSid, // sid
type: this.temp.type //
}
//
@ -689,7 +670,6 @@ export default {
})
},
handleReturn() {
this.relState = ''
this.$emit('doback')
}
}
@ -852,7 +832,8 @@ export default {
/deep/ .el-checkbox__label {
color: #ffffff !important;
}
.notes{
.notes {
font-size: 14px;
}
</style>

Loading…
Cancel
Save