Browse Source

销售订单

master
Zhao Qiqi 3 years ago
parent
commit
66a6c87358
  1. 1
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanEdit.vue
  2. 14
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue
  3. 30
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanSubmit.vue

1
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanEdit.vue

@ -524,7 +524,6 @@
<el-col :span="4" class="baoxianInput"> <el-col :span="4" class="baoxianInput">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderInsurance.insuranceNum" <el-input v-model="temp.busSalesOrderInsurance.insuranceNum"
oninput="temp.busSalesOrderInsurance.insuranceNum=temp.busSalesOrderInsurance.insuranceNum.replace(/[^\d]/g,'')"
class="addinputw" clearable class="addinputw" clearable
placeholder="请输入公司入保期数"/> placeholder="请输入公司入保期数"/>
</el-form-item> </el-form-item>

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

@ -445,7 +445,7 @@
</el-row> </el-row>
</div> </div>
<!-- ==================== 主车优惠明细 ======================================== --> <!-- ==================== 主车优惠明细 ======================================== -->
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames">
<el-collapse-item name="2"> <el-collapse-item name="2">
<template slot="title"> <template slot="title">
主车优惠明细 主车优惠明细
@ -526,7 +526,6 @@
<el-col :span="4" class="baoxianInput"> <el-col :span="4" class="baoxianInput">
<el-form-item> <el-form-item>
<el-input v-model="temp.busSalesOrderInsurance.insuranceNum" <el-input v-model="temp.busSalesOrderInsurance.insuranceNum"
oninput="temp.busSalesOrderInsurance.insuranceNum=temp.busSalesOrderInsurance.insuranceNum.replace(/[^\d]/g,'')"
class="addinputw" clearable class="addinputw" clearable
placeholder="请输入公司入保期数"/> placeholder="请输入公司入保期数"/>
</el-form-item> </el-form-item>
@ -1375,9 +1374,6 @@ export default {
this.getType() this.getType()
}, },
handleChange(val) {
console.log(val);
},
// // ---------------- ---------------- // // ---------------- ----------------
// //
uploadSuccessHetong(response, file) { uploadSuccessHetong(response, file) {
@ -1387,11 +1383,8 @@ export default {
console.log('已上传成功的合同', this.temp.busSalesOrderMakeup.contractPath) console.log('已上传成功的合同', this.temp.busSalesOrderMakeup.contractPath)
}, },
uploadSuccessKuanxiang(response, file) { uploadSuccessKuanxiang(response, file) {
console.log('112233', scope.row.payPath)
console.log('上传款项附件response:', response) console.log('上传款项附件response:', response)
console.log('上传款项附件file:', file) console.log('上传款项附件file:', file)
// row.payPath = response.data.fullUrl
// console.log('payPath',row.payPath)
}, },
// ---------------- ---------------- // ---------------- ----------------
@ -1425,15 +1418,12 @@ export default {
} }
// //
if (this.isXuanzeShow == '2') { if (this.isXuanzeShow == '2') {
console.log('采购订单长度',this.temp.busSalesVehicleOrderList)
if (this.temp.busSalesVehicleOrderList.length > 0) { if (this.temp.busSalesVehicleOrderList.length > 0) {
const taishu = [] const taishu = []
this.temp.busSalesVehicleOrderList.forEach((element) => { this.temp.busSalesVehicleOrderList.forEach((element) => {
console.log('采购订单本次使用的台数',element.usingNum)
if (element.usingNum !== undefined) { if (element.usingNum !== undefined) {
taishu.push(element.usingNum) taishu.push(element.usingNum)
} }
console.log('台数', element.usingNum)
}) })
if (taishu.length > 0) { if (taishu.length > 0) {
this.temp.busSalesOrderPrice.quantity = taishu.reduce(this.getSum); this.temp.busSalesOrderPrice.quantity = taishu.reduce(this.getSum);
@ -2061,7 +2051,6 @@ export default {
}, },
// //
getXiancheList() { getXiancheList() {
console.log('type',this.temp.busSalesOrderModel.type)
this.xiancheLoading = true this.xiancheLoading = true
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
@ -2174,7 +2163,6 @@ export default {
return return
} else { } else {
const caigouSids = [] const caigouSids = []
console.log('123',this.caigouChoice[i])
// this.temp.busSalesVehicleOrderList.push(this.caigouChoice[i]) // this.temp.busSalesVehicleOrderList.push(this.caigouChoice[i])
this.temp.busSalesVehicleOrderList.push({ this.temp.busSalesVehicleOrderList.push({
linkNo: this.caigouChoice[i].linkNo, linkNo: this.caigouChoice[i].linkNo,

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

@ -441,32 +441,23 @@ export default {
const choosetItem = this.zhongjie_list.filter( const choosetItem = this.zhongjie_list.filter(
(item) => item.distributorSid == val (item) => item.distributorSid == val
) )
this.temp.busSalesOrderSubmit.distributorName = choosetItem[0].distributorName this.busSalesOrderSubmit.distributorName = choosetItem[0].distributorName
this.temp.busSalesOrderSubmit.distributorMobile = choosetItem[0].businessMobile this.busSalesOrderSubmit.distributorMobile = choosetItem[0].businessMobile
}, },
// //
yinjianChange(val) { yinjianChange(val) {
const choosetItem = this.yinjian_list.filter( const choosetItem = this.yinjian_list.filter(
(item) => item.staffSid == val (item) => item.staffSid == val
) )
this.temp.busSalesOrderSubmit.name = choosetItem[0].staffName this.busSalesOrderSubmit.name = choosetItem[0].staffName
}, },
showSubmit(temp, nodeState) { showSubmit(temp, nodeState) {
this.temp = temp this.temp = temp
console.log('提交时的temp', this.temp) console.log('提交时的temp', this.temp)
if (this.temp.busSalesOrderMakeup){
const index = this.temp.busSalesOrderMakeup.contractPath.lastIndexOf('/') const index = this.temp.busSalesOrderMakeup.contractPath.lastIndexOf('/')
this.contractName = this.temp.busSalesOrderMakeup.contractPath.substring(index + 1, this.temp.busSalesOrderMakeup.contractPath.length) this.contractName = this.temp.busSalesOrderMakeup.contractPath.substring(index + 1, this.temp.busSalesOrderMakeup.contractPath.length)
// this.temp.busSalesOrderSubmit = { }
// priceRemarks: '', //
// discountRemarks: '', //
// distributorName: '', //
// distributorMobile: '', //
// distributorSid: '', // sid
// distributorPrice: '', //
// distributorPriceAll: '', //
// name: '', //
// userSid: '', // sid
// }
this.nodeState = nodeState this.nodeState = nodeState
this.relState = '3' this.relState = '3'
this.getType() this.getType()
@ -483,6 +474,17 @@ export default {
this.FormLoading = false this.FormLoading = false
if (response.code === '200' && response.success) { if (response.code === '200' && response.success) {
this.$emit('returnHome','ture') this.$emit('returnHome','ture')
this.busSalesOrderSubmit = {
priceRemarks: '', //
discountRemarks: '', //
distributorName: '', //
distributorMobile: '', //
distributorSid: '', // sid
distributorPrice: '', //
distributorPriceAll: '', //
name: '', //
userSid: '', // sid
}
} else { } else {
this.$message({ this.$message({
showClose: true, showClose: true,

Loading…
Cancel
Save