|
|
@ -10,29 +10,29 @@ |
|
|
|
<div v-show="isSearchShow" class="search"> |
|
|
|
<el-form :inline="true" class="tab-header"> |
|
|
|
<el-form-item label="调帐类型"> |
|
|
|
<el-select v-model="listQuery.params.purchaseType" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in purchaseType_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
<el-select v-model="listQuery.params.accadjTypeKey" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in accadjType_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="listQuery.params.vin" placeholder="请输入车架号" clearable/>--> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="调出分公司"> |
|
|
|
<el-select v-model="listQuery.params.purchaseType" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in purchaseType_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
<el-select v-model="listQuery.params.callOutOrgSid" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" |
|
|
|
:value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="调入分公司"> |
|
|
|
<el-select v-model="listQuery.params.purchaseType" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in purchaseType_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
<el-select v-model="listQuery.params.callInOrgSid" placeholder="请选择" clearable class="addinputw"> |
|
|
|
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" |
|
|
|
:value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="申请日期:"> |
|
|
|
<el-date-picker v-model="listQuery.params.applicationStartDate" class="filter-item" type="date" |
|
|
|
<el-date-picker v-model="listQuery.params.applyStartDate" class="filter-item" type="date" |
|
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择"/> |
|
|
|
<label>至</label> |
|
|
|
<el-date-picker v-model="listQuery.params.applicationEndDate" class="filter-item" type="date" |
|
|
|
<el-date-picker v-model="listQuery.params.applyEndDate" class="filter-item" type="date" |
|
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择"/> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -61,10 +61,10 @@ |
|
|
|
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column width="140px" prop="vin" label="申请日期" align="center"/> |
|
|
|
<el-table-column width="120px" prop="model" label="调账类型" align="center"/> |
|
|
|
<el-table-column prop="purchaseType" label="调出分公司" align="center"/> |
|
|
|
<el-table-column prop="dispatchedDate" label="调入分公司" align="center"/> |
|
|
|
<el-table-column width="140px" prop="applyDate" label="申请日期" align="center"/> |
|
|
|
<el-table-column width="120px" prop="accadjTypeValue" label="调账类型" align="center"/> |
|
|
|
<el-table-column prop="callOutOrgName" label="调出分公司" align="center"/> |
|
|
|
<el-table-column prop="callInOrgName" label="调入分公司" align="center"/> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<!--End 项目列表--> |
|
|
@ -99,8 +99,10 @@ import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import tiaozhangshenqingguanliAdd from '@/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd' |
|
|
|
import tiaozhangshenqingguanliInfo from '@/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliInfo' |
|
|
|
import { deleteCarTransfer } from '@/api/supplychain/cunfangdidianbiangeng' |
|
|
|
import { selectCarInspectedList, typeValues } from '@/api/supplychain/yancheguanli' |
|
|
|
import { listPage,delBySids } from '@/api/supplychain/tiaozhangshenqing.js' |
|
|
|
import { getPathSidByUserSid, getOrg } from '@/api/cheliang/basevehiclemodel' |
|
|
|
import { typeValues } from '@/api/supplychain/yancheguanli' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'tiaozhangshenqingguanli', |
|
|
@ -119,8 +121,7 @@ export default { |
|
|
|
tableLoading: false, |
|
|
|
dataList: [], |
|
|
|
useOrg_list: [], |
|
|
|
modelName_list: [], |
|
|
|
purchaseType_list: [], |
|
|
|
accadjType_list: [], |
|
|
|
useOrg: '', // 使用组织 |
|
|
|
useOrgSid: '', // 使用组织sid |
|
|
|
listQuery: { |
|
|
@ -128,10 +129,12 @@ export default { |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
vin: '', |
|
|
|
model: '', |
|
|
|
purchaseType: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
applyStartDate: '', |
|
|
|
applyEndDate: '', |
|
|
|
accadjTypeKey: '', |
|
|
|
callOutOrgSid: '', |
|
|
|
callInOrgSid: '', |
|
|
|
createOrgSid: '' // window.sessionStorage.getItem('orgSid'), |
|
|
|
} |
|
|
|
}, |
|
|
|
btnList: [ |
|
|
@ -161,8 +164,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList() |
|
|
|
this.getPathSid() |
|
|
|
this.getType() |
|
|
|
this.getListOrgAll() |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
@ -212,7 +216,7 @@ export default { |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
// const sids = this.sids.join() |
|
|
|
deleteCarTransfer(this.sids).then(resp => { |
|
|
|
delBySids(this.sids).then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
loading.close() |
|
|
|
_this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|
|
@ -245,6 +249,16 @@ export default { |
|
|
|
this.sids = aa |
|
|
|
console.log('勾选的数据', this.sids) |
|
|
|
}, |
|
|
|
getPathSid() { |
|
|
|
const userSid = window.sessionStorage.getItem('userSid') |
|
|
|
getPathSidByUserSid({ userSid: userSid }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.listQuery.params.createOrgSid = res.data |
|
|
|
this.useOrg = res.data |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.loadList() |
|
|
@ -255,18 +269,20 @@ export default { |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
vin: '', |
|
|
|
model: '', |
|
|
|
purchaseType: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
applyStartDate: '', |
|
|
|
applyEndDate: '', |
|
|
|
accadjTypeKey: '', |
|
|
|
callOutOrgSid: '', |
|
|
|
callInOrgSid: '', |
|
|
|
createOrgSid: '' // window.sessionStorage.getItem('orgSid'), |
|
|
|
} |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
this.getPathSid() |
|
|
|
}, |
|
|
|
loadList() { |
|
|
|
const _this = this |
|
|
|
this.tableLoading = true |
|
|
|
selectCarInspectedList(this.listQuery) |
|
|
|
listPage(this.listQuery) |
|
|
|
.then(resp => { |
|
|
|
_this.tableLoading = false |
|
|
|
const data = resp.data |
|
|
@ -286,10 +302,17 @@ export default { |
|
|
|
}, |
|
|
|
getType() { |
|
|
|
typeValues({ |
|
|
|
type: 'purchaseOrderType ' |
|
|
|
type: 'accadjType ' |
|
|
|
}).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.purchaseType_list = response.data |
|
|
|
this.accadjType_list = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getListOrgAll() { |
|
|
|
getOrg().then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.useOrg_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|