|
@@ -148,7 +148,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="末级供应库位">
|
|
|
- <el-select clearable size="small" v-model="queryParams.lastAllocation" @focus="chooseRefer('ALLOCATION_PARAM', true, '末级供应库位')" style="width: 200px">
|
|
|
+ <el-select clearable size="small" v-model="queryParams.lastAllocation" @focus="chooseRefer('ALLOCATION_PARAM', true, '末级供应库位', queryParams.lastWarehouse)" style="width: 200px">
|
|
|
<el-option v-for="item in lastAllocationOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -230,6 +230,7 @@
|
|
|
<el-card>
|
|
|
<div class="btn_grooup">
|
|
|
<el-button type="primary" size="small" @click="editList">编辑</el-button>
|
|
|
+ <el-button type="danger" size="small" v-if="!lineDisable" @click="cancelEdit">取消编辑</el-button>
|
|
|
<el-button type="success" size="small" v-if="!lineDisable" @click="saveList">保存</el-button>
|
|
|
<el-button type="primary" size="small" @click="confirms">确认</el-button>
|
|
|
<el-button type="primary" size="small" @click="cancels">取消</el-button>
|
|
@@ -289,14 +290,14 @@
|
|
|
<el-table-column show-overflow-tooltip label="人工调整数" align="center" prop="artificialAdjust" width="100px"/>
|
|
|
<el-table-column show-overflow-tooltip label="修改原因" align="center" prop="modifyReason" width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input :disabled="lineDisable" v-model="scope.row.modifyReason"/>
|
|
|
+ <el-input :disabled="scope.row.status !== '1'|| lineDisable" v-model="scope.row.modifyReason"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column show-overflow-tooltip label="建议采购量" align="center" prop="suggestionPurchase" width="100px"/>
|
|
|
<el-table-column show-overflow-tooltip label="建议净采购量" align="center" prop="suggestBuyQty" width="100px"/>
|
|
|
<el-table-column show-overflow-tooltip label="最终采购量" align="center" prop="finalBuyQty" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input :disabled="lineDisable" v-model="scope.row.finalBuyQty"/>
|
|
|
+ <el-input :disabled="scope.row.status !== '1' || lineDisable" v-model="scope.row.finalBuyQty"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column show-overflow-tooltip label="二级品类" align="center" prop="materialClassifyTwoName" width="150px"/>
|
|
@@ -304,15 +305,15 @@
|
|
|
<el-table-column show-overflow-tooltip label="四级品类" align="center" prop="materialClassifyFourName" width="150px"/>
|
|
|
<el-table-column show-overflow-tooltip label="采购员" align="center" prop="buyerName" width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input :disabled="lineDisable" size="small" v-model="scope.row.buyerName">
|
|
|
- <el-button size="small" :disabled="lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'CONTACTS_PARAM', true, '采购员')"></el-button>
|
|
|
+ <el-input :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.buyerName">
|
|
|
+ <el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'CONTACTS_PARAM', true, '采购员')"></el-button>
|
|
|
</el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="purchaseOrgName" width="280px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input :disabled="lineDisable" size="small" v-model="scope.row.purchaseOrgName">
|
|
|
- <el-button size="small" :disabled="lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
|
|
|
+ <el-input :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.purchaseOrgName">
|
|
|
+ <el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
|
|
|
</el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -598,6 +599,9 @@ export default {
|
|
|
console.log('Lists`````',this.tableList)
|
|
|
this.lineDisable = false
|
|
|
},
|
|
|
+ cancelEdit() {
|
|
|
+ this.lineDisable = true
|
|
|
+ },
|
|
|
saveList() {
|
|
|
editSummaryList(this.tableList).then(res => {
|
|
|
if (res.code === 200) {
|
|
@@ -657,10 +661,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 搜索区参照选择
|
|
|
- chooseRefer(type, isPage, title) {
|
|
|
+ chooseRefer(type, isPage, title, stordocId) {
|
|
|
this.referCondition.type = type
|
|
|
this.referCondition.isPage = isPage
|
|
|
this.referCondition.title = title
|
|
|
+ this.referCondition.stordocId = stordocId
|
|
|
this.$refs.refer.init(this.referCondition)
|
|
|
},
|
|
|
selectionsToInput(selection) {
|