Browse Source

修复其他入库单、其他出库单分页列表报404的问题及优化部分代码

zhanglei
yunuo970428 3 years ago
parent
commit
7747402e2d
  1. 2
      anrui-scm/anrui-scm-ui/src/api/anruiscm/scmotherinbound.js
  2. 14
      anrui-scm/anrui-scm-ui/src/api/anruiscm/scmotheroutbound.js
  3. 183
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinbound.vue
  4. 371
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinboundAdd.vue
  5. 142
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotheroutbound/scmotheroutbound.vue
  6. 528
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotheroutbound/scmotheroutboundAdd.vue

2
anrui-scm/anrui-scm-ui/src/api/anruiscm/scmotherinbound.js

@ -93,7 +93,7 @@ export default {
// 获取客户可搜索下拉列表
kehu: function(data) {
return request({
url: '/buscenter/v1/busorder/likeGetCustomerName',
url: '/crm/v1/crmcustomer/cusList',
method: 'post',
params: data
})

14
anrui-scm/anrui-scm-ui/src/api/anruiscm/scmotheroutbound.js

@ -1,7 +1,6 @@
import request from '@/utils/request'
// 其他出库单
export default {
// 查询分页列表
listPage: function(params) {
return request({
@ -83,7 +82,7 @@ export default {
// 获取客户可搜索下拉列表
kehu: function(data) {
return request({
url: '/buscenter/v1/busorder/likeGetCustomerName',
url: '/crm/v1/crmcustomer/cusList',
method: 'post',
params: data
})
@ -98,16 +97,7 @@ export default {
data: data
})
},
// 获取组织(单选组织架构)
getOrg: function() {
return request({
url: '/portal/v1/sysorganization/getListOrg',
method: 'get',
params: data
// data: data
})
},
//获取物料编码
// 获取物料编码
getWlxx: function(data) {
return request({
url: '/scm/v1/scmmaterial/mNumsDown',

183
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinbound.vue

@ -3,65 +3,40 @@
<div v-show="viewState === 1">
<button-bar view-title="其他入库单" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' :
'显示查询条件' }}
</el-button>
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{isSearchShow ? '隐藏查询条件' : '显示查询条件' }}</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.billNo" placeholder="请输入单据编号" clearable/>
</el-form-item>
<el-form-item label="单据类型">
<el-select v-model="queryParams.params.billType" @change="changeBillType" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.billType" @change="changeBillType" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.billType" placeholder="请输入单据类型" clearable/>-->
</el-form-item>
<el-form-item label="供应商" class="search_label">
<el-select v-model="queryParams.params.manufacturerName" @change="changeManu" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in manu_list" :key="item.sid" :label="item.manufacturerName"
:value="item.sid"></el-option>
<el-select v-model="queryParams.params.manufacturerName" @change="changeManu" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in manu_list" :key="item.sid" :label="item.manufacturerName" :value="item.sid"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.manufacturerName" placeholder="请输入供应商" clearable/>-->
</el-form-item>
<el-form-item label="客户" class="search_label">
<el-select v-model="queryParams.params.customer" @change="changeCustomer" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in customer_list" :key="item.sid" :label="item.customerName"
:value="item.sid"></el-option>
<el-select v-model="queryParams.params.customer" @change="changeCustomer" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in customer_list" :key="item.sid" :label="item.name" :value="item.sid"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.customer" placeholder="请输入客户" clearable/>-->
</el-form-item>
<el-form-item label="货主" class="search_label">
<el-input v-model="queryParams.params.cargoOwner" placeholder="请输入货主" clearable/>
</el-form-item>
<el-form-item label="货主类型">
<el-select v-model="queryParams.params.cargoOwnerType" @change="changeCargoType" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in cargoType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.cargoOwnerType" @change="changeCargoType" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in cargoType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.cargoOwnerType" placeholder="请输入货主类型" clearable/>-->
</el-form-item>
<el-form-item label="单据状态">
<el-select v-model="queryParams.params.billState" @change="changeBillState" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in billState_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.billState" @change="changeBillState" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in billState_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.billState" placeholder="请输入单据状态" clearable/>-->
</el-form-item>
<!-- <el-form-item label="验收员" class="search_label">-->
<!-- <el-select v-model="queryParams.params.inspectorName" @change="changeInspectorName" style="width:200px"-->
<!-- filterable placeholder="请选择">-->
<!-- <el-option v-for="item in Inspector_list" :key="item.dictKey" :label="item.dictValue"-->
<!-- :value="item.dictKey"></el-option>-->
<!-- </el-select>-->
<!-- <el-input v-model="queryParams.params.inspectorName" placeholder="请输入验收员" clearable/>-->
<!-- </el-form-item>-->
<el-divider/>
<div class="btn" style="text-align: center;">
<el-button type="primary" @click="dosearch">查询</el-button>
@ -73,24 +48,13 @@
<!--Start 项目列表头部-->
<div class="listtop">
<div class="tit">其他入库单列表</div>
<pageye
v-show="dataList.length > 0"
:total="queryParams.total"
:page.sync="queryParams.current"
:limit.sync="queryParams.size"
class="pagination"
@pagination="loadList"/>
<pageye v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
<!--End 项目列表头部-->
<!--Start 项目列表-->
<div class="listcon">
<el-table
v-loading="tableLoading"
:data="dataList"
border
style="width: 100%"
@selection-change="handleSelectionChange">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="billNo" label="单据编号" align="center">
@ -112,14 +76,7 @@
<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"
/>
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
</div>
<!--End 查询和其列表部分-->
@ -133,15 +90,14 @@
</template>
<script>
import req from '@/api/anruiscm/scmotherinbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmotherinboundAdd'
import divInfo from './scmotherinboundInfo'
import { setuser, getuser } from '@/utils/baocun'
import req from '@/api/anruiscm/scmotherinbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmotherinboundAdd'
import divInfo from './scmotherinboundInfo'
export default {
export default {
name: 'ScmOtherInboundIndex',
components: {
ButtonBar,
@ -156,10 +112,10 @@
viewState: 1, // 1 2 3 4
isSearchShow: false, //
tableLoading: false,
//
billType_list: [], //
manu_list: [], //
customer_list: [], //
//
billType_list: [], //
manu_list: [], //
customer_list: [], //
cargoType_list: [], //
billState_list: [], //
// Inspector_list: [], //
@ -191,10 +147,10 @@
},
created() {
this.loadList()
//
//
this.getBillType() //
this.getManu() //
this.getCustomer() //
this.getCustomer() //
this.getCargoType() //
this.getBillState() //
},
@ -234,11 +190,10 @@
const aa = []
row.forEach(element => {
aa.push(element.sid)
setuser(this.sids)
})
this.sids = aa
this.row = row
this.sides = this.sids.join() //sid
this.sides = this.sids.join() // sid
console.log('获取sids数组', this.sids)
},
@ -275,7 +230,7 @@
},
doDel(row) {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
this.$message({showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作'})
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
@ -340,7 +295,7 @@
this.loadList()
},
//- changeBillType
// - changeBillType
getBillType() {
req.pullDown({
type: 'billsType'
@ -351,13 +306,11 @@
}
})
},
// dictKey: "01"; dictType: "invoicingNature"
changeBillType(value) {
console.log('触发下拉框按钮')
let bb = {}
let bb = null
this.billType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -367,11 +320,10 @@
}
})
this.queryParams.params.billType = bb.name
// this.queryParams.params.billType = bb.sid
console.log('name', this.queryParams.params.billType)
},
//-
// -
getManu() {
req.changShang({}).then((res) => {
if (res.code === '200') {
@ -384,8 +336,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.manu_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.sid == value) {
if (e.sid === value) {
bb = {
name: e.manufacturerName,
sid: e.sid
@ -397,7 +348,7 @@
console.log('name', this.queryParams.params.manufacturerName, 'sid', this.queryParams.params.manufacturerSid)
},
//-
// -
getCustomer() {
req.kehu({}).then((res) => {
if (res.code === '200') {
@ -410,21 +361,17 @@
console.log('触发下拉框按钮')
let bb = {}
this.customer_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.sid == value) {
if (e.sid === value) {
bb = {
// type: e.dictType,
name: e.customerName,
// key: e.dictKey,
name: e.name,
sid: e.sid
}
}
})
this.queryParams.params.customer = bb.name
// this.queryParams.params.customerSid = bb.sid
console.log('name', this.queryParams.params.manufacturerName)
},
//-
// -
getCargoType() {
req.pullDown({
type: 'cargoOwnerType'
@ -437,10 +384,9 @@
},
changeCargoType(value) {
console.log('触发下拉框按钮')
let bb = {}
let bb = null
this.cargoType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -450,7 +396,6 @@
}
})
this.queryParams.params.cargoOwnerType = bb.name
// this.queryParams.params.cargoOwnerType = bb.sid
console.log('name', this.queryParams.params.cargoOwnerType)
},
@ -469,8 +414,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.billState_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -480,7 +424,6 @@
}
})
this.queryParams.params.billState = bb.name
// this.formobj..scmOtherInboundDto.billState = bb.sid
console.log('name', this.queryParams.params.billState)
},
@ -494,18 +437,12 @@
loadList() {
const _this = this
this.tableLoading = true
req
.listPage(this.queryParams)
.then(resp => {
req.listPage(this.queryParams).then(resp => {
console.log('查询列表', resp)
_this.tableLoading = false
const data = resp.data
_this.queryParams.total = data.total
_this.dataList = data.records
// for (var i = 0; i < data.records.length; i++) {
// var timeArr = data.records[i].createTime.split(' ');
// this.dataList[i].createTime = timeArr[0];
// }
})
.catch(() => {
_this.tableLoading = false
@ -524,41 +461,41 @@
this.$refs['divinfo'].showInfo(billNo, row)
}
}
}
}
</script>
<style scoped>
/deep/ .el-collapse {
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
}
/deep/ .el-collapse-item__content {
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
}
/deep/ .el-collapse-item__wrap {
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
}
/deep/ .el-collapse-item__header {
/deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5;
}
}
.searchbtn {
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
}
.search_label /deep/ .el-form-item__label {
.search_label /deep/ .el-form-item__label {
width: 68px;
}
}
/deep/ .el-form-item {
/deep/ .el-form-item {
margin-bottom: 5px;
}
}
/*/deep/ .el-form-item:nth-of-type(4) {*/
/* margin-right: 260px;*/
/*}*/
/*/deep/ .el-form-item:nth-of-type(4) {*/
/* margin-right: 260px;*/
/*}*/
</style>

371
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinboundAdd.vue

@ -6,13 +6,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button
type="primary"
size="small"
:disabled="submitdisabled"
@click="dialogStatus === 'add' ? saveAdd() : saveEdit()"
>保存
</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="dialogStatus === 'add' ? saveAdd() : saveEdit()">保存</el-button>
<el-button type="primary" size="small" @click="dialogStatus === 'create' ? saveAdd() : saveEdit()">提交
</el-button>
<el-button type="primary" size="small">打印</el-button>
@ -44,18 +38,8 @@
<el-row>
<el-col :span="8">
<el-form-item prop="billType" label="单据类型">
<el-select
v-model="formobj.scmOtherInboundDto.billType"
placeholder="请选择"
@change="changeBillType"
clearable
>
<el-option
v-for="item in billType_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="formobj.scmOtherInboundDto.billType" placeholder="请选择" @change="changeBillType" clearable>
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
<!--<el-input v-model="formobj.billType" placeholder="入库人姓名" class="addinputw" clearable/>-->
</el-form-item>
@ -63,36 +47,15 @@
<el-col :span="8">
<el-form-item prop="manufacturerName" label="供应商">
<el-select
v-model="formobj.scmOtherInboundDto.manufacturerName"
filterable
placeholder="请选择"
@change="changeManu"
clearable
>
<el-option
v-for="item in manu_list"
:key="item.sid"
:label="item.manufacturerName"
:value="item.sid"
/>
<el-select v-model="formobj.scmOtherInboundDto.manufacturerName" filterable placeholder="请选择" @change="changeManu" clearable>
<el-option v-for="item in manu_list" :key="item.sid" :label="item.manufacturerName" :value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="cargoOwnerType" label="货主类型">
<el-select
v-model="formobj.scmOtherInboundDto.cargoOwnerType"
placeholder="请选择"
@change="changeCargoType"
clearable
>
<el-option
v-for="item in cargoType_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="formobj.scmOtherInboundDto.cargoOwnerType" placeholder="请选择" @change="changeCargoType" clearable>
<el-option v-for="item in cargoType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
@ -101,257 +64,145 @@
<el-row>
<el-col :span="8">
<el-form-item prop="cargoOwner" label="货主">
<el-input
v-model="formobj.scmOtherInboundDto.cargoOwner"
placeholder="请输入货主"
class="addinputw"
clearable
/>
<el-input v-model="formobj.scmOtherInboundDto.cargoOwner" placeholder="请输入货主" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="stockOrgName" label="库存组织"> <!---->
<el-select v-model="formobj.scmOtherInboundDto.stockOrgName" @change="stockOrgNameChange"
placeholder="请选择" class="addinputw" clearable>
<el-option v-for="item in stockOrgName_list" :key="item.sid" :label="item.name"
:value="item.name" clearable></el-option>
<el-form-item prop="stockOrgName" label="库存组织">
<el-select v-model="formobj.scmOtherInboundDto.stockOrgName" @change="stockOrgNameChange" placeholder="请选择" class="addinputw" clearable>
<el-option v-for="item in stockOrgName_list" :key="item.sid" :label="item.name" :value="item.name" clearable></el-option>
</el-select>
<!-- <el-cascader-->
<!-- :key="refreshItem"-->
<!-- v-model="stockOrgName_list"-->
<!-- :options="orgOptions"-->
<!-- :props="orgProps"-->
<!-- @change="stockOrgNameChange"-->
<!-- clearable-->
<!-- />-->
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="inspectorName" label="验收员">
<el-input
v-model="formobj.scmOtherInboundDto.inspectorName"
placeholder="请输入验收员"
class="addinputw"
clearable
/>
<el-input v-model="formobj.scmOtherInboundDto.inspectorName" placeholder="请输入验收员" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="billState" label="单据状态">
<el-select
v-model="formobj.scmOtherInboundDto.billState"
placeholder="请选择"
@change="changeBillState"
clearable
>
<el-option
v-for="item in billState_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="formobj.scmOtherInboundDto.billState" placeholder="请选择" @change="changeBillState" clearable>
<el-option v-for="item in billState_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="inventoryDirection" label="库存方向">
<el-select
v-model="formobj.scmOtherInboundDto.inventoryDirection"
placeholder="请选择"
@change="changeInventory"
clearable
>
<el-option
v-for="item in inventory_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="formobj.scmOtherInboundDto.inventoryDirection" placeholder="请选择" @change="changeInventory" clearable>
<el-option v-for="item in inventory_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="warehouseKeeperName" label="仓管员">
<el-input
v-model="formobj.scmOtherInboundDto.warehouseKeeperName"
placeholder="请输入仓管员"
class="addinputw"
clearable
/>
<el-input v-model="formobj.scmOtherInboundDto.warehouseKeeperName" placeholder="请输入仓管员" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="date" label="日期">
<el-date-picker
v-model="formobj.scmOtherInboundDto.date"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
/>
<el-date-picker v-model="formobj.scmOtherInboundDto.date" type="date" value-format="yyyy-MM-dd"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="invenGroupName" label="库存组"> <!--v-model="invenGroupName"-->
<el-cascader
:key="refreshItem"
v-model="invenGroupName_list"
:options="options"
:props="props"
@change="salesDepNameChange"
clearable
/>
<el-cascader :key="refreshItem" v-model="invenGroupName_list" :options="options" :props="props" @change="salesDepNameChange" clearable/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="customer" label="客户">
<el-select
v-model="formobj.scmOtherInboundDto.customer"
filterable
placeholder="请选择"
@change="changeCustomer"
clearable
>
<el-option
v-for="item in customer_list"
:key="item.sid"
:label="item.customerName"
:value="item.sid"
/>
<el-select v-model="formobj.scmOtherInboundDto.customer" filterable placeholder="请选择" @change="changeCustomer" clearable>
<el-option v-for="item in customer_list" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<!-- <el-input v-model="formobj.scmOtherInboundDto.customer" placeholder="请输入客户" class="addinputw"-->
<!-- clearable/>-->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item prop="remarks" label="备注">
<el-input v-model="formobj.scmOtherInboundDto.remarks" placeholder="请输入备注" class="addinputw"
clearable/>
<el-input v-model="formobj.scmOtherInboundDto.remarks" placeholder="请输入备注" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
</div>
<div class="addtable">
<div class="tabletitle">
<div class="titlename">
货物明细
</div>
<div class="titlename">货物明细</div>
<el-button size="small" type="primary" @click="addtableData">添加</el-button>
</div>
<template class="tablelist">
<!-- :rules="rules" <el-table :data="tableData" :index="index" border tyle="width: 100%">-->
<el-table
:data="formobj.scmOtherInboundDetailDto"
:index="index"
border
style="width: 100%"
show-summary
:summary-method="getSummaries"
>
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table :data="formobj.scmOtherInboundDetailDto" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column align="center" label="序号" type="index" width="50"/>
<el-table-column label="操作" width="80" align="center">
<template slot-scope="scope">
<el-button
type="danger"
size="mini"
@click="dataDelete(scope.$index,formobj.scmOtherInboundDetailDto[scope.$index])"
>删除
</el-button>
<el-button type="danger" size="mini" @click="dataDelete(scope.$index,formobj.scmOtherInboundDetailDto[scope.$index])">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="mNum" width="150" label="物料编码" align="center">
<template slot-scope="props">
<el-select v-model="props.row.mNum" placeholder="请选择" style="width: 120px;"
@change="changeMnum(props.row,this)" clearable>
<el-option v-for="item in mnum_list" :key="item.sid" :label="item.mNum"
:value="item.mNum"></el-option>
<el-select v-model="props.row.mNum" placeholder="请选择" style="width: 120px;" @change="changeMnum(props.row,this)" clearable>
<el-option v-for="item in mnum_list" :key="item.sid" :label="item.mNum" :value="item.mNum"></el-option>
</el-select>
<!-- <el-input v-model="props.row.mNum" style="width:120px;" class="tableinput"/>-->
</template>
</el-table-column>
<el-table-column prop="mName" width="150" label="物料名称" align="center">
<template slot-scope="props">
<!-- <el-input v-model="props.row.mName" style="width:120px;" class="tableinput"/>-->
<span>{{props.row.mName}}</span>
<span>{{ props.row.mName }}</span>
</template>
</el-table-column>
<el-table-column prop="model" width="150" label="规格型号" align="center">
<template slot-scope="props">
<!-- <el-input v-model="props.row.model" style="width:120px;" class="tableinput"/>-->
<span>{{props.row.model}}</span>
<span>{{ props.row.model }}</span>
</template>
</el-table-column>
<el-table-column prop="year" width="95" label="年度" align="center">
<template slot-scope="props">
<el-input v-model="props.row.year" style="width:70px;" class="tableinput"/>
<!--<span>{{props.row.count}}</span>-->
</template>
</el-table-column>
<el-table-column prop="logisticsCustomer" width="95" label="物流客户" align="center">
<template slot-scope="props">
<el-input v-model="props.row.logisticsCustomer" style="width:70px;" class="tableinput"/>
<!-- <span>{{props.row.leviedSubtotal}}</span>-->
</template>
</el-table-column>
<el-table-column prop="company" width="150" label="单位" align="center">
<template slot-scope="props">
<!-- <el-select v-model="props.row.company" @change="changeCompany"-->
<!-- placeholder="请选择" class="addinputw" clearable>-->
<!-- <el-option v-for="item in company_list" :key="item.dictKey" :label="item.dictValue"-->
<!-- :value="item.dictKey" clearable></el-option>-->
<!-- </el-select>-->
<span>{{props.row.company}}</span>
<span>{{ props.row.company }}</span>
</template>
</el-table-column>
<el-table-column prop="netReceiptsNum" width="150" label="实收数量" align="center">
<template slot-scope="props">
<el-input v-model="props.row.netReceiptsNum" style="width:120px;" class="tableinput"/>
<!-- <span>{{props.row.productLine}}</span>-->
</template>
</el-table-column>
<el-table-column prop="receivingWarehouse" width="150" label="收货仓库" align="center">
<template slot-scope="props">
<el-select v-model="props.row.receivingWarehouse" @change="changeWarehouse(props.row,this)"
placeholder="请选择" class="addinputw" clearable>
<el-option v-for="item in warehouse_list" :key="item.sid" :label="item.warehouseName"
:value="item.warehouseName" clearable></el-option>
<el-select v-model="props.row.receivingWarehouse" @change="changeWarehouse(props.row,this)" placeholder="请选择" class="addinputw" clearable>
<el-option v-for="item in warehouse_list" :key="item.sid" :label="item.warehouseName" :value="item.warehouseName" clearable></el-option>
</el-select>
<!-- <el-input v-model="props.row.receivingWarehouse" style="width:120px;" class="tableinput"/>-->
<!--<span>{{props.row.mName}}</span>-->
</template>
</el-table-column>
<el-table-column prop="position" width="150" label="仓位" align="center">
<template slot-scope="props">
<el-input v-model="props.row.position" style="width:120px;" class="tableinput"/>
<!--<span>{{props.row.remarks}}</span>-->
</template>
</el-table-column>
<el-table-column prop="batchNum" width="150" label="批号" align="center">
<template slot-scope="props">
<el-input v-model="props.row.batchNum" style="width:120px;" class="tableinput"/>
<!--<span>{{props.row.remarks}}</span>-->
</template>
</el-table-column>
<el-table-column prop="cargoOwner" width="120" label="货主" align="center">
<template slot-scope="props">
<el-input v-model="props.row.cargoOwner" style="width:90px;" class="tableinput"/>
<!--<span>{{props.row.remarks}}</span>-->
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="备注" align="center">
<template slot-scope="props">
<!-- <el-input v-model="props.row.remarks" style="width:120px;" class="tableinput"/>-->
<span>{{props.row.remarks}}</span>
<span>{{ props.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
@ -364,9 +215,9 @@
</template>
<script>
import req from '@/api/anruiscm/scmotherinbound'
import req from '@/api/anruiscm/scmotherinbound'
export default {
export default {
name: 'ScmOtherInboundAdd',
data() {
return {
@ -375,7 +226,7 @@
index: 0,
scmOtherInboundDetailDto: [],
//
orgSid:'',
orgSid: '',
orgName_list: [], //
stockOrgName_list: [], //
invenGroupName_list: [], //
@ -403,9 +254,9 @@
customer_list: [], // ()
cargoType_list: [], //
billState_list: [], //
mnum_list: [],//
mnum_list: [], //
inventory_list: [], //
company_list: [],//
company_list: [], //
warehouse_list: [], //
//
formobj: {
@ -415,7 +266,7 @@
scmOtherInboundDto: {
orgSid: window.sessionStorage.getItem('orgSid'), // sid
orgName: window.sessionStorage.getItem('departmentName'), //
makeListName: window.sessionStorage.getItem('name'),//
makeListName: window.sessionStorage.getItem('name'), //
id: '',
billNo: '', //
billType: '', //
@ -474,8 +325,8 @@
this.getCargoType() //
this.getBillState() //
this.getInventory() //
this.getCompany() //
this.getWlxx() //
this.getCompany() //
this.getWlxx() //
this.getWarehouse() //
//
this.getBuMen()
@ -483,12 +334,6 @@
this.getOrg()
},
methods: {
// @keydown.native="keydown($event)"
// keydown(e){
// if(e.keyCode == 32){
// e.returnValue = false
// }
// },
//
getSummaries(param) {
const { columns, data } = param
@ -529,6 +374,7 @@
},
BuMen0(data) {
data.forEach((e) => {
if(e.children) {
if (e.children.length != 0) {
this.BuMen0(e.children)
} else {
@ -536,6 +382,7 @@
this.dataArr.push(e)
return
}
}
})
},
//
@ -595,15 +442,15 @@
// ---
findOrgId(id, options) {
console.log('这是部门id',id)
console.log('这是部门id', id)
for (var i = 0; i < options.length; i++) {
if (id == options[i].sid) {
if (id === options[i].sid) {
this.select_temp_Name = options[i].name //
this.select_temp_Sid = options[i].sid
return true
} else {
//
if (options[i].children !== undefined) {
if (options[i].children !== undefined && options[i].children !== null) {
//
if (this.findOrgId(id, options[i].children)) {
return true
@ -622,10 +469,9 @@
})
},
stockOrgNameChange(value) {
console.log('触发下拉框按钮',value)
console.log('触发下拉框按钮', value)
let bb = {}
this.stockOrgName_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.name == value) {
bb = {
name: e.name,
@ -650,13 +496,12 @@
}
})
},
// dictKey: "01"; dictType: "invoicingNature"
changeBillType(value) {
console.log('触发下拉框按钮')
let bb = {}
this.billType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -666,7 +511,6 @@
}
})
this.formobj.scmOtherInboundDto.billType = bb.name
// this.formobj.scmOtherInboundDto.billType = bb.sid
console.log('name', this.formobj.scmOtherInboundDto.billType)
},
@ -683,12 +527,9 @@
console.log('触发下拉框按钮')
let bb = {}
this.manu_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.sid == value) {
bb = {
// type: e.dictType,
name: e.manufacturerName,
// key: e.dictKey,
sid: e.sid
}
}
@ -711,12 +552,9 @@
console.log('触发下拉框按钮')
let bb = {}
this.customer_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.sid == value) {
if (e.sid === value) {
bb = {
// type: e.dictType,
name: e.customerName,
// key: e.dictKey,
name: e.name,
sid: e.sid
}
}
@ -741,8 +579,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.cargoType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -752,7 +589,6 @@
}
})
this.formobj.scmOtherInboundDto.cargoOwnerType = bb.name
// this.formobj.scmOtherInboundDto.cargoOwnerType = bb.sid
console.log('name', this.formobj.scmOtherInboundDto.cargoOwnerType)
},
@ -771,8 +607,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.billState_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -782,7 +617,6 @@
}
})
this.formobj.scmOtherInboundDto.billState = bb.name
// this.formobj..scmOtherInboundDto.billState = bb.sid
console.log('name', this.formobj.scmOtherInboundDto.billState)
},
@ -801,8 +635,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.inventory_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -812,10 +645,9 @@
}
})
this.formobj.scmOtherInboundDto.inventoryDirection = bb.name
// this.formobj.scmOtherInboundDto.inventoryDirection = bb.sid
console.log('name', this.formobj.scmOtherInboundDto.inventoryDirection)
},
//- getCompany
// - getCompany
getCompany() {
req.pullDown({
type: 'basicUnit'
@ -830,8 +662,7 @@
console.log('触发下拉框按钮')
let bb = {}
this.company_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -843,7 +674,7 @@
this.formobj.scmOtherInboundDetailDto.company = bb.name
console.log('name', this.formobj.scmOtherInboundDetailDto.company)
},
//-
// -
getWlxx() {
req.getWlxx({}).then(res => {
this.mnum_list = res.data
@ -862,7 +693,7 @@
}
})
},
//- warehouse basicUnit
// - warehouse basicUnit
getWarehouse() {
req.getWarehouse().then((res) => {
if (res.code === '200') {
@ -908,8 +739,8 @@
this.formobj.sid = ''
this.formobj.scmOtherInboundDto = {}
this.formobj.scmOtherInboundDetailDto = [{}]
this.stockOrgName_list = [] //
this.invenGroupName_list = [] //
this.stockOrgName_list = [] //
this.invenGroupName_list = [] //
this.refreshItem++
this.$refs['form_obj'].resetFields()
this.$emit('doback')
@ -936,28 +767,28 @@
makeListDate: data.date,
billNo: data.billNo,
makeListName: window.sessionStorage.getItem('name'),
billType: data.billType, //
billType: data.billType, //
manufacturerName: data.manufacturerName, //
manufacturerSid: data.manufacturerSid,
cargoOwnerType: data.cargoOwnerType, //
cargoOwner: data.cargoOwner, //
stockOrgName: data.stockOrgName, //
stockOrgSid: data.stockOrgSid, //sid 111
inspectorName: data.inspectorName, //
billState: data.billState, //
stockOrgName: data.stockOrgName, //
stockOrgSid: data.stockOrgSid, // sid 111
inspectorName: data.inspectorName, //
billState: data.billState, //
inventoryDirection: data.inventoryDirection, //
warehouseKeeperName: data.warehouseKeeperName, //
date: data.date,//
invenGroupName: data.invenGroupName, //
warehouseKeeperName: data.warehouseKeeperName, //
date: data.date, //
invenGroupName: data.invenGroupName, //
invenGroupSid: data.invenGroupSid, // sid 111
customer: data.customer, //
customerSid: data.customerSid, //sid
remarks: data.remarks //
customerSid: data.customerSid, // sid
remarks: data.remarks //
}
this.formobj.scmOtherInboundDto = obj
this.stockOrgName_list = data.stockOrgSid //sid
this.invenGroupName_list = data.invenGroupSid //sid
//
this.stockOrgName_list = data.stockOrgSid // sid
this.invenGroupName_list = data.invenGroupSid // sid
//
this.formobj.scmOtherInboundDetailDto = data.scmOtherInboundDetailVoList
}).catch(e => {
this.formobj = row
@ -1019,13 +850,13 @@
}
this.formobj.scmOtherInboundDto.stockOrgSid = stockOrg_Sid
console.log('重新赋值后的组织结构', this.formobj.scmOtherInboundDto.stockOrgSid)
//End
// End
// Start
var invenGroup_Sid = ''
if (this.invenGroupName_list.length > 0) {
this.invenGroupName_list.forEach((item) => {
var last_id = item[item.length - 1]
this.select_temp_Sid = '' //(Sid)
this.select_temp_Sid = '' // (Sid)
this.findOrgId(last_id, this.options)
invenGroup_Sid = invenGroup_Sid + this.select_temp_Sid + ','
})
@ -1041,7 +872,7 @@
this.submitdisabled = true
req.saveEdit(this.formobj, this.formobj.sid).then(resp => {
this.submitdisabled = false
_this.$message({ showClose: true, type: 'success', message: resp.msg })
_this.$message({showClose: true, type: 'success', message: resp.msg})
_this.handleReturn('true')
}).catch(() => {
this.submitdisabled = false
@ -1052,52 +883,52 @@
})
}
}
}
}
</script>
<style scoped>
/deep/ .el-table {
/deep/ .el-table {
overflow-x: auto;
}
}
/deep/ .el-table__header-wrapper,
/deep/ .el-table__body-wrapper,
/deep/ .el-table__footer-wrapper {
/deep/ .el-table__header-wrapper,
/deep/ .el-table__body-wrapper,
/deep/ .el-table__footer-wrapper {
overflow: visible;
}
}
/deep/ .el-table::after {
/deep/ .el-table::after {
position: relative;
}
}
/deep/ .el-table--scrollable-x .el-table__body-wrapper {
/deep/ .el-table--scrollable-x .el-table__body-wrapper {
overflow: visible;
}
}
/* 利用穿透,设置input边框隐藏 */
.invoiceadd >>> .el-input__inner {
/* 利用穿透,设置input边框隐藏 */
.invoiceadd >>> .el-input__inner {
border: 0;
border-bottom: 1px solid #e0e3eb !important;
}
}
.tablelist >>> .el-input__inner {
.tablelist >>> .el-input__inner {
border: 0;
}
}
/* 如果你的 el-input type 设置成textarea ,就要用这个了 */
/*.invoiceadd>>>.el-textarea__inner {
/* 如果你的 el-input type 设置成textarea ,就要用这个了 */
/*.invoiceadd>>>.el-textarea__inner {
border: 0;
resize: none;!* 这个是去掉 textarea 下面拉伸的那个标志如下图 *!
}*/
.invoiceadd >>> .el-form-item__content {
}*/
.invoiceadd >>> .el-form-item__content {
margin-left: 0 !important;
}
}
.el-input {
.el-input {
width: 230px;
}
}
.el-col .el-form-item {
.el-col .el-form-item {
margin-bottom: 10px;
}
}
</style>

142
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotheroutbound/scmotheroutbound.vue

@ -3,8 +3,7 @@
<div v-show="viewState == 1">
<button-bar view-title="其他出库单" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' :
'显示查询条件' }}
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
</el-button>
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
@ -12,25 +11,17 @@
<el-input v-model="queryParams.params.billNo" placeholder="请输入单据编号" clearable/>
</el-form-item>
<el-form-item label="单据类型">
<el-select v-model="queryParams.params.billType" @change="changeBillType" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.billType" @change="changeBillType" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.billType" placeholder="请输入单据类型" clearable/>-->
</el-form-item>
<el-form-item label="客户" class="search_label">
<el-select v-model="queryParams.params.customerName" @change="changeCustomer" style="width:200px"
filterable placeholder="请选择" clearable>
<el-option v-for="item in customer_list" :key="item.sid" :label="item.customerName"
:value="item.sid"></el-option>
<el-select v-model="queryParams.params.customerName" @change="changeCustomer" style="width:200px" filterable placeholder="请选择" clearable>
<el-option v-for="item in customer_list" :key="item.sid" :label="item.name" :value="item.sid"></el-option>
</el-select>
<!-- <el-input v-model="queryParams.params.customerName" placeholder="请输入客户名称" clearable/>-->
</el-form-item>
<el-form-item label="领料部门">
<el-cascader :key="refreshItem" v-model="pickingDep_list" @change="pickingDepChange"
:options="options" :props="props" clearable/>
<!-- <el-input v-model="queryParams.params.pickingDepName" placeholder="请输入领料部门" clearable/>-->
<el-cascader :key="refreshItem" v-model="pickingDep_list" @change="pickingDepChange" :options="options" :props="props" clearable/>
</el-form-item>
<el-form-item label="领料人" class="search_label">
<el-input v-model="queryParams.params.pickingPerson" placeholder="请输入领料人" clearable/>
@ -52,24 +43,12 @@
<!--Start 项目列表头部-->
<div class="listtop">
<div class="tit">其他出库单列表</div>
<pageye
v-show="dataList.length > 0"
:total="queryParams.total"
:page.sync="queryParams.current"
:limit.sync="queryParams.size"
class="pagination"
@pagination="loadList"
/>
<pageye v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
<!--End 项目列表头部-->
<!--Start 项目列表-->
<div class="listcon">
<el-table
v-loading="tableLoading"
:data="dataList"
border
style="width: 100%"
@selection-change="handleSelectionChange">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="billNo" label="单据编号" align="center">
@ -91,14 +70,7 @@
<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"
/>
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList"/>
</div>
</div>
<!--End 查询和其列表部分-->
@ -112,15 +84,13 @@
</template>
<script>
import req from '@/api/anruiscm/scmotheroutbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmotheroutboundAdd'
import divInfo from './scmotheroutboundInfo'
import { setuser, getuser } from '@/utils/baocun'
export default {
import req from '@/api/anruiscm/scmotheroutbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmotheroutboundAdd'
import divInfo from './scmotheroutboundInfo'
export default {
name: 'ScmOtherOutboundIndex',
components: {
ButtonBar,
@ -135,10 +105,10 @@
viewState: 1, // 1 2 3 4
isSearchShow: false,
tableLoading: false,
//
billType_list: [], //
customer_list: [], //
//
//
billType_list: [], //
customer_list: [], //
//
pickingDep_list: [], //
dataArr: [],
refreshItem: 0, // key
@ -185,10 +155,10 @@
},
created() {
this.loadList()
//
//
this.getBillType() //
this.getCustomer() //
this.getBuMen() //
this.getCustomer() //
this.getBuMen() //
},
methods: {
resetState() {
@ -235,7 +205,7 @@
this.viewState = 3
const sid = this.sids[0]
const row = this.row
this.$refs['divadd'].showEdit(sid,row)
this.$refs['divadd'].showEdit(sid, row)
},
doSubmit(row) {
//
@ -283,7 +253,7 @@
.catch(() => {
})
},
//- changeBillType
// - changeBillType
getBillType() {
req.pullDown({
type: 'billsType'
@ -294,13 +264,11 @@
}
})
},
// dictKey: "01"; dictType: "invoicingNature"
changeBillType(value) {
console.log('触发下拉框按钮')
let bb = {}
this.billType_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.dictKey == value) {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
@ -310,10 +278,9 @@
}
})
this.queryParams.params.billType = bb.name
// this.queryParams.params.billType = bb.sid
console.log('name', this.queryParams.params.billType)
},
//-
// -
getCustomer() {
req.kehu({}).then((res) => {
if (res.code === '200') {
@ -326,18 +293,14 @@
console.log('触发下拉框按钮')
let bb = {}
this.customer_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.sid == value) {
if (e.sid === value) {
bb = {
// type: e.dictType,
name: e.customerName,
// key: e.dictKey,
name: e.name,
sid: e.sid
}
}
})
this.queryParams.params.customerName = bb.name
// this.queryParams.params.customerSid = bb.sid
console.log('name', this.queryParams.params.customerName)
},
// pickingDepChange
@ -352,16 +315,18 @@
},
BuMen0(data) {
data.forEach((e) => {
if (e.children.length != 0) {
if (e.children) {
if (e.children.length !== 0) {
this.BuMen0(e.children)
} else {
delete e.children
this.dataArr.push(e)
return
}
}
})
},
//
//
pickingDepChange(e) {
console.log('选中结果:' + JSON.stringify(e))
var result = ''
@ -372,7 +337,7 @@
var last_id = item[item.length - 1]
//
this.select_temp_Name = '' // ()
this.select_temp_Sid = '' //(Sid)
this.select_temp_Sid = '' // (Sid)
this.findOrgId(last_id, this.options)
result = result + this.select_temp_Name + ','
result_Sid = result_Sid + this.select_temp_Sid + ','
@ -385,19 +350,18 @@
result_Sid = result_Sid.substring(0, result_Sid.length - 1)
}
this.queryParams.params.pickingDepName = result
// this.formobj.scmOtherInboundDto.orgSid = result_Sid
console.log('选中名称:' + this.queryParams.params.pickingDepName, result_Sid)
},
// ---
findOrgId(id, options) {
for (var i = 0; i < options.length; i++) {
if (id == options[i].sid) {
if (id === options[i].sid) {
this.select_temp_Name = options[i].name //
this.select_temp_Sid = options[i].sid
return true
} else {
//
if (options[i].children !== undefined) {
if (options[i].children !== undefined && options[i].children !== null) {
//
if (this.findOrgId(id, options[i].children)) {
return true
@ -471,11 +435,9 @@
const aa = []
row.forEach(element => {
aa.push(element.sid)
setuser(this.sids)
})
this.sids = aa
this.row = row
// this.sides = this.sids.join(); //sid
console.log('获取sids数组', this.sids)
},
//
@ -487,42 +449,42 @@
toInfo(row) {
const billNo = row.billNo
console.log('打开详情', billNo)
this.$refs['divinfo'].showInfo(billNo,row)
this.$refs['divinfo'].showInfo(billNo, row)
this.viewState = 4
}
}
}
}
</script>
<style scoped>
/deep/ .el-collapse {
/deep/ .el-collapse {
border-top: 0 solid #e6ebf5;
border-bottom: 0 solid #e6ebf5;
}
}
/deep/ .el-collapse-item__content {
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
}
/deep/ .el-collapse-item__wrap {
/deep/ .el-collapse-item__wrap {
border-bottom: 0 solid #ebeef5;
}
}
/deep/ .el-collapse-item__header {
/deep/ .el-collapse-item__header {
border-bottom: 0 solid #e6ebf5;
}
}
.searchbtn {
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
}
.search_label /deep/ .el-form-item__label {
.search_label /deep/ .el-form-item__label {
width: 68px;
}
}
/deep/ .el-form-item {
/deep/ .el-form-item {
margin-bottom: 5px;
}
}
</style>

528
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotheroutbound/scmotheroutboundAdd.vue

File diff suppressed because it is too large
Loading…
Cancel
Save