|
|
@ -52,66 +52,35 @@ |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column fixed width="50" type="selection" align="center"/> |
|
|
|
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="采购渠道" align="center" width="100"> |
|
|
|
<el-table-column label="是否已作废" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.purchaseOrderTypeValue }}</span> |
|
|
|
<span>{{ scope.row.state == '3' ? '是' : '否' }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="purchaseOrderTypeValue" label="采购渠道" align="center" width="100" /> |
|
|
|
<el-table-column label="销售订单编号" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" @click="lookSale(scope.row)">{{ scope.row.saleOrderNo }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="销售订单审批日期" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.saleOrderApproDate }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="业务类型" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.businessType }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="申请部门" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.applyDeptName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="申请人" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.applyPeoName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="saleOrderApproDate" label="销售订单审批日期" align="center" width="150" /> |
|
|
|
<el-table-column prop="businessType" label="业务类型" align="center" width="120" /> |
|
|
|
<el-table-column prop="applyDeptName" label="申请部门" align="center" width="150" /> |
|
|
|
<el-table-column prop="applyPeoName" label="申请人" align="center" width="120" /> |
|
|
|
<el-table-column label="车型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" @click="lookPeiZhi(scope.row)">{{ scope.row.modelName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="配置简述" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.configName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="数量" align="center" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.num }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="configName" label="配置简述" align="center" /> |
|
|
|
<el-table-column prop="num" label="数量" align="center" width="80" /> |
|
|
|
<el-table-column label="审批记录" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span @click="flowRecord(scope.row)" class="bluezi">查看</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="选择日期" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.choiceDate }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作人" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.operateName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="choiceDate" label="选择日期" align="center" width="100" /> |
|
|
|
<el-table-column prop="operateName" label="操作人" align="center" width="100" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
@ -127,19 +96,23 @@ |
|
|
|
<vehicleconfiguration v-show="viewState == 4" ref="divPeizhi" @doback="resetState"/> |
|
|
|
<!-- 选择采购渠道 --> |
|
|
|
<el-dialog :visible.sync="dialogVisible" width="50%"> |
|
|
|
<el-form ref="form_obj" :model="formobj" class="formadd"> |
|
|
|
<el-form ref="form_obj" :model="formobj" class="formaddcopy02"> |
|
|
|
<el-row style="border-top: 1px solid #E0E3EB"> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">采购渠道</div> |
|
|
|
<el-form-item> |
|
|
|
<span>选择采购渠道</span> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.purchaseOrderTypeValue" placeholder="请选择" filterable clearable @change="changePurchaseOrderType"> |
|
|
|
<el-option v-for="item in purchaseOrderType_list" :disabled="item.dictValue == '挂车' || item.dictValue == '内购'" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">采购系统</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="formobj.purchaseOrderTypeValue" placeholder="请选择" filterable clearable @change="changePurchaseOrderType"> |
|
|
|
<el-option v-for="item in purchaseOrderType_list" :disabled="item.dictValue == '挂车' || item.dictValue == '内购'" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.purchaseSystemName" placeholder="请选择" @change="changeOrgDept" clearable filterable> |
|
|
|
<el-option v-for="item in purchaseSystem_list" :key="item.deptSid" :label="item.purchaseSystemName" :value="item.purchaseSystemName"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -161,7 +134,7 @@ import req from '@/api/purchasingchannels/purchasingchannels' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import { getOrgSidByPath, selectOrgLists, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
import { fetchDetailsByUseOrgSid, getOrgSidByPath, selectOrgLists, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
import { getStorage } from '@/utils/auth' |
|
|
|
import saleOrder from '@/components/publicPage/saleOrder' |
|
|
|
import vehicleconfiguration from '@/views/cheliang/cheliangtaizhang/relation/vehicleconfiguration' |
|
|
@ -204,13 +177,17 @@ export default { |
|
|
|
// 查询条件 ----------- |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], |
|
|
|
orgDept_list: [], |
|
|
|
purchaseOrderType_list: [], |
|
|
|
purchaseSystem_list: [], |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
formobj: { |
|
|
|
purchaseOrderTypeValue: '', |
|
|
|
purchaseOrderTypeKey: '' |
|
|
|
purchaseOrderTypeKey: '', |
|
|
|
purchaseSystemName: '', |
|
|
|
purchaseSystemSid: '' |
|
|
|
}, |
|
|
|
listQuery: { |
|
|
|
params: { |
|
|
@ -303,6 +280,11 @@ export default { |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.listQuery.params.useOrgSid = res.data |
|
|
|
fetchDetailsByUseOrgSid(res.data).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.purchaseSystem_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
// 加载列表 |
|
|
|
this.getList() |
|
|
|
} |
|
|
@ -322,7 +304,9 @@ export default { |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
orgSidPath: window.sessionStorage.getItem('defaultOrgPath'), |
|
|
|
purchaseOrderTypeKey: '', |
|
|
|
purchaseOrderTypeValue: '' |
|
|
|
purchaseOrderTypeValue: '', |
|
|
|
purchaseSystemSid: '', |
|
|
|
purchaseSystemName: '' |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
@ -383,16 +367,26 @@ export default { |
|
|
|
const choose = this.purchaseOrderType_list.filter((item) => item.dictValue === value) |
|
|
|
this.formobj.purchaseOrderTypeKey = choose[0].dictKey |
|
|
|
}, |
|
|
|
changeOrgDept(value) { |
|
|
|
const choose = this.purchaseSystem_list.filter((item) => item.purchaseSystemName === value) |
|
|
|
this.formobj.purchaseSystemSid = choose[0].deptSid |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
if (this.formobj.purchaseOrderTypeValue === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '选择采购渠道不能为空' }) |
|
|
|
this.$message({ showClose: true, type: 'error', message: '采购渠道不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.purchaseSystemName === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '采购系统不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
for (var i = 0; i < this.sids.length; i++) { |
|
|
|
this.sids[i].purchaseOrderTypeValue = this.formobj.purchaseOrderTypeValue |
|
|
|
this.sids[i].purchaseOrderTypeKey = this.formobj.purchaseOrderTypeKey |
|
|
|
this.sids[i].purchaseSystemName = this.formobj.purchaseSystemName |
|
|
|
this.sids[i].purchaseSystemSid = this.formobj.purchaseSystemSid |
|
|
|
} |
|
|
|
const tip = '请确认采购渠道是否选择正确' |
|
|
|
const tip = '请确认采购渠道以及采购系统是否选择正确' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
@ -410,7 +404,9 @@ export default { |
|
|
|
handleQuXiao() { |
|
|
|
this.formobj = { |
|
|
|
purchaseOrderTypeValue: '', |
|
|
|
purchaseOrderTypeKey: '' |
|
|
|
purchaseOrderTypeKey: '', |
|
|
|
purchaseSystemName: '', |
|
|
|
purchaseSystemSid: '' |
|
|
|
} |
|
|
|
this.dialogVisible = false |
|
|
|
}, |
|
|
@ -444,4 +440,10 @@ export default { |
|
|
|
color: white; |
|
|
|
font-weight: 600; |
|
|
|
} |
|
|
|
.span-sty { |
|
|
|
width: 130px !important; |
|
|
|
} |
|
|
|
.addinputInfo { |
|
|
|
margin-left: 120px !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|