Browse Source

销售订单

master
Zhao Qiqi 3 years ago
parent
commit
0166e76dfa
  1. 24
      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. 5
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanSubmit.vue
  4. 1
      anrui-system-ui/src/views/flow/doneList.vue

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

@ -1,8 +1,8 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div> <div v-show="relState == '1'">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div v-else>修改销售订车单</div> <div>销售订车单</div>
<div> <div>
<el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button>
<el-button :disabled="this.nodeState == '待提交' ? false : this.nodeState == '' ? false : true" size="small" <el-button :disabled="this.nodeState == '待提交' ? false : this.nodeState == '' ? false : true" size="small"
@ -342,11 +342,13 @@
:action="uploadAction" :action="uploadAction"
:data="requestData" :data="requestData"
:headers="accessToken" :headers="accessToken"
:accept="filType"
:multiple="false" :multiple="false"
:on-success="uploadSuccessHetong" :on-success="uploadSuccessHetong"
:show-file-list="false" :limit="1"
:file-list="fileList"
class="upload-demo" class="upload-demo"
> ><!--:show-file-list="false"-->
<el-button size="small" type="primary">合同上传</el-button> <el-button size="small" type="primary">合同上传</el-button>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -521,7 +523,9 @@
</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.insuranceNum" class="addinputw" clearable <el-input v-model="temp.busSalesOrderInsurance.insuranceNum"
oninput="temp.busSalesOrderInsurance.insuranceNum=temp.busSalesOrderInsurance.insuranceNum.replace(/[^\d]/g,'')"
class="addinputw" clearable
placeholder="请输入公司入保期数"/> placeholder="请输入公司入保期数"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -644,6 +648,7 @@
:data="requestData" :data="requestData"
:headers="accessToken" :headers="accessToken"
:multiple="false" :multiple="false"
:accept="filType"
:on-success="uploadSuccessKuanxiang" :on-success="uploadSuccessKuanxiang"
:show-file-list="false" :show-file-list="false"
class="upload-demo" class="upload-demo"
@ -881,6 +886,8 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
dialogStatus: 'add', dialogStatus: 'add',
index: 0, index: 0,
// Start // Start
filType:'.pdf,.docx',
fileList:[],
userName: sessionStorage.getItem('name'), userName: sessionStorage.getItem('name'),
// //
accessToken: { accessToken: {
@ -1101,7 +1108,7 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
var b = window.location.href.indexOf('#data') // #data var b = window.location.href.indexOf('#data') // #data
const info = window.location.href.slice(a, b) const info = window.location.href.slice(a, b)
var sid = info.substr(info.indexOf('=') + 1) var sid = info.substr(info.indexOf('=') + 1)
this.showInfo(sid) this.showEdit(sid)
// === // ===
var one = window.location.href.lastIndexOf('#') + 1 var one = window.location.href.lastIndexOf('#') + 1
var two = window.location.href.lastIndexOf('}') + 1 var two = window.location.href.lastIndexOf('}') + 1
@ -1772,8 +1779,8 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
}, },
// //
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist') if (isreload === 'true') this.FormLoading = true
this.relState = '' this.relState = '1'
this.isXuanzeShow = '' this.isXuanzeShow = ''
this.temp = { this.temp = {
affiliatedCompany: '', // affiliatedCompany: '', //
@ -1851,7 +1858,6 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
this.checkedGua = false this.checkedGua = false
this.checkedBaoxian = false this.checkedBaoxian = false
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
this.$emit('doback')
}, },
// -------------------------------- // --------------------------------

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

@ -344,11 +344,13 @@
:action="uploadAction" :action="uploadAction"
:data="requestData" :data="requestData"
:headers="accessToken" :headers="accessToken"
:accept="filType"
:multiple="false" :multiple="false"
:on-success="uploadSuccessHetong" :on-success="uploadSuccessHetong"
:show-file-list="false" :limit="1"
:file-list="fileList"
class="upload-demo" class="upload-demo"
> ><!--:show-file-list="false"-->
<el-button size="small" type="primary">合同上传</el-button> <el-button size="small" type="primary">合同上传</el-button>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -523,7 +525,9 @@
</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.insuranceNum" class="addinputw" clearable <el-input v-model="temp.busSalesOrderInsurance.insuranceNum"
oninput="temp.busSalesOrderInsurance.insuranceNum=temp.busSalesOrderInsurance.insuranceNum.replace(/[^\d]/g,'')"
class="addinputw" clearable
placeholder="请输入公司入保期数"/> placeholder="请输入公司入保期数"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -646,6 +650,7 @@
:data="requestData" :data="requestData"
:headers="accessToken" :headers="accessToken"
:multiple="false" :multiple="false"
:accept="filType"
:on-success="uploadSuccessKuanxiang" :on-success="uploadSuccessKuanxiang"
:show-file-list="false" :show-file-list="false"
class="upload-demo" class="upload-demo"
@ -882,6 +887,8 @@ export default {
dialogStatus: 'add', dialogStatus: 'add',
index: 0, index: 0,
// Start // Start
filType:'.pdf,.docx',
fileList:[],
userName: sessionStorage.getItem('name'), userName: sessionStorage.getItem('name'),
// //
accessToken: { accessToken: {
@ -1377,6 +1384,7 @@ export default {
console.log('上传合同附件response:', response) console.log('上传合同附件response:', response)
console.log('上传合同附件file:', file) console.log('上传合同附件file:', file)
this.temp.busSalesOrderMakeup.contractPath = response.data.fullUrl this.temp.busSalesOrderMakeup.contractPath = response.data.fullUrl
console.log('已上传成功的合同', this.temp.busSalesOrderMakeup.contractPath)
}, },
uploadSuccessKuanxiang(response, file) { uploadSuccessKuanxiang(response, file) {
console.log('112233', scope.row.payPath) console.log('112233', scope.row.payPath)

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

@ -176,7 +176,7 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item prop="billingType"> <el-form-item prop="billingType">
<!-- <span>{{ temp.busSalesOrderMakeup.contractPath }}</span>--> <span>{{ contractName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -279,6 +279,7 @@ export default {
orderSid: '', // sid orderSid: '', // sid
zhongjie_list: [], // zhongjie_list: [], //
yinjian_list: [], // yinjian_list: [], //
contractName:'',
temp: { temp: {
affiliatedCompany: '', // affiliatedCompany: '', //
affiliatedCompanySid: '', //sid affiliatedCompanySid: '', //sid
@ -453,6 +454,8 @@ export default {
showSubmit(temp, nodeState) { showSubmit(temp, nodeState) {
this.temp = temp this.temp = temp
console.log('提交时的temp', this.temp) console.log('提交时的temp', this.temp)
const index = this.temp.busSalesOrderMakeup.contractPath.lastIndexOf('/')
this.contractName = this.temp.busSalesOrderMakeup.contractPath.substring(index + 1, this.temp.busSalesOrderMakeup.contractPath.length)
// this.temp.busSalesOrderSubmit = { // this.temp.busSalesOrderSubmit = {
// priceRemarks: '', // // priceRemarks: '', //
// discountRemarks: '', // // discountRemarks: '', //

1
anrui-system-ui/src/views/flow/doneList.vue

@ -277,7 +277,6 @@
this.getList() this.getList()
} }
}); });
this.getType()
}, },
/** 打开详情 */ /** 打开详情 */
handleCheck(row) { handleCheck(row) {

Loading…
Cancel
Save