You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

798 lines
29 KiB

<template>
<div class="app-container">
<div v-show="viewState == 1">
<button-bar ref="btnbar" view-title="盘点列表" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">
{{ searchxianshitit }}
</el-button>
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
<el-form-item label="部门名称">
<el-input v-model="queryParams.params.deptNmae" placeholder="" clearable/>
</el-form-item>
<el-form-item label="盘点编号">
<el-input v-model="queryParams.params.billNo" placeholder="" clearable/>
</el-form-item>
<el-form-item label="生成日期">
<el-date-picker v-model="queryParams.params.createStartTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"/>
<span style="padding: 0px 8px">至</span>
<el-date-picker v-model="queryParams.params.createEndTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"/>
</el-form-item>
<el-form-item label="盘点状态">
<el-select v-model="queryParams.params.checkState" placeholder="请选择" style="width: 200px;">
<el-option v-for="item in checkStateList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="盘点人">
<el-input v-model="queryParams.params.createByName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="监盘人">
<el-input v-model="queryParams.params.superviseName" placeholder="" clearable/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button>
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</div>
</div>
</div>
<!-- Start 项目列表头部 -->
<div class="listtop">
<div class="tit">盘点列表</div>
</div>
<!-- End 项目列表头部 -->
<!-- Start 项目列表 -->
<div class="">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="selectionLineChangeHandle">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center" width="220">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toDetail(scope.row)">查看</el-button>
<el-button type="primary" size="mini" v-show="scope.row.state=='0'" @click="toEdit(scope.row)">办理</el-button>
<el-button type="primary" size="mini" v-show="scope.row.state=='0'" @click="toReport(scope.row)">盘库报告</el-button>
</template>
</el-table-column>
<el-table-column label="流程状态" width="120" align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column prop="deptName" label="部门" width="120" align="center"/>
<el-table-column prop="billNo" label="盘点编号" width="120" align="center"/>
<el-table-column prop="createTime" label="生成日期" width="120" align="center"/>
<el-table-column prop="createByName" label="盘点人" width="120" align="center"/>
<el-table-column prop="superviseName" label="监盘人" width="120" align="center"/>
<el-table-column prop="checkState" label="盘点状态" width="120" align="center"/>
<el-table-column label="应盘" align="center">
<el-table-column prop="bookCount" label="数量" align="center" width="100"/>
<el-table-column prop="bookAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="实盘" align="center">
<el-table-column prop="realCount" label="数量" align="center" width="100"/>
<el-table-column prop="realAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="未盘" align="center">
<el-table-column prop="notCount" label="数量" align="center" width="100"/>
<el-table-column prop="notAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘盈" align="center">
<el-table-column prop="profitCount" label="数量" align="center" width="100"/>
<el-table-column prop="profitAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘亏" align="center">
<el-table-column prop="loseCount" label="数量" align="center" width="100"/>
<el-table-column prop="loseAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column label="盘损" align="center">
<el-table-column prop="lossCount" label="数量" align="center" width="100"/>
<el-table-column prop="lossAmount" label="金额" align="center" width="100"/>
</el-table-column>
<el-table-column prop="remarks" label="备注" align="center" width="200"/>
</el-table>
</div>
<!-- End 项目列表 -->
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
</div>
</div>
<!-- 盘库 -->
<stocktakingRackCodeList v-show="viewState == 2 " ref="divstocktak" @doback="resetState" @reloadlist="loadList"/>
<!-- 办理 -->
<stocktakingEditReport v-show="viewState == 3 " ref="divedit" @doback="resetState" @reloadlist="loadList"/>
<!-- 盘库报告 -->
<stocktakingReportDetail v-show="viewState == 4 " ref="divreport" @doback="resetState" @reloadlist="loadList"/>
<!--查看详情 -->
<stocktakingInfo v-show="viewState == 5" ref="divinfo" @doback="resetState"/>
<el-dialog title="新建盘点单" :visible.sync="dialogVisible" :before-close="handleClose">
<el-form ref="form_obj" class="formaddcopy02" :rules="rules" style="margin-top: -40px;" :model="formobj">
<el-row class="first_row">
<el-col :span="12">
<div class="span-sty">盘点人</div>
<el-form-item><span class="addinputInfo addinputw">{{ formobj.createByName }}</span></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty">生成日期</div>
<el-form-item><span class="addinputInfo addinputw">{{ formobj.createDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row class="first_row">
<el-col :span="12">
<div class="span-sty"><span class="must">*</span> 盘点类型</div>
<el-form-item prop="checkTypeValue">
<el-select v-model="formobj.checkTypeValue" placeholder="请选择" class="addinputInfo addinputw" @change="selectStocktakTyp">
<el-option v-for="item in stocktakTypeList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty"><span class="must">*</span> 监盘人</div>
<el-form-item prop="superviseName">
<el-select v-model="formobj.superviseName" placeholder="请选择" class="addinputInfo addinputw" @change="selectFinance">
<el-option v-for="item in financeList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item>
<el-input v-model="formobj.remarks" placeholder="请填写" class="addinputInfo addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<div class="title titleOne" v-show="showList=='1'">
<div>盘点库位</div>
<el-button type="primary" size="mini" class="btntopblueline" @click="seleRack()">选择库位</el-button>
</div>
<el-table v-loading="tableLoading" :data="formobj.dataList" border style="width: 100%" v-show="showList=='1'">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column fixed label="操作" align="center" width="100">
<template slot-scope="scope">
<el-button type="danger" size="mini" @click="toDeleted(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="warehouseName" label="仓库" align="center"/>
<el-table-column prop="zoneName" label="区域" align="center"/>
<el-table-column prop="locationName" label="库区" align="center"/>
<el-table-column prop="rackCode" label="库位" align="center"/>
</el-table>
</el-form>
<div style="display: flex;flex-direction: row;width: 100%;justify-content: center;align-items: center;">
<el-button type="primary" style="margin-top: 20px;" @click="saveExamine">保 存</el-button>
<el-button type="primary" style="margin-top: 20px;" @click="handleClose">关 闭</el-button>
</div>
</el-dialog>
<el-dialog title="选择盘点库位" :visible.sync="dialogVisible2" :before-close="handleClose2">
<el-form ref="form_obj2" class="formaddcopy02" :rules="rules" style="margin-top: -40px;" :model="formobj">
<el-form :inline="true" class="tab-header">
<el-form-item label="仓库">
<el-select v-model="dialogParams.params.warehouseName" placeholder="请选择仓库" @change="selectWarehouseChange" style="width: 200px;">
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" :value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="库区">
<el-select v-model="dialogParams.params.warehouseAreaName" placeholder="请选择库区" @change="selectWarehouseAreaChange" style="width: 200px;">
<el-option v-for="item in warehouseAreaList" :key="item.sid" :label="item.areaName" :value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="库位">
<el-select v-model="dialogParams.params.warehouseRackCode" placeholder="请选择库位" style="width: 200px;" @change="selectWarehouseRackChange">
<el-option v-for="item in warehouseRackList" :key="item.sid" :label="item.rackCode" :value="item.sid">
</el-option>
</el-select>
</el-form-item>
<div class="btn" style="text-align: center; margin-top: 10px;margin-bottom: 10px;">
<el-button type="primary" size="small" icon="el-icon-search" @click="dialogDosearch">查询</el-button>
<el-button type="primary" size="small" icon="el-icon-refresh" @click="dialogResetQuery">重置</el-button>
</div>
</el-form>
<div class="title titleOne" style="margin-top: 0px;">
<div>库位列表</div>
</div>
<el-table v-loading="tableLoading" :data="allWarehouseRackList" border style="width: 100%;" @selection-change="selectionWarehouseRack">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="warehouseName" label="仓库" align="center"/>
<el-table-column prop="locationName" label="库区" align="center"/>
<el-table-column prop="rackCode" label="库位" align="center"/>
</el-table>
<pagination v-show="allWarehouseRackList.length > 0" :total="dialogParams.total" :page.sync="dialogParams.current" :limit.sync="dialogParams.size" class="pagination" @pagination="seleRack"/>
</el-form>
<div style="display: flex;flex-direction: row;width: 100%;justify-content: center;align-items: center;">
<el-button type="primary" style="margin-top: 20px;" @click="addRck">确 认</el-button>
<el-button type="primary" style="margin-top: 20px;" @click="handleClose2">关 闭</el-button>
</div>
</el-dialog>
<!-- 流程审批记录 -->
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import req from '@/api/storage/stocktaking.js'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import stocktakingAdd from './stocktakingAdd.vue'
import stocktakingInfo from './stocktakingInfo.vue'
import stocktakingRackCodeList from './stocktakingRackCodeList.vue'
import stocktakingEditReport from './stocktakingEditReport.vue'
import stocktakingReportDetail from './stocktakingReportDetail.vue'
import { getAllRackByKQSid, getAllWarehouse, getWarehouseareas } from '@/api/Common/dictcommons'
import req4 from '@/api/warehouse/goodsShelves.js'
import {
getCurrentDate
} from '@/utils/index.js'
import {
selAllByOrgSidPath
} from '@/api/Common/dictcommons'
import {
getStorage
} from '@/utils/auth'
export default {
components: {
ButtonBar,
Pagination,
stocktakingAdd,
stocktakingInfo,
stocktakingRackCodeList,
stocktakingEditReport,
stocktakingReportDetail
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
showList: '2',
dialogVisible: false,
dialogVisible2: false,
btndisabled: false,
viewState: 1, // 1、列表 2、添加 3、修改 4、查看
isSearchShow: false,
searchxianshitit: '显示查询条件',
tableLoading: false,
dataList: [],
btnList: [{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '生成盘点单'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toShowBill',
btnLabel: '盘库'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toStocktak',
btnLabel: '生成盘库报告'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
deptNmae: '',
billNo: '',
createStartTime: '',
createEndTime: '',
checkState: '',
createByName: '',
superviseName: '',
warehouseTypeKey: '01',
orgPath: '',
userSid: '',
menuUrl: ''
}
},
sids: [],
selectionList: [],
checkStateList: [
{
sid: '1',
name: '盘点中'
},
{
sid: '2',
name: '盘点完成'
}
],
stocktakTypeList: [
{
sid: '1',
name: '月度抽盘'
},
{
sid: '2',
name: '季度全盘'
}
],
formobj: {
createByName: window.sessionStorage.getItem('name'),
createBySid: window.sessionStorage.getItem('userSid'),
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1),
deptName: window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1),
createDate: getCurrentDate(),
checkTypeValue: '',
checkTypeKey: '',
superviseName: '',
superviseSid: '',
remarks: '',
dataList: [],
warehouseTypeKey: '01',
warehouseTypeValue: '配件库'
},
financeList: [],
rules: {
checkTypeValue: [{ required: true, message: '请选择盘点类型', trigger: 'change' }],
superviseName: [{ required: true, message: '请选择监盘人', trigger: 'change' }]
},
dialogParams: {
current: 1,
size: 10,
total: 0,
params: {
warehouseSid: '',
warehouseName: '',
warehouseAreaSid: '',
warehouseAreaName: '',
warehouseRackSid: '',
warehouseRackCode: '',
warehouseTypeKey: '01'
}
},
warehouseList: [],
warehouseAreaList: [],
warehouseRackList: [],
allWarehouseRackList: [],
selectionWarehouseRackList: []
}
},
mounted() {
// 在外部vue的window上添加postMessage的监听,而且绑定处理函数handleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
this.loadList()
selAllByOrgSidPath({ orgSidPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.financeList = res.data
}
})
getAllWarehouse({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), warehouseTypeValue: '配件库' }).then(resp => {
this.warehouseList = resp.data
})
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
getWarehouseArea(sid) {
this.dialogParams.params.warehouseAreaSid = ''
this.dialogParams.params.warehouseAreaName = ''
getWarehouseareas({ ckSid: sid }).then(resp => {
this.warehouseAreaList = resp.data
})
},
getAllTypeByAreaSid(sid) {
this.dialogParams.params.warehouseRackSid = ''
this.dialogParams.params.warehouseRackCode = ''
getAllRackByKQSid({ kqSid: sid }).then(resp => {
this.warehouseRackList = resp.data
})
},
selectWarehouseChange(val) {
const choose = this.warehouseList.filter((item) => item.sid === val)
this.dialogParams.params.warehouseSid = choose[0].sid
this.dialogParams.params.warehouseName = choose[0].warehouseName
this.getWarehouseArea(choose[0].sid)
},
selectWarehouseAreaChange(val) {
const choose = this.warehouseAreaList.filter((item) => item.sid === val)
this.dialogParams.params.warehouseAreaSid = choose[0].sid
this.dialogParams.params.warehouseAreaName = choose[0].areaName
this.getAllTypeByAreaSid(choose[0].sid)
},
selectWarehouseRackChange(val) {
const choose = this.warehouseRackList.filter((item) => item.sid === val)
this.dialogParams.params.warehouseRackSid = choose[0].sid
this.dialogParams.params.warehouseRackCode = choose[0].rackCode
},
dialogDosearch() {
this.dialogParams.current = 1
this.seleRack()
},
dialogResetQuery() {
this.dialogParams = {
current: 1,
size: 10,
total: 0,
params: {
warehouseSid: '',
warehouseName: '',
warehouseAreaSid: '',
warehouseAreaName: '',
warehouseRackSid: '',
warehouseRackCode: '',
warehouseTypeKey: '01'
}
}
this.seleRack()
},
seleRack() {
this.dialogParams.params.userSid = window.sessionStorage.getItem('userSid')
this.dialogParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.dialogParams.params.menuUrl = this.$route.path
req4.warehouserackListAll(this.dialogParams).then(resp => {
if (resp.success) {
const data = resp.data
this.dialogParams.total = data.total
this.allWarehouseRackList = data.records
this.dialogVisible2 = true
} else {
// 根据resp.code进行异常情况处理
this.allWarehouseRackList = []
this.dialogParams.total = 0
}
}).catch(() => {
})
},
selectionWarehouseRack(val) {
this.selectionWarehouseRackList = val
},
addRck() {
for (var i = 0; i < this.selectionWarehouseRackList.length; i++) {
var item = this.selectionWarehouseRackList[i]
this.formobj.dataList.push(item)
}
this.dialogParams = {
current: 1,
size: 10,
total: 0,
params: {
warehouseSid: '',
warehouseName: '',
warehouseAreaSid: '',
warehouseAreaName: '',
warehouseRackSid: '',
warehouseRackCode: '',
warehouseTypeKey: '01'
}
}
this.dialogVisible2 = false
},
handleClose2() {
this.dialogParams = {
current: 1,
size: 10,
total: 0,
params: {
warehouseSid: '',
warehouseName: '',
warehouseAreaSid: '',
warehouseAreaName: '',
warehouseRackSid: '',
warehouseRackCode: '',
warehouseTypeKey: '01'
}
}
this.dialogVisible2 = false
},
toDeleted(index) {
this.formobj.dataList.splice(index, 1)
},
selectStocktakTyp(val) {
this.showList = val
const choose = this.stocktakTypeList.filter((item) => val.includes(item.sid))
this.formobj.checkTypeValue = choose[0].name
this.formobj.checkTypeKey = choose[0].sid
},
selectFinance(val) {
const choose = this.financeList.filter((item) => val.includes(item.sid))
this.formobj.superviseName = choose[0].name
this.formobj.superviseSid = choose[0].sid
},
handleClose() {
this.dialogVisible = false
this.showList = '2'
this.formobj.checkTypeValue = ''
this.formobj.checkTypeKey = ''
this.formobj.superviseName = ''
this.formobj.superviseSid = ''
this.formobj.remarks = ''
this.formobj.dataList = []
},
saveExamine() {
this.formobj.rackSids = []
for (var i = 0; i < this.formobj.dataList.length; i++) {
var item = this.formobj.dataList[i]
this.formobj.rackSids.push(item.sid)
}
this.$refs['form_obj'].validate((valid) => {
if (valid) {
req.createBill(this.formobj).then((resp) => {
if (resp.success) {
this.$message({
type: 'success',
message: '操作成功',
showClose: true
})
this.handleClose()
this.loadList()
}
}).catch(() => {
})
}
})
},
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toShowBill':
this.toShowBill()
break
case 'toStocktak':
this.toStocktak()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
loadList() {
this.tableLoading = true
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.queryParams.params.menuUrl = this.$route.path
req.listPage(this.queryParams).then((resp) => {
this.tableLoading = false
if (resp.success) {
const data = resp.data
this.queryParams.total = data.total
this.dataList = data.records
} else {
// 根据resp.code进行异常情况处理
this.dataList = []
this.queryParams.total = 0
}
}).catch(() => {
this.tableLoading = false
})
},
// 序号
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
deptNmae: '',
billNo: '',
createStartTime: '',
createEndTime: '',
checkState: '',
createByName: '',
superviseName: '',
warehouseTypeKey: '01',
orgPath: '',
userSid: '',
menuUrl: ''
}
}
this.loadList()
},
toAdd() {
this.dialogVisible = true
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
},
selectionLineChangeHandle(val) {
console.log('val', val)
this.selectionList = val
const aa = []
val.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
toDetail(row) {
console.log('toDetail', row)
this.viewState = 5
this.$refs['divinfo'].showDetail(row.sid)
},
toShowBill() {
if (this.selectionList.length !== 1) {
this.$message({
type: 'warning',
message: '请选择一条数据。',
showClose: true
})
return
}
this.viewState = 2
this.$refs['divstocktak'].showDetail(this.selectionList[0].sid)
},
toStocktak() {
if (this.selectionList.length !== 1) {
this.$message({
type: 'warning',
message: '请选择一条数据。',
showClose: true
})
return
}
if (this.selectionList[0].state == '0') {
this.$message({
type: 'warning',
message: '所选记录已生成报告,不可重复生成。',
showClose: true
})
return
}
this.$confirm('请确认是否盘点完毕,生成盘点报告后将不能再盘点!', '提示', {
// iconClass: "el-icon-question", //自定义图标样式
confirmButtonText: '确认',
cancelButtonText: '取消',
showClose: true,
type: 'warning'
}).then(() => {
var params = {
sid: this.selectionList[0].sid
}
req.billCreateReport(params).then((resp) => {
if (resp.success) {
this.$message({
type: 'success',
message: '操作成功',
showClose: true
})
this.loadList()
}
}).catch(() => {
})
}).catch(() => {
})
},
toEdit(row) {
this.viewState = 3
this.$refs['divedit'].showEdit(row)
},
toReport(row) {
this.viewState = 4
this.$refs['divreport'].showDetail(row)
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
resetState() {
this.viewState = 1
}
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 90px !important;
}
.addinputInfo {
margin-left: 80px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 80px !important;
width: calc(100% - 70px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
/deep/ .el-form-item__error {
margin-left: 180px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>