copy from pages/chaituosaoma/form.vue
copy to pages/chaituosaoma/UnPackUnionBill.vue
| File was copied from pages/chaituosaoma/form.vue |
| | |
| | | <view class="form-item"> |
| | | <view class="title">托条码</view> |
| | | <view class="right"> |
| | | <input type="text" :focus="HBarCodePackFocus" v-model="HBarCode_Pack" @confirm="GetMeesageByBarCode_Pack(HBarCode_Pack)" /> |
| | | <input type="text" :focus="HBarCodePackFocus" v-model="HBarCode_Pack" |
| | | @confirm="GetMeesageByBarCode_Pack(HBarCode_Pack)" /> |
| | | </view> |
| | | <view class="right-icon"> |
| | | <uni-icons class="right-icon" type="scan" |
| | |
| | | </view> |
| | | <!-- 拆箱信息 --> |
| | | <view v-if="tabs == 0"> |
| | | <zb-table id="list-table" :fit="true" :style="{height: `${listTableHeight}px`}" :columns="columns" :data="listData" |
| | | <!-- <zb-table id="list-table" :fit="true" :style="{height: `${listTableHeight}px`}" :columns="columns" :data="listData" |
| | | :show-header="true" :border="true" :row-key="row => row.index" @toggleRowSelection="handleSelect" |
| | | @toggleAllSelection="handleSelectAll" /> |
| | | @toggleAllSelection="handleSelectAll" /> --> |
| | | |
| | | <view class="item-wrapper"> |
| | | <view v-for="(item, index) in listData" :key="index"> |
| | | <uni-card :title="item['物料名称']" :extra="`条码数量: ${item['条码个数']}`"> |
| | | <view class="detail" v-if="item['条码编号']"> |
| | | <text>条码编号:</text>{{item['条码编号']}} |
| | | </view> |
| | | <view class="detail" v-if="item['数量']"> |
| | | <text>数量:</text>{{item['数量']}} |
| | | </view> |
| | | <view class="detail" v-if="item['物料代码']"> |
| | | <text>物料代码:</text>{{item['物料代码']}} |
| | | </view> |
| | | <view class="detail" v-if="item['物料名称']"> |
| | | <text>物料名称:</text>{{item['物料名称']}} |
| | | </view> |
| | | <view class="detail" v-if="item['规格型号']"> |
| | | <text>规格型号:</text>{{item['规格型号']}} |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | <view class="over" v-if="listData.length == 0">暂无数据</view> |
| | | </view> |
| | | </view> |
| | | <!-- 单据信息 --> |
| | | <view v-if="tabs == 1"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="bottom-btn" id="bottom-btn"> |
| | | <button :class="EnableSubmit?'btn-a':'btn-c'" :disabled="!EnableSubmit" size="mini" @tap="cmdSubmit">拆托</button> |
| | | <button :class="EnableSubmit?'btn-a':'btn-c'" :disabled="!EnableSubmit" size="mini" |
| | | @tap="cmdSubmit">拆托</button> |
| | | <view style="flex: 1;"></view> |
| | | <!-- <button class="btn-d" size="mini" @tap="cmdDelete">删除</button> --> |
| | | <button class="btn-c" size="mini" @tap="cmdExit">退出</button> |
| | |
| | | HMaterNumber_Pack: "", //托条码对应物料代码 |
| | | listOption: [], |
| | | listData: [], |
| | | columns: [ |
| | | { |
| | | columns: [{ |
| | | name: 'index', |
| | | label: '序号', |
| | | width: 60, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | async HBarCodeFocusRefresh(){ |
| | | this.HBarCode = '' |
| | | this.HBarCodeFocus = false |
| | | await this.$nextTick() |
| | | this.HBarCodeFocus = true |
| | | async HBarCodeFocusRefresh() { |
| | | this.HBarCode = '' |
| | | this.HBarCodeFocus = false |
| | | await this.$nextTick() |
| | | this.HBarCodeFocus = true |
| | | }, |
| | | async HBarCodePackFocusRefresh(){ |
| | | this.HBarCode_Pack = '' |
| | | this.HBarCodePackFocus = false |
| | | await this.$nextTick() |
| | | this.HBarCodePackFocus = true |
| | | async HBarCodePackFocusRefresh() { |
| | | this.HBarCode_Pack = '' |
| | | this.HBarCodePackFocus = false |
| | | await this.$nextTick() |
| | | this.HBarCodePackFocus = true |
| | | }, |
| | | toScanCode() { |
| | | MpaasScan.scanCode((scanCode) => { |
| | |
| | | "HMaker": this.hform.HMaker, |
| | | }, |
| | | resFunction: (res) => { |
| | | let {data, count, Message} = res.data |
| | | if(count == 1){ |
| | | let { |
| | | data, |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | uni.showModal({ |
| | | title: '温馨提示', |
| | | content: Message, |
| | | confirmText: "新增", |
| | | cancelText: '关闭', |
| | | success: ({confirm,cancel}) => { |
| | | if(confirm) { |
| | | success: ({ |
| | | confirm, |
| | | cancel |
| | | }) => { |
| | | if (confirm) { |
| | | uni.redirectTo({ |
| | | url: "/pages/zutuosaoma/form" |
| | | url: "/pages/zutuosaoma/PackUnionBill" |
| | | }) |
| | | } |
| | | |
| | | if(cancel) { |
| | | |
| | | if (cancel) { |
| | | uni.navigateBack() |
| | | } |
| | | } |
| | | }) |
| | | }else { |
| | | } else { |
| | | uni.showToast({ |
| | | icon:'none', |
| | | icon: 'none', |
| | | title: Message |
| | | }) |
| | | } |
| | |
| | | } else if (this.OperationType == 2) { |
| | | |
| | | } |
| | | |
| | | |
| | | this.HBarCodePackFocusRefresh() |
| | | } |
| | | } |
| | |
| | | color: #fff; |
| | | } |
| | | } |
| | | |
| | | </style> |