opt:刻字输送线任务下发控制
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
>
|
||||
<el-row v-show="crud.status.cu > 0" :gutter="20">
|
||||
<el-col :span="20" style="border: 1px solid white">
|
||||
<span/>
|
||||
<span />
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<span>
|
||||
@@ -57,16 +57,16 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编码" prop="material_code">
|
||||
<el-input v-model.trim="form.material_code" disabled class="input-with-select" style="width: 370px;">
|
||||
<el-button slot="append" icon="el-icon-search" @click="insertEvent"/>
|
||||
<el-button slot="append" icon="el-icon-search" @click="insertEvent" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="material_name">
|
||||
<label slot="label">物料名称:</label>
|
||||
<el-input v-model="form.material_name" size="mini" disabled style="width: 210px"/>
|
||||
<el-input v-model="form.material_name" size="mini" disabled style="width: 210px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="明细数" prop="detail_count">
|
||||
<label slot="label">明 细 数:</label>
|
||||
<el-input v-model="form.detail_count" size="mini" disabled style="width: 210px"/>
|
||||
<el-input v-model="form.detail_count" size="mini" disabled style="width: 210px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="总重量" prop="total_qty">
|
||||
<label slot="label">总 重 量:</label>
|
||||
@@ -95,13 +95,13 @@
|
||||
<div class="crud-opts2" style="margin-bottom: 5px;">
|
||||
<span class="crud-opts-right2">
|
||||
<!--左侧插槽-->
|
||||
<slot name="left"/>
|
||||
<slot name="left" />
|
||||
<el-button
|
||||
v-if="crud.status.add > 0"
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
v-if="crud.status.add > 0"
|
||||
size="mini"
|
||||
@click="add"
|
||||
>
|
||||
@@ -118,10 +118,10 @@
|
||||
border
|
||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="55" align="center"/>
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
|
||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码"/>
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称"/>
|
||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" />
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" />
|
||||
<el-table-column show-overflow-tooltip prop="ask_time" label="要求到货日期" style="width: 250px">
|
||||
<template slot-scope="scope">
|
||||
<el-date-picker
|
||||
@@ -147,9 +147,13 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column show-overflow-tooltip prop="safe_qty" label="安全库存"/>-->
|
||||
<!-- <el-table-column show-overflow-tooltip prop="remark" label="总需求数量"/>-->
|
||||
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="数量单位"/>
|
||||
<!-- <el-table-column show-overflow-tooltip prop="safe_qty" label="安全库存"/>-->
|
||||
<!-- <el-table-column show-overflow-tooltip prop="remark" label="总需求数量"/>-->
|
||||
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="数量单位">
|
||||
<template scope="scope">
|
||||
KG
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="100" fixed="right">
|
||||
<template scope="scope">
|
||||
<el-button
|
||||
@@ -173,7 +177,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CRUD, {crud, form} from '@crud/crud'
|
||||
import CRUD, { crud, form } from '@crud/crud'
|
||||
import MaterDtl from '@/views/wms/pub/MaterDialog'
|
||||
import crudPurchase from '@/views/wms/pcs/purchaseorder/purchase'
|
||||
|
||||
@@ -183,8 +187,8 @@ const defaultForm = {
|
||||
create_mode: '01',
|
||||
material_code: '',
|
||||
material_name: '',
|
||||
qty_unit_id: '',
|
||||
qty_unit_name: '',
|
||||
qty_unit_id: '1',
|
||||
qty_unit_name: 'KG',
|
||||
total_qty: 0,
|
||||
detail_count: '0',
|
||||
workshop_id: '',
|
||||
@@ -193,7 +197,7 @@ const defaultForm = {
|
||||
|
||||
export default {
|
||||
name: 'AddDialog',
|
||||
components: {MaterDtl},
|
||||
components: { MaterDtl },
|
||||
mixins: [crud(), form(defaultForm)],
|
||||
dicts: ['IO_BILL_STATUS', 'ST_INV_RAW_IN_TYPE', 'ST_QUALITY_SCODE', 'bill_type', 'product_area'],
|
||||
data() {
|
||||
@@ -207,13 +211,13 @@ export default {
|
||||
sects: [],
|
||||
rules: {
|
||||
product_code: [
|
||||
{required: true, message: '生产车间不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '生产车间不能为空', trigger: 'blur' }
|
||||
],
|
||||
bill_type: [
|
||||
{required: true, message: '业务类型不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '业务类型不能为空', trigger: 'blur' }
|
||||
],
|
||||
biz_date: [
|
||||
{required: true, message: '业务日期不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '业务日期不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -268,15 +272,15 @@ export default {
|
||||
}
|
||||
},
|
||||
tableChanged(item) {
|
||||
this.form.qty_unit_id = item.base_unit_id
|
||||
this.form.qty_unit_name = item.base_unit_name
|
||||
this.form.qty_unit_id = '1'
|
||||
this.form.qty_unit_name = 'KG'
|
||||
this.form.material_code = item.material_code
|
||||
this.form.material_name = item.material_name
|
||||
this.form.material_id = item.material_id
|
||||
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(row.plan_qty)
|
||||
},
|
||||
add() {
|
||||
if (!this.form.material_code){
|
||||
if (!this.form.material_code) {
|
||||
this.crud.notify('请选择一种物料进行新增!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
@@ -284,8 +288,8 @@ export default {
|
||||
row.material_code = this.form.material_code
|
||||
row.material_name = this.form.material_name
|
||||
row.qty_unit_name = this.form.qty_unit_name
|
||||
this.$set(row,'ask_time',null)
|
||||
this.$set(row,'qty',null)
|
||||
this.$set(row, 'ask_time', null)
|
||||
this.$set(row, 'qty', null)
|
||||
this.form.tableData.splice(-1, 0, row)
|
||||
},
|
||||
insertEvent() {
|
||||
|
||||
Reference in New Issue
Block a user