rev:优化BUG

This commit is contained in:
zhouz
2023-07-03 08:58:31 +08:00
parent f37b0afe88
commit 3603386c81
15 changed files with 320 additions and 178 deletions

View File

@@ -103,9 +103,11 @@ public class SemirealrawmaterialServiceImpl implements SemirealrawmaterialServic
String nickName = SecurityUtils.getCurrentNickName(); String nickName = SecurityUtils.getCurrentNickName();
String relation_id = param.getString("relation_id"); String relation_id = param.getString("relation_id");
String raw_material_id = param.getString("raw_material_id"); String raw_material_id = param.getString("material_id");
String rate_qty = param.getString("rate_qty");
JSONObject map = new JSONObject(); JSONObject map = new JSONObject();
map.put("raw_material_id", raw_material_id); map.put("raw_material_id", raw_material_id);
map.put("rate_qty", rate_qty);
map.put("update_optid", currentUserId); map.put("update_optid", currentUserId);
map.put("update_optname", nickName); map.put("update_optname", nickName);
map.put("update_time", DateUtil.now()); map.put("update_time", DateUtil.now());

View File

@@ -8,7 +8,7 @@
mb.material_code, mb.material_code,
mb.material_name, mb.material_name,
class.class_name, class.class_name,
po.total_qty - po.instor_qty AS need_qty po.qty - po.instor_qty AS need_qty
FROM FROM
pcs_if_purchaseorder po pcs_if_purchaseorder po
LEFT JOIN md_me_materialbase mb ON mb.material_id = po.material_id LEFT JOIN md_me_materialbase mb ON mb.material_id = po.material_id
@@ -28,6 +28,7 @@
and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search}) and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search})
</if> </if>
</where> </where>
order by po.id desc
</select> </select>
<select id="queryAll" resultType="java.util.Map"> <select id="queryAll" resultType="java.util.Map">
@@ -61,5 +62,6 @@
and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search}) and (mb.material_code = #{query.material_search} OR mb.material_name = #{query.material_search})
</if> </if>
</where> </where>
order by po.id desc
</select> </select>
</mapper> </mapper>

View File

@@ -59,6 +59,11 @@ public class PdmBiDevice implements Serializable {
*/ */
private String material_id; private String material_id;
/**
* 物料系列
*/
private String product_series;
/** /**
* 工单编号 * 工单编号
*/ */

View File

@@ -35,6 +35,9 @@
<if test="query.workprocedure_code != null and query.workprocedure_code != ''"> <if test="query.workprocedure_code != null and query.workprocedure_code != ''">
and pro.workprocedure_code = #{query.workprocedure_code} and pro.workprocedure_code = #{query.workprocedure_code}
</if> </if>
<if test="query.workprocedure_codes != null and query.workprocedure_codes != ''">
and pro.workprocedure_code IN #{query.workprocedure_codes}
</if>
<if test="query.product_area != null and query.product_area != ''"> <if test="query.product_area != null and query.product_area != ''">
and ShiftOrder.product_area = #{query.product_area} and ShiftOrder.product_area = #{query.product_area}
</if> </if>

View File

@@ -22,6 +22,7 @@ public class WorkorderQuery extends BaseQuery<PdmProduceWorkorder> {
private String material; private String material;
private String order_status; private String order_status;
private String workprocedure_code; private String workprocedure_code;
private String workprocedure_codes;
private String sale_id; private String sale_id;
private String shift_type_scode; private String shift_type_scode;
private String product_series; private String product_series;

View File

@@ -23,11 +23,11 @@ spring:
db-type: com.alibaba.druid.pool.DruidDataSource db-type: com.alibaba.druid.pool.DruidDataSource
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.46.5}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_test}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false # url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.46.5}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_test}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_xc}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false # url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:hl_one_mes_xc}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
# url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:zjhl_mes}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:zjhl_mes}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
username: ${DB_USER:root} username: ${DB_USER:root}
password: ${DB_PWD:Root.123456} # password: ${DB_PWD:Root.123456}
# password: ${DB_PWD:root} password: ${DB_PWD:root}
# 初始连接数 # 初始连接数
initial-size: 5 initial-size: 5

View File

@@ -2,25 +2,27 @@
<div v-loading.fullscreen.lock="fullscreenLoading" class="app-container"> <div v-loading.fullscreen.lock="fullscreenLoading" class="app-container">
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<el-row> <div v-if="crud.props.searchToggle">
<el-col :span="8"> <!-- 搜索 -->
<el-row> <el-form
<el-col :span="7"> :inline="true"
<span style="line-height:36px;text-align: center">物料类别</span> class="demo-form-inline"
</el-col> label-position="right"
<el-col :span="12"> label-width="80px"
label-suffix=":"
>
<el-form-item label="物料类别"">
<treeselect <treeselect
v-model="query.material_type_id" v-model="query.material_type_id"
:load-options="loadChildNodes" :load-options="loadChildNodes"
:options="classes1" :options="classes1"
style="width: 200px;" offsetHeight = "30px;"
style="width: 200px; height: 30px;"
placeholder="请选择" placeholder="请选择"
/> />
</el-col> </el-form-item>
</el-row>
</el-col> <el-form-item label="模糊查询">
<el-col :span="8">
模糊查询
<el-input <el-input
v-model="query.search" v-model="query.search"
clearable clearable
@@ -30,11 +32,11 @@
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
class="filter-item" class="filter-item"
/> />
</el-col> </el-form-item>
<el-col :span="8">
<rrOperation /> <rrOperation />
</el-col> </el-form>
</el-row>
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'--> <!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission"> <crudOperation :permission="permission">
<el-button <el-button
@@ -155,7 +157,8 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="update_optname" label="修改人"/> <el-table-column prop="update_optname" label="修改人"/>
<el-table-column prop="update_time" label="修改时间" :min-width="flexWidth('update_time',crud.data,'修改时间')" /> <el-table-column prop="update_time" label="修改时间"
:min-width="flexWidth('update_time',crud.data,'修改时间')"/>
<el-table-column <el-table-column
v-permission="['admin','Materialbase:edit','Materialbase:del']" v-permission="['admin','Materialbase:edit','Materialbase:del']"
fixed="right" fixed="right"
@@ -423,6 +426,17 @@ export default {
} }
</script> </script>
<style scoped> <style rel="stylesheet/scss" lang="scss" scoped>
.treeselect-main {
width: 204px;
line-height: 28px;
.vue-treeselect__placeholder {
line-height: 28px;
}
.vue-treeselect__control {
height: 28px !important;
}
}
</style> </style>

View File

@@ -94,7 +94,16 @@ export default {
name: 'SelectRawMaterialDialog', name: 'SelectRawMaterialDialog',
components: {rrOperation, pagination, Treeselect}, components: {rrOperation, pagination, Treeselect},
cruds() { cruds() {
return CRUD({ title: '物料', url: 'api/Materialbase', crudMethod: { ...crudMaterialbase }, optShow: {}}) return CRUD({
title: '物料',
url: 'api/Materialbase',
query: {
class_idStr: '1503644349995552768',
material_type_id: '1503644349995552768'
},
crudMethod: { ...crudMaterialbase },
optShow: {}}
)
}, },
mixins: [presenter(), header()], mixins: [presenter(), header()],
dicts: ['product_series'], dicts: ['product_series'],
@@ -183,18 +192,8 @@ export default {
this.$emit('tableChanged3', this.tableRadio) this.$emit('tableChanged3', this.tableRadio)
}, },
submit() { submit() {
// 处理单选
if (this.isSingle && this.tableRadio) {
crudSemirealrawmaterial.updateRawmaterial({ relation_id: this.relation_id, raw_material_id: this.tableRadio.material_id }).then(res => {
this.$emit('update:dialogShow', false) this.$emit('update:dialogShow', false)
this.$emit('tableChanged3', this.tableRadio) this.$emit('tableChanged3', this.tableRadio)
})
} else {
crudSemirealrawmaterial.updateRawmaterial({ relation_id: this.relation_id, raw_material_id: '' }).then(res => {
this.$emit('update:dialogShow', false)
this.$emit('tableChanged3', this.tableRadio)
})
}
}, },
loadClass({action, parentNode, callback}) { loadClass({action, parentNode, callback}) {
if (action === LOAD_CHILDREN_OPTIONS) { if (action === LOAD_CHILDREN_OPTIONS) {

View File

@@ -5,9 +5,43 @@
<div class="head-container"> <div class="head-container">
<!-- 搜索 --> <!-- 搜索 -->
<label class="el-form-item-label">模糊搜索</label> <label class="el-form-item-label">模糊搜索</label>
<el-input v-model="query.search" clearable size="small" placeholder="输入编码或者名称" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> <el-input v-model="query.search" clearable size="small" placeholder="输入编码或者名称" style="width: 200px;"
class="filter-item" @keyup.enter.native="crud.toQuery"/>
<rrOperation/> <rrOperation/>
</div> </div>
<el-dialog
:close-on-click-modal="false"
:visible.sync="selectRawMaterialDialog2"
title="扩展属性维护"
width="1000px"
>
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="120px">
<el-row>
<el-col :span="12">
<el-form-item label="物料" prop="material_code">
<el-input
v-model="form.material_code"
style="width: 280px;"
clearable
placeholder="点击进行选择物料"
@focus="selectRawMaterialDialog = true"
@clear="form.material_id =''"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所需原料g" prop="rate_qty">
<el-input-number v-model.number="form.rate_qty" style="width: 280px;"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="selectRawMaterialDialog2 = false">取消</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="submit">确认</el-button>
</div>
</el-dialog>
<!--表格渲染--> <!--表格渲染-->
<el-table <el-table
ref="table" ref="table"
@@ -28,15 +62,17 @@
<el-table-column prop="ymaterial_name" label="对应原材料名称" :min-width="180" show-overflow-tooltip/> <el-table-column prop="ymaterial_name" label="对应原材料名称" :min-width="180" show-overflow-tooltip/>
<el-table-column prop="ymaterial_spec" label="对应原材料规格" :min-width="180" show-overflow-tooltip/> <el-table-column prop="ymaterial_spec" label="对应原材料规格" :min-width="180" show-overflow-tooltip/>
<el-table-column prop="yclass_name" label="对应原材料系列" :min-width="120" show-overflow-tooltip/> <el-table-column prop="yclass_name" label="对应原材料系列" :min-width="120" show-overflow-tooltip/>
<el-table-column prop="rate_qty" label="所需原料g" :min-width="120" show-overflow-tooltip/>
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> <el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="addMaterial(scope.row)">添加原材料</el-button> <el-button type="text" size="small" @click="addMaterial(scope.row)">扩展属性维护</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<pagination/> <pagination/>
<SelectRawMaterialDialog ref="selectRawMaterialDialog" :dialog-show.sync="selectRawMaterialDialog" @tableChanged3="tableChanged3"/> <SelectRawMaterialDialog ref="selectRawMaterialDialog" :dialog-show.sync="selectRawMaterialDialog"
@tableChanged3="tableChanged3"/>
</div> </div>
</template> </template>
@@ -48,14 +84,25 @@ import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import SelectRawMaterialDialog from './SelectRawMaterialDialog' import SelectRawMaterialDialog from './SelectRawMaterialDialog'
const defaultForm = { relation_id: null, semi_material_id: null, raw_material_id: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null } const defaultForm = {
relation_id: null,
semi_material_id: null,
raw_material_id: null,
create_id: null,
create_name: null,
create_time: null,
update_optid: null,
update_optname: null,
update_time: null
}
export default { export default {
name: 'Semirealrawmaterial', name: 'Semirealrawmaterial',
components: {pagination, crudOperation, rrOperation, SelectRawMaterialDialog}, components: {pagination, crudOperation, rrOperation, SelectRawMaterialDialog},
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
return CRUD({ title: '半成品对应原材料', url: 'api/semirealrawmaterial', idField: 'relation_id', sort: 'relation_id,desc', return CRUD({
title: '半成品对应原材料', url: 'api/semirealrawmaterial', idField: 'relation_id', sort: 'relation_id,desc',
optShow: { optShow: {
add: false, add: false,
edit: false, edit: false,
@@ -63,28 +110,52 @@ export default {
download: false, download: false,
reset: false reset: false
}, },
crudMethod: { ...crudSemirealrawmaterial }}) crudMethod: {...crudSemirealrawmaterial}
})
}, },
data() { data() {
return { return {
selectRawMaterialDialog: false, selectRawMaterialDialog: false,
permission: { selectRawMaterialDialog2: false,
form: {
material_code: '',
material_id: '',
relation_id: '',
rate_qty: ''
}, },
rules: { permission: {},
} rules: {}
} }
}, },
methods: { methods: {
addMaterial(row) { addMaterial(row) {
this.$refs.selectRawMaterialDialog.setForm(row.relation_id) this.form.relation_id = row.relation_id
this.selectRawMaterialDialog = true this.selectRawMaterialDialog2 = true
this.$refs.selectRawMaterialDialog.crud.toQuery()
}, },
// 钩子在获取表格数据之前执行false 则代表不获取数据 // 钩子在获取表格数据之前执行false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() { [CRUD.HOOK.beforeRefresh]() {
return true return true
}, },
tableChanged3() { tableChanged3(row) {
this.form.material_id = row.material_id
this.form.material_code = row.material_code
},
submit() {
if (this.form.relation_id === '') {
this.crud.notify('请选择一条要设置的半成品', CRUD.NOTIFICATION_TYPE.INFO)
return
}
if (this.form.material_id === '') {
this.crud.notify('请设置物料', CRUD.NOTIFICATION_TYPE.INFO)
return
}
if (this.form.rate_qty === '') {
this.crud.notify('请设置重量比例', CRUD.NOTIFICATION_TYPE.INFO)
return
}
crudSemirealrawmaterial.updateRawmaterial(this.form).then(res => {
this.selectRawMaterialDialog2 = false
})
this.crud.toQuery() this.crud.toQuery()
} }
} }

View File

@@ -201,6 +201,7 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' import pagination from '@crud/Pagination'
import crudWorkProcedure from '@/api/wms/basedata/pdm/workProcedure' import crudWorkProcedure from '@/api/wms/basedata/pdm/workProcedure'
import MaterDtl from '@/views/wms/pub/MaterDialog' import MaterDtl from '@/views/wms/pub/MaterDialog'
import crudSemirealrawmaterial from "@/api/wms/basedata/master/semirealrawmaterial";
const defaultForm = { const defaultForm = {
inspection_item_id: null, inspection_item_id: null,

View File

@@ -121,6 +121,17 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="产品系列">
<treeselect
v-model="form.product_series"
:options="classes3"
:multiple="true"
:auto-load-root-options="false"
:load-options="loadChildNodes"
style="width: 200px;"
placeholder="请选择"
/>
</el-form-item>
<el-form-item label="生产物料规格"> <el-form-item label="生产物料规格">
<el-input v-model="form.spec" style="width: 200px;" /> <el-input v-model="form.spec" style="width: 200px;" />
</el-form-item> </el-form-item>
@@ -212,6 +223,9 @@ import pagination from '@crud/Pagination'
import DeviceItemDialog from '@/views/wms/pdm/device/DeviceItemDialog' import DeviceItemDialog from '@/views/wms/pdm/device/DeviceItemDialog'
import DeviceInfoDialog from '@/views/wms/pdm/device/DeviceInfoDialog' import DeviceInfoDialog from '@/views/wms/pdm/device/DeviceInfoDialog'
import CopyDialog from '@/views/wms/pdm/device/CopyDialog' import CopyDialog from '@/views/wms/pdm/device/CopyDialog'
import crudClassstandard from "@/api/wms/basedata/master/classstandard"
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import Treeselect, {LOAD_CHILDREN_OPTIONS} from '@riophae/vue-treeselect'
const defaultForm = { const defaultForm = {
device_code: null, device_code: null,
@@ -219,6 +233,7 @@ const defaultForm = {
product_area: 'A1', product_area: 'A1',
workprocedure_id: null, workprocedure_id: null,
ext_code: null, ext_code: null,
product_series: null,
material_id: null, material_id: null,
workorder_code: null, workorder_code: null,
device_code2: null, device_code2: null,
@@ -241,7 +256,7 @@ const defaultForm = {
} }
export default { export default {
name: 'Device', name: 'Device',
components: { pagination, crudOperation, rrOperation, udOperation, DeviceItemDialog, CopyDialog, DeviceInfoDialog }, components: {Treeselect, pagination, crudOperation, rrOperation, udOperation, DeviceItemDialog, CopyDialog, DeviceInfoDialog },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
dicts: ['is_used', 'IS_OR_NOT', 'product_area'], dicts: ['is_used', 'IS_OR_NOT', 'product_area'],
cruds() { cruds() {
@@ -268,7 +283,7 @@ export default {
permission: { permission: {
}, },
trueorfalse: [ { value: true, label: '是' }, { value: false, label: '否' }], trueorfalse: [ { value: true, label: '是' }, { value: false, label: '否' }],
classes3: [],
workList: [], workList: [],
tableLabel: [], tableLabel: [],
rules: { rules: {
@@ -310,6 +325,7 @@ export default {
}, },
created() { created() {
this.getWorkprocedure() this.getWorkprocedure()
this.initClass3()
}, },
methods: { methods: {
changeHeader(search, workprocedure_id) { changeHeader(search, workprocedure_id) {
@@ -323,6 +339,26 @@ export default {
format_is_used(is_used) { format_is_used(is_used) {
return is_used === '1' return is_used === '1'
}, },
initClass3() {
const param = {
parent_class_code: '07'
}
crudClassstandard.getClassType(param).then(res => {
const data = res.content
this.buildTree(data)
this.classes3 = data
})
},
buildTree(classes) {
classes.forEach(data => {
if (data.children) {
this.buildTree(data.children)
}
if (data.hasChildren && !data.children) {
data.children = null // 重点代码
}
})
},
changeEnabled(data, val) { changeEnabled(data, val) {
this.$confirm('此操作将 "' + this.dict.label.is_used[val] + '" ' + data.device_code + ', 是否继续', '提示', { this.$confirm('此操作将 "' + this.dict.label.is_used[val] + '" ' + data.device_code + ', 是否继续', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@@ -372,6 +408,22 @@ export default {
const d = JSON.parse(JSON.stringify(data)) const d = JSON.parse(JSON.stringify(data))
this.$refs.copyChiled.setForm(d) this.$refs.copyChiled.setForm(d)
}, },
// 获取子节点数据
loadChildNodes({action, parentNode, callback}) {
if (action === LOAD_CHILDREN_OPTIONS) {
crudClassstandard.getClass({pid: parentNode.id}).then(res => {
parentNode.children = res.content.map(function (obj) {
if (obj.hasChildren) {
obj.children = null
}
return obj
})
setTimeout(() => {
callback()
}, 100)
})
}
},
querytable() { querytable() {
this.crud.toQuery() this.crud.toQuery()
} }

View File

@@ -64,7 +64,7 @@
<el-table-column show-overflow-tooltip prop="material_code" width="250" label="物料编号" /> <el-table-column show-overflow-tooltip prop="material_code" width="250" label="物料编号" />
<el-table-column show-overflow-tooltip width="100" prop="material_name" label="物料名称" /> <el-table-column show-overflow-tooltip width="100" prop="material_name" label="物料名称" />
<el-table-column show-overflow-tooltip width="150" prop="class_name" label="物料类别" /> <el-table-column show-overflow-tooltip width="150" prop="class_name" label="物料类别" />
<el-table-column show-overflow-tooltip width="150" prop="total_qty" label="重量" /> <el-table-column show-overflow-tooltip width="150" prop="qty" label="重量" />
<el-table-column show-overflow-tooltip width="170" prop="need_qty" label="待入重量" /> <el-table-column show-overflow-tooltip width="170" prop="need_qty" label="待入重量" />
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="重量单位" /> <el-table-column show-overflow-tooltip prop="qty_unit_name" label="重量单位" />
</el-table> </el-table>

View File

@@ -249,7 +249,7 @@
<script> <script>
import CRUD, { crud, form } from '@crud/crud' import CRUD, { crud, form } from '@crud/crud'
import MaterDtl from '@/views/wms/pub/MaterDialog' import MaterDtl from '@/views/wms/pub/MaterDialog'
import BillDtl from '@/views/wms/storage_manage/rawproduct/rawProductIn/AddDtl' import BillDtl from '@/views/wms/storage_manage/rawproduct/rawProductOut/AddDtl'
import crudStorattr from '@/views/wms/storage_manage/basedata/basedata' import crudStorattr from '@/views/wms/storage_manage/basedata/basedata'
import crudProductOut from '@/views/wms/storage_manage/rawproduct/rawProductOut/rawproductout' import crudProductOut from '@/views/wms/storage_manage/rawproduct/rawProductOut/rawproductout'
import crudStructattr from '@/api/wms/basedata/st/structattr' import crudStructattr from '@/api/wms/basedata/st/structattr'

View File

@@ -59,15 +59,12 @@
@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 show-overflow-tooltip width="150" prop="sale_order_name" label="日期"/> <el-table-column show-overflow-tooltip width="150" prop="planproducestart_date" label="日期"/>
<el-table-column show-overflow-tooltip width="150" prop="customer_name" label="单据号"/> <el-table-column show-overflow-tooltip width="150" prop="workorder_code" label="单据号"/>
<el-table-column width="200" prop="customer_description" label="供应商"/> <el-table-column show-overflow-tooltip prop="material_code" width="250" label="物料编号"/>
<el-table-column show-overflow-tooltip prop="package_box_sn" width="250" label="物料编号"/> <el-table-column show-overflow-tooltip width="100" prop="material_name" label="物料名称"/>
<el-table-column show-overflow-tooltip width="100" prop="quanlity_in_box" label="物料名称"/> <el-table-column show-overflow-tooltip width="150" prop="pcsn" label="批次"/>
<el-table-column show-overflow-tooltip width="150" prop="container_name" label="物料类别"/> <el-table-column show-overflow-tooltip width="150" prop="plan_qty" label="重量"/>
<el-table-column show-overflow-tooltip width="150" prop="sap_pcsn" label="批次"/>
<el-table-column show-overflow-tooltip width="150" prop="product_name" label="重量"/>
<el-table-column show-overflow-tooltip width="170" prop="product_description" label="待入重量"/>
<el-table-column show-overflow-tooltip prop="width" label="重量单位"/> <el-table-column show-overflow-tooltip prop="width" label="重量单位"/>
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
@@ -97,7 +94,7 @@ export default {
cruds() { cruds() {
return CRUD({ return CRUD({
title: '用户', title: '用户',
url: '/api/in/rawAssist/getBillDtl', url: '/api/produceWorkorder',
crudMethod: {}, crudMethod: {},
optShow: { optShow: {
reset: true reset: true
@@ -130,7 +127,6 @@ export default {
}, },
methods: { methods: {
[CRUD.HOOK.beforeRefresh]() { [CRUD.HOOK.beforeRefresh]() {
this.crud.query.bill_type = '0001'
return true return true
}, },
objectSpanMethod({row, column, rowIndex, columnIndex}) { objectSpanMethod({row, column, rowIndex, columnIndex}) {
@@ -155,13 +151,9 @@ export default {
this.$emit('update:dialogShow', false) this.$emit('update:dialogShow', false)
}, },
submit() { submit() {
this.$emit('update:dialogShow', false) this.$emit('update:dialogShow', false)
this.rows = this.$refs.multipleTable.selection this.rows = this.$refs.multipleTable.selection
crudProductIn.queryBoxMater(this.rows).then(res => {
this.rows = res
this.$emit('tableChanged', this.rows) this.$emit('tableChanged', this.rows)
})
// this.form = this.$options.data().form // this.form = this.$options.data().form
} }
} }