变更询价状态
This commit is contained in:
@@ -1,5 +1,17 @@
|
|||||||
import request from '@/utils/request'
|
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) {
|
export function searchInventoryNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3, check4, state1, state2) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -1269,6 +1269,9 @@ export default {
|
|||||||
this.supplierName = ''
|
this.supplierName = ''
|
||||||
this.supplierValue = ''
|
this.supplierValue = ''
|
||||||
this.searchTable2()
|
this.searchTable2()
|
||||||
|
this.tableData3 = []
|
||||||
|
this.searchTable11()
|
||||||
|
this.searchTable12()
|
||||||
} else { this.$message.error('删除失败') }
|
} else { this.$message.error('删除失败') }
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||||
<span>物料规格:</span>
|
<span>物料规格:</span>
|
||||||
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
<el-input v-model="materialSpec" placeholder="物料规格" size="small" clearable/>
|
||||||
</el-row>
|
|
||||||
<el-row style="">
|
|
||||||
<span>物料型号:</span>
|
<span>物料型号:</span>
|
||||||
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
<el-input v-model="materialModel" placeholder="物料型号" size="small" clearable/>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="">
|
||||||
<span>物料状态:</span>
|
<span>物料状态:</span>
|
||||||
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select style="margin: 0"/>
|
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select style="margin: 0"/>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -19,6 +19,13 @@
|
|||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
@click="pageCurrent00=1;pageSize00=10;total00=0;searchTable00()">查询</el-button>
|
@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
|
<el-button
|
||||||
:disabled="tableData02.length===0"
|
:disabled="tableData02.length===0"
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -637,7 +644,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchInventoryNum, searchOfflineContract, searchOfflineContract2, searchSupplier, addOfflineContract, editOfflineContract, deleteOfflineContract, searchMateriel,
|
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 QRCode from 'qrcode'
|
||||||
import $ from 'jquery'
|
import $ from 'jquery'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@@ -788,8 +795,6 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'sidebar',
|
|
||||||
'avatar',
|
|
||||||
'name',
|
'name',
|
||||||
'id' // 人员编号
|
'id' // 人员编号
|
||||||
])
|
])
|
||||||
@@ -801,6 +806,28 @@ export default {
|
|||||||
this.searchTable00()
|
this.searchTable00()
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
editing(row) {
|
||||||
return Number(row.离线合同状态) === 1
|
return Number(row.离线合同状态) === 1
|
||||||
},
|
},
|
||||||
@@ -1291,7 +1318,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectable(row, index) { // 控制某行是否可选
|
selectable(row, index) { // 控制某行是否可选
|
||||||
return (parseInt(row.询价状态编号) === 1 && parseInt(row.采购状态编号) === 1 && parseInt(row.是否确认) === 1) // 未询价&&未采购&&确认物料修改
|
return Number(row.采购状态编号) < 3 && Number(row.是否确认) === 1 // 未采购&&确认物料修改
|
||||||
},
|
},
|
||||||
searchTable00() { // 查询标准件和外购件列表
|
searchTable00() { // 查询标准件和外购件列表
|
||||||
this.pageCurrent1 = 1
|
this.pageCurrent1 = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user