rev:优化修改
This commit is contained in:
@@ -158,6 +158,28 @@
|
||||
>
|
||||
解锁
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-circle-close"
|
||||
:disabled="crud.selections.length !== 1"
|
||||
@click="cleanVehicle"
|
||||
>
|
||||
清载具
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="danger"
|
||||
icon="el-icon-circle-close"
|
||||
:disabled="crud.selections.length !== 1"
|
||||
@click="cleanMaterial"
|
||||
>
|
||||
清物料
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表单组件-->
|
||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="540px">
|
||||
@@ -531,6 +553,20 @@ export default {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
cleanVehicle() {
|
||||
const data = this.$refs.table.selection[0]
|
||||
crudSchBasePoint.cleanVehicle(data).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
cleanMaterial() {
|
||||
const data = this.$refs.table.selection[0]
|
||||
crudSchBasePoint.cleanMaterial(data).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,4 +72,21 @@ export function getPointDtl(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, changeUsed, getPointList, changeLock, getConfirm, putConfirm, getPointDtl }
|
||||
export function cleanVehicle(data) {
|
||||
return request({
|
||||
url: 'api/schBasePoint/cleanVehicle',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function cleanMaterial(data) {
|
||||
return request({
|
||||
url: 'api/schBasePoint/cleanMaterial',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, changeUsed, getPointList, changeLock,
|
||||
getConfirm, putConfirm, getPointDtl, cleanVehicle, cleanMaterial }
|
||||
|
||||
@@ -79,7 +79,31 @@
|
||||
</el-form>
|
||||
</el-card>
|
||||
<div style="padding-bottom: 10px;padding-top: 10px">
|
||||
<span class="role-span">盘点明细</span>
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="载具编码">
|
||||
<el-input
|
||||
v-model="vehicle_code"
|
||||
size="mini"
|
||||
clearable
|
||||
placeholder="查询载具编码"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="getDtl"
|
||||
>
|
||||
搜索
|
||||
</el-button>
|
||||
</el-form>
|
||||
<!-- <span class="role-span">盘点明细</span>-->
|
||||
</div>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -145,6 +169,7 @@ export default {
|
||||
nowrow: null,
|
||||
nowindex: '',
|
||||
storlist: [],
|
||||
vehicle_code: null,
|
||||
tableData: [],
|
||||
form1: {
|
||||
check_id: '',
|
||||
@@ -173,7 +198,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
this.getDtl()
|
||||
// 查询所有明细
|
||||
// this.getDtl()
|
||||
// 查询原材料库的仓库
|
||||
crudStorattr.getStor({}).then(res => {
|
||||
this.storlist = res
|
||||
@@ -185,7 +211,12 @@ export default {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
getDtl() {
|
||||
check.getDtl({ 'check_id': this.form1.check_id }).then(res => {
|
||||
check.getDtl({ 'check_id': this.form1.check_id, 'vehicle_code': this.vehicle_code }).then(res => {
|
||||
for (const dtl of res) {
|
||||
if (dtl.fac_qty === null) {
|
||||
dtl.fac_qty = dtl.base_qty
|
||||
}
|
||||
}
|
||||
this.tableData = res
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user