| | |
| | | <script> |
| | | import { |
| | | Base64 |
| | | } from '@/js/Base64.js'; |
| | | } from '@/js/Base64.js'; |
| | | import { |
| | | appGetInfo, |
| | | dictGetInfo |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | largeMode: getApp().globalData.largeMode || false, |
| | | largeMode: getApp().globalData.largeMode || false, |
| | | title: this.translateSys("sorting"), |
| | | ClsID: "Distribution_CNTR_Detail", |
| | | ClsID2: "Picking_Result", |
| | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | // console.log(this.param); |
| | | const paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | | this.loadData(paramValue) |
| | | }, |
| | | methods: { |
| | |
| | | await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID); |
| | | //传入参数值 |
| | | if (paramValue) { |
| | | const attrs = paramValue.attrs || []; |
| | | (this.head_styledef?.form?.items || []).forEach(async (ele, index) => { |
| | | if (ele.name != "Layout") { |
| | | attrs.forEach(async (ele2, index2) => { |
| | | if (ele.fieldId == ele2.name) { |
| | | ele.value = ele2.value; |
| | | } |
| | | }); |
| | | } else { |
| | | ele.setting.colList.forEach(async (col) => { |
| | | if (col) { |
| | | attrs.forEach(async (ele2, |
| | | index2) => { |
| | | if (col.fieldId == ele2.name) { |
| | | col.value = ele2.value; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | this.setFormValues(paramValue) |
| | | } |
| | | |
| | | //加载初始界面 |
| | |
| | | var tip = result.info ? typeof result.info == 'string' ? result.info : |
| | | result.info.join('<br/>') : ''; |
| | | tip = tip || result.err_info |
| | | |
| | | |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: tip, |
| | |
| | | } else { |
| | | var tip = result.info ? typeof result.info == 'string' ? result.info : result.info |
| | | .join('<br/>') : ''; |
| | | tip = tip || result.err_info |
| | | tip = tip || result.err_info |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: tip, |