Browse Source

完善出库审核管理部分功能

zhanglei
yunuo970428 3 years ago
parent
commit
d3d8e74ea0
  1. 4
      anrui-scm/anrui-scm-ui/src/api/examinePage/chukushenhe.js
  2. 331
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenhe.vue
  3. 282
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenheTodo.vue
  4. 4
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/relation/userInfoLook.vue

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

@ -40,8 +40,8 @@ export function examine(params) {
// 模糊搜索客户 // 模糊搜索客户
export function customerName() { export function customerName() {
return request({ return request({
url: "/buscenter/v1/busorder/likeGetCustomerName", url: '/crm/v1/crmcustomer/cusList',
method: "post" method: 'post'
// params: { staffSid: id } // params: { staffSid: id }
}); });
} }

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

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

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

@ -5,27 +5,14 @@
<div>出库申请详情</div> <div>出库申请详情</div>
<!-- <div v-else></div> --> <!-- <div v-else></div> -->
<div> <div>
<el-button <el-button type="primary" size="small" :disabled="disabled" @click="handleReject()">驳回</el-button>
type="primary" <el-button type="primary" size="small" :disabled="createBtn" @click="handleAgree()">同意</el-button>
size="small" <el-button type="primary" size="small" :disabled="disabled" @click="handleDisagree()">不同意</el-button>
:disabled="createBtn" <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
@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> </div>
<div class="listconadd"> <div class="listconadd">
<el-form <el-form ref="dataForm" :model="temp" label-position="right" label-width="100%" class="formadd" :rules="rules">
ref="dataForm"
:model="temp"
label-position="right"
label-width="100%"
class="formadd"
:rules="rules">
<div class="tit"> <div class="tit">
出库申请 出库申请
<div class="times"> <div class="times">
@ -38,7 +25,7 @@
</div> </div>
</div> </div>
<el-row class="nothingBorder"> <el-row class="nothingBorder">
<el-col :span="2" /> <el-col :span="2"/>
<el-col :span="4"> <el-col :span="4">
<el-form-item><span slot="label">客户名称</span></el-form-item> <el-form-item><span slot="label">客户名称</span></el-form-item>
</el-col> </el-col>
@ -49,7 +36,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item
><span slot="label">是否为终端客户</span></el-form-item> ><span slot="label">是否为终端客户</span></el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <!-- --> <el-form-item> <!-- -->
@ -57,10 +44,10 @@
<el-radio v-model="temp.isTerminal" disabled :label="1"></el-radio> <el-radio v-model="temp.isTerminal" disabled :label="1"></el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" /> <el-col :span="2"/>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="2" /> <el-col :span="2"/>
<el-col :span="4"> <el-col :span="4">
<el-form-item><span slot="label">车型</span></el-form-item> <el-form-item><span slot="label">车型</span></el-form-item>
</el-col> </el-col>
@ -69,29 +56,16 @@
<span>{{ temp.modelName }}</span> <span>{{ temp.modelName }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" /> <el-col :span="12"/>
</el-row> </el-row>
<!--Start 预订车辆信息--> <!--Start 预订车辆信息-->
<div class="titcon"> <div class="titcon">
<div class="title">车辆信息</div> <div class="title">车辆信息</div>
</div> </div>
<!--@selection-change="handleSelectionChange"--> <!--@selection-change="handleSelectionChange"-->
<el-table <el-table v-loading="listLoading" :data="detailsList" border style="width: 100%" :index="index" fit>
v-loading="listLoading"
:data="detailsList"
border
style="width: 100%"
:index="index"
fit
>
<!-- <el-table-column type="selection" align="center" width="50"/>--> <!-- <el-table-column type="selection" align="center" width="50"/>-->
<el-table-column <el-table-column align="center" label="序号" type="index" width="50"/>
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column label="车架号" align="center"> <el-table-column label="车架号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span> <span>{{ scope.row.vinNo }}</span>
@ -106,14 +80,14 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true --> <!-- && scope.row.exist == '1' scope.row.nodeState == '' ? false:scope.row.nodeState == '发起订单'?false : true -->
<el-button <el-button
v-show="temp.isTerminal === 0" v-show="scope.row.isExist == '1'"
size="medium" size="medium"
type="primary" type="primary"
@click="lookUserInfo(scope.row.vinNo)" @click="lookUserInfo(scope.row.vinNo)"
class="btntopbluebut" class="btntopbluebut"
>查看 >查看
</el-button> </el-button>
<span v-show="temp.isTerminal == 3"></span> <span v-show="temp.isTerminal == 0 && scope.row.isExist == '0'"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center"> <el-table-column label="备注" align="center">
@ -140,22 +114,22 @@
</template> </template>
<script> <script>
import { mapGetters } from "vuex";
import { fetchDetailsBySid, examine } from "@/api/examinePage/chukushenhe"; import { fetchDetailsBySid, examine } from '@/api/examinePage/chukushenhe'
import userInfoLook from "./relation/userInfoLook"; import userInfoLook from './relation/userInfoLook'
export default { export default {
name: "chukushenheTodo", name: 'chukushenheTodo',
components: { components: {
userInfoLook, userInfoLook
}, },
data() { data() {
return { return {
viewTitle: "", viewTitle: '',
index: 0, index: 0,
disabled: false, // disabled: false, //
createBtn: false, createBtn: false,
dialogStatus: "add", // dialogStatus: 'add', //
// --------- // ---------
isShow: true, isShow: true,
isShowLook: false, isShowLook: false,
@ -163,170 +137,190 @@ export default {
listLoading: false, listLoading: false,
list: [], list: [],
temp: { temp: {
applyName: window.sessionStorage.getItem("name"), // applyName: window.sessionStorage.getItem('name'), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid applySid: window.sessionStorage.getItem('staffSid'), // sid staffSid
contractNo: "", // contractNo: '', //
isTerminal: 3, // 10 isTerminal: 3, // 10
modelName: "", // modelName: '', //
name: "", // name: '', //
sid: "", sid: '',
applyDate: "", // applyDate: '', //
detailsList: [], detailsList: []
}, // }, //
detailsList: [ detailsList: [
{ {
price: "", // price: '', //
remarks: "", // remarks: '', //
vinNo: "", // vinNo: '', //
useMessage: {}, useMessage: {}
}, }
], ],
sids: [], sids: [],
vinNo_info: "", vinNo_info: '',
submitDto: { submitDto: {
businessSid: "", businessSid: '',
userSid: window.sessionStorage.getItem("userSid"), userSid: window.sessionStorage.getItem('userSid')
}, },
rules: {}, rules: {}
// ------------------------------------ // ------------------------------------
}; }
},
computed: {
...mapGetters([
"id",
"roles",
"rolesIds",
"departmentId",
"departmentCode",
]),
}, },
created() { created() {
// //
this.init(); this.init()
}, },
methods: { methods: {
// ------------ ------------ // ------------ ------------
init() { init() {
this.temp = { this.temp = {
applyName: window.sessionStorage.getItem("name"), // applyName: window.sessionStorage.getItem('name'), //
applySid: window.sessionStorage.getItem("staffSid"), // sid staffSid applySid: window.sessionStorage.getItem('staffSid'), // sid staffSid
contractNo: "", // contractNo: '', //
isTerminal: 3, // 10 isTerminal: 3, // 10
modelName: "", // modelName: '', //
name: "", // name: '', //
sid: "", sid: '',
applyDate: "", // applyDate: '', //
detailsList: [], detailsList: [],
isUse: false, isUse: false
}; }
}, },
resetState() { resetState() {
this.isShow = true; this.isShow = true
this.isShowLook = false; this.isShowLook = false
}, },
showInfo(sid, state) { showInfo(sid, state) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs["dataForm"].clearValidate(); this.$refs['dataForm'].clearValidate()
}); })
if (state == "已通过" || state == "未通过") { if (state == '已通过' || state == '未通过') {
this.disabled = true; this.disabled = true
this.createBtn = true; this.createBtn = true
} }
fetchDetailsBySid({ sid: sid }).then((response) => { fetchDetailsBySid({ sid: sid }).then((response) => {
if (response.success) { if (response.success) {
this.temp = response.data; this.temp = response.data
this.temp.sid = sid; this.temp.sid = sid
this.detailsList = response.data.listVo; this.detailsList = response.data.listVo
for (var i = 0; i < this.detailsList.length; i++) { for (var i = 0; i < this.detailsList.length; i++) {
if (JSON.stringify(this.detailsList[i].useMessage) !== "{}") { if (this.detailsList[i].useMessage.vinNo !== '') {
this.detailsList[i].isExist = "1"; this.detailsList[i].isExist = '1'
}
if (this.detailsList[i].useMessage.vinNo == '') {
this.detailsList[i].isExist = '0'
} }
} }
this.temp = JSON.parse( this.temp = JSON.parse(
JSON.stringify(this.temp).replace(/listVo/g, "detailsList") JSON.stringify(this.temp).replace(/listVo/g, 'detailsList')
); )
console.log("isTerminal", this.temp.isTerminal); console.log('isTerminal', this.temp.isTerminal)
} }
}); })
}, },
// //
lookUserInfo(vinNo) { lookUserInfo(vinNo) {
console.log("1111", vinNo); console.log('1111', vinNo)
for (var i = 0; i < this.detailsList.length; i++) { for (var i = 0; i < this.detailsList.length; i++) {
if (this.detailsList[i].vinNo == vinNo) { if (this.detailsList[i].vinNo == vinNo) {
let useMessage = {}; let useMessage = {}
useMessage = this.detailsList[i].useMessage; useMessage = this.detailsList[i].useMessage
this.isShow = false; this.isShow = false
this.isShowLook = true; this.isShowLook = true
this.$refs["divUserInfo"].showInfo(useMessage, vinNo); this.$refs['divUserInfo'].showInfo(useMessage, vinNo)
} }
} }
}, },
handleSelectionChange(row) { handleSelectionChange(row) {
console.log("开票", row); console.log('开票', row)
const aa = []; const aa = []
const bb = []; const bb = []
row.forEach((element) => { row.forEach((element) => {
aa.push(element.vinNo); aa.push(element.vinNo)
bb.push(element.sid); bb.push(element.sid)
}); })
this.vinNo_info = aa.join(); this.vinNo_info = aa.join()
this.sids = bb; this.sids = bb
},
handleReject() {
this.$prompt('请输入驳回原因', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(({ value }) => {
if (value) {
const info = {
sid: this.temp.sid,
reason: value,
state: 5
}
examine(info).then((response) => {
if (response.success) {
this.handleReturn('true')
}
})
} else {
this.$message({
showClose: true,
message: '请填写驳回原因!',
type: 'error'
})
return
}
})
}, },
// ------------ ------------ // ------------ ------------
handleAgree() { handleAgree() {
this.$confirm("是否确认同意此审核", "提示", { this.$confirm('是否确认同意此审核', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning'
}).then(() => { }).then(() => {
const info = { const info = {
sid: this.temp.sid, sid: this.temp.sid,
state: 3, state: 3
}; }
examine(info).then((response) => { examine(info).then((response) => {
if (response.success) { if (response.success) {
this.handleReturn("true"); this.handleReturn('true')
} }
}); })
}); })
}, },
handleDisagree() { handleDisagree() {
this.$prompt("请输入不通过原因", "提示", { this.$prompt('请输入不通过原因', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消'
}).then(({ value }) => { }).then(({ value }) => {
if (value) { if (value) {
const info = { const info = {
sid: this.temp.sid, sid: this.temp.sid,
reason: value, reason: value,
state: 4, state: 4
}; }
examine(info).then((response) => { examine(info).then((response) => {
if (response.success) { if (response.success) {
this.handleReturn("true"); this.handleReturn('true')
} }
}); })
} else { } else {
this.$message({ this.$message({
showClose: true, showClose: true,
message: "请填写不通过原因!", message: '请填写不通过原因!',
type: "error", type: 'error'
}); })
return; return
} }
}); })
}, },
// //
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === "true") this.$emit("reloadlist"); if (isreload === 'true') this.$emit('reloadlist')
this.$refs["dataForm"].resetFields(); this.$refs['dataForm'].resetFields()
this.$emit("doback"); this.$emit('doback')
}, }
}, }
}; }
</script> </script>
<style scoped> <style scoped>
.tit { .tit {
@ -369,6 +363,7 @@ export default {
.formadd { .formadd {
padding: 20px 0; padding: 20px 0;
} }
.formadd .tit { .formadd .tit {
font-size: 32px; font-size: 32px;
border-bottom: 1px solid #e0e3eb; border-bottom: 1px solid #e0e3eb;
@ -376,7 +371,8 @@ export default {
margin: 0 0 20px 0; margin: 0 0 20px 0;
padding: 20px 0; padding: 20px 0;
} }
.formadd .el-row .el-col{
.formadd .el-row .el-col {
padding: 0 !important; padding: 0 !important;
} }
</style> </style>

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

@ -5,8 +5,8 @@
<div>录入使用人信息</div> <div>录入使用人信息</div>
<!-- <div v-else></div> --> <!-- <div v-else></div> -->
<div> <div>
<el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button> <!-- <el-button type="primary" size="small" :disabled="createBtn" @click="handleCreate()">保存</el-button>-->
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>
<div class="listconadd"> <div class="listconadd">

Loading…
Cancel
Save