Browse Source

销售订单

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

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

@ -1,8 +1,8 @@
<template>
<div class="app-container">
<div>
<div v-show="relState == '1'">
<div class="tab-header webtop">
<div v-else>修改销售订车单</div>
<div>销售订车单</div>
<div>
<el-button type="primary" size="small" :disabled="FormLoading" @click="handleCreate()">保存</el-button>
<el-button :disabled="this.nodeState == '待提交' ? false : this.nodeState == '' ? false : true" size="small"
@ -342,11 +342,13 @@
:action="uploadAction"
:data="requestData"
:headers="accessToken"
:accept="filType"
:multiple="false"
:on-success="uploadSuccessHetong"
:show-file-list="false"
:limit="1"
:file-list="fileList"
class="upload-demo"
>
><!--:show-file-list="false"-->
<el-button size="small" type="primary">合同上传</el-button>
</el-upload>
</el-form-item>
@ -521,7 +523,9 @@
</el-col>
<el-col :span="4" class="baoxianInput">
<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="请输入公司入保期数"/>
</el-form-item>
</el-col>
@ -644,6 +648,7 @@
:data="requestData"
:headers="accessToken"
:multiple="false"
:accept="filType"
:on-success="uploadSuccessKuanxiang"
:show-file-list="false"
class="upload-demo"
@ -850,17 +855,17 @@ import xunidingdanguanli from "@/views/xiaoshouguanli/xiaoshoudingdan/relation/x
import xiaoshoudingdanSubmit from "@/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanSubmit";
import {breakTask} from "@/api/flow/orderSalesTodo";
export default {
name: "xiaoshoudingdanFlowEdit",
components: {
Pagination,
pageye,
xuanzekehu,
xuanzekehuAdd,
yixiangchexingxuanze,
xunidingdanxuanze,
modellibrary,
xiaoshouzhengce,
export default {
name: "xiaoshoudingdanFlowEdit",
components: {
Pagination,
pageye,
xuanzekehu,
xuanzekehuAdd,
yixiangchexingxuanze,
xunidingdanxuanze,
modellibrary,
xiaoshouzhengce,
xunidingdanguanli,
xiaoshoudingdanSubmit,
vehiclelibraryconfiguration
@ -881,6 +886,8 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
dialogStatus: 'add',
index: 0,
// Start
filType:'.pdf,.docx',
fileList:[],
userName: sessionStorage.getItem('name'),
//
accessToken: {
@ -1101,7 +1108,7 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
var b = window.location.href.indexOf('#data') // #data
const info = window.location.href.slice(a, b)
var sid = info.substr(info.indexOf('=') + 1)
this.showInfo(sid)
this.showEdit(sid)
// ===
var one = window.location.href.lastIndexOf('#') + 1
var two = window.location.href.lastIndexOf('}') + 1
@ -1772,8 +1779,8 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.relState = ''
if (isreload === 'true') this.FormLoading = true
this.relState = '1'
this.isXuanzeShow = ''
this.temp = {
affiliatedCompany: '', //
@ -1851,7 +1858,6 @@ import {breakTask} from "@/api/flow/orderSalesTodo";
this.checkedGua = false
this.checkedBaoxian = false
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"
:data="requestData"
:headers="accessToken"
:accept="filType"
:multiple="false"
:on-success="uploadSuccessHetong"
:show-file-list="false"
:limit="1"
:file-list="fileList"
class="upload-demo"
>
><!--:show-file-list="false"-->
<el-button size="small" type="primary">合同上传</el-button>
</el-upload>
</el-form-item>
@ -523,7 +525,9 @@
</el-col>
<el-col :span="4" class="baoxianInput">
<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="请输入公司入保期数"/>
</el-form-item>
</el-col>
@ -646,6 +650,7 @@
:data="requestData"
:headers="accessToken"
:multiple="false"
:accept="filType"
:on-success="uploadSuccessKuanxiang"
:show-file-list="false"
class="upload-demo"
@ -882,6 +887,8 @@ export default {
dialogStatus: 'add',
index: 0,
// Start
filType:'.pdf,.docx',
fileList:[],
userName: sessionStorage.getItem('name'),
//
accessToken: {
@ -1377,6 +1384,7 @@ export default {
console.log('上传合同附件response:', response)
console.log('上传合同附件file:', file)
this.temp.busSalesOrderMakeup.contractPath = response.data.fullUrl
console.log('已上传成功的合同', this.temp.busSalesOrderMakeup.contractPath)
},
uploadSuccessKuanxiang(response, file) {
console.log('112233', scope.row.payPath)

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

@ -176,7 +176,7 @@
</el-col>
<el-col :span="5">
<el-form-item prop="billingType">
<!-- <span>{{ temp.busSalesOrderMakeup.contractPath }}</span>-->
<span>{{ contractName }}</span>
</el-form-item>
</el-col>
</el-row>
@ -279,6 +279,7 @@ export default {
orderSid: '', // sid
zhongjie_list: [], //
yinjian_list: [], //
contractName:'',
temp: {
affiliatedCompany: '', //
affiliatedCompanySid: '', //sid
@ -452,7 +453,9 @@ export default {
},
showSubmit(temp, nodeState) {
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 = {
// priceRemarks: '', //
// discountRemarks: '', //

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

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

Loading…
Cancel
Save