变更询价状态
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存数
|
||||
export function changeInquiryStatus(num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_询价状态_修改数据',
|
||||
param: `组件零件流水号组=${num}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询库存数
|
||||
export function searchInventoryNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3, check4, state1, state2) {
|
||||
return request({
|
||||
|
||||
@@ -1269,6 +1269,9 @@ export default {
|
||||
this.supplierName = ''
|
||||
this.supplierValue = ''
|
||||
this.searchTable2()
|
||||
this.tableData3 = []
|
||||
this.searchTable11()
|
||||
this.searchTable12()
|
||||
} else { this.$message.error('删除失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<span>物料规格:</span>
|
||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||
</el-row>
|
||||
<el-row style="">
|
||||
<span>物料型号:</span>
|
||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||
</el-row>
|
||||
<el-row style="">
|
||||
<span>物料状态:</span>
|
||||
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select style="margin: 0"/>
|
||||
<el-button
|
||||
@@ -19,6 +19,13 @@
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent00=1;pageSize00=10;total00=0;searchTable00()">查询</el-button>
|
||||
<el-button
|
||||
:disabled="groupPartNumGroup.length===0"
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="el-icon-edit"
|
||||
style="margin-left: 10px"
|
||||
@click="changeInquiryStatus">变更询价状态</el-button>
|
||||
<el-button
|
||||
:disabled="tableData02.length===0"
|
||||
type="primary"
|
||||
@@ -637,7 +644,7 @@
|
||||
|
||||
<script>
|
||||
import { searchInventoryNum, searchOfflineContract, searchOfflineContract2, searchSupplier, addOfflineContract, editOfflineContract, deleteOfflineContract, searchMateriel,
|
||||
addMateriel, deleteMateriel, saveOfflineContact, doneOfflineContact, setSafeValue, searchMaterial, initOfflineContract, submitBind } from '@/api/PurchasingCenter/OfflineContract'
|
||||
addMateriel, deleteMateriel, saveOfflineContact, doneOfflineContact, setSafeValue, searchMaterial, initOfflineContract, submitBind, changeInquiryStatus } from '@/api/PurchasingCenter/OfflineContract'
|
||||
import QRCode from 'qrcode'
|
||||
import $ from 'jquery'
|
||||
import { mapGetters } from 'vuex'
|
||||
@@ -788,8 +795,6 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'sidebar',
|
||||
'avatar',
|
||||
'name',
|
||||
'id' // 人员编号
|
||||
])
|
||||
@@ -801,6 +806,28 @@ export default {
|
||||
this.searchTable00()
|
||||
},
|
||||
methods: {
|
||||
// 变更询价状态
|
||||
changeInquiryStatus() {
|
||||
this.$confirm('确定变更询价状态?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
changeInquiryStatus(this.groupPartNumGroup).then(res => {
|
||||
if (res.data[0].result === '1') {
|
||||
this.$message.success('变更成功')
|
||||
this.searchTable00()
|
||||
} else {
|
||||
this.$message.error('变更失败')
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消操作'
|
||||
})
|
||||
})
|
||||
},
|
||||
editing(row) {
|
||||
return Number(row.离线合同状态) === 1
|
||||
},
|
||||
@@ -1291,7 +1318,7 @@ export default {
|
||||
}
|
||||
},
|
||||
selectable(row, index) { // 控制某行是否可选
|
||||
return (parseInt(row.询价状态编号) === 1 && parseInt(row.采购状态编号) === 1 && parseInt(row.是否确认) === 1) // 未询价&&未采购&&确认物料修改
|
||||
return Number(row.采购状态编号) < 3 && Number(row.是否确认) === 1 // 未采购&&确认物料修改
|
||||
},
|
||||
searchTable00() { // 查询标准件和外购件列表
|
||||
this.pageCurrent1 = 1
|
||||
|
||||
Reference in New Issue
Block a user