Browse Source

销售订单列表中打印合同

master
yunuo970428 3 years ago
parent
commit
88ce974d30
  1. 12
      anrui-buscenter/anrui-buscenter-ui/src/api/salesManagement/orderManagement.js
  2. 146
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dayinxiangshezhi.vue
  3. 867
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dingdanxinxi.vue

12
anrui-buscenter/anrui-buscenter-ui/src/api/salesManagement/orderManagement.js

@ -223,3 +223,15 @@ export function getPdfByOrderSid(data) {
params: { orderSid: data } params: { orderSid: data }
}); });
} }
// 根据订单id 预览合同
export function printConfirm(params) {
return request({
url: '/base/v1/commoncontract/printConfirm',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}

146
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dayinxiangshezhi.vue

@ -0,0 +1,146 @@
<template>
<div class="app-container" v-show="visible">
<div class="tab-header webtop">
<div>打印项设置</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" label-position="top" class="formadd">
<div class="wlInfo"><span>打印项设置</span></div>
<el-row>
<el-col :span="6" class="tleftb">
<el-form-item label="订单编号"></el-form-item>
</el-col>
<el-col :span="6" class="trightb">
<el-form-item prop="mNum">
<el-input v-model="formobj.contractNo" class="addinputw" readonly/>
</el-form-item>
</el-col>
<el-col :span="6" class="tleftb">
<el-form-item label="客户名称"></el-form-item>
</el-col>
<el-col :span="6" class="trightb">
<el-form-item prop="mName">
<el-input v-model="formobj.customerName" class="addinputw" readonly/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6" class="tleftb">
<el-form-item label="是否优惠"></el-form-item>
</el-col>
<el-col :span="18" class="trightb">
<el-form-item prop="isDiscount">
<el-radio-group v-model="formobj.isDiscount">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6" class="tleftb">
<el-form-item label="是否提前开票"></el-form-item>
</el-col>
<el-col :span="18" class="trightb">
<el-form-item prop="isAdvanceInvoice">
<el-radio-group v-model="formobj.isAdvanceInvoice">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6" class="tleftb">
<el-form-item label="是否委托提车"></el-form-item>
</el-col>
<el-col :span="18" class="trightb">
<el-form-item prop="isEntrustVehicle">
<el-radio-group v-model="formobj.isEntrustVehicle">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6" class="tleftb">
<el-form-item label="是否在公司购买保险"></el-form-item>
</el-col>
<el-col :span="18" class="trightb">
<el-form-item prop="isPurchasingInsurance">
<el-radio-group v-model="formobj.isPurchasingInsurance">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="wlInfo">
<el-button type="primary" size="small" @click="handVerify()">确认</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
</div>
</template>
<script>
import { printConfirm } from '@/api/salesManagement/orderManagement'
export default {
name: 'dayinxiangshezhi',
data() {
return {
visible: false,
formobj: {
busSid: '',
contractNo: '',
customerName: '',
customerSid: '',
isAdvanceInvoice: '',
isDiscount: '',
isEntrustVehicle: '',
isPurchasingInsurance: ''
}
}
},
methods: {
showInfo(row) {
this.visible = true
this.formobj.busSid = row.sid
this.formobj.contractNo = row.billNo
this.formobj.customerName = row.customerName
this.formobj.customerSid = row.customerSid
},
handVerify() {
printConfirm(this.formobj).then((res) => {
if (res.code == '200') {
console.log(res.data, 852852852)
}
})
},
handleReturn() {
this.$emit('doback')
}
}
}
</script>
<style scoped>
.wlInfo {
padding: 40px 0;
font-size: 24px;
border-width: 0 0 1px 0;
border-style: solid;
border-color: #EDF1F7;
display: flex;
justify-content: center;
align-items: center;
}
.tleftb {
text-align: right;
}
</style>

867
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dingdanxinxi.vue

@ -18,7 +18,6 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="部门名称" class="searchlist"> <el-form-item label="部门名称" class="searchlist">
<el-input v-model="listQuery.params.orgName" placeholder="请填写" clearable class="filter-item"/> <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-select v-model="listQuery.params.orgName" class="filter-item" clearable placeholder="请选择">
@ -34,22 +33,18 @@
<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>
<el-form-item label="单据日期" class="searchlist"> <el-form-item label="单据日期" class="searchlist">
<el-date-picker v-model="listQuery.params.createDateStart" class="filter-item-time" type="date" <el-date-picker v-model="listQuery.params.createDateStart" class="filter-item-time" type="date" value-format="yyyy-MM-dd" placeholder="请选择"/>
value-format="yyyy-MM-dd" placeholder="请选择"/>
<label></label> <label></label>
<el-date-picker v-model="listQuery.params.createDateEnd" class="filter-item-time" type="date" <el-date-picker v-model="listQuery.params.createDateEnd" class="filter-item-time" type="date" value-format="yyyy-MM-dd" placeholder="请选择"/>
value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item> </el-form-item>
<el-form-item label="支付方式" class="searchlist"> <el-form-item label="支付方式" class="searchlist">
<el-select v-model="listQuery.params.payType" class="filter-item" clearable placeholder="请选择"> <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" <el-option v-for="item2 in payTypeList" :key="item2.dictKey" :label="item2.dictValue" :value="item2.dictValue"/>
:value="item2.dictValue"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="提车方式" class="searchlist"> <el-form-item label="提车方式" class="searchlist">
<el-select v-model="listQuery.params.saleType" class="filter-item" clearable placeholder="请选择"> <el-select v-model="listQuery.params.saleType" class="filter-item" clearable placeholder="请选择">
<el-option v-for="item in saleTypeList" :key="item.dictKey" :label="item.dictValue" <el-option v-for="item in saleTypeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
:value="item.dictValue"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="车型名称" class="searchlist"> <el-form-item label="车型名称" class="searchlist">
@ -65,21 +60,17 @@
<div class="listtop"> <div class="listtop">
<div class="tit">销售订单列表</div> <div class="tit">销售订单列表</div>
<!-- 翻页分页 --> <!-- 翻页分页 -->
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
<div class=""> <div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row <el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%;" @selection-change="handleSelectionChange">
style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/> <el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/> <el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column width="150px" label="操作" align="center"> <el-table-column width="180px" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="searchbtns"> <div class="searchbtns">
<el-button size="small" type="primary" <el-button size="small" type="primary" :disabled="scope.row.nodeState == ''?false:true" @click="changeNodeState(scope.row)">办理</el-button>
:disabled="scope.row.nodeState == ''?false:true" <el-button size="small" type="primary" @click="printContract(scope.row)">打印合同</el-button>
@click="changeNodeState(scope.row)">办理
</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -173,8 +164,7 @@
<div class="pages"> <div class="pages">
<div class="tit"/> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" <pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
class="pagination" @pagination="getList"/>
</div> </div>
</div> </div>
</div> </div>
@ -189,463 +179,466 @@
<xiaodaijinrongfangan-info v-show="xiaodaijinrongfanganInfoShow" @noClickclose="noClickclose"/> <xiaodaijinrongfangan-info v-show="xiaodaijinrongfanganInfoShow" @noClickclose="noClickclose"/>
<!-- 合同编辑--> <!-- 合同编辑-->
<!-- <hetongdanganguanliInfo ref="hetongdanganguanli-Info" @handleReturn="visible = true"/> --> <!-- <hetongdanganguanliInfo ref="hetongdanganguanli-Info" @handleReturn="visible = true"/> -->
<!-- 打印合同 -->
<divPrint ref="divPrint" @doback="resetState"/>
</div> </div>
</template> </template>
<script> <script>
import { import {
getPageList, getPageList,
getListOrg, getListOrg,
deleteByids, deleteByids,
submitOrder, dictType
dictType, } from '@/api/salesManagement/orderManagement'
} 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 { setuser, getuser } from '@/utils/baocun' import { getStorage } from '@/utils/auth'
// import { delUser } from '@/api/system/user/Auser' import Pagination from '@/components/pagination'
import {loginDetails} from '@/api/dictcommons/basemanufacturer' import pageye from '@/components/pagination/pageye'
import {getStorage} from '@/utils/auth' import divAdd from './dingdanxinxiAdd.vue'
import Pagination from '@/components/pagination' import divInfo from './dingdanxinxiInfo.vue'
import pageye from '@/components/pagination/pageye' import divPrint from './dayinxiangshezhi.vue'
import divAdd from './dingdanxinxiAdd.vue' import xiaodaijinrongfanganInfo from '../../xiaodaijinrongfangan/xiaodaijinrongfanganinfo.vue'
import divInfo from './dingdanxinxiInfo.vue' import hetongdanganguanliInfo from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue'
import xiaodaijinrongfanganInfo from '../../xiaodaijinrongfangan/xiaodaijinrongfanganinfo.vue'
import hetongdanganguanliInfo from '@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue'
export default { export default {
name: 'Dingdanxinxi', name: 'Dingdanxinxi',
components: { components: {
Pagination, Pagination,
pageye, pageye,
divAdd, divAdd,
divInfo, divInfo,
xiaodaijinrongfanganInfo, divPrint,
hetongdanganguanliInfo, xiaodaijinrongfanganInfo,
}, hetongdanganguanliInfo
data() { },
return { data() {
isableSub:false, return {
viewState: 1, // 1 2 3 4 isableSub: false,
xiaodaijinrongfanganInfoShow: false, viewState: 1, // 1 2 3 4
hetongdanganguanliAddShow: false, xiaodaijinrongfanganInfoShow: false,
userSid: '', hetongdanganguanliAddShow: false,
treedata: [], userSid: '',
payTypeList: [], treedata: [],
saleTypeList: [], payTypeList: [],
isSearchShow: false, saleTypeList: [],
searchxianshitit: '隐藏查询条件', isSearchShow: false,
// ----------- searchxianshitit: '隐藏查询条件',
tableKey: 0, // -----------
addOrUpdatetypes: '', tableKey: 0,
list: [ addOrUpdatetypes: '',
{ list: [
name: '2345', {
contractNum: '2222', name: '2345',
}, contractNum: '2222'
],
sids: [],
defaultProps: {
children: 'children',
label: 'name',
},
total: 1,
listLoading: false,
listQuery: {
current: 1,
size: 20,
params: {
customerName: '',
modelName: '',
orgName: '',
payType: '',
saleType: '',
staffName: '',
},
},
temp: {
contactMobile: '1',
}, //
nodeState: '', //
submitDto: {
businessSid: '',
userSid: window.sessionStorage.getItem('userSid')
},
updateDto: {
nodeState: '',
sid: '',
},
visible: true,
// ------------------------------------
}
},
computed: {},
created() {
//
this.getList()
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
} }
],
sids: [],
defaultProps: {
children: 'children',
label: 'name'
}, },
init() { total: 1,
listLoading: false,
listQuery: {
current: 1,
size: 20,
params: {
customerName: '',
modelName: '',
orgName: '',
payType: '',
saleType: '',
staffName: ''
}
}, },
// ------------------ temp: {
resetState() { contactMobile: '1'
this.visible = true }, //
this.getList() nodeState: '', //
submitDto: {
businessSid: '',
userSid: window.sessionStorage.getItem('userSid')
}, },
xiaoshouhetong(row) { updateDto: {
console.log('9511', row) nodeState: '',
this.visible = false sid: ''
this.$refs['hetongdanganguanli-Info'].showOrderHeTong(row.sid)
}, },
// visible: true
handleCheck(row) { // ------------------------------------
}
},
computed: {},
created() {
//
this.getList()
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
init() {
},
// ------------------
resetState() {
this.visible = true
this.getList()
},
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.billNo)
},
//
handleCreate(row) {
this.visible = false
this.$refs['divadd'].showAdd()
},
//
changeNodeState(row) {
if (row.nodeState == '') {
this.visible = false this.visible = false
this.$refs['dingdanxinxiinfo'].showInfo(row.billNo) this.$refs['divadd'].showEdit(row.sid)
}, }
// },
handleCreate(row) { printContract(row) {
this.visible = false
this.$refs['divPrint'].showInfo(row)
},
//
handleUpdate() {
if (this.sids.length === 1) {
this.visible = false this.visible = false
this.$refs['divadd'].showAdd() this.$refs['divadd'].showEdit(this.sids[0])
}, } else if (this.sids.length > 1) {
// this.$notify({
changeNodeState(row) { title: '提示',
if (row.nodeState == '') { message: '不能选中多个信息修改!!',
this.visible = false type: 'warning',
this.$refs['divadd'].showEdit(row.sid) duration: 2000,
})
return
} else {
this.$notify({
title: '提示',
message: '没有选择信息!!',
type: 'warning',
duration: 2000,
})
return
}
},
// ------------------
// ------------------
noClickclose() {
this.xiaodaijinrongfanganInfoShow = false
this.hetongdanganguanliAddShow = false
this.viewState = 1
},
//
handleCheckxiaodai() {
this.viewState = false
this.xiaodaijinrongfanganInfoShow = true
this.hetongdanganguanliAddShow = false
},
// ------------------
//
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()
},
//
handleReturn() {
this.$router.go(-1)
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
// treedata
getOrgList() {
getListOrg().then((response) => {
if (response.code === '200' && response.data) {
this.treedata = response.data[0].children
this.getpayTypeList()
} }
}, })
// },
handleUpdate() { // purchaseType
if (this.sids.length === 1) { getpayTypeList() {
this.visible = false dictType({
this.$refs['divadd'].showEdit(this.sids[0]) type: 'purchaseType',
} else if (this.sids.length > 1) { }).then((response) => {
this.$notify({ if (response.code === '200' && response.data) {
title: '提示', this.payTypeList = response.data
message: '不能选中多个信息修改!!',
type: 'warning', this.getpaySaleList()
duration: 2000, }
}) })
return },
// saleType
getpaySaleList() {
dictType({
type: 'saleType'
}).then((response) => {
if (response.code === '200' && response.data) {
this.saleTypeList = response.data
}
})
},
//
getList() {
this.listLoading = true
getPageList(this.listQuery).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
this.getHuoquyonghu()
} else { } else {
this.$notify({ this.list = []
title: '提示', this.total = 0
message: '没有选择信息!!',
type: 'warning',
duration: 2000,
})
return
} }
}, })
// ------------------ },
// ------------------
noClickclose() {
this.xiaodaijinrongfanganInfoShow = false
this.hetongdanganguanliAddShow = false
this.viewState = 1
},
//
handleCheckxiaodai() {
this.viewState = false
this.xiaodaijinrongfanganInfoShow = true
this.hetongdanganguanliAddShow = false
},
// ------------------
//
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()
},
//
handleReturn() {
this.$router.go(-1)
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
// treedata
getOrgList() {
getListOrg().then((response) => {
if (response.code === '200' && response.data) {
this.treedata = response.data[0].children
this.getpayTypeList()
}
})
},
// purchaseType
getpayTypeList() {
dictType({
type: 'purchaseType',
}).then((response) => {
if (response.code === '200' && response.data) {
this.payTypeList = response.data
this.getpaySaleList() handleCheckChange(data, checked, node) {
} this.listQuery.params.orgName = data.name
}) },
}, //
// saleType handleFilter() {
getpaySaleList() { this.listQuery.current = 1
dictType({ this.getList()
type: 'saleType', },
}).then((response) => {
if (response.code === '200' && response.data) {
this.saleTypeList = response.data
}
})
},
//
getList() {
this.listLoading = true
getPageList(this.listQuery).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
this.getHuoquyonghu()
} else {
this.list = []
this.total = 0
}
})
},
handleCheckChange(data, checked, node) { //
this.listQuery.params.orgName = data.name handleSelectionChange(row) {
}, const aa = []
// row.forEach((element) => {
handleFilter() { aa.push(element.sid)
this.listQuery.current = 1 console.log(element.sid)
this.getList() // setuser(this.sids)
}, })
this.sids = aa
const bb = []
row.forEach((element) => {
bb.push(element.nodeState)
console.log(element.nodeState)
if (element.nodeState !== '') {
this.isableSub = true
} else if (element.nodeState == '') {
this.isableSub = false
}
})
},
//
getHuoquyonghu() {
var token = getStorage()
loginDetails(token).then((response) => {
if (response.code === '200') {
this.userSid = response.data.sid
this.getOrgList()
}
})
},
// //
handleSelectionChange(row) { handleSubmit() {
const aa = [] if (this.sids.length == 1) {
row.forEach((element) => { this.$confirm('是否确定提交该业务', '提示', {
aa.push(element.sid) confirmButtonText: '确定',
console.log(element.sid) cancelButtonText: '取消',
// setuser(this.sids) type: 'warning'
}).then(() => {
this.submitDto.businessSid = this.sids[0]
submitSales(this.submitDto).then((response) => {
if (response.code === '200') {
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 {
this.$notify({
title: '添加失败',
message: response.msg,
type: 'error'
})
}
})
}) })
this.sids = aa } else if (this.sids.length == 0) {
const bb = [] this.$notify({
row.forEach((element) => { title: '您还未选择,请选择数据!!!',
bb.push(element.nodeState) type: 'error'
console.log(element.nodeState)
if (element.nodeState !==''){
this.isableSub = true
}else if (element.nodeState ==''){
this.isableSub = false
}
}) })
} else if (this.sids.length > 1) {
}, this.$notify({
// title: '您选择的数据过多,请选择一条数据编辑!!',
getHuoquyonghu() { type: 'error'
var token = getStorage()
loginDetails(token).then((response) => {
if (response.code === '200') {
this.userSid = response.data.sid
this.getOrgList()
}
}) })
}, }
},
// //
handleSubmit() { // submitOrder() {
if (this.sids.length == 1) { // submitOrder(this.userSid, this.sids.join(',')).then((response) => {
this.$confirm('是否确定提交该业务', '提示', { // if (response.code === '200') {
confirmButtonText: '确定', // this.$notify({
cancelButtonText: '取消', // title: '',
type: 'warning' // message: '',
}).then(() => { // type: 'success',
this.submitDto.businessSid = this.sids[0] // duration: 2000,
submitSales(this.submitDto).then((response) => { // })
if (response.code === '200') { // this.getList()
this.updateDto.nodeState = response.data.nodeState // } else {
this.$notify({ // this.$notify({
title: '提示', // title: '',
message: '添加成功', // message: response.msg,
type: 'success', // type: 'error',
duration: 2000, // })
}) // }
// // })
this.updateDto.sid = this.sids[0] // },
updateSales(this.updateDto).then((response) => { // ID
if (response.code === '200') { handleDelete() {
this.$notify({ if (this.sids.length === 0) {
title: '提示', this.$notify({
message: '更新成功', title: '提示',
type: 'success', message: '没有选择!!',
duration: 2000, type: 'warning',
}) duration: 2000
this.getList() })
} else { return
this.$notify({ }
title: '更新失败', deleteByids(this.sids.join(',')).then((response) => {
message: response.msg, if (response.code === '200') {
type: 'error',
})
}
})
} else {
this.$notify({
title: '添加失败',
message: response.msg,
type: 'error',
})
}
})
})
} else if (this.sids.length == 0) {
this.$notify({ this.$notify({
title: '您还未选择,请选择数据!!!', title: '提示',
type: 'error', message: '删除成功',
type: 'success',
duration: 2000
}) })
} else if (this.sids.length > 1) { this.getList()
} else {
this.$notify({ this.$notify({
title: '您选择的数据过多,请选择一条数据编辑!!', title: '删除失败',
type: 'error', message: response.msg,
type: 'error'
}) })
} }
}, })
// },
// submitOrder() { //
// submitOrder(this.userSid, this.sids.join(',')).then((response) => { handleDaoChu(row) {
// if (response.code === '200') { 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({ // this.$notify({
// title: '', // title: '',
// message: '', // message: '',
// type: 'success', // type: 'success',
// duration: 2000, // duration: 2000
// }) // })
// this.getList() // this.getList()
// } else { // } else {
// this.$notify({ // this.$notify({
// title: '', // title: '',
// message: response.msg, // message: response.msg,
// type: 'error', // type: 'error'
// }) // })
// } // }
// }) // })
// }, // })
// ID // .catch(() => {
handleDelete() { // this.$message({
if (this.sids.length === 0) { // type: 'info',
this.$notify({ // message: ''
title: '提示', // })
message: '没有选择!!', // })
type: 'warning', },
duration: 2000, //
}) AddUpdateReturn() {
return this.visible = true
} },
deleteByids(this.sids.join(',')).then((response) => { //
if (response.code === '200') { dataCreated() {
this.$notify({ this.visible = true
title: '提示', this.getList()
message: '删除成功',
type: 'success',
duration: 2000,
})
this.getList()
} else {
this.$notify({
title: '删除失败',
message: response.msg,
type: 'error',
})
}
})
},
//
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()
},
//
dataUpdated() {
this.visible = true
this.getList()
},
}, },
//
dataUpdated() {
this.visible = true
this.getList()
}
} }
}
</script> </script>
<style scoped> <style scoped>
.filter-item { .filter-item {
padding: 0 10px; padding: 0 10px;
width: 220px; width: 220px;
display: inline-block; display: inline-block;
} }
/* .filter-item-time { /* .filter-item-time {
padding: 0 10px; padding: 0 10px;
width: 300px; width: 300px;
display: inline-block; display: inline-block;
} */ } */
/* .listcon{height: calc(100vh - 550px);overflow-y: auto;overflow-x: hidden;} */ /* .listcon{height: calc(100vh - 550px);overflow-y: auto;overflow-x: hidden;} */
</style> </style>

Loading…
Cancel
Save