|
@@ -4,29 +4,31 @@
|
|
|
<el-form class="search_area" label-width="120px">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-form-item label="单据状态">
|
|
|
- <el-select v-model="queryParams.status" size="small" style="width: 200px" clearable>
|
|
|
- <el-option v-for="dict in dict.type.sys_status" :key="dict.value" :label="dict.label" :value="dict.value">
|
|
|
+ <el-form-item label="行状态">
|
|
|
+ <el-select multiple v-model="queryParams.rowStatus" size="small" style="width: 200px" clearable>
|
|
|
+ <el-option v-for="dict in dict.type.sys_row_status" :key="dict.value" :label="dict.label" :value="dict.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="采购员">
|
|
|
- <el-select size="small" v-model="queryParams.buyerName" @focus="chooseOrg('CONTACTS_PARAM', true, '采购员')" style="width: 200px">
|
|
|
+ <el-select size="small" v-model="queryParams.buyerName" @focus="chooseRefer('CONTACTS_PARAM', true, '采购员')" style="width: 200px">
|
|
|
<el-option v-for="item in personOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="品类">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.pl"
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.manufacturer"
|
|
|
size="small"
|
|
|
- placeholder=""
|
|
|
clearable
|
|
|
+ @focus="chooseTreeRefer('MATERIALCLASSIFY_PARAM', false, '选择品类')"
|
|
|
style="width: 200px"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <el-option v-for="item in classOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
@@ -301,78 +303,78 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
- <el-table-column label="一级品类" align="center" prop="materialClassifyOneName"/>
|
|
|
- <el-table-column label="物料编码" align="center" prop="materialCode"/>
|
|
|
- <el-table-column label="品名" align="center" prop="materialName"/>
|
|
|
- <el-table-column label="规格" align="center" prop="specification"/>
|
|
|
+ <el-table-column label="一级品类" align="center" prop="materialClassifyOneName" width="120px"/>
|
|
|
+ <el-table-column label="物料编码" align="center" prop="materialCode" width="180px"/>
|
|
|
+ <el-table-column label="品名" align="center" prop="materialName" width="180px"/>
|
|
|
+ <el-table-column label="规格" align="center" prop="specification" width="200px"/>
|
|
|
<el-table-column label="单位" align="center" prop="unit"/>
|
|
|
- <el-table-column label="生产厂家/代理人" align="center" prop="manufacturer"/>
|
|
|
- <el-table-column label="需求单位数" align="center" prop="demandNum"/>
|
|
|
- <el-table-column label="总最终净需求量" align="center" prop="netDemandNum"/>
|
|
|
+ <el-table-column label="生产厂家/代理人" align="center" prop="manufacturer" width="180px"/>
|
|
|
+ <el-table-column label="需求单位数" align="center" prop="demandNum" width="120px"/>
|
|
|
+ <el-table-column label="总最终净需求量" align="center" prop="netDemandNum" width="120px"/>
|
|
|
<el-table-column label="总月销量" align="center" prop="totalMonthlySales"/>
|
|
|
- <el-table-column label="需求可用周期" align="center" prop="demandCycle"/>
|
|
|
+ <el-table-column label="需求可用周期" align="center" prop="demandCycle" width="180px"/>
|
|
|
<el-table-column label="呆滞量" align="center" prop="dullQut"/>
|
|
|
<el-table-column label="采购周期" align="center" prop="buyPeriod"/>
|
|
|
- <el-table-column label="中心公共库存" align="center" prop="centralPublicStock"/>
|
|
|
- <el-table-column label="中心仓专属货位" align="center" prop="centralWarehouse"/>
|
|
|
- <el-table-column label="区域分仓公共库存" align="center" prop="regionPublicStock"/>
|
|
|
- <el-table-column label="各项目仓库存" align="center" prop="eachWarehouseStock"/>
|
|
|
+ <el-table-column label="中心公共库存" align="center" prop="centralPublicStock" width="120px"/>
|
|
|
+ <el-table-column label="中心仓专属货位" align="center" prop="centralWarehouse" width="120px"/>
|
|
|
+ <el-table-column label="区域分仓公共库存" align="center" prop="regionPublicStock" width="130px"/>
|
|
|
+ <el-table-column label="各项目仓库存" align="center" prop="eachWarehouseStock" width="120px"/>
|
|
|
<el-table-column label="电商仓库" align="center" prop="commerceWarehouse"/>
|
|
|
<el-table-column label="采购在途" align="center" prop="buyTransit"/>
|
|
|
<el-table-column label="借出在途" align="center" prop="lendTransit"/>
|
|
|
<el-table-column label="调拨在途" align="center" prop="transferTransit"/>
|
|
|
<el-table-column label="库存总计" align="center" prop="stockTotal"/>
|
|
|
- <el-table-column label="最小包装量" align="center" prop="minPackage"/>
|
|
|
- <el-table-column label="最小订货量" align="center" prop="minOrder"/>
|
|
|
+ <el-table-column label="最小包装量" align="center" prop="minPackage" width="100px"/>
|
|
|
+ <el-table-column label="最小订货量" align="center" prop="minOrder" width="100px"/>
|
|
|
<el-table-column label="最小批量" align="center" prop="minBatch"/>
|
|
|
- <el-table-column label="人工调整数" align="center" prop="artificialAdjust"/>
|
|
|
- <el-table-column label="修改原因" align="center" prop="modifyReason">
|
|
|
+ <el-table-column label="人工调整数" align="center" prop="artificialAdjust" width="100px"/>
|
|
|
+ <el-table-column label="修改原因" align="center" prop="modifyReason" width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input :disabled="lineDisable" v-model="scope.row.modifyReason"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="建议采购量" align="center" prop="suggestionPurchase"/>
|
|
|
- <el-table-column label="建议净采购量" align="center" prop="suggestBuyQty"/>
|
|
|
+ <el-table-column label="建议采购量" align="center" prop="suggestionPurchase" width="100px"/>
|
|
|
+ <el-table-column label="建议净采购量" align="center" prop="suggestBuyQty" width="100px"/>
|
|
|
<el-table-column label="最终采购量" align="center" prop="finalBuyQty" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input :disabled="lineDisable" v-model="scope.row.finalBuyQty"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="二级品类" align="center" prop="materialClassifyTwoName"/>
|
|
|
- <el-table-column label="三级品类" align="center" prop="materialClassifyThreeName"/>
|
|
|
- <el-table-column label="四级品类" align="center" prop="materialClassifyFourName"/>
|
|
|
+ <el-table-column label="二级品类" align="center" prop="materialClassifyTwoName" width="150px"/>
|
|
|
+ <el-table-column label="三级品类" align="center" prop="materialClassifyThreeName" width="150px"/>
|
|
|
+ <el-table-column label="四级品类" align="center" prop="materialClassifyFourName" width="150px"/>
|
|
|
<el-table-column label="单据状态" align="center" prop="status"/>
|
|
|
- <el-table-column label="采购员" align="center" prop="buyerName">
|
|
|
+ <el-table-column label="采购员" align="center" prop="buyerName" width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input :disabled="lineDisable" v-model="scope.row.buyerName"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="默认采购组织" align="center" prop="purchaseOrgName">
|
|
|
+ <el-table-column label="默认采购组织" align="center" prop="purchaseOrgName" width="280px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input :disabled="lineDisable" v-model="scope.row.purchaseOrgName"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="有效期" align="center" prop="validityPeriod"/>
|
|
|
- <el-table-column label="有效期单位" align="center" prop="validityPeriodUnit"/>
|
|
|
+ <el-table-column label="有效期单位" align="center" prop="validityPeriodUnit" width="100px"/>
|
|
|
<el-table-column label="业务类型" align="center" prop="businessType"/>
|
|
|
- <el-table-column label="安全库存量" align="center" prop="safetyStock"/>
|
|
|
+ <el-table-column label="安全库存量" align="center" prop="safetyStock" width="100px"/>
|
|
|
<el-table-column label="单据来源" align="center" prop="billSource"/>
|
|
|
<el-table-column label="行号" align="center" prop="rowNo"/>
|
|
|
<el-table-column label="注册人" align="center" prop="registrant"/>
|
|
|
<el-table-column label="可用量" align="center" prop="qty"/>
|
|
|
- <el-table-column label="总需与终采差异" align="center" prop="buyDiscrepancy"/>
|
|
|
- <el-table-column label="集团预测分类" align="center" prop="forecastClassification"/>
|
|
|
- <el-table-column label="中心仓占有量" align="center" prop="centerBinPossession"/>
|
|
|
- <el-table-column label="中心仓可用量" align="center" prop="centralWarehouseAvailable"/>
|
|
|
- <el-table-column label="物料类别" align="center" prop="materialCategory"/>
|
|
|
- <el-table-column label="业务部门" align="center" prop="departmentName"/>
|
|
|
+ <el-table-column label="总需与终采差异" align="center" prop="buyDiscrepancy" width="120px"/>
|
|
|
+ <el-table-column label="集团预测分类" align="center" prop="forecastClassification" width="100px"/>
|
|
|
+ <el-table-column label="中心仓占有量" align="center" prop="centerBinPossession" width="100px"/>
|
|
|
+ <el-table-column label="中心仓可用量" align="center" prop="centralWarehouseAvailable" width="100px"/>
|
|
|
+ <el-table-column label="物料类别" align="center" prop="materialCategory" width="150px"/>
|
|
|
+ <el-table-column label="业务部门" align="center" prop="departmentName" width="150px"/>
|
|
|
<el-table-column label="需求单位" align="center" prop="demandUnit"/>
|
|
|
- <el-table-column label="采购经理审核人" align="center" prop="puManagerAuditor"/>
|
|
|
+ <el-table-column label="采购经理审核人" align="center" prop="puManagerAuditor" width="120px"/>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
- width="150"
|
|
|
+ width="100"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="check(scope.row)">查看</el-button>
|
|
@@ -395,21 +397,25 @@
|
|
|
<Add v-model="isList" v-if="!isList" :pageStu="page" :disable="disable" :row="rowDetail" @refresh="getList"/>
|
|
|
|
|
|
<Refers ref="refer" @doSubmit="selectionsToInput" :single="true"/>
|
|
|
+
|
|
|
+ <TreeRefers ref="tree" @doSubmit="selectionsToInput2" :single="true"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Add from './add.vue'
|
|
|
import Refers from '@/components/Refers/refers.vue'
|
|
|
+import TreeRefers from '@/components/Refers/treeRefer.vue'
|
|
|
import CollapseTransition from '@/components/MyCollapse/collapse.vue'
|
|
|
import {getSummaryList, auditSummary, confirmSummary , cancelSummary , cancelAuditSummary, editSummaryList } from '@/api/purchase/DemandSummary.js'
|
|
|
export default {
|
|
|
name: 'demandSummary',
|
|
|
- dicts: ['sys_status'],
|
|
|
+ dicts: ['sys_row_status'],
|
|
|
components: {
|
|
|
Add,
|
|
|
CollapseTransition,
|
|
|
- Refers
|
|
|
+ Refers,
|
|
|
+ TreeRefers
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -419,9 +425,9 @@ export default {
|
|
|
// 页面状态
|
|
|
page: '',
|
|
|
queryParams: {
|
|
|
- status: '',
|
|
|
+ rowStatus: [],
|
|
|
buyerName: '',
|
|
|
- pl: '',
|
|
|
+ manufacturer: '',
|
|
|
sccj: '',
|
|
|
wllb: '',
|
|
|
zqdw: '',
|
|
@@ -435,6 +441,7 @@ export default {
|
|
|
pageSize: 10
|
|
|
},
|
|
|
personOptions: [],
|
|
|
+ classOptions: [],
|
|
|
options: [{
|
|
|
value: '0', label: '是',
|
|
|
}, {
|
|
@@ -557,14 +564,26 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 搜索区参照选择
|
|
|
- chooseOrg(type, isPage, title) {
|
|
|
+ chooseRefer(type, isPage, title) {
|
|
|
this.referCondition.type = type
|
|
|
this.referCondition.isPage = isPage
|
|
|
this.referCondition.title = title
|
|
|
this.$refs.refer.init(this.referCondition)
|
|
|
},
|
|
|
selectionsToInput(selection) {
|
|
|
-
|
|
|
+ this.personOptions = selection
|
|
|
+ this.queryParams.buyerName = selection[0].id
|
|
|
+ },
|
|
|
+ // 搜索区树形选择
|
|
|
+ chooseTreeRefer(type, isPage, title) {
|
|
|
+ this.referCondition.type = type
|
|
|
+ this.referCondition.isPage = isPage
|
|
|
+ this.referCondition.title = title
|
|
|
+ this.$refs.tree.init(this.referCondition)
|
|
|
+ },
|
|
|
+ selectionsToInput2(selection) {
|
|
|
+ this.classOptions.push(selection)
|
|
|
+ this.queryParams.manufacturer = selection.id
|
|
|
}
|
|
|
}
|
|
|
}
|