add:修改软废维护未字典表配置:涉及软废配置表->软费系数;合批球磨时间->合批开单

This commit is contained in:
zhangzhiqiang
2023-05-02 18:17:54 +08:00
parent f08a7c6273
commit 58f7c89bb8
13 changed files with 709 additions and 830 deletions

View File

@@ -29,252 +29,283 @@
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<!-- <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">-->
<!-- <el-table-column type="selection" width="55" />-->
<!-- <el-table-column prop="material_code" label="物料编码" min-width="110" align="center" />-->
<!-- <el-table-column prop="material_name" label="物料名称" min-width="120" align="center" />-->
<!-- <el-table-column prop="material_model" label="型号" align="center" />-->
<!-- <el-table-column prop="cf_qty" label="CF" width="95" align="center" >-->
<!-- <template scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cf_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.cf_qty"-->
<!-- size="small"-->
<!-- v-show="!scope.row.edit"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="yz_qty" label="YZ" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.yz_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.yz_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="cx_qty" label="CX" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.cx_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- :controls="false"-->
<!-- style="width: 80px"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="yc_qty" label="YC" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.yc_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.yc_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="jy_qty" label="JY" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.jy_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.jy_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="lt_qty" label="LT" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.lt_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.lt_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="sj_qty" label="SJ" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.sj_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.sj_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ys_qty" label="YS" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ys_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.ys_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ds_qty" label="DS" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ds_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.ds_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="cqx_qty" label="CQX" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cqx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.cqx_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="xqx_qty" label="XQX" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.xqx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.xqx_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="qx_qty" label="QX" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.qx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.qx_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="jcf_qty" label="JCF" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.jcf_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.jcf_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="tb_qty" label="TB" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.tb_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.tb_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ycr_qty" label="YCR" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ycr_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.ycr_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="gz_qty" label="GZ" width="95" align="center" >-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.gz_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-model="scope.row.gz_qty"-->
<!-- v-show="!scope.row.edit"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="0"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="create_time" label="维护时间" min-width="140"/>-->
<!-- <el-table-column prop="create_name" label="维护人" min-width="120" />-->
<!-- <el-table-column label="操作" width="180" align="center" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-show="!scope.row.edit" type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>-->
<!-- <el-button v-show="scope.row.edit" type="success" size="mini" icon="el-icon-check" @click="handleEdit(scope.$index, scope.row)">完成</el-button>-->
<!-- <el-button type="success" size="mini" :loading="confirm_flg" icon="el-icon-check" @click="confirm(scope.row)">确认</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!--分页组件-->
<el-table v-fit-columns ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="material_code" label="物料编码" min-width="110" align="center" />
<el-table-column prop="material_name" label="物料名称" min-width="120" align="center" />
<el-table-column prop="material_model" label="型号" align="center" />
<el-table-column prop="cf_qty" label="CF" width="95" align="center" >
<template scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cf_qty }}</span>
<el-input-number
v-model="scope.row.cf_qty"
size="small"
v-show="!scope.row.edit"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="yz_qty" label="YZ" width="95" align="center" >
<el-table-column v-for="(item,index) in dict.MD_MATERIAL_WASTE_TYPE" :key="index" align="center" :width="item.label.length*15+60" :label="item.label+'('+item.value+')'" :prop="item.value">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.yz_qty }}</span>
<span v-show="scope.row.edit"> {{ scope.row[item.value] }}</span>
<el-input-number
v-model="scope.row.yz_qty"
v-show="!scope.row.edit"
v-model="scope.row[item.value]"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="cx_qty" label="CX" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cx_qty }}</span>
<el-input-number
v-model="scope.row.cx_qty"
v-show="!scope.row.edit"
size="small"
:controls="false"
style="width: 80px"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="yc_qty" label="YC" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.yc_qty }}</span>
<el-input-number
v-model="scope.row.yc_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="jy_qty" label="JY" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.jy_qty }}</span>
<el-input-number
v-model="scope.row.jy_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="lt_qty" label="LT" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.lt_qty }}</span>
<el-input-number
v-model="scope.row.lt_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="sj_qty" label="SJ" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.sj_qty }}</span>
<el-input-number
v-model="scope.row.sj_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="ys_qty" label="YS" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ys_qty }}</span>
<el-input-number
v-model="scope.row.ys_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="ds_qty" label="DS" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ds_qty }}</span>
<el-input-number
v-model="scope.row.ds_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="cqx_qty" label="CQX" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cqx_qty }}</span>
<el-input-number
v-model="scope.row.cqx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="xqx_qty" label="XQX" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.xqx_qty }}</span>
<el-input-number
v-model="scope.row.xqx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="qx_qty" label="QX" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.qx_qty }}</span>
<el-input-number
v-model="scope.row.qx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="jcf_qty" label="JCF" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.jcf_qty }}</span>
<el-input-number
v-model="scope.row.jcf_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="tb_qty" label="TB" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.tb_qty }}</span>
<el-input-number
v-model="scope.row.tb_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="ycr_qty" label="YCR" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ycr_qty }}</span>
<el-input-number
v-model="scope.row.ycr_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="gz_qty" label="GZ" width="95" align="center" >
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.gz_qty }}</span>
<el-input-number
v-model="scope.row.gz_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="0"
/>
</template>
</el-table-column>
<el-table-column prop="create_time" label="维护时间" min-width="140"/>
<el-table-column prop="create_time" label="维护时间" min-width="140" />
<el-table-column prop="create_name" label="维护人" min-width="120" />
<el-table-column label="操作" width="180" align="center" fixed="right">
<template slot-scope="scope">
@@ -284,7 +315,7 @@
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
</div>
</div>
@@ -300,6 +331,7 @@ import pagination from '@crud/Pagination'
const defaultForm = { change_id: null, material_id: 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: 'WasteBallTime',
dicts: ['MD_MATERIAL_WASTE_TYPE'],
components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {

View File

@@ -26,40 +26,283 @@
</el-form-item>
<rrOperation />
&nbsp;&nbsp;&nbsp;
<span style="font-size:16px" id="tishiAccount" :style="tishiAccount_style">{{ msg }}</span>
<span id="tishiAccount" style="font-size:16px" :style="tishiAccount_style">{{ msg }}</span>
</el-form>
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<!-- <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">-->
<!-- <el-table-column type="selection" width="55" />-->
<!-- <el-table-column prop="material_code" label="物料编码" min-width="110" align="center" />-->
<!-- <el-table-column prop="material_name" label="物料名称" min-width="120" align="center" />-->
<!-- <el-table-column prop="material_model" label="型号" align="center" />-->
<!-- <el-table-column prop="tech_type" label="工艺" :formatter="formName" align="center" />-->
<!-- <el-table-column prop="cf_qty" label="CF" width="95" align="center">-->
<!-- <template scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cf_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.cf_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="yz_qty" label="YZ" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.yz_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.yz_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="cx_qty" label="CX" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.cx_qty"-->
<!-- size="small"-->
<!-- :controls="false"-->
<!-- style="width: 80px"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="yc_qty" label="YC" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.yc_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.yc_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="jy_qty" label="JY" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.jy_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.jy_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="lt_qty" label="LT" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.lt_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.lt_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="sj_qty" label="SJ" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.sj_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.sj_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ys_qty" label="YS" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ys_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.ys_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ds_qty" label="DS" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ds_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.ds_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="cqx_qty" label="CQX" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.cqx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.cqx_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="xqx_qty" label="XQX" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.xqx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.xqx_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="qx_qty" label="QX" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.qx_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.qx_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="jcf_qty" label="JCF" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.jcf_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.jcf_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="tb_qty" label="TB" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.tb_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.tb_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="ycr_qty" label="YCR" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.ycr_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.ycr_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="gz_qty" label="GZ" width="95" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-show="scope.row.edit">{{ scope.row.gz_qty }}</span>-->
<!-- <el-input-number-->
<!-- v-show="!scope.row.edit"-->
<!-- v-model="scope.row.gz_qty"-->
<!-- size="small"-->
<!-- style="width: 80px"-->
<!-- :controls="false"-->
<!-- controls-position="right"-->
<!-- :precision="2"-->
<!-- :min="-10000"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column prop="create_time" label="维护时间" min-width="140" />-->
<!-- <el-table-column prop="create_name" label="维护人" min-width="120" />-->
<!-- <el-table-column label="操作" width="180" align="center" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-show="!scope.row.edit" type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>-->
<!-- <el-button v-show="scope.row.edit" type="success" size="mini" icon="el-icon-check" @click="handleEdit(scope.$index, scope.row)">完成</el-button>-->
<!-- <el-button type="success" size="mini" :loading="confirm_flg" icon="el-icon-check" @click="confirm(scope.row)">确认</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- &lt;!&ndash;分页组件&ndash;&gt;-->
<!-- <pagination />-->
<el-table v-fit-columns ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="material_code" label="物料编码" min-width="110" align="center" />
<el-table-column prop="material_name" label="物料名称" min-width="120" align="center" />
<el-table-column prop="material_model" label="型号" align="center" />
<el-table-column prop="tech_type" label="工艺" :formatter="formName" align="center" />
<el-table-column prop="cf_qty" label="CF" width="95" align="center">
<template scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cf_qty }}</span>
<el-input-number
v-model="scope.row.cf_qty"
size="small"
v-show="!scope.row.edit"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="yz_qty" label="YZ" width="95" align="center">
<el-table-column v-for="(item,index) in dict.MD_MATERIAL_WASTE_TYPE" :key="index" align="center" :width="item.label.length*15+60" :label="item.label+'('+item.value+')'" :prop="item.value">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.yz_qty }}</span>
<span v-show="scope.row.edit"> {{ scope.row[item.value] }}</span>
<el-input-number
v-model="scope.row.yz_qty"
v-show="!scope.row.edit"
v-model="scope.row[item.value]"
size="small"
style="width: 80px"
:controls="false"
@@ -69,217 +312,7 @@
/>
</template>
</el-table-column>
<el-table-column prop="cx_qty" label="CX" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cx_qty }}</span>
<el-input-number
v-model="scope.row.cx_qty"
v-show="!scope.row.edit"
size="small"
:controls="false"
style="width: 80px"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="yc_qty" label="YC" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.yc_qty }}</span>
<el-input-number
v-model="scope.row.yc_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="jy_qty" label="JY" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.jy_qty }}</span>
<el-input-number
v-model="scope.row.jy_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="lt_qty" label="LT" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.lt_qty }}</span>
<el-input-number
v-model="scope.row.lt_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="sj_qty" label="SJ" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.sj_qty }}</span>
<el-input-number
v-model="scope.row.sj_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="ys_qty" label="YS" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ys_qty }}</span>
<el-input-number
v-model="scope.row.ys_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="ds_qty" label="DS" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ds_qty }}</span>
<el-input-number
v-model="scope.row.ds_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="cqx_qty" label="CQX" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.cqx_qty }}</span>
<el-input-number
v-model="scope.row.cqx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="xqx_qty" label="XQX" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.xqx_qty }}</span>
<el-input-number
v-model="scope.row.xqx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="qx_qty" label="QX" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.qx_qty }}</span>
<el-input-number
v-model="scope.row.qx_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="jcf_qty" label="JCF" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.jcf_qty }}</span>
<el-input-number
v-model="scope.row.jcf_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="tb_qty" label="TB" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.tb_qty }}</span>
<el-input-number
v-model="scope.row.tb_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="ycr_qty" label="YCR" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.ycr_qty }}</span>
<el-input-number
v-model="scope.row.ycr_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="gz_qty" label="GZ" width="95" align="center">
<template slot-scope="scope">
<span v-show="scope.row.edit">{{ scope.row.gz_qty }}</span>
<el-input-number
v-model="scope.row.gz_qty"
v-show="!scope.row.edit"
size="small"
style="width: 80px"
:controls="false"
controls-position="right"
:precision="2"
:min="-10000"
/>
</template>
</el-table-column>
<el-table-column prop="create_time" label="维护时间" min-width="140"/>
<el-table-column prop="create_time" label="维护时间" min-width="140" />
<el-table-column prop="create_name" label="维护人" min-width="120" />
<el-table-column label="操作" width="180" align="center" fixed="right">
<template slot-scope="scope">
@@ -302,9 +335,10 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.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 }
const defaultForm = { change_id: null, material_id: null, tech_type: null, create_id: null, create_name: null, create_time: null }
export default {
name: 'Wastecchange',
dicts: ['MD_MATERIAL_WASTE_TYPE'],
components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
@@ -334,7 +368,11 @@ export default {
permission: {
},
rules: {
}}
}
}
},
created() {
// eslint-disable-next-line eqeqeq
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据