Browse Source

修改常用配置管理、销售出库单管理、即时库存表

master
yunuo970428 3 years ago
parent
commit
10d2d80109
  1. 787
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmoutbound/scmoutbound.vue
  2. 2259
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmoutbound/scmoutboundAdd.vue
  3. 37
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmrealtimeinventory/scmrealtimeinventory.vue
  4. 8
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmreturn/scmreturnAdd.vue
  5. 6
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
  6. 5
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
  7. 14
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue
  8. 11
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiInfo.vue

787
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmoutbound/scmoutbound.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">
@ -16,14 +15,11 @@
<el-input v-model="queryParams.params.customerName" placeholder="请输入客户名称" clearable/>
</el-form-item>
<el-form-item label="销售部门" class="salesDepNameStyle">
<el-cascader :key="refreshItem" v-model="salesDepName_list" @change="salesDepNameChange"
:options="options" :props="props"/>
<el-cascader :key="refreshItem" v-model="salesDepName_list" @change="salesDepNameChange" :options="options" :props="props"/>
</el-form-item>
<el-form-item label="项目类别">
<el-select v-model="queryParams.params.finItemType" @change="changefinItemType" style="width:200px"
filterable placeholder="请选择">
<el-option v-for="item in finItemType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.finItemType" @change="changefinItemType" style="width:200px" filterable placeholder="请选择">
<el-option v-for="item in finItemType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="制单人">
@ -32,27 +28,21 @@
</el-row>
<el-row>
<el-form-item label="中介单位">
<el-select v-model="queryParams.params.distributorName" @change="changedistributorName"
style="width:200px" filterable placeholder="请选择">
<el-option v-for="item in distributorName_list" :key="item.sid" :label="item.distributorName"
:value="item.sid">
<el-select v-model="queryParams.params.distributorName" @change="changedistributorName" style="width:200px" filterable placeholder="请选择">
<el-option v-for="item in distributorName_list" :key="item.sid" :label="item.distributorName" :value="item.sid">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="销售渠道">
<el-select v-model="queryParams.params.sellChannel" @change='changesellChannel' style="width:200px"
filterable placeholder="请选择">
<el-option v-for="item in sellChannel_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey">
<el-select v-model="queryParams.params.sellChannel" @change='changesellChannel' style="width:200px" filterable placeholder="请选择">
<el-option v-for="item in sellChannel_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item class="formItem" label="出库日期">
<el-date-picker value-format="yyyy-MM-dd" v-model="queryParams.params.outDateStart" clearable
style="width: 160px;" type="date" placeholder="开始日期"/>
<el-date-picker value-format="yyyy-MM-dd" v-model="queryParams.params.outDateStart" clearable style="width: 160px;" type="date" placeholder="开始日期"/>
<div class="line"></div>
<el-date-picker value-format="yyyy-MM-dd" v-model="queryParams.params.outDateEnd" clearable
style="width: 160px;" type="date" placeholder="结束日期"/>
<el-date-picker value-format="yyyy-MM-dd" v-model="queryParams.params.outDateEnd" clearable style="width: 160px;" type="date" placeholder="结束日期"/>
</el-form-item>
</el-row>
<el-divider/>
@ -66,20 +56,18 @@
<!--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">
<template slot-scope="scope">
<span class="tablerow-click" @click="toInfo(scope.row)">{{scope.row.billNo}}</span>
<span class="tablerow-click" @click="toInfo(scope.row)">{{ scope.row.billNo }}</span>
</template>
</el-table-column>
<el-table-column prop="sellType" label="销售类型" align="center"/>
@ -98,14 +86,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 查询和其列表部分-->
@ -119,413 +100,415 @@
</template>
<script>
import req from '@/api/anruiscm/scmoutbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmoutboundAdd'
import divInfo from './scmoutboundInfo'
import req from '@/api/anruiscm/scmoutbound'
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './scmoutboundAdd'
import divInfo from './scmoutboundInfo'
export default {
name: 'ScmOutboundIndex',
components: {
ButtonBar,
Pagination,
pageye,
divAdd,
divInfo
export default {
name: 'ScmOutboundIndex',
components: {
ButtonBar,
Pagination,
pageye,
divAdd,
divInfo
},
data() {
return {
btndisabled: false,
refreshItem: 0,
viewState: 1, // 1 2 3 4
isSearchShow: false,
tableLoading: false,
dataList: [],
finItemType_list: [], //
distributorName_list: [], //
sellChannel_list: [], //
salesDepName_list: [], //
options: [],
dataArr: [],
props: {
value: 'sid',
label: 'name',
children: 'children',
multiple: true
},
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
sids: [], // SID
billNo: '', //
customerName: '', //
salesDepName: '', //
finItemType: '', //
distributorName: '', //
sellChannel: '', //
creatorName: '', //
outDateStart: '',
outDateEnd: ''
}
},
multipleSelection: []
}
},
created() {
this.finItemType()
this.distributorName()
this.sellChannel()
this.loadList()
this.getZuZhi()
},
methods: {
resetState() {
this.viewState = 1
},
data() {
return {
btndisabled: false,
refreshItem: 0,
viewState: 1, // 1 2 3 4
isSearchShow: false,
tableLoading: false,
dataList: [],
finItemType_list: [], //
distributorName_list: [], //
sellChannel_list: [], //
salesDepName_list: [], //
options: [],
dataArr: [],
props: {
value: 'sid',
label: 'name',
children: 'children',
multiple: true
},
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
sids: [], // SID
billNo: '', //
customerName: '', //
salesDepName: '', //
finItemType: '', //
distributorName: '', //
sellChannel: '', //
creatorName: '', //
outDateStart: '',
outDateEnd: ''
}
},
multipleSelection: []
}
finItemType() {
req.pullDown({psid: 0, type: 'finItemType'}).then((response) => {
if (response.code === '200') {
this.finItemType_list = response.data
}
})
},
created() {
this.finItemType()
this.distributorName()
this.sellChannel()
this.loadList()
this.getZuZhi()
distributorName() {
req.distributorName().then((response) => {
if (response.code === '200') {
this.distributorName_list = response.data
}
})
},
methods: {
resetState() {
this.viewState = 1
},
finItemType() {
req.pullDown({ psid: 0, type: 'finItemType' }).then((response) => {
if (response.code === '200') {
this.finItemType_list = response.data
sellChannel() {
req.pullDown({ psid: 0, type: 'sellChannel' }).then((response) => {
if (response.code === '200') {
this.sellChannel_list = response.data
}
})
},
changedistributorName(value) {
let bb = null
this.distributorName_list.forEach((e) => {
if (e.sid === value) {
bb = {
name: e.distributorName,
value: e.sid
}
})
},
distributorName() {
req.distributorName().then((response) => {
if (response.code === '200') {
this.distributorName_list = response.data
}
})
this.queryParams.params.distributorName = bb.name
},
changesellChannel(value) {
let bb = null
this.sellChannel_list.forEach((e) => {
if (e.dictKey === value) {
bb = {
name: e.dictValue,
value: e.dictKey
}
})
},
sellChannel() {
req.pullDown({ psid: 0, type: 'sellChannel' }).then((response) => {
if (response.code === '200') {
this.sellChannel_list = response.data
}
})
this.queryParams.params.sellChannel = bb.name
},
changefinItemType(value) {
let bb = null
this.finItemType_list.forEach((e) => {
if (e.dictKey === value) {
bb = {
name: e.dictValue,
value: e.dictKey
}
}
})
this.queryParams.params.finItemType = bb.name
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doSubmit':
this.doSubmit()
break
case 'doDel':
this.doDel()
break
case 'doImport':
this.doImport()
break
case 'doExport':
this.doExport()
break
default:
break
}
},
toAdd(row) {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
toEdit() {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.multipleSelection.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const row = this.multipleSelection[0]
this.$refs['divadd'].showEdit(row)
},
doSubmit(row) {
//
this.btndisabled = true
req
.doSubmit(this.queryParams.params)
.then(resp => {
console.log(resp)
this.btndisabled = false
})
},
changedistributorName(value) {
let bb = null
this.distributorName_list.forEach((e) => {
if (e.sid == value) {
bb = {
name: e.distributorName,
value: e.sid
}
}
.catch(() => {
this.btndisabled = false
})
this.queryParams.params.distributorName = bb.name
},
changesellChannel(value) {
let bb = null
this.sellChannel_list.forEach((e) => {
if (e.dictKey == value) {
bb = {
name: e.dictValue,
value: e.dictKey
}
}
},
doDel(row) {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const _this = this
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
this.queryParams.params.sellChannel = bb.name
},
changefinItemType(value) {
let bb = null
this.finItemType_list.forEach((e) => {
if (e.dictKey == value) {
bb = {
name: e.dictValue,
value: e.dictKey
}
}
req.delBySids(sids).then(resp => {
loading.close()
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.loadList()
}).catch(e => {
loading.close()
})
this.queryParams.params.finItemType = bb.name
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doSubmit':
this.doSubmit()
break
case 'doDel':
this.doDel()
break
case 'doImport':
this.doImport()
break
case 'doExport':
this.doExport()
break
default:
break
}
},
toAdd(row) {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
toEdit() {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.multipleSelection.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const row = this.multipleSelection[0]
this.$refs['divadd'].showEdit(row)
},
doSubmit(row) {
//
this.btndisabled = true
req
.doSubmit(this.queryParams.params)
.then(resp => {
console.log(resp)
this.btndisabled = false
})
.catch(() => {
this.btndisabled = false
})
},
doDel(row) {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const _this = this
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.delBySids(sids).then(resp => {
loading.close()
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.loadList()
}).catch(e => {
loading.close()
})
}).catch(() => {
}).catch(() => {
})
},
doImport(row) {
//
req
.importExcel(this.queryParams.params)
.then(resp => {
console.log(resp)
})
},
doImport(row) {
//
req
.importExcel(this.queryParams.params)
.then(resp => {
console.log(resp)
})
.catch(() => {
})
},
doExport(row) {
//
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
.catch(() => {
})
this.queryParams.params.sids = sids
req
.exportExcel(this.queryParams.params)
.then(resp => {
var map = resp.data
const fileName = map.filename //
// // <a> Firefox Chrome download
// // IE10blobdownload
const link = document.createElement('a') // a
link.download = fileName // a
link.style.display = 'none'
link.href = map.downurl
document.body.appendChild(link)
link.click() //
URL.revokeObjectURL(link.href) // url
document.body.removeChild(link) //
})
.catch(() => {
})
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
sids: [], // SID
billNo: '', //
customerName: '', //
salesDepName: '', //
finItemType: '', //
distributorName: '', //
sellChannel: '', //
creatorName: '', //
outDateStart: '',
outDateEnd: ''
}
},
this.salesDepName_list = [],
this.dosearch()
},
loadList() {
const _this = this
this.tableLoading = true
req.listPage(this.queryParams).then(resp => {
_this.tableLoading = false
const data = resp.data
_this.queryParams.total = data.total
_this.dataList = data.records
}).catch(() => {
_this.tableLoading = false
},
doExport(row) {
//
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
this.queryParams.params.sids = sids
req
.exportExcel(this.queryParams.params)
.then(resp => {
var map = resp.data
const fileName = map.filename //
// // <a> Firefox Chrome download
// // IE10blobdownload
const link = document.createElement('a') // a
link.download = fileName // a
link.style.display = 'none'
link.href = map.downurl
document.body.appendChild(link)
link.click() //
URL.revokeObjectURL(link.href) // url
document.body.removeChild(link) //
})
},
handleSelectionChange(val) {
this.multipleSelection = val
},
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
toInfo(row) {
this.$refs['divinfo'].showInfo(row)
this.viewState = 4
},
//
getZuZhi() {
req.salesDepName().then((res) => {
if (res.code === '200') {
this.options = res.data
this.zuzhi0(this.options)
}
.catch(() => {
})
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
sids: [], // SID
billNo: '', //
customerName: '', //
salesDepName: '', //
finItemType: '', //
distributorName: '', //
sellChannel: '', //
creatorName: '', //
outDateStart: '',
outDateEnd: ''
}
},
zuzhi0(data) {
data.forEach((e) => {
if (e.children.length != 0) {
this.salesDepName_list = [],
this.dosearch()
},
loadList() {
const _this = this
this.tableLoading = true
req.listPage(this.queryParams).then(resp => {
_this.tableLoading = false
const data = resp.data
_this.queryParams.total = data.total
_this.dataList = data.records
}).catch(() => {
_this.tableLoading = false
})
},
handleSelectionChange(val) {
this.multipleSelection = val
},
//
indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size
var pageindex = index + 1 + pagestart
return pageindex
},
toInfo(row) {
this.$refs['divinfo'].showInfo(row)
this.viewState = 4
},
//
getZuZhi() {
req.salesDepName().then((res) => {
if (res.code === '200') {
this.options = res.data
this.zuzhi0(this.options)
}
})
},
zuzhi0(data) {
data.forEach((e) => {
if (e.children) {
if (e.children.length !== 0) {
this.zuzhi0(e.children)
} else {
delete e.children
this.dataArr.push(e)
return
}
})
},
salesDepNameChange(e) {
console.log('选中结果:' + JSON.stringify(e))
var result = ''
var result_Sid = ''
if (e.length > 0) {
//
e.forEach((item) => {
var last_id = item[item.length - 1]
//
this.select_temp_Name = '' // ()
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 + ','
})
}
if (result !== '') {
result = result.substring(0, result.length - 1)
}
if (result_Sid !== '') {
result_Sid = result_Sid.substring(0, result_Sid.length - 1)
}
this.queryParams.params.salesDepName = result
console.log('选中名称:' + this.queryParams.params.salesDepName)
},
findOrgId(id, options) {
for (var i = 0; i < options.length; i++) {
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 (this.findOrgId(id, options[i].children)) {
return true
}
})
},
salesDepNameChange(e) {
console.log('选中结果:' + JSON.stringify(e))
var result = ''
var result_Sid = ''
if (e.length > 0) {
//
e.forEach((item) => {
var last_id = item[item.length - 1]
//
this.select_temp_Name = '' // ()
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 + ','
})
}
if (result !== '') {
result = result.substring(0, result.length - 1)
}
if (result_Sid !== '') {
result_Sid = result_Sid.substring(0, result_Sid.length - 1)
}
this.queryParams.params.salesDepName = result
console.log('选中名称:' + this.queryParams.params.salesDepName)
},
findOrgId(id, options) {
for (var i = 0; i < options.length; i++) {
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 && options[i].children !== null) {
//
if (this.findOrgId(id, options[i].children)) {
return true
}
}
}
}
}
}
}
</script>
<style scoped>
.app-container-copy {
margin: 5px -9px;
}
.app-container-copy {
margin: 5px -9px;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.line {
display: inline-block;
margin: 0px 15px;
}
.line {
display: inline-block;
margin: 0px 15px;
}
.salesDepNameStyle >>> .el-input__inner {
height: 32px !important;
}
.salesDepNameStyle >>> .el-input__inner {
height: 32px !important;
}
.salesDepNameStyle >>> .el-form-item__content {
margin-top: -5px;
}
.salesDepNameStyle >>> .el-form-item__content {
margin-top: -5px;
}
.listtop {
margin: 0px 9px;
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #dfe4ed;
height: 40px;
}
.listtop {
margin: 0px 9px;
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #dfe4ed;
height: 40px;
}
.searchcon {
margin: 0px 9px;
}
.searchcon {
margin: 0px 9px;
}
.listcon {
margin: 0px 9px;
}
.listcon {
margin: 0px 9px;
}
.tit {
margin-bottom: -10px;
}
.tit {
margin-bottom: -10px;
}
.pagination {
margin-bottom: -10px;
}
.pagination {
margin-bottom: -10px;
}
</style>

2259
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmoutbound/scmoutboundAdd.vue

File diff suppressed because it is too large

37
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmrealtimeinventory/scmrealtimeinventory.vue

@ -24,8 +24,8 @@
</el-select>
</el-form-item>
<el-form-item label="仓库">
<el-select v-model="queryParams.params.warehouse" @change="changeWarehouse" placeholder="请选择" clearable>
<el-option v-for="item in warehouse_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
<el-select v-model="queryParams.params.warehouseS" @change="changeWarehouse" placeholder="请选择" clearable>
<el-option v-for="item in warehouse_list" :key="item.sid" :label="item.warehouseName" :value="item.warehouseName"></el-option>
</el-select>
</el-form-item>
</el-row>
@ -139,21 +139,12 @@ export default {
size: 10,
total: 0,
params: {
sids: [], // SID
mNum: '', //
mName: '', //
warehouse: '', //
inventoryPrimaryUnit: '', //
inventory: '', //
availableQuantity: '', //
stockOrgName: '', //
cargoOwnerType: '', //
cargoOwnerNo: '', //
cargoOwner: '', //
invenState: '', //
warehouseNo: '', //
custodianType: '', //
custodianNo: '', //
custodian: '' //
}
},
@ -236,12 +227,9 @@ export default {
},
// - warehouse
getWarehouse() {
req.pullDown({
type: 'warehouse'
}).then((res) => {
req.getWarehouse().then((res) => {
if (res.code === '200') {
this.warehouse_list = res.data
console.log('下拉框请求111', res.data)
}
})
},
@ -365,7 +353,7 @@ export default {
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
this.queryParams.params.sids = sids
// this.queryParams.params.sids = sids
req.exportExcel(this.queryParams.params).then(resp => {
var map = resp.data
const fileName = map.filename //
@ -387,9 +375,20 @@ export default {
this.loadList()
},
resetQuery() {
this.queryParams.params = {}
this.queryParams.params.sid = '' // sid
this.queryParams.params.name = '' //
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
mNum: '', //
mName: '', //
warehouse: '', //
inventoryPrimaryUnit: '', //
cargoOwner: '', //
invenState: '', //
custodian: '' //
}
}
this.dosearch()
},
loadList() {

8
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmreturn/scmreturnAdd.vue

@ -734,9 +734,9 @@ export default {
this.formobj.userSid = window.sessionStorage.getItem('userSid'),
this.formobj.list = [],
this.$refs['form_obj'].resetFields()
this.stockOrgName_list = [] //
// this.stockOrgName_list = [] //
this.stockDepName_list = [], //
this.salesOrgName_list = [],
// this.salesOrgName_list = [],
this.tableData = [],
this.refreshItem++,
this.$emit('doback')
@ -765,7 +765,7 @@ export default {
this.formobj.billTypeValue = vdata.billTypeValue //
this.formobj.billType = vdata.billType
this.formobj.returnCustomer = vdata.returnCustomer // 退
this.stockOrgName_list = vdata.stockOrgSid // sid
// this.stockOrgName_list = vdata.stockOrgSid // sid
this.formobj.calculationCurrency = vdata.calculationCurrency //
this.stockDepName_list = vdata.stockDepSid // sid
this.formobj.date = vdata.date //
@ -775,7 +775,7 @@ export default {
this.formobj.placeOfDelivery = vdata.placeOfDelivery //
this.formobj.warehouseKeeperSid = vdata.warehouseKeeperSid // sid
this.formobj.warehouseKeeperName = vdata.warehouseKeeperName //
this.salesOrgName_list = vdata.salesOrgSid // sid
// this.salesOrgName_list = vdata.salesOrgSid // sid
this.formobj.projectCategory = vdata.projectCategory //
this.formobj.stockOrgName = vdata.stockOrgName //
this.formobj.stockDepName = vdata.stockDepName //

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

@ -410,9 +410,9 @@
}
})
} else {
const useOrg_array = this.temp.useOrg[0]
const useOrg_str = useOrg_array[useOrg_array.length - 1]
this.temp.useOrg = useOrg_str
// const useOrg_array = this.temp.useOrg[0]
// const useOrg_str = useOrg_array[useOrg_array.length - 1]
// this.temp.useOrg = useOrg_str
this.updateUrl()
SaveList(this.temp).then(response => {
this.FormLoading = false

5
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

@ -232,6 +232,11 @@
<span>{{ scope.row.multimedia }}</span>
</template>
</el-table-column>
<el-table-column label="多媒体" align="center">
<template slot-scope="scope">
<span>{{ scope.row.packingCase }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">

14
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue

@ -586,6 +586,13 @@ export default {
if (this.sids[0].relationState === 1) {
this.viewState = 5
this.$refs['relation'].init(this.sids[0].sid)
} else {
this.$notify({
title: '提示',
message: '该常用配置未关联车型!',
type: 'info',
duration: 2000
})
}
} else if (this.sids.length > 1) {
this.$notify({
@ -715,8 +722,13 @@ export default {
// ID
handleDelete() {
console.log('删除', this.sids)
const bb = []
this.sids.forEach((e) => {
bb.push(e.sid)
})
console.log(bb, 666666)
if (this.sids.length > 0) {
deleteBySids(this.sids).then((response) => {
deleteBySids(bb).then((response) => {
if (response.code === '200') {
this.$notify({
title: '提示',

11
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiInfo.vue

@ -46,7 +46,7 @@
<el-col :span="2">
<span>驾驶室</span>
</el-col>
<el-col :span="2">
<el-col :span="2" class="tleftb">
<el-form-item prop="specification">
<span>{{ temp.specification }}</span>
</el-form-item>
@ -88,7 +88,7 @@
<el-col :span="2">
<span>悬架</span>
</el-col>
<el-col :span="2">
<el-col :span="2" class="tleftb">
<el-form-item prop="suspension">
<span>{{ temp.suspension }}</span>
</el-form-item>
@ -130,7 +130,7 @@
<el-col :span="2">
<span>保险杠</span>
</el-col>
<el-col :span="2">
<el-col :span="2" class="tleftb">
<el-form-item prop="bumper">
<span>{{ temp.bumper }}</span>
</el-form-item>
@ -172,7 +172,7 @@
<el-col :span="2">
<span>货箱</span>
</el-col>
<el-col :span="2">
<el-col :span="2" class="tleftb">
<span>{{ temp.packingCase }}</span>
</el-col>
</el-row>
@ -235,4 +235,7 @@ export default {
line-height: 40px !important;
font-weight: 600;
}
.tleftb {
text-align: left;
}
</style>

Loading…
Cancel
Save