opt: 工单
This commit is contained in:
@@ -486,6 +486,7 @@ const defaultForm = {
|
||||
pack_method: null,
|
||||
order_subnum: 0,
|
||||
guadansum: 0,
|
||||
ext_data: 0,
|
||||
show: false
|
||||
}
|
||||
export default {
|
||||
@@ -557,6 +558,14 @@ export default {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
[CRUD.HOOK.beforeToCU]() {
|
||||
const extData = this.form.ext_data
|
||||
if (extData !== undefined || extData !== null || extData !== '') {
|
||||
const ext = JSON.parse(extData)
|
||||
this.form.order_no = ext.order_no
|
||||
this.form.order_subnum = ext.custer_no
|
||||
}
|
||||
},
|
||||
getWorkShopList() { // 获取车间列表
|
||||
crudMdBaseWorkShop.getWorkShopList().then(res => {
|
||||
this.workShopList = res
|
||||
@@ -602,12 +611,12 @@ export default {
|
||||
this.form.material_code = row.material_code
|
||||
this.form.half_material_code = row.half_material_code
|
||||
this.form.raw_material_code = row.raw_material_code
|
||||
this.form.pack_method = row.pack_method
|
||||
} else {
|
||||
this.form.raw_material_name = row.material_name
|
||||
this.form.raw_material_id = row.material_id
|
||||
this.form.raw_material_code = row.material_code
|
||||
}
|
||||
this.form.pack_method = row.pack_method
|
||||
},
|
||||
clearRecordMesOrder() {
|
||||
this.form.order_no = null
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
<el-table-column prop="material_name" label="物料名称" width="180" show-overflow-tooltip />
|
||||
<el-table-column prop="material_spec" label="物料规格" width="140" />
|
||||
<el-table-column prop="material_model" label="物料型号" width="140" />
|
||||
<el-table-column prop="pack_method" label="包装方式" width="140" />
|
||||
<el-table-column v-if="queryInfo === '库存顺序'" prop="total_material_qty" label="物料总数/块" width="140" />
|
||||
<el-table-column prop="standing_time" label="静置时间(分钟)" width="130px" />
|
||||
<el-table-column prop="update_name" label="修改人" />
|
||||
|
||||
Reference in New Issue
Block a user