| | |
| | | <template> |
| | | <view class="uni-page-modal-5600"> |
| | | <view class="uni-page-modal-5600" :class="largeMode?'large-mode':''"> |
| | | <!-- 表头样式 --> |
| | | <view class="view-header"> |
| | | <view class="v-headStyle" v-for="(item,index) in head_styledef.form.items"> |
| | |
| | | </div> |
| | | <div class="dv-panel-button"> |
| | | <checkbox v-if="param.Sub_Page[1].Select_Button==true" :value="ii" |
| | | :checked="style.SelBut_Checked" /> |
| | | :checked="style.SelBut_Checked" /> |
| | | <!-- <text></text> --> |
| | | |
| | | <!-- <button type="primary" @click="savaDataObj(style,ii)" v-if="param.Sub_Page[1].OK_Button==true">保存</Button> --> |
| | |
| | | <script> |
| | | import { |
| | | Base64 |
| | | } from '@/js/Base64.js'; |
| | | } from '@/js/Base64.js'; |
| | | import { |
| | | appGetInfo, |
| | | dictGetInfo |
| | | } from "@/api/mobox.js" |
| | | import { |
| | | basisver_get, |
| | | getUIStyleInfo, |
| | | runCustomEvent, |
| | | dataObjCreate, |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | largeMode: getApp().globalData.largeMode || false, |
| | | title: this.translateSys("coding_disk"), |
| | | ClsID: 'CG_Detail', |
| | | param: {}, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | async getBasisVer() { |
| | | try { |
| | | const res = await basisver_get(); |
| | | const basisver = (res.ver || "").toLowerCase(); |
| | | return basisver; |
| | | } catch (ex) { |
| | | return ""; |
| | | } |
| | | }, |
| | | async loadData(paramValue) { |
| | | let clsDetailId = "CG_Detail"; |
| | | const basisver = await this.getBasisVer(); |
| | | if (basisver >= "v16.5") { |
| | | clsDetailId = "INV_Detail"; |
| | | } |
| | | this.ClsID = clsDetailId; |
| | | //获取数据类的自定义表单参数 |
| | | await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID); |
| | | //传入参数值 |
| | |
| | | //console.log(e.target) |
| | | this.focusOldFieldId = item.fieldId |
| | | getApp().onScan((result) => { |
| | | console.log(result.decodedata); |
| | | item.value = result.decodedata; |
| | | console.log(result); |
| | | item.value = result; |
| | | // uni.hideKeyboard(); |
| | | var $this = this; |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | |
| | | } |
| | | console.log($this.head_styledef); |
| | | if (data.result) { |
| | | $this.setFormValues( data.result) |
| | | } |
| | | $this.setFormValues(data.result) |
| | | } |
| | | } |
| | | |
| | | }).catch(ex => { |
| | |
| | | attr: a, |
| | | value: obj_attr[a] || "", |
| | | })); |
| | | |
| | | |
| | | var extinfo = enviroment; |
| | | extinfo.edit_dlg = { |
| | | type: 'small', //小窗口 |