刘帅
This commit is contained in:
@@ -30,7 +30,7 @@ export function initPerson() {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
||||||
param: '考核部门编号=17=int'
|
param: '考核部门编号=9=int'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export function initCraftmen() {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
||||||
param: '考核部门编号=17'
|
param: '考核部门编号=9'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export function initCraftmen() {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
||||||
param: '考核部门编号=17'
|
param: '考核部门编号=9'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,17 @@ export function deleteData(RequisitionList) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function updateStatus(num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间采购管理_离线合同_导出更改状态',
|
||||||
|
param: '请购单流水号=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
// 查询离线合同明细
|
// 查询离线合同明细
|
||||||
export function searchMateriel(num) {
|
export function searchMateriel(num) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ export default {
|
|||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.GroupNumber.push({
|
this.GroupNumber.push({
|
||||||
label: response.data[i].组号,
|
label: response.data[i].组号,
|
||||||
value: response.data[i].组号
|
value: response.data[i].组件流水号
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog :visible.sync="dialogFormVisible2" title="编辑材料" center style="min-height: 200px" width="400px">
|
<el-dialog :visible.sync="dialogFormVisible2" title="编辑材料" center style="min-height: 200px" width="400px">
|
||||||
<el-form ref="form2" :model="form2" :rules="rules" label-position="left" label-width="110px">
|
<el-form ref="form2" :model="form2" :rules="rules1" label-position="left" label-width="110px">
|
||||||
<el-form-item label="材料名称" prop="MaterialName2" style="display: inline-block">
|
<el-form-item label="材料名称" prop="MaterialName2" style="display: inline-block">
|
||||||
<el-input v-model="form2.MaterialName2" size="small" clearable style="width:200px"/>
|
<el-input v-model="form2.MaterialName2" size="small" clearable style="width:200px"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -97,7 +97,9 @@ export default {
|
|||||||
MaterialName2: ''
|
MaterialName2: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
MaterialName: [{ required: true, message: '请输入材料名称', trigger: 'blur' }],
|
MaterialName: [{ required: true, message: '请输入材料名称', trigger: 'blur' }]
|
||||||
|
},
|
||||||
|
rules1: {
|
||||||
MaterialName2: [{ required: true, message: '请输入材料名称', trigger: 'blur' }]
|
MaterialName2: [{ required: true, message: '请输入材料名称', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
<el-table-column label="操作" align="center" width="350px" fixed="right">
|
<el-table-column label="操作" align="center" width="350px" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.row)">编辑</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.row)">编辑</el-button>
|
||||||
<el-button type="warning" size="mini" icon="el-icon-download" @click="exportTable('QG')">导出</el-button>
|
<el-button type="warning" size="mini" icon="el-icon-download" @click="exportTable('QG', scope.row)">导出</el-button>
|
||||||
<el-button type="danger" size="mini" icon="el-icon-delete" style="margin-left: 15px" @click="handleDelete(scope.row)">作废</el-button>
|
<el-button type="danger" size="mini" icon="el-icon-delete" style="margin-left: 15px" @click="handleDelete(scope.row)">作废</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchInventoryNum, searchOfflineContract, addData, editData, deleteData, searchMateriel, update,
|
import { searchInventoryNum, searchOfflineContract, addData, editData, deleteData, searchMateriel, update, updateStatus,
|
||||||
addMateriel, deleteMateriel, setSafeValue } from '@/api/WorkshopProcurement/OfflineContract1'
|
addMateriel, deleteMateriel, setSafeValue } from '@/api/WorkshopProcurement/OfflineContract1'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
||||||
@@ -375,7 +375,10 @@ export default {
|
|||||||
this.pageCurrent2 = val
|
this.pageCurrent2 = val
|
||||||
this.searchTable2()
|
this.searchTable2()
|
||||||
},
|
},
|
||||||
exportTable(tableid) {
|
exportTable(tableid, row) {
|
||||||
|
updateStatus(row.请购单流水号).then(response => {
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
if (this.tableData3.length === 0) {
|
if (this.tableData3.length === 0) {
|
||||||
this.$message.warning('暂无数据')
|
this.$message.warning('暂无数据')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user