This commit is contained in:
2022-11-22 16:15:12 +08:00
parent 918e9b71c9
commit b971459824
12 changed files with 97 additions and 313 deletions

View File

@@ -211,7 +211,7 @@
<span v-show="scope.row.edit">{{ scope.row.demand_date }}</span>
</template>
</el-table-column>
<el-table-column key="21" width="150" show-overflow-tooltip prop="date_of_FG_inbound" label="制作日期-">
<el-table-column key="24" width="150" show-overflow-tooltip prop="date_of_FG_inbound" label="制作日期-">
<template scope="scope">
<el-input v-show="!scope.row.edit" v-model="scope.row.date_of_FG_inbound" class="input-with-select">
</el-input>
@@ -342,7 +342,7 @@ export default {
this.$emit('AddChanged')
},
[CRUD.HOOK.afterToEdit]() {
handmovestor.getOutBillDtl({ 'moveinv_id': this.form.moveinv_id }).then(res => {
handmovestor.getOutBillDtl({ 'changeinv_id': this.form.changeinv_id }).then(res => {
this.form.tableData = res
// 将明细变成不可编辑
for (let i = 0; i < this.form.tableData.length; i++) {
@@ -354,7 +354,7 @@ export default {
},
[CRUD.HOOK.afterToView]() {
debugger
handmovestor.getOutBillDtl({ 'moveinv_id': this.form.moveinv_id }).then(res => {
handmovestor.getOutBillDtl({ 'changeinv_id': this.form.changeinv_id }).then(res => {
this.form.tableData = res
// 将明细变成不可编辑
for (let i = 0; i < this.form.tableData.length; i++) {

View File

@@ -193,7 +193,7 @@ export default {
name: 'Change',
components: { AddDialog, crudOperation, rrOperation, udOperation, pagination },
cruds() {
return CRUD({ title: '库存变更', idField: 'moveinv_id', url: 'api/change', crudMethod: { ...change },
return CRUD({ title: '库存变更', idField: 'changeinv_id', url: 'api/change', crudMethod: { ...change },
optShow: {
add: true,
edit: false,