rev:成品报废审核修改
This commit is contained in:
@@ -118,7 +118,7 @@
|
|||||||
<el-form-item label="不合格品缺陷描述" prop="dtl_remark">
|
<el-form-item label="不合格品缺陷描述" prop="dtl_remark">
|
||||||
<el-input v-model="form.dtl_remark" :disabled="crud.status.view > 0" class="input-with-select"/>
|
<el-input v-model="form.dtl_remark" :disabled="crud.status.view > 0" class="input-with-select"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="不合格品来源" prop="fail_source">
|
<!-- <el-form-item label="不合格品来源" prop="fail_source">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.fail_source"
|
v-model="form.fail_source"
|
||||||
class="input-with-select"
|
class="input-with-select"
|
||||||
@@ -132,9 +132,9 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>-->
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-button class="filter-item" :disabled="crud.status.view > 0" @click="allSend()" size="medium" icon="el-icon-plus" style="float: right; padding: 3px 0" type="warning">一键填充</el-button>
|
<el-button class="filter-item" :disabled="crud.status.view > 0" @click="allSend()" size="medium" icon="el-icon-plus" style="float: right; padding: 3px 0" type="warning">填充</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div class="crud-opts2">
|
<div class="crud-opts2">
|
||||||
<span class="role-span">不合格品明细</span>
|
<span class="role-span">不合格品明细</span>
|
||||||
@@ -198,6 +198,11 @@
|
|||||||
<el-input v-model="scope.row.remark" @input="custNameInput(form.tableData[scope.$index])" :disabled="crud.status.view > 0" class="input-with-select" />
|
<el-input v-model="scope.row.remark" @input="custNameInput(form.tableData[scope.$index])" :disabled="crud.status.view > 0" class="input-with-select" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column width="150" label="是否填充" v-if="crud.status.cu > 0">
|
||||||
|
<template scope="scope">
|
||||||
|
<el-switch v-model="scope.row.is_used" @change="changeIsUsed(scope.row)" active-color="#13ce66" inactive-color="#ff4949" active-value="1" inactive-value="0" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="170" fixed="right">
|
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="170" fixed="right">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -347,10 +352,11 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
this.$set(this.form.tableData[i], 'remark', this.form.dtl_remark)
|
// this.$set(this.form.tableData[i], 'fail_source', this.form.fail_source)
|
||||||
this.$set(this.form.tableData[i], 'fail_source', this.form.fail_source)
|
if (this.form.tableData[i].is_used === '1') {
|
||||||
|
this.$set(this.form.tableData[i], 'remark', this.form.dtl_remark)
|
||||||
this.form.tableData.splice(i, 1, this.form.tableData[i]) // 通过splice 替换数据 触发视图更新
|
this.form.tableData.splice(i, 1, this.form.tableData[i]) // 通过splice 替换数据 触发视图更新
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
@@ -446,6 +452,15 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
changeIsUsed(item) {
|
||||||
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
|
const row = this.form.tableData[i]
|
||||||
|
if (item.storagevehicle_code === row.storagevehicle_code) {
|
||||||
|
row.is_used = item.is_used
|
||||||
|
this.form.tableData.splice(i, 1, this.form.tableData[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user