Browse Source

完善供应商管理、厂家系统认款、采购订单管理--与切换机构功能相关修改

master
yunuo970428 2 years ago
parent
commit
92408b7aee
  1. 71
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue
  2. 9
      anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoguanli.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue

71
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue

@ -11,7 +11,7 @@
<el-input v-model="queryParams.params.orderNo" placeholder="请输入编号" clearable/>
</el-form-item>
<el-form-item label="订单类型">
<el-select v-model="queryParams.params.orderTypeKey" @change="changeBillType" style="width:200px" filterable placeholder="请选择" clearable>
<el-select v-model="queryParams.params.orderTypeKey" 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-form-item>
@ -98,6 +98,7 @@ import pageye from '@/components/pagination/pageye'
import divAdd from './cheliangcaigouAdd'
import divInfo from './cheliangcaigouInfo'
import vehicleconfiguration from '@/views/cheliang/cheliangcaigou/relation/vehicleconfiguration'
import { typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'cheliangcaigou',
@ -117,11 +118,6 @@ export default {
tableLoading: false,
//
billType_list: [], //
manu_list: [], //
customer_list: [], //
cargoType_list: [], //
billState_list: [], //
// Inspector_list: [], //
//
dataList: [],
btnList: [
@ -135,7 +131,6 @@ export default {
],
// sid
sids: [], // SID
sides: '', // sid
queryParams: {
current: 1,
size: 10,
@ -147,9 +142,10 @@ export default {
startDate: '',
endDate: '',
modelName: '',
staffSid: window.sessionStorage.getItem('staffSid'),
userSid: window.sessionStorage.getItem('userSid'),
applicationCode: ''
staffSid: '',
userSid: '',
applicationCode: '',
orgPath: ''
}
},
row: {}
@ -184,7 +180,7 @@ export default {
this.viewState = 4
this.$refs['divinfo'].showInfo(row)
},
handlePeizhi(row){
handlePeizhi(row) {
this.viewState = 5
this.$refs['divPeizhi'].showInfo(row)
},
@ -194,31 +190,12 @@ export default {
},
// - changeBillType
getBillType() {
req.pullDown({
type: 'orderType'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'orderType' }).then((res) => {
if (res.success) {
this.billType_list = res.data
console.log('下拉框请求111', res.data)
}
})
},
changeBillType(value) {
console.log('触发下拉框按钮')
let bb = {}
this.billType_list.forEach((e) => {
if (e.dictKey === value) {
bb = {
type: e.dictType,
name: e.dictValue,
key: e.dictKey,
sid: e.sid
}
}
})
this.queryParams.params.billType = bb.name
console.log('name', this.queryParams.params.billType)
},
resetQuery() {
this.queryParams = {
current: 1,
@ -231,27 +208,33 @@ export default {
startDate: '',
endDate: '',
modelName: '',
staffSid: window.sessionStorage.getItem('staffSid'),
userSid: window.sessionStorage.getItem('userSid'),
applicationCode: ''
staffSid: '',
userSid: '',
applicationCode: '',
orgPath: ''
}
}
this.dosearch()
},
//
loadList() {
const _this = this
this.tableLoading = true
this.queryParams.params.staffSid = window.sessionStorage.getItem('staffSid')
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
req.listPage(this.queryParams).then(resp => {
console.log('查询列表', resp)
_this.tableLoading = false
this.tableLoading = false
if (resp.success) {
const data = resp.data
_this.queryParams.total = data.total
_this.dataList = data.records
})
.catch(() => {
_this.tableLoading = false
})
this.queryParams.total = data.total
this.dataList = data.records
} else {
this.queryParams.total = 0
this.dataList = []
}
}).catch(() => {
this.tableLoading = false
})
},
//
indexMethod(index) {

9
anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoguanli.vue

@ -117,7 +117,8 @@ export default {
announcementmodelName: '',
createStartTime: '',
createEndTime: '',
userSid: ''
userSid: '',
orgPath: ''
},
current: 1,
size: 5,
@ -177,10 +178,11 @@ export default {
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
req.listPage(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (response.success && response.data && response.data.total > 0) {
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
@ -200,7 +202,8 @@ export default {
announcementmodelName: '',
createStartTime: '',
createEndTime: '',
userSid: ''
userSid: '',
orgPath: ''
},
current: 1,
size: 5,

4
anrui-scm/anrui-scm-ui/src/views/supplychain/changjiaxitong/manufacturers.vue

@ -117,7 +117,7 @@
<script>
import req from '@/api/supplychain/manufacturers'
import { getPathSidByUserSid, typeValues } from '@/api/cheliang/dictcommons'
import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
@ -234,7 +234,7 @@ export default {
this.applyType_list = resp.data
}
})
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.createOrgSid = res.data
this.getList()

Loading…
Cancel
Save