From 50aaceaf0f1f2fee94e8d40768df7e652f20536c Mon Sep 17 00:00:00 2001 From: xielue Date: Mon, 18 Sep 2023 11:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7=20=E5=B8=83=E4=BA=A7?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E6=97=B6=E5=80=99=E9=80=89=E6=8B=A9=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=9C=80=E8=A6=81=E6=98=BE=E7=A4=BA=E6=A8=A1=E5=85=B7?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Middle/Mold/MoldOrder/selector.vue | 77 ++++++++++---------- 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/src/pages/Middle/Mold/MoldOrder/selector.vue b/src/pages/Middle/Mold/MoldOrder/selector.vue index 5aa523f..ad3ee7d 100644 --- a/src/pages/Middle/Mold/MoldOrder/selector.vue +++ b/src/pages/Middle/Mold/MoldOrder/selector.vue @@ -8,29 +8,25 @@ - + - + + + formatter='formatEnum'> - + - - - - - - - - + + + + + + + + @@ -52,8 +48,8 @@ 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,24 +64,24 @@ export default { table1Height: 300, downHeight: 0, - detailsData:[], + detailsData: [], //搜索区 searchFormData: { - code: '', + code: '', }, searchRules: [ - { key: "code", mode: "like" }, + { key: "code", mode: "like" }, ], searchFormItems: [ { 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: '重置' } }] } } ], - + //数据区 gridOptions: { @@ -150,6 +146,7 @@ export default { ], dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list` }, + editor_staff: { dataType: "object", valueField: "id", @@ -192,25 +189,25 @@ export default { getConfirmData() { return this.getSelectdRow(); }, - - onSelectRow({ row }) { - - this.currentRowId = row.id; - + onSelectRow({ row }) { + + this.currentRowId = row.id; + + 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 }).then(a => { - + this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].order_molds || [])); - + console.log(this.detailsData) - + }); }, onDateChange(date) { @@ -249,7 +246,7 @@ export default { value: value // 值 }); } - } + } return rules; // 返回搜索参数 @@ -257,8 +254,8 @@ export default { getSelectdRow() { let row2 = this.$refs.xTable.getCurrentRecord(); let row1 = this.$refs.xGrid.getCurrentRecord(); - - return {row1,row2}; + + return { row1, row2 }; }, loadData({ params }) { @@ -269,7 +266,7 @@ export default { data: params }); }, - + //add / log / setting toolbarClick(e) { if (e.name == "add") { @@ -292,7 +289,7 @@ export default { } }, - + onSearch() { this.$refs.xGrid.commitProxy('query') }