This commit is contained in:
zds
2022-11-28 20:19:44 +08:00
parent 7b1f9fb61f
commit c0b5d25642
18 changed files with 201 additions and 105 deletions

View File

@@ -44,7 +44,7 @@
<el-table-column prop="cf_qty" label="CF" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].cf_qty"
v-model="scope.row.cf_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -57,7 +57,7 @@
<el-table-column prop="yz_qty" label="YZ" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].yz_qty"
v-model="scope.row.yz_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -70,7 +70,7 @@
<el-table-column prop="cx_qty" label="CX" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].cx_qty"
v-model="scope.row.cx_qty"
size="small"
:controls="false"
style="width: 95px"
@@ -83,7 +83,7 @@
<el-table-column prop="yc_qty" label="YC" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].yc_qty"
v-model="scope.row.yc_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -96,7 +96,7 @@
<el-table-column prop="jy_qty" label="JY" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].jy_qty"
v-model="scope.row.jy_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -109,7 +109,7 @@
<el-table-column prop="lt_qty" label="LT" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].lt_qty"
v-model="scope.row.lt_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -122,7 +122,7 @@
<el-table-column prop="sj_qty" label="SJ" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].sj_qty"
v-model="scope.row.sj_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -135,7 +135,7 @@
<el-table-column prop="ys_qty" label="YS" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].ys_qty"
v-model="scope.row.ys_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -148,7 +148,7 @@
<el-table-column prop="ds_qty" label="DS" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].ds_qty"
v-model="scope.row.ds_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -161,7 +161,7 @@
<el-table-column prop="cqx_qty" label="CQX" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].cqx_qty"
v-model="scope.row.cqx_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -174,7 +174,7 @@
<el-table-column prop="xqx_qty" label="XQX" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].xqx_qty"
v-model="scope.row.xqx_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -187,7 +187,7 @@
<el-table-column prop="qx_qty" label="QX" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].qx_qty"
v-model="scope.row.qx_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -200,7 +200,7 @@
<el-table-column prop="jcf_qty" label="JCF" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].jcf_qty"
v-model="scope.row.jcf_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -213,7 +213,7 @@
<el-table-column prop="tb_qty" label="TB" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].tb_qty"
v-model="scope.row.tb_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -226,7 +226,7 @@
<el-table-column prop="ycr_qty" label="YCR" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].ycr_qty"
v-model="scope.row.ycr_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -239,7 +239,7 @@
<el-table-column prop="gz_qty" label="GZ" width="120">
<template slot-scope="scope">
<el-input-number
v-model="crud.data[scope.$index].gz_qty"
v-model="scope.row.gz_qty"
size="small"
style="width: 95px"
:controls="false"
@@ -268,13 +268,12 @@ import crudWastecchange from '@/api/wms/basedata/pdm/wastecchange'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
const defaultForm = { change_id: null, material_id: null, tech_type: null, cf_qty: null, yz_qty: null, cx_qty: null, yc_qty: null, jy_qty: null, lt_qty: null, sj_qty: null, ys_qty: null, ds_qty: null, cqx_qty: null, xqx_qty: null, qx_qty: null, jcf_qty: null, tb_qty: null, ycr_qty: null, gz_qty: null, create_id: null, create_name: null, create_time: null }
export default {
name: 'Wastecchange',
components: { pagination, crudOperation, rrOperation, udOperation },
components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({
@@ -318,7 +317,6 @@ export default {
}
},
confirm(row) {
// row.tech_type = this.form.tech_type
this.confirm_flg = true
crudWastecchange.confirm(row).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)