Browse Source

业务管理--出库管理页面、api、style

供应链管理--出库审核页面、api、style
zhanglei
Zhao Qiqi 3 years ago
parent
commit
3766cf5070
  1. 109
      anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js
  2. 32
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  3. 2
      anrui-buscenter/anrui-buscenter-ui/src/styles/index.scss
  4. 450
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue
  5. 467
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue
  6. 323
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue
  7. 379
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue
  8. 213
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoAdd.vue
  9. 173
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoLook.vue
  10. 13
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue
  11. 13
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue
  12. 13
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanInfo.vue
  13. 59
      anrui-scm/anrui-scm-ui/src/api/examinePage/chukushenhe.js
  14. 19
      anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
  15. 6
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
  16. 20
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue
  17. 442
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenhe.vue
  18. 392
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenheTodo.vue
  19. 181
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/relation/userInfoLook.vue
  20. 1
      anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/relation/xuanzecheliang.vue

109
anrui-buscenter/anrui-buscenter-ui/src/api/chukuguanli/chukubanli.js

@ -0,0 +1,109 @@
import request from '@/utils/request'
import qs from 'qs'
// 待出库分页列表 已改
export function listPage(params) {
return request({
url: '/buscenter/v1/busdelivered/listPage',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 出库申请初始化/详情 已改
export function fetchDetailsBySid(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/fetchDetailsBySid',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 出库分页列表 已改
export function pagerList(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/listPage',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 保存和修改接口 已改
export function save(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/save',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 列表提交 已改
export function submitBySid(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/submitBySid',
method: "put",
params: {
sid: params
},
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
});
}
// 表单中的提交 已改
export function submitInfo(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/submit',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 出库列表批量删除 已改
export function delBySids(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/delBySids',
method: "DELETE",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 模糊搜索客户
export function customerName() {
return request({
url: "/buscenter/v1/busorder/likeGetCustomerName",
method: "post"
// params: { staffSid: id }
});
}
// 获取下拉框option
export function typeValues(data) {
return request({
url: '/portal/v1/dictcommons/typeValues',
method: 'get',
params: data
// headers: {
// 'Content-Type':'multipart/form-data',
// }
})
}

32
anrui-buscenter/anrui-buscenter-ui/src/router/index.js

@ -203,6 +203,26 @@ export const constantRoutes = [{
}
]
},
// 出库管理
{
path: '/chukuguanli',
component: Layout,
redirect: '/chukuguanli',
meta: {
title: '出库管理'
},
children: [
{
path: '/chukuguanli/chukubanli',
component: () =>
import('@/views/chukuguanli/chukubanli/daichukucheliang.vue'),
name: 'daichukucheliang',
meta: {
title: '出库办理'
}
},
]
},
// 销售管理
{
path: '/xiaoshouguanli',
@ -244,8 +264,8 @@ export const constantRoutes = [{
{
path: '/xiaoshouguanli/dingdanxinxi',
component: () =>
import('@/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dingdanxinxi.vue'),
name: 'dingdanxinxi',
import('@/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue'),
name: 'xiaoshoudingdan',
meta: {
title: '销售订单管理'
}
@ -520,28 +540,28 @@ export const constantRoutes = [{
//欠款提车申请详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo',
component: ()=>
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo.vue'),
name: 'qiankuanticheInfo',
},
//欠款提车编辑
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit',
component: ()=>
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit.vue'),
name: 'qiankuanticheEdit',
},
//欠款提车复核
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe',
component: ()=>
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe.vue'),
name: 'qiankuantichefuhe',
},
//欠款提车复核详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo',
component: ()=>
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo.vue'),
name: 'qiankuantichefuheInfo',
},

2
anrui-buscenter/anrui-buscenter-ui/src/styles/index.scss

@ -178,7 +178,7 @@ div:focus {
border-right: 1px solid $table-border-color;
border-bottom: 1px solid $table-border-color;
padding: 5px 15px 5px 15px !important;
min-height: 50px;
height: 48px;
line-height: 1;
.el-form-item{
margin-bottom: 0;

450
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue

@ -0,0 +1,450 @@
<template>
<div class="app-container">
<div v-show="viewState == 5">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>出库申请管理</div>
<!--start 查询列表按钮部分开始-->
<div>
<el-button type="primary" size="small" @click="handleSubmit()">提交</el-button>
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button>
<el-button type="info" size="small" @click="handleClose()">关闭</el-button>
</div>
<!--end 查询列表按钮部分结束-->
</div>
<!--按钮部分结束-->
<div class="switch_btn">
<el-button class="" @click="handleWaitList">待出库车辆列表</el-button>
<el-button :class="{btn_style:viewState === 5}">出库申请列表</el-button>
</div>
<!--Start查询列表部分-->
<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="合同编号">
<el-input v-model="listQuery.params.contractNo" placeholder="请输入合同编号" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="客户名称">
<el-select v-model="listQuery.name" class="addinputw" clearable filterable
placeholder="请选择" @change="customerChange">
<el-option v-for="item in customerList" :key="item.sid" :label="item.customerName"
:value="item.customerName"/>
</el-select>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.applyName" placeholder="请输入申请人姓名" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="申请日期">
<div class="block">
<el-date-picker
v-model="listQuery.params.applyDateStart"
type="date"
placeholder="选择日期">
</el-date-picker>
</div>
<label></label>
<div class="block">
<el-date-picker
v-model="listQuery.params.applyDateEnd"
type="date"
placeholder="选择日期">
</el-date-picker>
</div>
</el-form-item>
<el-divider></el-divider>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</el-form>
</div>
</div>
<!--End查询列表部分-->
<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"/>
</div>
<!--Start 主页面主要部分 -->
<div class="listcon">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" 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="150px" label="操作" align="center">
<template slot-scope="scope">
<div class="searchbtns"> <!--:disabled="scope.row.nodeState == ''?false:true"-->
<el-button size="small" type="primary"
:disabled="scope.row.state !== '待提交'"
@click="changeNodeState(scope.row)">办理
</el-button>
<el-button size="small" type="primary" @click="handleCheck(scope.row)">查看</el-button>
</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.state }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="申请日期" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyDate }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyName }}</span>
</template>
</el-table-column>
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList"/>
</div>
<!--End查询列表部分-->
</div>
<chukushenqing-add v-show="viewState == 3" ref="divadd" @doback="resetState"
@reloadlist="getList"/>
<chukushenqing-info v-show="viewState == 4" ref="divInfo" @doback="resetState"
@reloadlist="getList"/>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
import {
pagerList,
delBySids,
submitBySid,
customerName
} from '@/api/chukuguanli/chukubanli'
import {setuser, getuser} from '@/utils/baocun'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import chukushenqingAdd from "./chukushenqingAdd";
import chukushenqingInfo from "./chukushenqingInfo";
export default {
name: "chukushenqing",
components: {
Pagination,
pageye,
chukushenqingAdd,
chukushenqingInfo
},
data() {
return {
viewTitle: '',
//
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 5, // 1 2 3 4
// -----------
tableKey: 0,
customerList: [],
list: [],
sids: [],// SIDs
sides: '',
state_list: [],
total: 1,
FormLoading: false,
listLoading: false,
departmentSid: window.sessionStorage.getItem('departmentSid'), //sid
departmentName: window.sessionStorage.getItem('departmentName'), //
typeList: [], //
//
listQuery: {
current: 1,
size: 20,
params: {
applyDateEnd: '', //
applyDateStart: '', //
applyName: '', //
applySid: window.sessionStorage.getItem('staffSid'), // sid
contractNo: '', //
name: '', //
},
},
initObj: {
detailVo: {
applyDate: '', //
contractNo: '', //
isTerminal: '', //
listVo: [],
modelName: '', //
name: '', //
},
sid: '',
stringList: []
},
temp: {}, //
templook: {}, //
textMap: {
update: '编辑',
create: '创建'
},
dialogStatus: '',
}
},
computed: {
...mapGetters(['id', 'roles', 'rolesIds', 'departmentId', 'departmentCode']),
},
created() {
//
this.init();
},
methods: {
// ========== ==========
init() {
this.getList()
this.getCustomer()
},
//
resetTemp() {
this.temp = {}
},
//
getCustomer() {
customerName().then((response) => {
if (response.code === '200') {
this.customerList = response.data
console.log('客户列表', this.customerList)
}
})
},
//
customerChange(value) {
console.log('触发下拉框按钮', value)
let bb = {}
this.typeList.forEach((e) => {
if (e.customerName == value) {
bb = {
name: e.customerName,
sid: e.sid
}
}
})
this.listQuery.params.name = bb.name
console.log('客户名称', this.listQuery.params.name)
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size;
var pageindex = index + 1 + pagestart;
return pageindex
},
// ========== ==========
//
handleWaitList() {
this.$parent.viewState = 1
},
//
resetState() {
this.viewState = 5
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow;
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
// sid
handleSelectionChange(row) {
console.log('开票', row)
const aa = [];
const bb = []
row.forEach(element => {
aa.push(element.sid);
setuser(this.sids) //sids
bb.push(element.state)
});
this.sids = aa;
this.sides = this.sids.join(); //sid
this.state_list = bb
console.log('sids数组', this.sids)
console.log('sides字符串', this.sides)
},
//
handleFilter() {
this.listQuery.current = 1;
this.getList()
},
//
handleReset() {
this.listQuery.params = {
applicant: '',
contractNo: '',
customerName: '',
endDate: '',
invoiceState: '',
startDate: ''
}
},
// ========== ==========
//
getList() {
this.listLoading = true;
pagerList(this.listQuery).then(response => { //
this.listLoading = false;
console.log(response)
if (response.code === '200' && response.data && response.data.total > 0) {
this.list = response.data.records;
this.total = response.data.total;
} else {
this.list = [];
this.total = 0
}
})
},
//
handleCheck(row) {
this.viewState = 4;
this.$refs['divInfo'].showInfo(row.sid,row.state)
},
//
changeNodeState(row) {
this.viewState = 3
this.$refs['divadd'].showEdit(row, row.sid)
},
// state_list
handleSubmit() {
if (this.sids.length > 1) {
this.$message({showClose: true, message: '请选择一条出库申请!', type: 'error'});
return
}
if (this.sids.length == 0) {
this.$message({showClose: true, message: '请选择一条出库申请!', type: 'error'});
return
}
if (this.sids.length == 1) {
if (this.state_list[0] == '待提交') {
const sid = this.sids[0]
submitBySid(sid).then((response) => {
if (response.success) {
this.getList()
}
})
} else {
this.$message({showClose: true, message: '该业务已提交!', type: 'error'});
return
}
}
},
//
handleDelete() {
if (this.sids.length > 0) {
if (this.state_list.length > 0) {
this.$message({
showClose: true,
message: '该业务已提交,不可删除!',
type: 'error'
});
return
}
const sids = this.sids
delBySids(sids).then((response) => {
if (response.code === '200') {
this.getList()
}
})
} else {
this.$message({
showClose: true,
message: '请选择出库申请信息!',
type: 'error'
});
return
}
},
//
handleClose() {
},
//
// handleDaoRu() {
// this.$confirm(', ?', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning'
// })
// },
//
// handleDaoChu(row) {
// this.$confirm(', ?', '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning'
// })
// }
}
}
</script>
<style scoped>
.switch_btn {
padding: 15px 0 10px 0;
}
.block {
display: inline-block;
}
label {
padding: 0 6px;
}
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
/deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.searchli {
padding: 5px 100px;
}
</style>

467
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingAdd.vue

@ -0,0 +1,467 @@
<template>
<div class="app-container">
<div v-show="isShow">
<div class="tab-header webtop">
<div>{{viewTitle}}</div>
<!-- <div v-else></div> -->
<div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交</el-button>
<el-button type="primary" size="small">打印</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" label-width="100%" class="formadd" :rules="rules">
<div class="tit">
出库申请
<div class="times">
<div><span>合同编号</span><span>{{ temp.contractNo }}</span></div>
<div><span>申请日期</span><span>{{ temp.applyDate }}</span></div>
</div>
</div>
<el-row class="nothingBorder">
<el-col :span="2"/>
<el-col :span="4">
<el-form-item><span slot="label">客户名称</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
{{ temp.name }}
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item><span slot="label">是否为终端客户</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-radio v-model="temp.isTerminal" :label="0"></el-radio>
<el-radio v-model="temp.isTerminal" :label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="2"/>
</el-row>
<el-row>
<el-col :span="2"/>
<el-col :span="4">
<el-form-item><span slot="label">车型</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<span>{{temp.modelName}}</span>
</el-form-item>
</el-col>
<el-col :span="12"/>
</el-row>
<!--Start 预订车辆信息-->
<div class="titcon">
<div class="title">车辆信息</div>
<div class="baocun">
<el-button v-show="temp.isTerminal === 0" size="medium" type="primary" @click="openUserInfo"
class="btntopbluebut">
录入用人信息
</el-button>
<el-button v-show="temp.isTerminal === 0" size="medium" type="danger" @click="clearUserInfo">
置空使用人信息
</el-button>
</div>
</div>
<el-table v-loading="listLoading" :data="detailsList" border style="width: 100%" :index="index" fit
@selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column align="center" label="序号" type="index" width="50"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope" @click="">
<span>{{scope.row.vinNo}}</span>
</template>
</el-table-column>
<el-table-column label="成交价" align="center">
<template slot-scope="scope">
<span>{{scope.row.price}}</span>
</template>
</el-table-column>
<el-table-column label="使用人信息" align="center">
<template slot-scope="scope">
<!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true -->
<el-button v-show="temp.isTerminal === 0 && scope.row.isExist == '1'" size="medium" type="primary"
@click="updateUserInfo(scope.row.vinNo)"
class="btntopbluebut">修改
</el-button>
<el-button v-show="temp.isTerminal === 0 && scope.row.isExist == '1'" size="medium" type="primary"
@click="lookUserInfo(scope.row.vinNo)"
class="btntopbluebut">查看
</el-button>
<el-button v-show="temp.isTerminal === 1" size="medium" type="primary"
@click="lookUserInfo(scope.row.vinNo)"
class="btntopbluebut">查看
</el-button>
<span v-show="temp.isTerminal == 3"></span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" class="addinputw" placeholder="请输入备注" clearable/>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div> <!--@returnEdit="getUserInfoEdit"-->
<user-info-add v-show="isShowAdd" ref="divUser" @doback="resetState" @returnInfo="getUserInfo"/>
<user-info-look v-show="isShowLook" ref="divUserInfo" @doback="resetState"/>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
import {fetchDetailsBySid, save, submitInfo} from '@/api/chukuguanli/chukubanli'
import userInfoAdd from "./relation/userInfoAdd";
import userInfoLook from "./relation/userInfoLook";
export default {
name: 'chukushenqingAdd',
components: {
userInfoAdd,
userInfoLook
},
data() {
return {
viewTitle: '',
index: 0,
disabled: false, //
createBtn: false,
dialogStatus: 'add', //
// ---------
isShow: true,
isShowAdd: false,
isShowLook: false,
// ===
listLoading: false,
list: [],
temp: {
applyName: window.sessionStorage.getItem('name'), //
applySid: window.sessionStorage.getItem('staffSid'), // sid staffSid
contractNo: '', //
isTerminal: 3, // 10
modelName: '', //
name: '',//
sid: '',
applyDate: '', //
detailsList: []
}, //
detailsList: [{
price: '', //
remarks: '', //
vinNo: '',//
useMessage: {}
}],
sids: [],
vinNo_info: '',
index_list: [],
rules: {},
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
},
methods: {
// ------------ ------------
init() {
this.temp = {
applyName: window.sessionStorage.getItem('name'), //
applySid: window.sessionStorage.getItem('staffSid'), // sid staffSid
contractNo: '', //
isTerminal: 3, // 10
modelName: '', //
name: '',//
sid: '',
applyDate: '', //
detailsList: []
}
},
resetState() {
this.isShow = true
this.isShowAdd = false
this.isShowLook = false
},
openUserInfo() {
if (this.sids.length > 0) {
this.isShow = false
this.isShowAdd = true
console.log('车架号', this.vinNo_info, '合同编号', this.temp.contractNo)
this.$refs['divUser'].showAdd(this.temp.contractNo, this.vinNo_info)
} else {
this.$message({
showClose: true,
message: '请选择出库车辆信息!',
type: 'error'
});
return
}
// this.isShow = false
},
//
updateUserInfo(vinNo) {
console.log('1111', vinNo)
for (var i = 0; i < this.detailsList.length; i++) {
if (this.detailsList[i].vinNo == vinNo) {
let useMessage = {
address: this.detailsList[i].useMessage.address,
contractNo: this.detailsList[i].useMessage.contractNo,
idNo: this.detailsList[i].useMessage.idNo,
mobile: this.detailsList[i].useMessage.mobile,
name: this.detailsList[i].useMessage.name,
vinNo: this.detailsList[i].useMessage.vinNo
}
// useMessage = this.detailsList[i].useMessage
console.log('点击编辑useMessage', this.detailsList[i].useMessage)
this.isShow = false
this.isShowAdd = true
this.$refs['divUser'].showEdit(useMessage, vinNo)
}
}
},
//
lookUserInfo(vinNo) {
console.log('1111', vinNo)
for (var i = 0; i < this.detailsList.length; i++) {
if (this.detailsList[i].vinNo == vinNo) {
let useMessage = {}
useMessage = this.detailsList[i].useMessage
this.isShow = false
this.isShowLook = true
this.$refs['divUserInfo'].showInfo(useMessage, vinNo)
}
}
},
//
clearUserInfo() {
if (this.sids.length > 0) {
for (var i = 0; i < this.index_list.length; i++) {
if (this.detailsList[this.index_list[i]].isExist == '1') {
this.detailsList[this.index_list[i]].useMessage = {
contractNo: '',
vinNo: '',
name: '',
mobile: '',
idNo: '',
address: ''
}
this.detailsList[this.index_list[i]].isExist = ''
this.$message({
showClose: true,
message: '成功置空使用人信息!',
type: 'success'
});
} else {
this.$message({
showClose: true,
message: '此车辆无使用人信息!',
type: 'error'
});
return
}
}
} else {
this.$message({
showClose: true,
message: '请选择出库车辆信息!',
type: 'error'
});
return
}
// this.vinNo_info
},
//
getUserInfo(tempUser) {
console.log('开票申请页面的tempUser', tempUser)
const vinNo_array = tempUser.vinNo.split(',') // 使
console.log('保存过来的vinNo', vinNo_array)
for (var i = 0; i < this.detailsList.length; i++) {
for (var j = 0; j < vinNo_array.length; j++) {
if (this.detailsList[i].vinNo === vinNo_array[j]) {
this.detailsList[i].useMessage = tempUser
this.detailsList[i].isExist = '1'
console.log('保存到detailsList的信息', this.detailsList)
}
}
}
},
showAdd(temp) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
this.dialogStatus = 'add'
this.viewTitle = '【新增】出库申请';
console.log('新增初始化', temp)
this.temp.contractNo = temp.contractNo
this.temp.isTerminal = temp.isTerminal
this.temp.modelName = temp.modelName
this.temp.name = temp.name
this.temp.applyDate = temp.applyDate
this.detailsList = temp.listVo;
console.log('新增初始化temp', this.temp)
console.log('新增初始化detailsList', this.detailsList)
},
showEdit(row, sid) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
this.dialogStatus = 'edit';
this.viewTitle = '【编辑】出库申请';
fetchDetailsBySid({sid: sid}).then(response => {
if (response.success) {
this.temp = response.data
this.temp.sid = sid
this.detailsList = response.data.listVo
for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== '{}') {
this.detailsList[i].isExist = '1'
}
}
this.temp = JSON.parse(JSON.stringify(this.temp).replace(/listVo/g, 'detailsList'))
console.log('isTerminal', this.temp.isTerminal)
}
})
},
handleSelectionChange(row) {
console.log('开票', row)
const aa = []
const bb = []
const index_arr = []
row.forEach((element, index) => {
aa.push(element.vinNo)
bb.push(element.sid)
this.detailsList.forEach((v, i) => {
// id id
if (element.vinNo == v.vinNo) {
index_arr.push(i)
}
})
})
this.vinNo_info = aa.join()
this.sids = bb
this.index_list = index_arr
},
// ------------ ------------
//
handleCreate() {
this.temp.detailsList = this.detailsList
console.log('112233', this.temp)
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.createBtn = true
if (this.dialogStatus === 'add') {
save(this.temp).then((response) => {
if (response.success) {
this.createBtn = false
this.handleReturn('true')
}
}).catch(e => {
this.createBtn = false
})
} else {
this.createBtn = true
save(this.temp).then((response) => {
if (response.success) {
this.createBtn = false
this.handleReturn('true')
}
}).catch(e => {
this.createBtn = false
})
}
}
})
},
//
handleSubmit() {
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.disabled = true;
this.temp.detailsList = this.detailsList
submitInfo(this.temp).then((response) => {
if (response.success) {
this.disabled = false
this.handleReturn('true')
}
}).catch(e => {
this.createBtn = false
})
}
})
})
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist');
this.$refs['dataForm'].resetFields();
this.$emit('doback')
},
// ------------ ------------
},
}
</script>
<style scoped>
.tit {
margin: 0 0 20px 0;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
}
.formadd /deep/ .el-row {
border: 0;
}
.formadd /deep/ .el-col {
border: 0;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
.titcon {
border: 1px solid #e0e3eb;
}
.titcon, .title {
background-color: white;
color: black;
}
.changeIt {
line-height: 40px;
font-size: 17px;
float: right;
}
</style>

323
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqingInfo.vue

@ -0,0 +1,323 @@
<template>
<div class="app-container">
<div v-show="isShow">
<div class="tab-header webtop">
<div>出库申请详情</div>
<!-- <div v-else></div> -->
<div>
<el-button type="info" size="small" @click="handleReturn()"
>返回
</el-button>
</div>
</div>
<div class="listconadd">
<el-form
ref="dataForm"
:model="temp"
label-position="right"
label-width="100%"
class="formadd"
:rules="rules">
<div class="tit">
出库申请
<div class="times">
<div>
<span>合同编号</span><span>{{ temp.contractNo }}</span>
</div>
<div>
<span>申请日期</span><span>{{ temp.applyDate }}</span>
</div>
</div>
</div>
<el-row class="nothingBorder">
<el-col :span="2"/>
<el-col :span="4">
<el-form-item><span slot="label">客户名称</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
{{ temp.name }}
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item
><span slot="label">是否为终端客户</span></el-form-item
>
</el-col>
<el-col :span="6">
<el-form-item>
<el-radio v-model="temp.isTerminal" :label="0"></el-radio>
<el-radio v-model="temp.isTerminal" :label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="2"/>
</el-row>
<el-row>
<el-col :span="2"/>
<el-col :span="4">
<el-form-item><span slot="label">车型</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<span>{{ temp.modelName }}</span>
</el-form-item>
</el-col>
<el-col :span="12"/>
</el-row>
<!--Start 预订车辆信息-->
<div class="titcon">
<div class="title">车辆信息</div>
</div>
<!--@selection-change="handleSelectionChange"-->
<el-table
v-loading="listLoading"
:data="detailsList"
border
style="width: 100%"
:index="index"
fit
>
<!-- <el-table-column type="selection" align="center" width="50"/>-->
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="成交价" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price }}</span>
</template>
</el-table-column>
<el-table-column label="使用人信息" align="center">
<template slot-scope="scope">
<!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true -->
<el-button
v-show="temp.isTerminal === 0"
size="medium"
type="primary"
@click="lookUserInfo(scope.row.vinNo)"
class="btntopbluebut"
>查看
</el-button>
<span v-show="temp.isTerminal == 3"></span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.remarks"
class="addinputw"
placeholder="请输入备注"
clearable
/>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
<!--@returnEdit="getUserInfoEdit"-->
<user-info-look
v-show="isShowLook"
ref="divUserInfo"
@doback="resetState"
/>
</div>
</template>
<script>
import {mapGetters} from "vuex";
import {fetchDetailsBySid,} from '@/api/chukuguanli/chukubanli'
import userInfoLook from "./relation/userInfoLook";
export default {
name: "chukushenqingInfo",
components: {
userInfoLook,
},
data() {
return {
viewTitle: "",
index: 0,
disabled: false, //
createBtn: false,
dialogStatus: "add", //
// ---------
isShow: true,
isShowLook: false,
// ===
listLoading: false,
list: [],
temp: {
applyName: window.sessionStorage.getItem("name"), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid
contractNo: "", //
isTerminal: 3, // 10
modelName: "", //
name: "", //
sid: "",
applyDate: "", //
detailsList: [],
}, //
detailsList: [
{
price: "", //
remarks: "", //
vinNo: "", //
useMessage: {},
},
],
sids: [],
vinNo_info: "",
submitDto: {
businessSid: "",
userSid: window.sessionStorage.getItem("userSid"),
},
rules: {},
// ------------------------------------
};
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
},
created() {
//
this.init();
},
methods: {
// ------------ ------------
init() {
this.temp = {
applyName: window.sessionStorage.getItem("name"), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid
contractNo: "", //
isTerminal: 3, // 10
modelName: "", //
name: "", //
sid: "",
applyDate: "", //
detailsList: [],
isUse: false,
};
},
resetState() {
this.isShow = true;
this.isShowLook = false;
},
showInfo(sid, state) {
this.$nextTick(() => {
this.$refs["dataForm"].clearValidate();
});
if (state == "已通过" || state == "未通过") {
this.disabled = true;
this.createBtn = true;
}
fetchDetailsBySid({sid: sid}).then((response) => {
if (response.success) {
this.temp = response.data;
this.temp.sid = sid;
this.detailsList = response.data.listVo;
for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== "{}") {
this.detailsList[i].isExist = "1";
}
}
this.temp = JSON.parse(
JSON.stringify(this.temp).replace(/listVo/g, "detailsList")
);
console.log("isTerminal", this.temp.isTerminal);
}
});
},
//
lookUserInfo(vinNo) {
console.log("1111", vinNo);
for (var i = 0; i < this.detailsList.length; i++) {
if (this.detailsList[i].vinNo == vinNo) {
let useMessage = {};
useMessage = this.detailsList[i].useMessage;
this.isShow = false;
this.isShowLook = true;
this.$refs["divUserInfo"].showInfo(useMessage, vinNo);
}
}
},
//
handleSelectionChange(row) {
console.log("开票", row);
const aa = [];
const bb = [];
row.forEach((element) => {
aa.push(element.vinNo);
bb.push(element.sid);
});
this.vinNo_info = aa.join();
this.sids = bb;
},
// ------------ ------------
//
handleReturn(isreload) {
if (isreload === "true") this.$emit("reloadlist");
this.$refs["dataForm"].resetFields();
this.$emit("doback");
},
},
};
</script>
<style scoped>
.tit {
margin: 0 0 20px 0;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
}
.formadd /deep/ .el-row {
border: 0;
}
.formadd /deep/ .el-col {
border: 0;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
.titcon {
border: 1px solid #e0e3eb;
}
.titcon,
.title {
background-color: white;
color: black;
}
.changeIt {
line-height: 40px;
font-size: 17px;
float: right;
}
</style>

379
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/daichukucheliang.vue

@ -0,0 +1,379 @@
<template>
<div class="app-container">
<!--待开票列表页面-->
<div v-show="viewState == 1">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>待出库车辆列表</div>
<!--start 查询列表按钮部分开始-->
<div>
<el-button type="primary" size="small" @click="handleCreate()">出库申请</el-button>
</div>
<!--end 查询列表按钮部分结束-->
</div>
<!--按钮部分结束-->
<div class="switch_btn">
<el-button :class="{btn_style:viewState === 1}">待出库车辆列表</el-button>
<el-button class="" @click="handleInvoiceList">出库申请列表</el-button>
</div>
<!--Start查询列表部分-->
<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="合同编号">
<el-input v-model="listQuery.contractNo" placeholder="请输入合同编号" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="客户名称">
<el-select v-model="listQuery.name" class="addinputw" clearable filterable
placeholder="请选择" @change="customerChange">
<el-option v-for="item in customerList" :key="item.sid" :label="item.customerName"
:value="item.customerName"/>
</el-select>
</el-form-item>
<el-form-item label="车架号">
<el-input v-model="listQuery.vinNo" placeholder="请输入车架号" clearable class="filter-item"/>
</el-form-item>
<el-divider></el-divider>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</el-form>
</div>
</div>
<!--End查询列表部分-->
<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"/>
</div>
<!--Start 主页面主要部分 -->
<div class="listcon">
<el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="list" :border="true" 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 label="认款状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.type }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name}}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList"/>
</div>
</div>
<!-- 出库申请新增页面 -->
<chukushenqing-add v-show="viewState == 2" ref="divadd" @doback="resetState"
@reloadlist="getList"/>
<!-- 出库申请列表 -->
<chukushenqing v-show="viewState == 5" ref="divchuku"/>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
import {
listPage,
fetchDetailsBySid,
typeValues,
customerName,
checkNum
} from '@/api/chukuguanli/chukubanli'
import {setuser, getuser} from '@/utils/baocun'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import chukushenqing from './chukushenqing'
import chukushenqingAdd from './chukushenqingAdd'
export default {
name: 'daichukucheliang',
components: {
Pagination,
pageye,
chukushenqing,
chukushenqingAdd
},
data() {
return {
isSearchShow: false, //
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4 5.
// -----------
tableKey: 0,
infoList: [],
sids: [],// SIDs
total: 1,
FormLoading: false,
listLoading: false,
customerList: [],
invoicingNature: 'invoicingNature',
typeList: [], //
list: [],
//
listQuery: {
current: 1,
size: 20,
params: {
contractNo: '', //
name: '', //
vinNo: '' //
}
},
textMap: {
update: '编辑',
create: '创建'
},
temp: {},
initObj: {
detailVo: {
applyDate: '', //
contractNo: '', //
isTerminal: '', //
modelName: '', //
name: '', //
listVo: [],
},
sid: '',
stringList: []
},
// { // listVo
// price:'', //
// remarks:'', //
// sid:'', //sid
// useMessageSid:'', //使sid
// vinNo:'',//
// },
dialogStatus: ''
}
},
// ------------------------------------
computed: {
...mapGetters(['id', 'roles', 'rolesIds', 'departmentId', 'departmentCode'])
},
created() {
//
this.init()
//
this.getList()
},
methods: {
// ========== ==========
init() {
this.getCustomer()
},
//
getCustomer() {
customerName().then((response) => {
if (response.code === '200') {
this.customerList = response.data
console.log('客户列表', this.customerList)
}
})
},
//
customerChange(value) {
console.log('触发下拉框按钮', value)
let bb = {}
this.typeList.forEach((e) => {
if (e.customerName == value) {
bb = {
name: e.customerName,
sid: e.sid
}
}
})
this.listQuery.params.name = bb.name
console.log('客户名称', this.listQuery.params.name)
},
// ========== ==========
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
// sid
handleSelectionChange(row) {
console.log('待出库', row)
const aa = [] // sid
const bb = [] // contractNo
const cc = [] // listVo 使
var dd = {}
for (var i = 0; i < row.length; i++) {
for (var j = i + 1; j < row.length; j++) {
if (row[i].contractNo !== row[j].contractNo) {
this.$message({
showClose: true,
message: '请选择同一合同编号的车辆!',
type: 'error'
});
// this.$refs.multipleTable.clearSelection();
return
}
}
}
row.forEach(element => {
aa.push(element.sid)
setuser(this.sids) // sids
bb.push(element.contractNo)
cc.push({
price: element.price, //
remarks: '', //
sid: '', //sid
useMessageSid: '', //使sid
vinNo: element.vinNo,//
})
dd = {
applyDate: element.applyDate, //
contractNo: element.contractNo, //
isTerminal: element.isTerminal, //
modelName: element.modelName, //
name: element.name, //
}
})
this.sids = aa
this.initObj.stringList = bb
console.log('cc',cc)
this.initObj.detailVo.listVo = cc
this.initObj.detailVo.applyDate = dd.applyDate
this.initObj.detailVo.contractNo = dd.contractNo
this.initObj.detailVo.isTerminal = dd.isTerminal
this.initObj.detailVo.modelName = dd.modelName
this.initObj.detailVo.name = dd.name
console.log('sids:', this.sids, 'this.initObj.stringList', this.initObj.stringList, 'this.initObj', this.initObj)
},
// ========== ==========
handleInvoiceList() {
this.viewState = 5
},
//
resetState() {
this.viewState = 1
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery.params.vinNo = ''//
this.listQuery.params.contractNo = ''//
this.listQuery.params.name = '' //
},
//
getList() {
this.listLoading = true
listPage({
current: this.listQuery.current,
size: this.listQuery.size,
params: {
contractNo: this.listQuery.contractNo,
name: this.listQuery.name, //
vinNo: this.listQuery.vinNo
}
}).then(response => { //
this.listLoading = false
console.log(response)
if (response.success && response.data && response.data.total > 0) {
this.list = response.data.records
this.total = response.data.total
} else {
this.list = []
this.total = 0
}
})
},
//
handleCreate() {
if (this.sids.length === 0) {
this.$message({showClose: true, type: 'error', message: '请选择一条记录进行出库申请'})
return
}
if (this.sids.length > 0) {
this.FormLoading = true
fetchDetailsBySid(this.initObj).then(response => {
if (response.success) {
this.viewState = 2
this.temp = response.data
this.$refs['divadd'].showAdd(this.temp)
}
})
}
},
}
}
</script>
<style scoped>
.switch_btn {
padding: 15px 0 10px 0;
}
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
/deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.searchli {
padding: 5px 100px;
}
</style>

213
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoAdd.vue

@ -0,0 +1,213 @@
<template>
<div class="app-container">
<div v-show="visible">
<div class="tab-header webtop">
<div>录入使用人信息</div>
<!-- <div v-else></div> -->
<div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="tempUser" :rules="rules" label-position="right"
class="formadd">
<div class="tit">录入使用人信息</div>
<el-row>
<el-col :span="4" class="topBor">
<span>合同编号</span>
</el-col>
<el-col :span="10" class="topBor">
<el-form-item prop="contractNo">
<span slot="label">{{ tempUser.contractNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>车架号</span>
</el-col>
<el-col :span="10">
<el-form-item prop="vinNo">
<span slot="label">{{ tempUser.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>客户名称</span>
</el-col>
<el-col :span="10">
<el-form-item prop="name">
<el-input v-model="tempUser.name" maxlength="125" placeholder="" class="addinputw"
clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系电话</span>
</el-col>
<el-col :span="10">
<el-form-item prop="mobile">
<el-input v-model="tempUser.mobile" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>证件号码</span>
</el-col>
<el-col :span="10">
<el-form-item prop="idNo">
<el-input v-model="tempUser.idNo" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系地址</span>
</el-col>
<el-col :span="10">
<el-form-item prop="address">
<el-input v-model="tempUser.address" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
export default {
name: 'userInfo',
components: {},
data() {
return {
viewTitle: '',
index: 0,
disabled: false, //
createBtn: false,
// ---------
visible: true,
listLoading: false,
tempUser: {
contractNo: '',
vinNo: '',
sid: '',
}, //
rules: {},
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
},
methods: {
// ------------ ------------
init() {
this.tempUser = {
contractNo: '',
vinNo: '',
name: '',
mobile: '',
idNo: '',
address: '',
}
},
showAdd(contractNo, vinNo) {
this.init()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
this.state = 'add'
this.tempUser.contractNo = contractNo
this.tempUser.vinNo = vinNo //
},
showEdit(useMessage, vinNo) {
this.init()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
console.log('编辑拿到的信息', useMessage)
this.state = 'edit'
this.tempUser = useMessage
this.tempUser.vinNo = vinNo
},
// ------------ ------------
//
handleCreate() {
var that = this
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.createBtn = true
if (this.state === 'add') {
this.createBtn = false
console.log('新增保存数据', this.tempUser)
const aa = this.tempUser
this.$emit('returnInfo', aa)
this.handleReturn()
} else {
this.createBtn = false
console.log('修改保存数据', this.tempUser)
const bb = this.tempUser
this.$emit('returnInfo', bb)
this.handleReturn()
}
}
})
},
//
handleReturn() {
this.$emit('doback')
},
// ------------ ------------
},
}
</script>
<style scoped>
.tit {
margin: 45px 0 66px 0;
padding: 10px 0 0 0;
border: 0;
}
/deep/ .el-row {
display: flex;
justify-content: center;
border-left: 0;
}
.topBor {
border-top: 1px solid #e0e3eb;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
border-left: 1px solid #e0e3eb;
}
</style>

173
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/relation/userInfoLook.vue

@ -0,0 +1,173 @@
<template>
<div class="app-container">
<div v-show="visible">
<div class="tab-header webtop">
<div>录入使用人信息</div>
<!-- <div v-else></div> -->
<div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="tempUserLook" :rules="rules" label-position="right"
class="formadd">
<div class="tit">录入使用人信息</div>
<el-row>
<el-col :span="4" class="topBor">
<span>合同编号</span>
</el-col>
<el-col :span="10" class="topBor">
<el-form-item prop="contractNo">
<span>{{ tempUserLook.contractNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>车架号</span>
</el-col>
<el-col :span="10">
<el-form-item prop="vinNo">
<span>{{ tempUserLook.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>客户名称</span>
</el-col>
<el-col :span="10">
<el-form-item prop="name">
<span>{{ tempUserLook.name }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系电话</span>
</el-col>
<el-col :span="10">
<el-form-item prop="mobile">
<span>{{ tempUserLook.mobile }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>证件号码</span>
</el-col>
<el-col :span="10">
<el-form-item prop="idNo">
<span>{{ tempUserLook.idNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系地址</span>
</el-col>
<el-col :span="10">
<el-form-item prop="address">
<span>{{ tempUserLook.address }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
import {} from '@/api/chukuguanli/chukubanli'
export default {
name: 'userInfoLook',
components: {},
data() {
return {
viewTitle: '',
index: 0,
disabled: false, //
createBtn: false,
// ---------
visible: true,
listLoading: false,
tempUserLook: {},
rules: {},
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
},
methods: {
// ------------ ------------
//
resetTemp() {
},
init() {
},
showInfo(useMessage, vinNo) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
console.log('详情拿到的信息', useMessage)
this.tempUserLook = useMessage
},
// ------------ ------------
//
handleReturn() {
this.$emit('doback')
},
// ------------ ------------
},
}
</script>
<style scoped>
.tit {
margin: 45px 0 66px 0;
padding: 10px 0 0 0;
border: 0;
}
/deep/ .el-row {
display: flex;
justify-content: center;
border-left: 0;
}
.topBor {
border-top: 1px solid #e0e3eb;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
border-left: 1px solid #e0e3eb;
}
</style>

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

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "xiaoshoudingdan"
}
</script>
<style scoped>
</style>

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

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "xiaoshoudingdanAdd"
}
</script>
<style scoped>
</style>

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

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "xiaoshoudingdanInfo"
}
</script>
<style scoped>
</style>

59
anrui-scm/anrui-scm-ui/src/api/examinePage/chukushenhe.js

@ -0,0 +1,59 @@
import request from '@/utils/request'
import qs from 'qs'
// 出库申请初始化/详情 已改
export function fetchDetailsBySid(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/fetchDetailsBySid',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 出库审核分页列表 已改
export function listExaminePage(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/listExaminePage',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 出库分页列表 已改
export function examine(params) {
return request({
url: '/buscenter/v1/busdeliveredapply/examine',
method: "post",
data: params,
headers: {
'Content-Type': 'application/json'
}
});
}
// 模糊搜索客户
export function customerName() {
return request({
url: "/buscenter/v1/busorder/likeGetCustomerName",
method: "post"
// params: { staffSid: id }
});
}
// 获取下拉框option
export function typeValues(data) {
return request({
url: '/portal/v1/dictcommons/typeValues',
method: 'get',
params: data
// headers: {
// 'Content-Type':'multipart/form-data',
// }
})
}

19
anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js

@ -279,6 +279,7 @@ const codemenu = [
]
},
{
<<<<<<< Updated upstream
path: '/baseoutsourcingapplication',
component: Layout,
// redirect: '/baseoutsourcingapplication/index',
@ -294,6 +295,24 @@ const codemenu = [
}
]
},
=======
path: '/examine',
component: Layout,
redirect: '/examine/chukushenhe',
meta: {
title: '出库审核'
},
children: [
{
path: '/examine/chukushenhe',
component: () => import('@/views/examinePage/chukushenhe/chukushenhe.vue'),
name: 'chukushenhe',
meta: { title: '出库审核' }
}
]
},
>>>>>>> Stashed changes
// 流程审批
// 采购退库驳回到发起人办理编辑页面

6
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue

@ -435,20 +435,18 @@
modelSid: this.temp.sid,
filePath: this.imgList[i].url
})
console.log('保存的图片', this.temp.baseVehicleModelAppendixDtos)
}
},
updateUrl() {
console.log('回显', this.imgList)
var img_file = []
for (var i = 0; i < this.imgList.length; i++) {
const img_file = []
img_file.push({
modelSid: this.temp.sid,
filePath: this.imgList[i].url
})
this.temp.baseVehicleModelAppendixDtos = img_file
console.log('保存的图片', this.temp.baseVehicleModelAppendixDtos)
}
this.temp.baseVehicleModelAppendixDtos = img_file
},
// ------------------------------------------------------
//

20
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue

@ -22,7 +22,7 @@
<span>车型编码</span>
</el-col>
<el-col :span="8">
<el-form-item prop="otherConfig">
<el-form-item prop="vehicleTypeCode">
<span>{{temp.vehicleTypeCode}}</span>
</el-form-item>
</el-col>
@ -130,8 +130,8 @@
<span>系别</span> <!--???-->
</el-col>
<el-col :span="8">
<el-form-item prop="series">
<span>{{temp.series}}</span>
<el-form-item prop="departmentValue">
<span>{{temp.departmentValue}}</span>
</el-form-item>
</el-col>
</el-row>
@ -140,18 +140,12 @@
<span>内部编码</span> <!--???-->
</el-col>
<el-col :span="8">
<el-form-item prop="carColor">
<span>{{temp.carColor}}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>货箱</span> <!--???-->
</el-col>
<el-col :span="8">
<el-form-item prop="slowMachine">
<span>{{temp.slowMachine}}</span>
<el-form-item prop="insideCode">
<span>{{temp.insideCode}}</span>
</el-form-item>
</el-col>
<el-col :span="4"/>
<el-col :span="8"/>
</el-row>
<div class="addtable">
<div class="tabletitle">

442
anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenhe.vue

@ -0,0 +1,442 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>出库申请管理</div>
<!--start 查询列表按钮部分开始-->
<div>
<!-- <el-button type="primary" size="small" @click="handleSubmit()">提交</el-button>-->
<el-button type="info" size="small" @click="handleClose()"
>关闭</el-button
>
</div>
<!--end 查询列表按钮部分结束-->
</div>
<!--按钮部分结束-->
<!--Start查询列表部分-->
<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="合同编号">
<el-input
v-model="listQuery.params.contractNo"
placeholder="请输入合同编号"
clearable
class="filter-item"
/>
</el-form-item>
<el-form-item label="客户名称">
<el-select
v-model="listQuery.name"
class="addinputw"
clearable
filterable
placeholder="请选择"
@change="customerChange"
>
<el-option
v-for="item in customerList"
:key="item.sid"
:label="item.customerName"
:value="item.customerName"
/>
</el-select>
</el-form-item>
<el-form-item label="申请人">
<el-input
v-model="listQuery.params.applyName"
placeholder="请输入申请人姓名"
clearable
class="filter-item"
/>
</el-form-item>
<el-form-item label="申请日期">
<div class="block">
<el-date-picker
v-model="listQuery.params.applyDateStart"
type="date"
placeholder="选择日期"
>
</el-date-picker>
</div>
<label></label>
<div class="block">
<el-date-picker
v-model="listQuery.params.applyDateEnd"
type="date"
placeholder="选择日期"
>
</el-date-picker>
</div>
</el-form-item>
<el-divider></el-divider>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</el-form>
</div>
</div>
<!--End查询列表部分-->
<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"
/>
</div>
<!--Start 主页面主要部分 -->
<div class="listcon">
<el-table
:key="tableKey"
v-loading="listLoading"
:data="list"
:border="true"
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="150px" label="操作" align="center">
<template slot-scope="scope">
<div class="searchbtns">
<!--:disabled="scope.row.nodeState == ''?false:true"-->
<el-button
size="small"
type="primary"
@click="handleCheck(scope.row)"
>办理</el-button
>
</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.state }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contractNo }}</span>
</template>
</el-table-column>
<el-table-column label="客户名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="申请日期" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyDate }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyName }}</span>
</template>
</el-table-column>
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit" />
<!-- 翻页 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="listQuery.current"
:limit.sync="listQuery.size"
class="pagination"
@pagination="getList"
/>
</div>
<!--End查询列表部分-->
</div>
<chukushenqing-info
v-show="viewState == 2"
ref="divInfo"
@doback="resetState"
@reloadlist="getList"
/>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import {
listExaminePage,
submitBySid,
customerName,
} from "@/api/examinePage/chukushenhe";
import { setuser, getuser } from "@/utils/baocun";
import Pagination from "@/components/pagination";
import pageye from "@/components/pagination/pageye";
import chukushenqingInfo from "./chukushenheTodo";
export default {
name: "chukushenhe",
components: {
Pagination,
pageye,
chukushenqingInfo,
},
data() {
return {
viewTitle: "",
//
isSearchShow: false,
searchxianshitit: "显示查询条件",
viewState: 1, // 1 2
// -----------
tableKey: 0,
customerList: [],
list: [],
sids: [], // SIDs
sides: "",
state_list: [],
total: 1,
FormLoading: false,
listLoading: false,
departmentSid: window.sessionStorage.getItem("departmentSid"), //sid
departmentName: window.sessionStorage.getItem("departmentName"), //
typeList: [], //
//
listQuery: {
current: 1,
size: 20,
params: {
applyDateEnd: "", //
applyDateStart: "", //
applyName: "", //
staffSid: window.sessionStorage.getItem("staffSid"), // sid
contractNo: "", //
name: "", //
},
},
initObj: {
detailVo: {
applyDate: "", //
contractNo: "", //
isTerminal: "", //
listVo: [],
modelName: "", //
name: "", //
},
sid: "",
stringList: [],
},
temp: {}, //
templook: {}, //
textMap: {
update: "编辑",
create: "创建",
},
dialogStatus: "",
};
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
},
created() {
//
this.init();
},
methods: {
// ========== ==========
init() {
this.getList();
this.getCustomer();
},
//
resetTemp() {
this.temp = {};
},
//
getCustomer() {
customerName().then((response) => {
if (response.code === "200") {
this.customerList = response.data;
console.log("客户列表", this.customerList);
}
});
},
//
customerChange(value) {
console.log("触发下拉框按钮", value);
let bb = {};
this.typeList.forEach((e) => {
if (e.customerName == value) {
bb = {
name: e.customerName,
sid: e.sid,
};
}
});
this.listQuery.params.name = bb.name;
console.log("客户名称", this.listQuery.params.name);
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size;
var pageindex = index + 1 + pagestart;
return pageindex;
},
// ========== ==========
//
resetState() {
this.viewState = 1;
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow;
if (this.isSearchShow) {
this.searchxianshitit = "隐藏查询条件";
} else {
this.searchxianshitit = "显示查询条件";
}
},
// sid
handleSelectionChange(row) {
console.log("开票", row);
const aa = [];
const bb = [];
row.forEach((element) => {
aa.push(element.sid);
setuser(this.sids); //sids
bb.push(element.state);
});
this.sids = aa;
this.sides = this.sids.join(); //sid
this.state_list = bb;
console.log("sids数组", this.sids);
console.log("sides字符串", this.sides);
},
//
handleFilter() {
this.listQuery.current = 1;
this.getList();
},
//
handleReset() {
this.listQuery.params = {
applicant: "",
contractNo: "",
customerName: "",
endDate: "",
invoiceState: "",
startDate: "",
};
},
// ========== ==========
//
getList() {
this.listLoading = true;
listExaminePage(this.listQuery).then((response) => {
//
this.listLoading = false;
console.log(response);
if (
response.code === "200" &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records;
this.total = response.data.total;
} else {
this.list = [];
this.total = 0;
}
});
},
//
handleCheck(row) {
this.viewState = 2;
this.$refs["divInfo"].showInfo(row.sid, row.state);
},
//
handleClose() {},
},
};
</script>
<style scoped>
.switch_btn {
padding: 15px 0 10px 0;
}
.block {
display: inline-block;
}
label {
padding: 0 6px;
}
.searchbtns {
margin: 10px 0;
text-align: center;
}
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
/deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.searchli {
padding: 5px 100px;
}
</style>

392
anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenheTodo.vue

@ -0,0 +1,392 @@
<template>
<div class="app-container">
<div v-show="isShow">
<div class="tab-header webtop">
<div>出库申请详情</div>
<!-- <div v-else></div> -->
<div>
<el-button
type="primary"
size="small"
:disabled="createBtn"
@click="handleAgree()"
>同意</el-button
>
<el-button
type="primary"
size="small"
:disabled="disabled"
@click="handleDisagree()"
>不同意</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"
label-width="100%"
class="formadd"
:rules="rules"
>
<div class="tit">
出库申请
<div class="times">
<div>
<span>合同编号</span><span>{{ temp.contractNo }}</span>
</div>
<div>
<span>申请日期</span><span>{{ temp.applyDate }}</span>
</div>
</div>
</div>
<el-row class="nothingBorder">
<el-col :span="2" />
<el-col :span="4">
<el-form-item><span slot="label">客户名称</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
{{ temp.name }}
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item
><span slot="label">是否为终端客户</span></el-form-item
>
</el-col>
<el-col :span="6">
<el-form-item>
<el-radio v-model="temp.isTerminal" :label="0"></el-radio>
<el-radio v-model="temp.isTerminal" :label="1"></el-radio>
</el-form-item>
</el-col>
<el-col :span="2" />
</el-row>
<el-row>
<el-col :span="2" />
<el-col :span="4">
<el-form-item><span slot="label">车型</span></el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<span>{{ temp.modelName }}</span>
</el-form-item>
</el-col>
<el-col :span="12" />
</el-row>
<!--Start 预订车辆信息-->
<div class="titcon">
<div class="title">车辆信息</div>
</div>
<!--@selection-change="handleSelectionChange"-->
<el-table
v-loading="listLoading"
:data="detailsList"
border
style="width: 100%"
:index="index"
fit
>
<!-- <el-table-column type="selection" align="center" width="50"/>-->
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="成交价" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price }}</span>
</template>
</el-table-column>
<el-table-column label="使用人信息" align="center">
<template slot-scope="scope">
<!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true -->
<el-button
v-show="temp.isTerminal === 0"
size="medium"
type="primary"
@click="lookUserInfo(scope.row.vinNo)"
class="btntopbluebut"
>查看
</el-button>
<span v-show="temp.isTerminal == 3"></span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input
v-model="scope.row.remarks"
class="addinputw"
placeholder="请输入备注"
clearable
/>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
<!--@returnEdit="getUserInfoEdit"-->
<user-info-look
v-show="isShowLook"
ref="divUserInfo"
@doback="resetState"
/>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { fetchDetailsBySid, examine } from "@/api/examinePage/chukushenhe";
import userInfoLook from "./relation/userInfoLook";
export default {
name: "chukushenheTodo",
components: {
userInfoLook,
},
data() {
return {
viewTitle: "",
index: 0,
disabled: false, //
createBtn: false,
dialogStatus: "add", //
// ---------
isShow: true,
isShowLook: false,
// ===
listLoading: false,
list: [],
temp: {
applyName: window.sessionStorage.getItem("name"), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid
contractNo: "", //
isTerminal: 3, // 10
modelName: "", //
name: "", //
sid: "",
applyDate: "", //
detailsList: [],
}, //
detailsList: [
{
price: "", //
remarks: "", //
vinNo: "", //
useMessage: {},
},
],
sids: [],
vinNo_info: "",
submitDto: {
businessSid: "",
userSid: window.sessionStorage.getItem("userSid"),
},
rules: {},
// ------------------------------------
};
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
},
created() {
//
this.init();
},
methods: {
// ------------ ------------
init() {
this.temp = {
applyName: window.sessionStorage.getItem("name"), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid
contractNo: "", //
isTerminal: 3, // 10
modelName: "", //
name: "", //
sid: "",
applyDate: "", //
detailsList: [],
isUse: false,
};
},
resetState() {
this.isShow = true;
this.isShowLook = false;
},
showInfo(sid, state) {
this.$nextTick(() => {
this.$refs["dataForm"].clearValidate();
});
if (state == "已通过" || state == "未通过") {
this.disabled = true;
this.createBtn = true;
}
fetchDetailsBySid({ sid: sid }).then((response) => {
if (response.success) {
this.temp = response.data;
this.temp.sid = sid;
this.detailsList = response.data.listVo;
for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== "{}") {
this.detailsList[i].isExist = "1";
}
}
this.temp = JSON.parse(
JSON.stringify(this.temp).replace(/listVo/g, "detailsList")
);
console.log("isTerminal", this.temp.isTerminal);
}
});
},
//
lookUserInfo(vinNo) {
console.log("1111", vinNo);
for (var i = 0; i < this.detailsList.length; i++) {
if (this.detailsList[i].vinNo == vinNo) {
let useMessage = {};
useMessage = this.detailsList[i].useMessage;
this.isShow = false;
this.isShowLook = true;
this.$refs["divUserInfo"].showInfo(useMessage, vinNo);
}
}
},
handleSelectionChange(row) {
console.log("开票", row);
const aa = [];
const bb = [];
row.forEach((element) => {
aa.push(element.vinNo);
bb.push(element.sid);
});
this.vinNo_info = aa.join();
this.sids = bb;
},
// ------------ ------------
handleAgree() {
this.$confirm("是否确认同意此审核", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
const info = {
sid: this.temp.sid,
state: 3,
};
examine(info).then((response) => {
if (response.success) {
this.handleReturn("true");
}
});
});
},
handleDisagree() {
this.$prompt("请输入不通过原因", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
}).then(({ value }) => {
if (value) {
const info = {
sid: this.temp.sid,
reason: value,
state: 4,
};
examine(info).then((response) => {
if (response.success) {
this.handleReturn("true");
}
});
} else {
this.$message({
showClose: true,
message: "请填写不通过原因!",
type: "error",
});
return;
}
});
},
//
handleReturn(isreload) {
if (isreload === "true") this.$emit("reloadlist");
this.$refs["dataForm"].resetFields();
this.$emit("doback");
},
},
};
</script>
<style scoped>
.tit {
margin: 0 0 20px 0;
padding: 10px 0 0 0;
}
.times {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 30px 0 10px 0;
margin: 0 auto 0px auto;
width: 70%;
font-size: 14px;
}
.formadd /deep/ .el-row {
border: 0;
}
.formadd /deep/ .el-col {
border: 0;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
.titcon {
border: 1px solid #e0e3eb;
}
.titcon,
.title {
background-color: white;
color: black;
}
.changeIt {
line-height: 40px;
font-size: 17px;
float: right;
}
.formadd {
padding: 20px 0;
}
.formadd .tit {
font-size: 32px;
border-bottom: 1px solid #e0e3eb;
text-align: center;
margin: 0 0 20px 0;
padding: 20px 0;
}
</style>

181
anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/relation/userInfoLook.vue

@ -0,0 +1,181 @@
<template>
<div class="app-container">
<div v-show="visible">
<div class="tab-header webtop">
<div>录入使用人信息</div>
<!-- <div v-else></div> -->
<div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="tempUserLook" :rules="rules" label-position="right"
class="formadd">
<div class="tit">录入使用人信息</div>
<el-row>
<el-col :span="4" class="topBor">
<span>合同编号</span>
</el-col>
<el-col :span="10" class="topBor">
<el-form-item prop="contractNo">
<span>{{ tempUserLook.contractNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>车架号</span>
</el-col>
<el-col :span="10">
<el-form-item prop="vinNo">
<span>{{ tempUserLook.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>客户名称</span>
</el-col>
<el-col :span="10">
<el-form-item prop="name">
<span>{{ tempUserLook.name }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系电话</span>
</el-col>
<el-col :span="10">
<el-form-item prop="mobile">
<span>{{ tempUserLook.mobile }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>证件号码</span>
</el-col>
<el-col :span="10">
<el-form-item prop="idNo">
<span>{{ tempUserLook.idNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>联系地址</span>
</el-col>
<el-col :span="10">
<el-form-item prop="address">
<span>{{ tempUserLook.address }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import {mapGetters} from 'vuex'
export default {
name: 'userInfoLook',
components: {},
data() {
return {
viewTitle: '',
index: 0,
disabled: false, //
createBtn: false,
// ---------
visible: true,
listLoading: false,
tempUserLook: {},
rules: {},
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode',
]),
},
created() {
//
this.init()
},
methods: {
// ------------ ------------
//
resetTemp() {
},
init() {
},
showInfo(useMessage, vinNo) {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
});
console.log('详情拿到的信息', useMessage)
this.tempUserLook = useMessage
},
// ------------ ------------
//
handleReturn() {
this.$emit('doback')
},
// ------------ ------------
},
}
</script>
<style scoped>
.tit {
margin: 45px 0 66px 0;
padding: 10px 0 0 0;
border: 0;
}
/deep/ .el-row {
display: flex;
justify-content: center;
border-left: 0;
}
.topBor {
border-top: 1px solid #e0e3eb;
}
/deep/ .el-form-item__content {
margin-left: 0 !important;
}
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
border-left: 1px solid #e0e3eb;
}
.formadd {
padding: 20px 0;
}
.formadd .tit {
font-size: 32px;
text-align: center;
margin: 0 0 20px 0;
padding: 20px 0;
}
</style>

1
anrui-scm/anrui-scm-ui/src/views/supplychain/caigoutuiku/relation/xuanzecheliang.vue

@ -365,6 +365,7 @@
}
}
}
}
this.$emit('handleVehicle', this.depositVehicleList)
this.$nextTick(() => {

Loading…
Cancel
Save