领用滞货
This commit is contained in:
@@ -97,14 +97,14 @@
|
||||
{{ Number(scope.row.使用滞货数量) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="使用滞货" align="center" min-width="130">
|
||||
<el-table-column label="使用滞货" align="center" min-width="70">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip class="item" effect="dark" content="使用滞货" placement="top-start">
|
||||
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0" icon="el-icon-goods" plain type="primary" size="mini" @click="useInventory(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<el-tooltip class="item" effect="dark" content="取消使用滞货" placement="top-start">
|
||||
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.使用滞货数量)===0" icon="el-icon-sold-out" plain type="danger" size="mini" @click="cancelUseInventory(scope.row)"/>
|
||||
</el-tooltip>
|
||||
<!--<el-tooltip class="item" effect="dark" content="使用滞货" placement="top-start">-->
|
||||
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.滞货数量)===0" icon="el-icon-goods" plain type="primary" size="mini" @click="useInventory(scope.row)"/>
|
||||
<!--</el-tooltip>-->
|
||||
<!--<el-tooltip class="item" effect="dark" content="取消使用滞货" placement="top-start">-->
|
||||
<!--<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1||Number(scope.row.使用滞货数量)===0" icon="el-icon-sold-out" plain type="danger" size="mini" @click="cancelUseInventory(scope.row)"/>-->
|
||||
<!--</el-tooltip>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="滞货数量" align="center" min-width="80">
|
||||
@@ -573,10 +573,10 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :visible.sync="dialogVisible4" title="使用滞货" center style="min-height: 300px;" width="460px">
|
||||
<el-dialog :visible.sync="dialogVisible4" title="使用滞货" center style="min-height: 300px;" width="400px">
|
||||
<span>使用滞货数量:</span>
|
||||
<el-input-number :min="0" :max="maxUseNumber" v-model="useNumber" controls-position="right"/>
|
||||
<div style="margin-top: 10px;color: red">注意:若设置待询价物料全部使用滞货,则将不可再取消使用滞货</div>
|
||||
<div style="margin: 10px 0 0 10px;color: red">注意:确定后将不可取消使用滞货</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" @click="dialogVisible4=false">取消</el-button>
|
||||
<el-button :disabled="Number(useNumber)===0" type="primary" size="small" @click="submitUseInventory">确定</el-button>
|
||||
@@ -588,7 +588,7 @@
|
||||
<script>
|
||||
import { searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
|
||||
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
|
||||
submitUseInventory, cancelUseInventory } from '@/api/PurchasingCenter/CreateInquirySheet'
|
||||
submitUseInventory } from '@/api/PurchasingCenter/CreateInquirySheet'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { exportExcelMethod } from './exportExcel'
|
||||
|
||||
@@ -712,7 +712,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submitUseInventory() {
|
||||
submitUseInventory(this.backlogMaterialNum, this.useNumber, this.backlogGroupPartNum).then(response => {
|
||||
submitUseInventory(this.backlogMaterialNum, this.useNumber, this.backlogGroupPartNum, this.id).then(response => {
|
||||
console.log(response.data)
|
||||
if (response.data[0].result === '1') {
|
||||
this.searchTable11()
|
||||
@@ -729,27 +729,27 @@ export default {
|
||||
this.backlogGroupPartNum = row.组件零件流水号
|
||||
this.dialogVisible4 = true
|
||||
},
|
||||
cancelUseInventory(row) { // 取消使用滞货
|
||||
console.log(row)
|
||||
this.backlogMaterialNum = row.物料流水号
|
||||
this.backlogGroupPartNum = row.组件零件流水号
|
||||
this.cancelNum = row.使用滞货数量
|
||||
this.$confirm('确定取消使用滞货?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
console.log(this.backlogMaterialNum, this.cancelNum, this.backlogGroupPartNum)
|
||||
cancelUseInventory(this.backlogMaterialNum, this.cancelNum, this.backlogGroupPartNum).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.searchTable11()
|
||||
this.$message.success('操作成功')
|
||||
} else { this.$message.error('操作失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message.info('已取消操作')
|
||||
})
|
||||
},
|
||||
// cancelUseInventory(row) { // 取消使用滞货
|
||||
// console.log(row)
|
||||
// this.backlogMaterialNum = row.物料流水号
|
||||
// this.backlogGroupPartNum = row.组件零件流水号
|
||||
// this.cancelNum = row.使用滞货数量
|
||||
// this.$confirm('确定取消使用滞货?', '提示', {
|
||||
// confirmButtonText: '确定',
|
||||
// cancelButtonText: '取消',
|
||||
// type: 'warning'
|
||||
// }).then(() => {
|
||||
// console.log(this.backlogMaterialNum, this.cancelNum, this.backlogGroupPartNum)
|
||||
// cancelUseInventory(this.backlogMaterialNum, this.cancelNum, this.backlogGroupPartNum).then(response => {
|
||||
// if (response.data[0].result === '1') {
|
||||
// this.searchTable11()
|
||||
// this.$message.success('操作成功')
|
||||
// } else { this.$message.error('操作失败') }
|
||||
// })
|
||||
// }).catch(() => {
|
||||
// this.$message.info('已取消操作')
|
||||
// })
|
||||
// },
|
||||
saveOrder() { // 保存询价单
|
||||
const orderNumGroup = []
|
||||
const numGroup = []
|
||||
|
||||
Reference in New Issue
Block a user