模具 布产单的时候选择订单需要显示模具编码
This commit is contained in:
parent
6ceea49594
commit
50aaceaf0f
|
|
@ -8,29 +8,25 @@
|
||||||
<!-- 表格区 -->
|
<!-- 表格区 -->
|
||||||
<vxe-grid ref='xGrid' v-bind="gridOptions" @current-change="onSelectRow"></vxe-grid>
|
<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"
|
<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="manufacture_cycle" title="制作周期" width="160" formatter="formatDate"></vxe-column>
|
||||||
<vxe-column field="draw_start_time" title="预计开始画图时间" width="160" formatter="formatDate"
|
<vxe-column field="draw_start_time" title="预计开始画图时间" width="160" formatter="formatDate"></vxe-column>
|
||||||
></vxe-column>
|
<vxe-column field="split_design_time" title="分模设计时间预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
<vxe-column field="split_design_time" title="分模设计时间预计" width="160" formatter="formatDate"
|
<vxe-column field="draw_time" title="出图时间预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
></vxe-column>
|
<vxe-column field="draw2D_time" title="出2D时间预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
<vxe-column field="draw_time" title="出图时间预计" width="160" formatter="formatDate"
|
<vxe-column field="draw3D_time" title="出3D时间预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
></vxe-column>
|
<vxe-column field="horizontal_frame_time" title="横架到厂日期预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
<vxe-column field="draw2D_time" title="出2D时间预计" width="160" formatter="formatDate"
|
<vxe-column field="inlay_deep_hole_time" title="镶件深孔钻到厂日期预计" width="160" formatter="formatDate"></vxe-column>
|
||||||
></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>
|
</vxe-table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -52,8 +48,8 @@ export default {
|
||||||
|
|
||||||
// 页面数据变量
|
// 页面数据变量
|
||||||
var pageData = {
|
var pageData = {
|
||||||
|
|
||||||
options_production_type:[{value:'1',label:'正常布产'},{value:'2',label:'委托布产'}],
|
options_production_type: [{ value: '1', label: '正常布产' }, { value: '2', label: '委托布产' }],
|
||||||
keyName: 'ID',
|
keyName: 'ID',
|
||||||
tabKey: '1',
|
tabKey: '1',
|
||||||
actions: {
|
actions: {
|
||||||
|
|
@ -68,24 +64,24 @@ export default {
|
||||||
table1Height: 300,
|
table1Height: 300,
|
||||||
downHeight: 0,
|
downHeight: 0,
|
||||||
|
|
||||||
detailsData:[],
|
detailsData: [],
|
||||||
|
|
||||||
//搜索区
|
//搜索区
|
||||||
searchFormData: {
|
searchFormData: {
|
||||||
code: '',
|
code: '',
|
||||||
},
|
},
|
||||||
searchRules: [
|
searchRules: [
|
||||||
{ key: "code", mode: "like" },
|
{ key: "code", mode: "like" },
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
searchFormItems: [
|
searchFormItems: [
|
||||||
{ field: 'code', title: '订单号', span: 5, itemRender: { name: '$input', props: { placeholder: '请输入订单号' } } },
|
{ field: 'code', title: '订单号', span: 5, itemRender: { name: '$input', props: { placeholder: '请输入订单号' } } },
|
||||||
|
|
||||||
|
|
||||||
{ span: 4, itemRender: { name: '$buttons', children: [{ props: { type: 'submit', content: '搜索', status: 'primary' } }, { props: { type: 'reset', content: '重置' } }] } }
|
{ span: 4, itemRender: { name: '$buttons', children: [{ props: { type: 'submit', content: '搜索', status: 'primary' } }, { props: { type: 'reset', content: '重置' } }] } }
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
//数据区
|
//数据区
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
|
|
@ -150,6 +146,7 @@ export default {
|
||||||
],
|
],
|
||||||
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
|
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
|
||||||
},
|
},
|
||||||
|
|
||||||
editor_staff: {
|
editor_staff: {
|
||||||
dataType: "object",
|
dataType: "object",
|
||||||
valueField: "id",
|
valueField: "id",
|
||||||
|
|
@ -192,25 +189,25 @@ export default {
|
||||||
getConfirmData() {
|
getConfirmData() {
|
||||||
return this.getSelectdRow();
|
return this.getSelectdRow();
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectRow({ row }) {
|
|
||||||
|
|
||||||
this.currentRowId = row.id;
|
|
||||||
|
|
||||||
|
onSelectRow({ row }) {
|
||||||
|
|
||||||
|
this.currentRowId = row.id;
|
||||||
|
|
||||||
|
|
||||||
this.$mk.post({
|
this.$mk.post({
|
||||||
url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/detail`,
|
url: `${BASE_URL.BASE_URL}/MoldOrder/v1/mold/order/detail`,
|
||||||
loading: "加载中...",
|
loading: "加载中...",
|
||||||
data: { id: this.$mk.toBigInt(this.currentRowId) },
|
data: { id: this.$mk.toBigInt(this.currentRowId) },
|
||||||
useBigInt: true
|
useBigInt: true
|
||||||
}).then(a => {
|
}).then(a => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].order_molds || []));
|
this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].order_molds || []));
|
||||||
|
|
||||||
console.log(this.detailsData)
|
console.log(this.detailsData)
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onDateChange(date) {
|
onDateChange(date) {
|
||||||
|
|
@ -249,7 +246,7 @@ export default {
|
||||||
value: value // 值
|
value: value // 值
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return rules; // 返回搜索参数
|
return rules; // 返回搜索参数
|
||||||
|
|
@ -257,8 +254,8 @@ export default {
|
||||||
getSelectdRow() {
|
getSelectdRow() {
|
||||||
let row2 = this.$refs.xTable.getCurrentRecord();
|
let row2 = this.$refs.xTable.getCurrentRecord();
|
||||||
let row1 = this.$refs.xGrid.getCurrentRecord();
|
let row1 = this.$refs.xGrid.getCurrentRecord();
|
||||||
|
|
||||||
return {row1,row2};
|
return { row1, row2 };
|
||||||
},
|
},
|
||||||
loadData({ params }) {
|
loadData({ params }) {
|
||||||
|
|
||||||
|
|
@ -269,7 +266,7 @@ export default {
|
||||||
data: params
|
data: params
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//add / log / setting
|
//add / log / setting
|
||||||
toolbarClick(e) {
|
toolbarClick(e) {
|
||||||
if (e.name == "add") {
|
if (e.name == "add") {
|
||||||
|
|
@ -292,7 +289,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onSearch() {
|
onSearch() {
|
||||||
this.$refs.xGrid.commitProxy('query')
|
this.$refs.xGrid.commitProxy('query')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue