更新
This commit is contained in:
@@ -174,12 +174,18 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="待询价数" align="center" min-width="80">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.待询价数量 = Number(scope.row.零件数量) - Number(scope.row.使用滞货数量) }}
|
||||
{{ Number(scope.row.零件类型) === 1 ? scope.row.待询价数量 = Number(scope.row.零件数量) - Number(scope.row.使用库存数) : scope.row.待询价数量 = Number(scope.row.零件数量) - Number(scope.row.使用滞货数量) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数" align="center" min-width="60">
|
||||
<el-table-column label="库存(BZ)" align="center" min-width="70" prop="库存">
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.货位存量) }}
|
||||
{{ Number(scope.row.零件类型) === 1 ? scope.row.库存 = Number(scope.row.货位存量 ? scope.row.货位存量 : 0) - Number(scope.row.占用数量) : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="使用库存数量" align="center" min-width="105" prop="使用库存数">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="Number(scope.row.零件类型) !== 1">-</span>
|
||||
<el-input-number v-if="Number(scope.row.零件类型) === 1" v-model="scope.row.使用库存数" :min="0" :max="Number(scope.row.零件数量) > (Number(scope.row.货位存量) - Number(scope.row.占用数量)) ? (Number(scope.row.货位存量) - Number(scope.row.占用数量) + Number(scope.row.使用库存数)) : Number(scope.row.零件数量)" :disabled="(Number(scope.row.货位存量) - Number(scope.row.占用数量)) === 0 || parseInt(scope.row.采购状态编号)===3" size="mini" style="width: 90px" @change="changeNumber(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已用滞货" align="center" min-width="70">
|
||||
@@ -1086,7 +1092,7 @@
|
||||
<script>
|
||||
import { timeSearch, timeChange1, timeChange2, tiaozheng2, tiaozheng1, getPerson, getBillNum, searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
|
||||
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
|
||||
submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo, getExport1, getExport2, searchMerge } from '@/api/PurchasingCenter/CreateInquirySheet'
|
||||
submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo, getExport1, getExport2, searchMerge, changeNum } from '@/api/PurchasingCenter/CreateInquirySheet'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { exportExcelMethod } from './exportExcel'
|
||||
import $ from 'jquery'
|
||||
@@ -1316,6 +1322,16 @@ export default {
|
||||
this.searchTable11()
|
||||
})
|
||||
},
|
||||
changeNumber(row) {
|
||||
changeNum(row.物料流水号, row.使用库存数, row.机床流水号, row.组件零件流水号, row.零件数量).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('使用成功')
|
||||
this.searchTable11()
|
||||
} else {
|
||||
this.$message.success('使用失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
handleSelection(val, row) {
|
||||
this.tableData11.forEach((item, i) => {
|
||||
if (item.组件零件流水号 === row.组件零件流水号) {
|
||||
|
||||
Reference in New Issue
Block a user