模具 布产单的时候选择订单需要显示模具编码

This commit is contained in:
xielue 2023-09-18 11:48:50 +08:00
parent 6ceea49594
commit 50aaceaf0f
1 changed files with 37 additions and 40 deletions

View File

@ -8,29 +8,25 @@
<!-- 表格区 -->
<vxe-grid ref='xGrid' v-bind="gridOptions" @current-change="onSelectRow"></vxe-grid>
<vxe-table :row-config="{isCurrent:true}" border show-overflow keep-source ref="xTable" :height="table1Height" :data="detailsData">
<vxe-table :row-config="{ isCurrent: true }" border show-overflow keep-source ref="xTable" :height="table1Height"
:data="detailsData">
<vxe-column field="mold_scheme" title="模型" width="160" :params="editor_scheme" formatter="formatRef" ></vxe-column>
<vxe-column field="mold_scheme" title="模型名" width="160" :params="editor_scheme" formatter="formatRef"></vxe-column>
<vxe-column field="mold_scheme" title="模型编码" width="160" :params="{dataType:'object',valueField: 'id',textField: 'code'}" formatter="formatRef"></vxe-column>
<vxe-column field="production_type" title="布产类型" width="160" :params="options_production_type"
formatter='formatEnum' ></vxe-column>
formatter='formatEnum'></vxe-column>
<vxe-column field="mold_master_user_detail" title="师傅" width="160" :params="editor_staff" formatter="formatRef" ></vxe-column>
<vxe-column field="mold_master_user_detail" title="师傅" width="160" :params="editor_staff"
formatter="formatRef"></vxe-column>
<vxe-column field="manufacture_cycle" title="制作周期" width="160" formatter="formatDate" ></vxe-column>
<vxe-column field="draw_start_time" title="预计开始画图时间" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="split_design_time" title="分模设计时间预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="draw_time" title="出图时间预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="draw2D_time" title="出2D时间预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="draw3D_time" title="出3D时间预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="horizontal_frame_time" title="横架到厂日期预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="inlay_deep_hole_time" title="镶件深孔钻到厂日期预计" width="160" formatter="formatDate"
></vxe-column>
<vxe-column field="manufacture_cycle" title="制作周期" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="draw_start_time" title="预计开始画图时间" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="split_design_time" title="分模设计时间预计" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="draw_time" title="出图时间预计" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="draw2D_time" title="出2D时间预计" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="draw3D_time" title="出3D时间预计" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="horizontal_frame_time" title="横架到厂日期预计" width="160" formatter="formatDate"></vxe-column>
<vxe-column field="inlay_deep_hole_time" title="镶件深孔钻到厂日期预计" width="160" formatter="formatDate"></vxe-column>
</vxe-table>
</div>
@ -53,7 +49,7 @@ export default {
//
var pageData = {
options_production_type:[{value:'1',label:'正常布产'},{value:'2',label:'委托布产'}],
options_production_type: [{ value: '1', label: '正常布产' }, { value: '2', label: '委托布产' }],
keyName: 'ID',
tabKey: '1',
actions: {
@ -68,7 +64,7 @@ export default {
table1Height: 300,
downHeight: 0,
detailsData:[],
detailsData: [],
//
searchFormData: {
@ -150,6 +146,7 @@ export default {
],
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
},
editor_staff: {
dataType: "object",
valueField: "id",
@ -199,7 +196,7 @@ export default {
this.$mk.post({
url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/detail`,
url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/detail`,
loading: "加载中...",
data: { id: this.$mk.toBigInt(this.currentRowId) },
useBigInt: true
@ -258,7 +255,7 @@ export default {
let row2 = this.$refs.xTable.getCurrentRecord();
let row1 = this.$refs.xGrid.getCurrentRecord();
return {row1,row2};
return { row1, row2 };
},
loadData({ params }) {