Browse Source

国际化修改

1219
zhang 1 month ago
parent
commit
9f43da7e1f
  1. 254
      lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue
  2. 40
      lms/nladmin-ui/src/views/wms/pdm/sub/index.vue

254
lms/nladmin-ui/src/views/wms/pdm/order/slittingplan/index.vue

@ -13,18 +13,19 @@
> >
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="订单类型"> <el-form-item :label="$t('slittingplan.placeholder.order_type')">
<el-select <el-select
v-model="query.order_type" v-model="query.order_type"
clearable clearable
size="mini" size="mini"
placeholder="请选择" :placeholder="$t('slittingplan.placeholder.select_input')"
class="filter-item" class="filter-item"
style="width: 250px" style="width: 250px"
@change="hand" @change="hand"
> >
<el-option <el-option
v-for="item in dict.order_type" v-for="item in dict.order_type"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
@ -32,18 +33,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="生产区域"> <el-form-item :label="$t('slittingplan.placeholder.product_area')">
<el-select <el-select
v-model="query.product_area" v-model="query.product_area"
clearable clearable
size="mini" size="mini"
placeholder="请选择" :placeholder="$t('slittingplan.placeholder.select_input')"
class="filter-item" class="filter-item"
style="width: 250px" style="width: 250px"
@change="hand" @change="hand"
> >
<el-option <el-option
v-for="item in dict.product_area" v-for="item in dict.product_area"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
@ -51,19 +53,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="状态"> <el-form-item :label="$t('slittingplan.placeholder.status')">
<label slot="label">&nbsp;&nbsp;&nbsp;&nbsp;:</label> <label slot="label">{{ $t('slittingplan.placeholder.status') }}:</label>
<el-select <el-select
v-model="query.status" v-model="query.status"
clearable clearable
size="mini" size="mini"
placeholder="请选择" :placeholder="$t('slittingplan.placeholder.select_input')"
class="filter-item" class="filter-item"
style="width: 250px" style="width: 250px"
@change="hand" @change="hand"
> >
<el-option <el-option
v-for="item in dict.cut_product_status" v-for="item in dict.cut_product_status"
:key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
@ -74,37 +77,37 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="机台编码"> <el-form-item :label="$t('slittingplan.placeholder.resource_name')">
<el-input <el-input
v-model="query.resource_name" v-model="query.resource_name"
clearable clearable
size="mini" size="mini"
placeholder="机台编码" :placeholder="$t('slittingplan.placeholder.resource_name')"
style="width: 250px" style="width: 250px"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="母卷号"> <el-form-item :label="$t('slittingplan.placeholder.container_name')">
<label slot="label">&nbsp;&nbsp;&nbsp;&nbsp;:</label> <label slot="label">{{ $t('slittingplan.placeholder.container_name') }}:</label>
<el-input <el-input
v-model="query.parent_container_name" v-model="query.parent_container_name"
clearable clearable
size="mini" size="mini"
placeholder="母卷号" :placeholder="$t('slittingplan.placeholder.container_name')"
style="width: 250px" style="width: 250px"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="子卷号"> <el-form-item :label="$t('slittingplan.placeholder.son_container_name')">
<el-input <el-input
v-model="query.container_name" v-model="query.container_name"
clearable clearable
size="mini" size="mini"
placeholder="子卷号" :placeholder="$t('slittingplan.placeholder.son_container_name')"
style="width: 250px" style="width: 250px"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
@ -114,11 +117,11 @@
<el-row /> <el-row />
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="母卷上料"> <el-form-item :label="$t('slittingplan.placeholder.is_parent_ok')">
<el-select <el-select
v-model="query.is_parent_ok" v-model="query.is_parent_ok"
clearable clearable
placeholder="母卷上料" :placeholder="$t('slittingplan.placeholder.is_parent_ok')"
class="filter-item" class="filter-item"
@change="crud.toQuery" @change="crud.toQuery"
> >
@ -132,11 +135,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="子卷套轴"> <el-form-item :label="$t('slittingplan.placeholder.is_child_tz_ok')">
<el-select <el-select
v-model="query.is_child_tz_ok" v-model="query.is_child_tz_ok"
clearable clearable
placeholder="子卷套轴" :placeholder="$t('slittingplan.placeholder.is_child_tz_ok')"
class="filter-item" class="filter-item"
@change="crud.toQuery" @change="crud.toQuery"
> >
@ -150,11 +153,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="子卷配送"> <el-form-item :label="$t('slittingplan.placeholder.is_child_ps_ok')">
<el-select <el-select
v-model="query.is_child_ps_ok" v-model="query.is_child_ps_ok"
clearable clearable
placeholder="子卷配送" :placeholder="$t('slittingplan.placeholder.is_child_ps_ok')"
class="filter-item" class="filter-item"
@change="crud.toQuery" @change="crud.toQuery"
> >
@ -168,11 +171,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="是否呼叫"> <el-form-item :label="$t('slittingplan.placeholder.is_call')">
<el-select <el-select
v-model="query.is_call" v-model="query.is_call"
clearable clearable
placeholder="是否呼叫" :placeholder="$t('slittingplan.placeholder.is_call')"
class="filter-item" class="filter-item"
@change="crud.toQuery" @change="crud.toQuery"
> >
@ -188,27 +191,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="气涨轴"> <el-form-item :label="$t('slittingplan.placeholder.qzzno')">
<label slot="label">&nbsp;&nbsp;&nbsp;&nbsp;:</label> <label slot="label">{{ $t('slittingplan.placeholder.qzzno') }}:</label>
<el-input <el-input
v-model="query.qzzno" v-model="query.qzzno"
clearable clearable
size="mini" size="mini"
placeholder="气涨轴编号" :placeholder="$t('slittingplan.placeholder.qzzno')"
style="width: 250px" style="width: 250px"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<el-form-item label="日期"> <el-form-item :label="$t('slittingplan.placeholder.create_time')">
<label slot="label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label> <label slot="label">{{ $t('slittingplan.placeholder.create_time') }}:</label>
<el-date-picker <el-date-picker
v-model="query.createTime" v-model="query.createTime"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
start-placeholder="开始日期" :start-placeholder="$t('slittingplan.placeholder.start_time')"
end-placeholder="结束日期" :end-placeholder="$t('slittingplan.placeholder.end_time')"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']"
@change="crud.toQuery" @change="crud.toQuery"
/> />
@ -231,7 +234,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="upMaterFinish" @click="upMaterFinish"
> >
上料完成 {{ $t('slittingplan.placeholder.end1') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -242,7 +245,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="caseFinish" @click="caseFinish"
> >
套管完成 {{ $t('slittingplan.placeholder.end2') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -253,7 +256,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="sendFinish" @click="sendFinish"
> >
配送完成 {{ $t('slittingplan.placeholder.end3') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -264,7 +267,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="inFinish" @click="inFinish"
> >
入站完成 {{ $t('slittingplan.placeholder.end4') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -275,7 +278,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="compelFinish" @click="compelFinish"
> >
强制完成 {{ $t('slittingplan.placeholder.end5') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -286,7 +289,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="setUpOrDown('1')" @click="setUpOrDown('1')"
> >
设置上轴 {{ $t('slittingplan.placeholder.end6') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -297,7 +300,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="setUpOrDown('2')" @click="setUpOrDown('2')"
> >
设置下轴 {{ $t('slittingplan.placeholder.end7') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -308,7 +311,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="setLeftOrRight('1')" @click="setLeftOrRight('1')"
> >
设置左卷 {{ $t('slittingplan.placeholder.end8') }}
</el-button> </el-button>
<el-button <el-button
slot="right" slot="right"
@ -319,7 +322,7 @@
:disabled="crud.selections.length < 1" :disabled="crud.selections.length < 1"
@click="setLeftOrRight('2')" @click="setLeftOrRight('2')"
> >
设置右卷 {{ $t('slittingplan.placeholder.end9') }}
</el-button> </el-button>
</crudOperation> </crudOperation>
<!--表单组件--> <!--表单组件-->
@ -327,152 +330,152 @@
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="150px"> <el-form ref="form" :model="form" :rules="rules" size="mini" label-width="150px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="订单类型" prop="order_type"> <el-form-item :label="$t('slittingplan.placeholder.order_type')" prop="order_type">
<el-input v-model="form.order_type" style="width: 370px;" /> <el-input v-model="form.order_type" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="子卷号" prop="container_name"> <el-form-item :label="$t('slittingplan.placeholder.so_ncontainer_name')" prop="container_name">
<el-input v-model="form.container_name" style="width: 370px;" /> <el-input v-model="form.container_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="产品编码" prop="product_name"> <el-form-item :label="$t('slittingplan.dialog.product_name')" prop="product_name">
<el-input v-model="form.product_name" style="width: 370px;" /> <el-input v-model="form.product_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="产品描述" prop="description"> <el-form-item :label="$t('slittingplan.dialog.description')" prop="description">
<el-input v-model="form.description" style="width: 370px;" /> <el-input v-model="form.description" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="来源母卷号" prop="parent_container_name"> <el-form-item :label="$t('slittingplan.dialog.parent_container_name')" prop="parent_container_name">
<el-input v-model="form.parent_container_name" style="width: 370px;" /> <el-input v-model="form.parent_container_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="改制来源子卷号" prop="restruct_container_name"> <el-form-item :label="$t('slittingplan.dialog.restruct_container_name')" prop="restruct_container_name">
<el-input v-model="form.restruct_container_name" style="width: 370px;" /> <el-input v-model="form.restruct_container_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="子卷立库木箱号" prop="package_box_sn"> <el-form-item :label="$t('slittingplan.dialog.package_box_sn')" prop="package_box_sn">
<el-input v-model="form.package_box_sn" style="width: 370px;" /> <el-input v-model="form.package_box_sn" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="来源卷位置" prop="ware_house"> <el-form-item :label="$t('slittingplan.dialog.ware_house')" prop="ware_house">
<el-input v-model="form.ware_house" style="width: 370px;" /> <el-input v-model="form.ware_house" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="分切机台编码" prop="resource_name"> <el-form-item :label="$t('slittingplan.dialog.resource_name')" prop="resource_name">
<el-input v-model="form.resource_name" style="width: 370px;" /> <el-input v-model="form.resource_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="分切组" prop="split_group"> <el-form-item :label="$t('slittingplan.dialog.split_group')" prop="split_group">
<el-input v-model="form.split_group" style="width: 370px;" /> <el-input v-model="form.split_group" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="生产顺序" prop="manufacture_sort"> <el-form-item :label="$t('slittingplan.dialog.manufacture_sort')" prop="manufacture_sort">
<el-input v-model="form.manufacture_sort" style="width: 370px;" /> <el-input v-model="form.manufacture_sort" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="生产订单" prop="mfg_order_name"> <el-form-item :label="$t('slittingplan.dialog.mfg_order_name')" prop="mfg_order_name">
<el-input v-model="form.mfg_order_name" style="width: 370px;" /> <el-input v-model="form.mfg_order_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="生产日期" prop="manufacture_date"> <el-form-item :label="$t('slittingplan.dialog.manufacture_date')" prop="manufacture_date">
<el-input v-model="form.manufacture_date" style="width: 370px;" /> <el-input v-model="form.manufacture_date" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="管件类型" prop="paper_tube_or_FRP"> <el-form-item :label="$t('slittingplan.dialog.paper_tube_or_FRP')" prop="paper_tube_or_FRP">
<el-input v-model="form.paper_tube_or_FRP" style="width: 370px;" /> <el-input v-model="form.paper_tube_or_FRP" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="纸筒物料编码" prop="paper_tube_material"> <el-form-item :label="$t('slittingplan.dialog.paper_tube_material')" prop="paper_tube_material">
<el-input v-model="form.paper_tube_material" style="width: 370px;" /> <el-input v-model="form.paper_tube_material" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="纸筒物料描述" prop="paper_tube_description"> <el-form-item :label="$t('slittingplan.dialog.paper_tube_description')" prop="paper_tube_description">
<el-input v-model="form.paper_tube_description" style="width: 370px;" /> <el-input v-model="form.paper_tube_description" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="纸筒规格" prop="paper_tube_model"> <el-form-item :label="$t('slittingplan.dialog.paper_tube_model')" prop="paper_tube_model">
<el-input v-model="form.paper_tube_model" style="width: 370px;" /> <el-input v-model="form.paper_tube_model" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="FRP管物料编码" prop="FRP_material"> <el-form-item :label="$t('slittingplan.dialog.FRP_material')" prop="FRP_material">
<el-input v-model="form.FRP_material" style="width: 370px;" /> <el-input v-model="form.FRP_material" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="FRP管物料描述" prop="FRP_description"> <el-form-item :label="$t('slittingplan.dialog.FRP_description')" prop="FRP_description">
<el-input v-model="form.FRP_description" style="width: 370px;" /> <el-input v-model="form.FRP_description" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="FRP管规格" prop="FRP_model"> <el-form-item :label="$t('slittingplan.dialog.FRP_model')" prop="FRP_model">
<el-input v-model="form.FRP_model" style="width: 370px;" /> <el-input v-model="form.FRP_model" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="子卷幅宽" prop="split_breadth"> <el-form-item :label="$t('slittingplan.dialog.split_breadth')" prop="split_breadth">
<el-input v-model="form.split_breadth" style="width: 370px;" /> <el-input v-model="form.split_breadth" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="子卷理论长度" prop="split_height"> <el-form-item :label="$t('slittingplan.dialog.split_height')" prop="split_height">
<el-input v-model="form.split_height" style="width: 370px;" /> <el-input v-model="form.split_height" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="子卷理论重量" prop="split_weight"> <el-form-item :label="$t('slittingplan.dialog.split_weight')" prop="split_weight">
<el-input v-model="form.split_weight" style="width: 370px;" /> <el-input v-model="form.split_weight" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="销售订单及行号" prop="sale_order_name"> <el-form-item :label="$t('slittingplan.dialog.sale_order_name')" prop="sale_order_name">
<el-input v-model="form.sale_order_name" style="width: 370px;" /> <el-input v-model="form.sale_order_name" style="width: 370px;" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button> <el-button type="text" @click="crud.cancelCU">{{ $t('slittingplan.dialog.cancel') }}</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button> <el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">{{ $t('slittingplan.dialog.confirm') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!--表格渲染--> <!--表格渲染-->
@ -485,72 +488,72 @@
@selection-change="crud.selectionChangeHandler" @selection-change="crud.selectionChangeHandler"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column v-if="false" prop="workorder_id" label="分切计划标识" /> <el-table-column v-if="false" prop="workorder_id" :label="$t('slittingplan.dialog.workorder_id')" />
<el-table-column prop="status" label="状态" :formatter="formatStatusName" /> <el-table-column prop="status" :label="$t('slittingplan.placeholder.status')" :formatter="formatStatusName" />
<el-table-column prop="order_type" label="订单类型" :formatter="formatTypeName" /> <el-table-column prop="order_type" :label="$t('slittingplan.placeholder.order_type')" :formatter="formatTypeName" />
<el-table-column prop="mfg_order_name" label="订单号" min-width="140" show-overflow-tooltip /> <el-table-column prop="mfg_order_name" :label="$t('slittingplan.dialog.mfg_order_name')" min-width="140" show-overflow-tooltip />
<el-table-column prop="container_name" label="子卷号" min-width="140" show-overflow-tooltip /> <el-table-column prop="container_name" :label="$t('slittingplan.placeholder.so_ncontainer_name')" min-width="140" show-overflow-tooltip />
<el-table-column prop="parent_container_name" label="母卷号" min-width="120" show-overflow-tooltip /> <el-table-column prop="parent_container_name" :label="$t('slittingplan.placeholder.container_name')" min-width="120" show-overflow-tooltip />
<el-table-column prop="ware_house" label="来源位置" :formatter="formatHouseName" width="120px" /> <el-table-column prop="ware_house" :label="$t('slittingplan.dialog.ware_house')" :formatter="formatHouseName" width="120px" />
<el-table-column prop="restruct_container_name" label="改制来源子卷号" width="120px" /> <el-table-column prop="restruct_container_name" :label="$t('slittingplan.dialog.restruct_container_name')" width="120px" />
<el-table-column prop="package_box_sn" label="改制来源子卷木箱号" width="150px" /> <el-table-column prop="package_box_sn" :label="$t('slittingplan.dialog.package_box_sn')" width="150px" />
<el-table-column prop="resource_name" label="机台编码" min-width="110" show-overflow-tooltip /> <el-table-column prop="resource_name" :label="$t('slittingplan.placeholder.resource_name')" min-width="110" show-overflow-tooltip />
<el-table-column prop="point_code" label="点位" min-width="110" show-overflow-tooltip /> <el-table-column prop="point_code" :label="$t('slittingplan.placeholder.point_code')" min-width="110" show-overflow-tooltip />
<el-table-column prop="product_name" label="产品编码" min-width="130" show-overflow-tooltip /> <el-table-column prop="product_name" :label="$t('slittingplan.dialog.product_name')" min-width="130" show-overflow-tooltip />
<el-table-column prop="product_area" label="生产区域" /> <el-table-column prop="product_area" :label="$t('slittingplan.placeholder.product_area')" />
<el-table-column prop="split_group" label="分切组" /> <el-table-column prop="split_group" :label="$t('slittingplan.dialog.split_group')" />
<el-table-column prop="manufacture_sort" label="生产顺序" /> <el-table-column prop="manufacture_sort" :label="$t('slittingplan.dialog.manufacture_sort')" />
<el-table-column prop="manufacture_date" label="生产日期" width="120px" /> <el-table-column prop="manufacture_date" :label="$t('slittingplan.dialog.manufacture_date')" width="120px" />
<el-table-column prop="split_breadth" label="子卷幅宽" :formatter="crud.formatNum3" /> <el-table-column prop="split_breadth" :label="$t('slittingplan.dialog.split_breadth')" :formatter="crud.formatNum3" />
<el-table-column prop="split_height" label="子卷理论长度" width="100px" :formatter="crud.formatNum3" /> <el-table-column prop="split_height" :label="$t('slittingplan.dialog.split_height')" width="100px" :formatter="crud.formatNum3" />
<el-table-column prop="split_weight" label="子卷理论重量" width="100px" :formatter="crud.formatNum3" /> <el-table-column prop="split_weight" :label="$t('slittingplan.dialog.split_weight')" width="100px" :formatter="crud.formatNum3" />
<el-table-column prop="weight" label="子卷重量" width="100px" :formatter="crud.formatNum3"> <el-table-column prop="weight" :label="$t('slittingplan.dialog.weight')" width="100px" :formatter="crud.formatNum3">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.weight" type="text" /> <el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.weight" type="text" />
<span v-show="scope.row.show_edit === '0'">{{ scope.row.weight }}</span> <span v-show="scope.row.show_edit === '0'">{{ scope.row.weight }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="paper_weight" label="纸管重量" width="100px" :formatter="crud.formatNum3"> <el-table-column prop="paper_weight" :label="$t('slittingplan.dialog.paper_weight')" width="100px" :formatter="crud.formatNum3">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.paper_weight" type="text" /> <el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.paper_weight" type="text" />
<span v-show="scope.row.show_edit === '0'">{{ scope.row.paper_weight }}</span> <span v-show="scope.row.show_edit === '0'">{{ scope.row.paper_weight }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="joint_type" label="接头数" width="100px" :formatter="crud.formatNum3"> <el-table-column prop="joint_type" :label="$t('slittingplan.dialog.joint_type')" width="100px" :formatter="crud.formatNum3">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.joint_type" type="text" /> <el-input v-show="scope.row.show_edit === '1'" v-model="scope.row.joint_type" type="text" />
<span v-show="scope.row.show_edit === '0'">{{ scope.row.joint_type }}</span> <span v-show="scope.row.show_edit === '0'">{{ scope.row.joint_type }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="paper_tube_or_frp" label="管件类型" :formatter="formatTubeName" /> <el-table-column prop="paper_tube_or_frp" :label="$t('slittingplan.dialog.paper_tube_or_frp')" :formatter="formatTubeName" />
<el-table-column prop="paper_tube_material" label="纸筒物料编码" min-width="140" show-overflow-tooltip /> <el-table-column prop="paper_tube_material" :label="$t('slittingplan.dialog.paper_tube_material')" min-width="140" show-overflow-tooltip />
<el-table-column prop="paper_tube_description" label="纸筒物料描述" width="120px" show-overflow-tooltip /> <el-table-column prop="paper_tube_description" :label="$t('slittingplan.dialog.paper_tube_description')" width="120px" show-overflow-tooltip />
<el-table-column prop="paper_tube_model" label="纸筒规格" min-width="140" show-overflow-tooltip /> <el-table-column prop="paper_tube_model" :label="$t('slittingplan.dialog.paper_tube_model')" min-width="140" show-overflow-tooltip />
<el-table-column prop="frp_material" label="FRP管物料编码" min-width="140" show-overflow-tooltip /> <el-table-column prop="frp_material" :label="$t('slittingplan.dialog.frp_material')" min-width="140" show-overflow-tooltip />
<el-table-column prop="frp_description" label="FRP管物料描述" min-width="140" show-overflow-tooltip /> <el-table-column prop="frp_description" :label="$t('slittingplan.dialog.frp_description')" min-width="140" show-overflow-tooltip />
<el-table-column prop="frp_model" label="FRP管规格" min-width="140" show-overflow-tooltip /> <el-table-column prop="frp_model" :label="$t('slittingplan.dialog.frp_model')" min-width="140" show-overflow-tooltip />
<el-table-column prop="is_parent_ok" label="母卷上料完成" width="100px" :formatter="formatParentName" /> <el-table-column prop="is_parent_ok" :label="$t('slittingplan.dialog.is_parent_ok')" width="100px" :formatter="formatParentName" />
<el-table-column prop="is_child_tz_ok" label="子卷套轴完成" width="100px" :formatter="formatChildName" /> <el-table-column prop="is_child_tz_ok" :label="$t('slittingplan.dialog.is_child_tz_ok')" width="100px" :formatter="formatChildName" />
<el-table-column prop="is_child_ps_ok" label="子卷配送完成" width="100px" :formatter="formatChildPsName" /> <el-table-column prop="is_child_ps_ok" :label="$t('slittingplan.dialog.is_child_ps_ok')" width="100px" :formatter="formatChildPsName" />
<el-table-column prop="is_call" label="是否呼叫" width="100px" :formatter="formatChildCallName" /> <el-table-column prop="is_call" :label="$t('slittingplan.dialog.is_call')" width="100px" :formatter="formatChildCallName" />
<el-table-column prop="up_or_down" label="上轴下轴" width="100px"> <el-table-column prop="up_or_down" :label="$t('slittingplan.dialog.up_or_down')" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.up_or_down === '' ? '-' : scope.row.up_or_down === '1' ? '上轴' : '下轴' }} {{ scope.row.up_or_down === '' ? '-' : scope.row.up_or_down === '1' ? '上轴' : '下轴' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="left_or_right" label="左卷右卷" width="100px"> <el-table-column prop="left_or_right" :label="$t('slittingplan.dialog.left_or_right')" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.left_or_right === '' ? '-' :scope.row.left_or_right === '1' ? '左卷' : '右卷' }} {{ scope.row.left_or_right === '' ? '-' :scope.row.left_or_right === '1' ? '左卷' : '右卷' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="qzzno" label="气涨轴编码" width="160px" /> <el-table-column prop="qzzno" :label="$t('slittingplan.dialog.qzzno')" width="160px" />
<el-table-column prop="start_time" label="开始时间" width="150px" /> <el-table-column prop="start_time" :label="$t('slittingplan.placeholder.start_time')" width="150px" />
<el-table-column prop="end_time" label="结束时间" width="150px" /> <el-table-column prop="end_time" :label="$t('slittingplan.placeholder.end_time')" width="150px" />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> <el-table-column v-permission="[]" :label="$t('slittingplan.dialog.operate')" width="120px" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" :disabled="scope.row.show_edit === '1'" @click="edit(scope.row, scope)">编辑</el-button> <el-button type="text" :disabled="scope.row.show_edit === '1'" @click="edit(scope.row, scope)">{{ $t('slittingplan.dialog.edit') }}</el-button>
<el-button type="text" :disabled="scope.row.show_edit === '0'" @click="cancel(scope.row)">取消</el-button> <el-button type="text" :disabled="scope.row.show_edit === '0'" @click="cancel(scope.row)">{{ $t('slittingplan.dialog.cancel') }}</el-button>
<el-button type="text" :disabled="scope.row.show_edit === '0'" @click="save(scope.row)">保存</el-button> <el-button type="text" :disabled="scope.row.show_edit === '0'" @click="save(scope.row)">{{ $t('slittingplan.dialog.confirm') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -565,9 +568,8 @@ import crudSlittingproductionplan from '@/views/wms/pdm/order/slittingplan/slitt
import CRUD, { crud, form, header, presenter } from '@crud/crud' import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation' import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation' import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import i18n from '@/i18n'
const defaultForm = { const defaultForm = {
workorder_id: null, workorder_id: null,
order_type: null, order_type: null,
@ -619,11 +621,11 @@ const defaultForm = {
export default { export default {
name: 'Slittingproductionplan', name: 'Slittingproductionplan',
dicts: ['product_area', 'order_type', 'cut_product_status', 'ware_house', 'paper_tube_or_frp', 'IS_OR_NOT'], dicts: ['product_area', 'order_type', 'cut_product_status', 'ware_house', 'paper_tube_or_frp', 'IS_OR_NOT'],
components: { pagination, crudOperation, rrOperation, udOperation }, components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
return CRUD({ return CRUD({
title: '分切计划', title: i18n.t('slittingplan.title'),
url: 'api/slittingproductionplan', url: 'api/slittingproductionplan',
idField: 'workorder_id', idField: 'workorder_id',
sort: 'workorder_id,desc', sort: 'workorder_id,desc',
@ -642,31 +644,31 @@ export default {
permission: {}, permission: {},
rules: { rules: {
order_type: [ order_type: [
{ required: true, message: '分切订单类型不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
container_name: [ container_name: [
{ required: true, message: '子卷号不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
split_weight: [ split_weight: [
{ required: true, message: '子卷理论重量不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
split_breadth: [ split_breadth: [
{ required: true, message: '子卷幅宽不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
split_height: [ split_height: [
{ required: true, message: '子卷长度不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
sale_order_name: [ sale_order_name: [
{ required: true, message: '销售订单及行号不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
product_name: [ product_name: [
{ required: true, message: '产品编码不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
description: [ description: [
{ required: true, message: '产品描述不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
], ],
ware_house: [ ware_house: [
{ required: true, message: '来源卷位置不能为空', trigger: 'blur' } { required: true, message: this.$t('slittingplan.msg.isNotEmpty'), trigger: 'blur' }
] ]
} }
} }
@ -686,7 +688,7 @@ export default {
} }
crudSlittingproductionplan.upMaterFinish(data).then(res => { crudSlittingproductionplan.upMaterFinish(data).then(res => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
caseFinish() { caseFinish() {
@ -696,7 +698,7 @@ export default {
} }
crudSlittingproductionplan.caseFinish(data).then(res => { crudSlittingproductionplan.caseFinish(data).then(res => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
sendFinish() { sendFinish() {
@ -706,7 +708,7 @@ export default {
} }
crudSlittingproductionplan.sendFinish(data).then(res => { crudSlittingproductionplan.sendFinish(data).then(res => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
inFinish() { inFinish() {
@ -716,7 +718,7 @@ export default {
} }
crudSlittingproductionplan.inFinish(data).then(res => { crudSlittingproductionplan.inFinish(data).then(res => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
compelFinish() { compelFinish() {
@ -726,7 +728,7 @@ export default {
} }
crudSlittingproductionplan.compelFinish(data).then(res => { crudSlittingproductionplan.compelFinish(data).then(res => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
formatStatusName(row) { formatStatusName(row) {
@ -761,7 +763,7 @@ export default {
} }
crudSlittingproductionplan.setDirection(param).then(() => { crudSlittingproductionplan.setDirection(param).then(() => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
setLeftOrRight(flag) { setLeftOrRight(flag) {
@ -772,7 +774,7 @@ export default {
} }
crudSlittingproductionplan.setDirection(param).then(() => { crudSlittingproductionplan.setDirection(param).then(() => {
this.crud.toQuery() this.crud.toQuery()
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify(this.$t('slittingplan.msg.success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
}) })
}, },
edit(row, index) { edit(row, index) {

40
lms/nladmin-ui/src/views/wms/pdm/sub/index.vue

@ -11,31 +11,31 @@
label-width="115px" label-width="115px"
label-suffix=":" label-suffix=":"
> >
<el-form-item label="订单号"> <el-form-item :label="$t('packagerelation.placeholder.sale_order_name')">
<el-input <el-input
v-model="query.sale_order_name" v-model="query.sale_order_name"
clearable clearable
placeholder="输入订单号" :placeholder="$t('packagerelation.placeholder.input1')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="客户名称"> <el-form-item :label="$t('packagerelation.placeholder.customer_description')">
<el-input <el-input
v-model="query.customer_description" v-model="query.customer_description"
clearable clearable
placeholder="输入客户名称" :placeholder="$t('packagerelation.placeholder.input2')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="客户编码"> <el-form-item :label="$t('packagerelation.placeholder.customer_name')">
<el-input <el-input
v-model="query.customer_name" v-model="query.customer_name"
clearable clearable
placeholder="输入客户编码" :placeholder="$t('packagerelation.placeholder.input3')"
style="width: 185px;" style="width: 185px;"
class="filter-item" class="filter-item"
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
@ -68,13 +68,13 @@
size="mini" size="mini"
@click="divOpen1" @click="divOpen1"
> >
分配 {{ $t('packagerelation.placeholder.allocation') }}
</el-button> </el-button>
</crudOperation> </crudOperation>
<!--表格渲染--> <!--表格渲染-->
<el-tabs v-model="activeName" class="custom-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" class="custom-tabs" @tab-click="handleClick">
<el-tab-pane label="未分配" name="first" /> <el-tab-pane :label="$t('packagerelation.placeholder.allocation1')" name="first" />
<el-tab-pane label="已分配" name="second" /> <el-tab-pane :label="$t('packagerelation.placeholder.allocation2')" name="second" />
</el-tabs> </el-tabs>
<el-table <el-table
ref="table" ref="table"
@ -89,34 +89,34 @@
<el-table-column type="selection" /> <el-table-column type="selection" />
<el-table-column <el-table-column
prop="sale_order_name" prop="sale_order_name"
label="销售订单及行号" :label="$t('packagerelation.placeholder.sale_order_name')"
:min-width="flexWidth('sale_order_name',crud.data,'销售订单及行号')" :min-width="flexWidth('sale_order_name',crud.data,'销售订单号')"
/> />
<el-table-column <el-table-column
prop="customer_name" prop="customer_name"
label="客户编码" :label="$t('packagerelation.dialog.code')"
:min-width="flexWidth('customer_name',crud.data,'客户编码')" :min-width="flexWidth('customer_name',crud.data,'客户编码')"
/> />
<el-table-column <el-table-column
prop="customer_description" prop="customer_description"
label="客户名称" :label="$t('packagerelation.dialog.name')"
:min-width="flexWidth('customer_description',crud.data,'客户名称')" :min-width="flexWidth('customer_description',crud.data,'客户名称')"
/> />
<el-table-column prop="status" label="状态" :min-width="flexWidth('status', crud.data, '状态')"> <el-table-column prop="status" :label="$t('packagerelation.placeholder.status')" :min-width="flexWidth('status', crud.data, '状态')">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.status === "99" ? '未分配' : '已分配' }} {{ scope.row.status === "99" ? '未分配' : '已分配' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="create_name" label="创建人" :min-width="flexWidth('create_name',crud.data,'创建人')" /> <el-table-column prop="create_name" :label="$t('packagerelation.dialog.create_name')" :min-width="flexWidth('create_name',crud.data,'创建人')" />
<el-table-column <el-table-column
prop="create_time" prop="create_time"
label="创建时间" :label="$t('packagerelation.dialog.create_time')"
:min-width="flexWidth('create_time',crud.data,'创建时间')" :min-width="flexWidth('create_time',crud.data,'创建时间')"
/> />
<el-table-column <el-table-column
prop="sale_order_description" prop="sale_order_description"
label="销售订单描述" :label="$t('packagerelation.placeholder.sale_order_description')"
:min-width="flexWidth('sale_order_description',crud.data,'销售订单描述')" :min-width="flexWidth('sale_order_description',crud.data,'销售订单描述')"
/> />
<!-- <el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')"/>--> <!-- <el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')"/>-->
@ -139,11 +139,11 @@ import crudSubpackagerelation from './packagerelation'
import CRUD, { crud, form, header, presenter } from '@crud/crud' import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation' import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation' import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import { download } from '@/api/data' import { download } from '@/api/data'
import { downloadFile } from '@/utils' import { downloadFile } from '@/utils'
import DivDialog from '@/views/wms/pdm/sub/DivDialog.vue' import DivDialog from '@/views/wms/pdm/sub/DivDialog.vue'
import i18n from '@/i18n'
const defaultForm = { const defaultForm = {
workorder_id: null, workorder_id: null,
@ -183,11 +183,11 @@ const defaultForm = {
export default { export default {
name: 'Packagerelation', name: 'Packagerelation',
dicts: ['sub_package_relation', 'IS_OR_NOT'], dicts: ['sub_package_relation', 'IS_OR_NOT'],
components: { pagination, crudOperation, rrOperation, udOperation, DivDialog }, components: { pagination, crudOperation, rrOperation, DivDialog },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
return CRUD({ return CRUD({
title: '子卷装箱', title: i18n.t('packagerelation.title'),
optShow: { add: false, edit: false, del: false }, optShow: { add: false, edit: false, del: false },
url: 'api/pdmBiSubpackagerelation/queryContainerization', url: 'api/pdmBiSubpackagerelation/queryContainerization',
crudMethod: { ...crudSubpackagerelation }, crudMethod: { ...crudSubpackagerelation },

Loading…
Cancel
Save