|
|
@ -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) { |
|
|
|