Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
| | |
| | | "Kf_OtherOutBill_PDA": { |
| | | "title": "其他出库单", |
| | | "disabledPlaceholder": "", |
| | | "placeholder_FIFOWarehouse": "" |
| | | "placeholder_FIFOWarehouse": "", |
| | | "stockOutStyleList": "出库类型" |
| | | }, |
| | | "SellOutBill_PDA": { |
| | | "title": "销售出库单" |
| | |
| | | <template> |
| | | <view style="padding: 20rpx 40rpx;"> |
| | | <view> |
| | | <view v-for="item in HTechParams"> |
| | | {{ item["分组名称"] }} |
| | | <uni-row :gutter="3"> |
| | | <uni-col :span="8" v-for="unit in item['参数列表']"> |
| | | <view> |
| | | <uni-tag :text="`${unit.HTechParamName}:${unit.HResult}`" type="primary" /> |
| | | <view v-for="item in HTechParams" style="padding-bottom: 20rpx;"> |
| | | <view class="row-head">{{ item["分组名称"] }}</view> |
| | | <uni-row :gutter="3" class="row-content"> |
| | | <uni-col class="equal-height-col" :span="8" v-for="unit in item['参数列表']"> |
| | | <view style="font-size: 28rpx;"> |
| | | {{ unit.HTechParamName }}:{{unit.HResult}} |
| | | </view> |
| | | </uni-col> |
| | | </uni-row> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { CommonUtils } from '@/utils/common'; |
| | | import { getUserInfo } from '@/utils/auth'; |
| | | import { |
| | | CommonUtils |
| | | } from '@/utils/common'; |
| | | import { |
| | | getUserInfo |
| | | } from '@/utils/auth'; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | }, |
| | | onLoad(e) { |
| | | let {HEquipID} = e |
| | | let { |
| | | HEquipID |
| | | } = e |
| | | this.loadBillMain(HEquipID) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .row-head { |
| | | border-radius: 10rpx 10rpx 0 0; |
| | | background-color: rgb(229, 236, 243); |
| | | padding: 0 12rpx; |
| | | font-family: "PingFang SC", "Microsoft YaHei", sans-serifs; |
| | | } |
| | | |
| | | .row-content { |
| | | width: 100%; |
| | | padding: 15rpx; |
| | | background: #f5f5f5; |
| | | word-break: break-all; |
| | | display: flex; |
| | | align-items: stretch; |
| | | flex-wrap: wrap; |
| | | border-collapse: collapse; |
| | | border: #f0f0f0 2px solid; |
| | | } |
| | | |
| | | .row-content:last-child { |
| | | border-radius: 0 0 10rpx 10rpx; |
| | | } |
| | | |
| | | .equal-height-col { |
| | | display: flex; |
| | | height: inherit; |
| | | padding: 1rpx; |
| | | justify-content: center; |
| | | color: rgba(124, 124, 124, 1.0); |
| | | font-family: "PingFang SC", "Microsoft YaHei", sans-serifs; |
| | | } |
| | | </style> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">出库类型:</view> |
| | | <zxz-uni-data-select v-if="showHSupName" required class="right" :localdata="stockOutStyleList" |
| | | <view class="title">{{$t('Kf_OtherOutBill_PDA.stockOutStyleList')}}:</view> |
| | | <zxz-uni-data-select required class="right" :localdata="stockOutStyleList" |
| | | dataKey="HName" dataValue="HName" v-model="hform.HStockStyle"> |
| | | </zxz-uni-data-select> |
| | | <view class="righton" v-if="!showHSupName"> |
| | | <input name="HSupName" disabled v-model="hform.HSupName" placeholder="请选择供应商" /> |
| | | </view> |
| | | <!-- <view class="righton" v-if="!showHSupName"> |
| | | <input name="stockOutSty" disabled v-model="hform.HStockStyle" placeholder="请选择出库类型" /> |
| | | </view> --> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title"> |
| | |
| | | this.hform.HBillNo = data.HBillNo |
| | | this.hform.HMainSourceBillType = data.HSourceBillType |
| | | this.hform.HSourceBillNo = data.HSourceBillNo |
| | | this.hform.HStockStyle = data.HStockStyle |
| | | |
| | | let index = this.arrayHMainSourceBillValue.findIndex(e => e == data |
| | | .HSourceBillType) |
| | |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">数量:</view> |
| | | <view class="righton"> |
| | | <input disabled v-model="hform.HQty_B" /> |
| | | <view class="right"> |
| | | <input v-model="hform.HQty_B" placeholder="请输入数量" /> |
| | | </view> |
| | | <view style="width: 12rpx;"></view> |
| | | <button class="btn-a" size="mini" @tap="changeQty">确定</button> |
| | | <!-- <view class="righton"> |
| | | <input disabled v-model="hform.HQty_B" /> |
| | | </view> --> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">容量:</view> |
| | |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | | async changeQty() { |
| | | let HBarCodeOld = this.hform.HBarCode_B |
| | | let HQtyOld = this.hform.HQty_B |
| | | this.hform.HBarCode = `*${this.hform.HBarCode_B}` |
| | | // 先删除 |
| | | await this.getCode(`*${this.hform.HBarCode_B}`) |
| | | // 再录入 |
| | | this.hform.HBarCode = HBarCodeOld |
| | | this.hform.HQty = HQtyOld |
| | | await this.getCode(this.hform.HBarCode_B) |
| | | this.hform.HQty = '' |
| | | this.hform.HBarCode = '' |
| | | }, |
| | | // 获取仓位 |
| | | async getStockPlaceRemote(HSPGroupID) { |
| | | try { |
| | |
| | | if (!this.hform.HStockPlaceName) { |
| | | this.hform.HStockPlaceID = 0 |
| | | } |
| | | |
| | | console.log('HBarCode: ',HBarCode); |
| | | var sOldBarCode = HBarCode |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | |
| | | margin-top: 30rpx; |
| | | float: right; |
| | | } |
| | | .btn-a { |
| | | background-color: #3A78FF; |
| | | color: #fff; |
| | | font-size: 28rpx; |
| | | } |
| | | </style> |
| | |
| | | } |
| | | }, |
| | | (err) => { |
| | | console.err(err) |
| | | console.error(err) |
| | | this.barCodeCall = false |
| | | } |
| | | ) |
| | |
| | | } |
| | | }, |
| | | (err) => { |
| | | console.err(err) |
| | | console.error(err) |
| | | }, |
| | | "POST" |
| | | ) |