3354 lines
117 KiB
Vue
Executable File
3354 lines
117 KiB
Vue
Executable File
<template>
|
|
<view class="simple-content">
|
|
<view class="header-top">
|
|
<view class="header-top-organzie" style="">
|
|
<text class="header-row-title-class">当前组织</text>
|
|
<view class="header-top-organzie-select">
|
|
<picker @change="orgChange" :value="index" :range="orgArry" range-key="FNAME" style="width: 100%;">
|
|
<view class="header-top-organzie-content">{{orgArry[index].FNAME}}</view>
|
|
</picker>
|
|
</view>
|
|
<image class="header-top-organzie-img" src="@/static/login/icon-pull.png"/>
|
|
</view>
|
|
|
|
<view class="header-top-date">
|
|
<view class="header-top-data-select" @click="creatDatePicker()">{{creatlist[0].detail}}</view>
|
|
<!-- <image class="" src="@/static/login/icon-pull.png" style="height: 32rpx;width: 32rpx;padding-left: 10rpx;position: absolute;right: 0;"></image> -->
|
|
<date-time-picker ref='creatTime' :indicatorStyle='indicatorStyle' :type='type' :datestring='dateString'
|
|
@change='creatTimeChange'>
|
|
</date-time-picker>
|
|
</view>
|
|
</view>
|
|
<view v-if="currentTranType=='SP_OUTSTOCK'">
|
|
<view class="header-row-class">
|
|
<text decode="true" class="header-row-title-class">源单类型</text>
|
|
<xfl-select :list="billTypeList" :listOrigin="billTypeList" :clearable="false" :showItemNum="5" :isCanInput="false"
|
|
@change="billTypeChange" class="header-row-select-class" ref="billTypeList"
|
|
:defaultSelectText="billTypeSelectText"/>
|
|
</view>
|
|
</view>
|
|
<view style="height: 10rpx;width: 100%;"></view>
|
|
<view class="header-row-class" v-if="currentTranType=='SP_OUTSTOCK'">
|
|
<p class="header-row-title-class">源单编号</p>
|
|
<view style="flex: 1 1;">
|
|
<input type="text" style="font-size: 32rpx;" :class="[sourceBillNoDisable?'header-row-input-gray-class':'header-row-input-white-class']"
|
|
v-model="currentBarCodeInfo.FSourceBillNo" :disabled="sourceBillNoDisable" :focus="sourceBillNoFocus"
|
|
@confirm="sourceBillNoInfoConfirm" :key="key">
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png"
|
|
v-show="showScan && !sourceBillNoDisable" @click="scan('sourceBillScan')"></image>
|
|
</view>
|
|
<view style="height: 10rpx;width: 100%;"></view>
|
|
<view >
|
|
<view class="header-row-class">
|
|
<text decode="true" class="header-row-title-class">生产车间</text>
|
|
<xfl-select :list="deptInfosChanged" :listOrigin="deptInfosChanged" :clearable="false" :showItemNum="5" :isCanInput="false"
|
|
@change="deptChange" class="header-row-select-class" ref="deptInfosChanged"/>
|
|
</view>
|
|
</view>
|
|
<view style="height: 10rpx;width: 100%;"></view>
|
|
<view class="header-row-class">
|
|
<text class="header-row-title-class">生产编号</text>
|
|
<view style="flex: 1 1;">
|
|
<input type="text" style="font-size: 32rpx;" class="header-row-input-white-class"
|
|
v-model="productBarCode" @confirm="productBarCodeConfirm"/>
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png" @click="scan('productBarCode')"></image>
|
|
</view>
|
|
|
|
<view class="header-row-class" v-if="currentTranType == 'STK_MisDelivery' || currentTranType == 'STK_MisCellaneous'
|
|
|| currentTranType == 'SP_InStock'">
|
|
<p class="header-row-title-class">备 注</p>
|
|
<view style="flex: 1 1;">
|
|
<input type="text" style="font-size: 32rpx;" class="header-row-input-white-class"
|
|
v-model="note" @confirm="noteConfirm" :focus="noteFocus"/>
|
|
</view>
|
|
</view>
|
|
<!-- <view >
|
|
<view class="header-row-class">
|
|
<text decode="true" class="header-row-title-class">产品名称</text>
|
|
<xfl-select :list="productInfoChanged" :clearable="false" :showItemNum="5" :isCanInput="false"
|
|
@change="productChange" class="header-row-select-class" ref="productInfoChanged"/>
|
|
</view>
|
|
</view> -->
|
|
|
|
<view style="height: 32rpx;"></view>
|
|
<view class="separate"></view>
|
|
|
|
<view class="detail-tabs-class">
|
|
<!-- 正操作 -->
|
|
<view @tap="detailTabIndex=4" :class="[detailTabIndex==4?'detail-tabs-btn-gray-class':'detail-tabs-btn-handle-class']">正操作</view>
|
|
<view style="border-left-width:1.5px; border-left-color: #E5E5E5; border-left-style: solid; height:40rpx; flex-grow: 0; flex-shrink: 0;"></view>
|
|
<!-- 源单 -->
|
|
<view @tap="detailTabIndex=1" v-if="currentTranType=='SP_OUTSTOCK'" :class="[detailTabIndex==1?'detail-tabs-btn-gray-class':'detail-tabs-btn-base-class']">源单信息</view>
|
|
<view style="border-left-width:1.5px; border-left-color: #E5E5E5; border-left-style: solid; height:40rpx; flex-grow: 0; flex-shrink: 0;"></view>
|
|
<!-- 已扫描 -->
|
|
<view @tap="detailTabIndex=3" :class="[detailTabIndex==3?'detail-tabs-btn-gray-class':'detail-tabs-btn-yes-class']">已扫描</view>
|
|
<view style="border-left-width:1.5px; border-left-color: #E5E5E5; border-left-style: solid; height:40rpx; flex-grow: 0; flex-shrink: 0;"></view>
|
|
<!-- 汇总 -->
|
|
<view @tap="detailTabIndex=2" :class="[detailTabIndex==2?'detail-tabs-btn-gray-class':'detail-tabs-btn-total-class']">汇总</view>
|
|
</view>
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">条 码</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-white-class" type="text" @confirm="barcodeConfirm()"
|
|
v-model="FBarcodeNumber" :focus="barcodeNumberFcous" @tap="showBarcodeNumberFcous" :key="key"/>
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png"
|
|
v-show="showScan" @click="scan('barCodeScan')"></image>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">数 量</p>
|
|
<view style="flex: 1 1; display: flex; flex-direction: row;">
|
|
<input type="text" v-model="currentBarCodeInfo.FQty" @confirm="QtyConfirm()" :focus="QtyFocus"
|
|
:disabled="barcodeQtyDisabled" :class="[!barcodeQtyDisabled?'detail-row-white-class':'detail-row-gray-class']"
|
|
style="width:300rpx; margin-right:20rpx;"/>
|
|
<view style="height:60rpx; line-height:60rpx;">{{currentBarCodeInfo.FUNITNAME}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 辅助单位数量 外购入库&生产领料显示-->
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">辅助数量</p>
|
|
<view style="flex: 1 1;">
|
|
<input type="number" v-model="FSECUNITQTY" @confirm="FSECUNITQTYConfirm()"
|
|
:disabled="!FISSECUNIT" :focus="FSECUNITQTYFocus"
|
|
:class="[FISSECUNIT?'detail-row-white-class':'detail-row-gray-class']"/>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">箱 数</p>
|
|
<view style="flex: 1 1;">
|
|
<input type="number" v-model="currentBarCodeInfo.FBoxQty" @confirm="BoxConfirm()" :disabled="barcodeQtyDisabled" :focus="BoxFocus"
|
|
:class="[!barcodeQtyDisabled?'detail-row-white-class':'detail-row-gray-class']"/>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class-b" v-show="detailTabIndex==4 && isShowRBMaterial">
|
|
<p class="detail-row-title-class-b">退料类型</p>
|
|
<view style="width: 24rpx;"></view>
|
|
<!-- <view style="flex: 1 1;"> -->
|
|
<xfl-select :list="backResonList" :listOrigin="backResonList" :clearable="false" :showItemNum="5" :isCanInput="false" ref="backResonList"
|
|
@change="backResonChange" style="font-size: 32rpx;"
|
|
class="detail-row-white-class-b" :defaultSelectText="backResonSelectText"/>
|
|
<!-- </view> -->
|
|
</view>
|
|
|
|
<!-- 库存状态 -->
|
|
<view class="header-row-class" v-if="detailTabIndex==4 && stockStatus">
|
|
<p class="header-row-title-class">库存状态</p>
|
|
<xfl-select :list="stockStatusList" :listOrigin="stockStatusList" :clearable="false" :showItemNum="5"
|
|
@change="stockStatusChange" :isCanInput="false" ref="stockStatusList"
|
|
class="header-row-select-class" :defaultSelectText="stockStatusSelectText" />
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="isShowStock & detailTabIndex==4">
|
|
<p class="detail-row-title-class">存放位置</p>
|
|
<view style="flex: 1 1;">
|
|
<input :key="key" class="detail-row-white-class" v-model="currentBarCodeInfo.FLocation"
|
|
@confirm="locationConfirm()" :focus="locationFocus"/>
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png"
|
|
v-show="showScan && isShowStock" @click="scan('StockScan')"></image>
|
|
</view>
|
|
|
|
<view v-if="!isShowStock & detailTabIndex==4">
|
|
<view class="detail-row-class">
|
|
<p class="detail-row-title-class">仓 库</p>
|
|
<view style="flex: 1 1;">
|
|
<input :key="key" class="detail-row-white-class" v-model="currentBarCodeInfo.FSCStockNumber"
|
|
@confirm="FSCStockNumberConfirm()" :focus="FSCStockNumberFocus"/>
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png"
|
|
v-show="showScan && !isShowStock" @click="scan('stockStorScan')"></image>
|
|
</view>
|
|
<view class="detail-row-class">
|
|
<p class="detail-row-title-class">仓 位</p>
|
|
<view style="flex: 1 1;">
|
|
<input :key="key" :class="[!stockDisabled?'detail-row-white-class':'detail-row-gray-class']"
|
|
v-model="currentBarCodeInfo.FSCSPNumber" :disabled="stockDisabled"
|
|
@confirm="FSCSPNumberConfirm()" :focus="FSCSPNumberFocus"/>
|
|
</view>
|
|
<image src="../../static/img/scan-blue.png"
|
|
v-show="showScan && !isShowStock && !stockDisabled" @click="scan('stockPlaceScan')"></image>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">物料代码</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-gray-class" disabled="true" type="text" v-model="currentBarCodeInfo.FItemNumber" />
|
|
</view>
|
|
<view style="flex: 1 1;">
|
|
<view class="detail-row-white-class-stock" @click="timeStock">
|
|
即时库存
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">物料名称</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-gray-class" disabled="true" v-model="currentBarCodeInfo.FItemName" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">规格型号</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-gray-class" disabled="true" v-model="currentBarCodeInfo.FModel" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex==4">
|
|
<p class="detail-row-title-class">辅助属性</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-gray-class" disabled="true" v-model="currentBarCodeInfo.FAuxPropName" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-row-class" v-if="detailTabIndex == 4">
|
|
<p class="detail-row-title-class">批 号</p>
|
|
<view style="flex: 1 1;">
|
|
<input class="detail-row-gray-class" disabled="true" v-model="currentBarCodeInfo.FLOT" />
|
|
</view>
|
|
</view>
|
|
|
|
<!--源单信息-->
|
|
<view class="table" v-if="detailTabIndex==1">
|
|
<z-table :tableData='baseTableData' :columns='baseColumns' />
|
|
</view>
|
|
|
|
<!--汇总-->
|
|
<view class="table" v-if="detailTabIndex==2">
|
|
<z-table :tableData='totalTableData' :columns='totalColumns' />
|
|
</view>
|
|
|
|
<view class="table" v-show="detailTabIndex==3">
|
|
<z-table :tableData='yesTableData' :columns='yesColumns' showSelect @onSelect='tableSelect' />
|
|
</view>
|
|
|
|
<view class="header-row-btn-class" v-show="showResult || detailTabIndex != 3">
|
|
<view :class="[detailTabIndex==4 ? 'header-row-btn-class-commit' : 'commitBtnOther']"
|
|
@click="commitBtnClick()" :disabled="isCommitBtnDisable">提交</view>
|
|
<view class="header-row-btn-class-clear" @click="clearBtnClick" v-show="detailTabIndex==4">清空</view>
|
|
</view>
|
|
<view class="header-row-btn-class-del" @click="delBtnClick" v-show="!showResult & detailTabIndex==3">删除</view>
|
|
<opsoft-dialog-notice
|
|
:dialogNoticeShow="showDialog"
|
|
:dialogNoticeType="dialogNoticeType"
|
|
:dialogNoticeTitle="dialogNoticeTitle"
|
|
:dialogNoticeContent="dialogNoticeContent"
|
|
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
|
>
|
|
</opsoft-dialog-notice>
|
|
<opsoft-dialog
|
|
@dialogCancelClick="dialogCancelClick"
|
|
@dialogConfirmClick="dialogConfirmClick"
|
|
:dialogContent="dialogContent"
|
|
:dialogTitle="dialogTitle"
|
|
:dialogShow="dialogShow"
|
|
></opsoft-dialog>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue';
|
|
import zTable from "../z-table/z-table.vue";
|
|
import uniTag from "../../components/uni-badge/uni-badge.vue";
|
|
import xflSelect from '../xfl-select/xfl-select.vue';
|
|
import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue';
|
|
import DateTimePicker from '@/components/bory-dateTimePickerWithOutTime/bory-dateTimePickerWithOutTime.vue';
|
|
const commonUtil = require('../../common/util.js');
|
|
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
|
import opsoftDialog from '@/components/opsoft-dialog/opsoft-dialog.vue'
|
|
import errorStrUntil from '@/common/errorStrUntil.js';
|
|
const qtyControlUtil = require('@/common/qtyControl.js');
|
|
|
|
import {
|
|
mapState,
|
|
mapMutations
|
|
} from 'vuex';
|
|
var _self;
|
|
export default {
|
|
data() {
|
|
return {
|
|
dialogNoticeContent:'',
|
|
dialogNoticeTitle:'',
|
|
dialogNoticeType:'',
|
|
showDialog:false,
|
|
|
|
dialogShow:false,
|
|
dialogTitle:'',
|
|
dialogContent:'',
|
|
dialogType:'',
|
|
dialogParams:new Object,
|
|
|
|
// 日期选择
|
|
dateString: '',
|
|
type: 'date',
|
|
creatlist: [{
|
|
type: 'date',
|
|
detail: '选择开始时间'
|
|
}],
|
|
curDate: '',
|
|
|
|
FUSEFULDATE:'',
|
|
stockStatusList:[],
|
|
stockStatusSelectText:'',
|
|
FSTOCKSTATUSNAME:'',
|
|
FSTOCKSTATUSID:'',
|
|
|
|
FKEEPERID:'',
|
|
FKEEPERTYPEID:'',
|
|
FOWNERID:'',
|
|
FOWNERTYPEID:'',
|
|
|
|
FISSECUNIT:false, //是否启用辅助单位数量
|
|
FSECUNITQTY:'',
|
|
FSECUNITID:'',
|
|
FSECUNITQTYFocus:false,
|
|
|
|
productBarCode:'',
|
|
productNO:'',
|
|
FPRODUCTID:'',
|
|
dbAlise:'',
|
|
userName:'',
|
|
showScan:true,
|
|
|
|
FDEPTID:'',
|
|
FSUPPLYID:'',
|
|
FCUSTID:'',
|
|
|
|
isShowPUpload:false,
|
|
// showCashTips:false,
|
|
loadCash:false,
|
|
pageCashInfo: new Object(),
|
|
isShowRBMaterial:false,
|
|
FBackReson:"",
|
|
backRID:"",
|
|
orgBRList:[],
|
|
backResonList:[],
|
|
BRListIndex:"",
|
|
backResonSelectText:"请选择",
|
|
FDate:"",
|
|
stockNav:false,
|
|
showErrTips:false,
|
|
errDetailsList:[],
|
|
errDetails:[],
|
|
FDetailID:"",
|
|
FUnitID:"",
|
|
isShowOrg:true,
|
|
orgArry:[{name:"请选择组织", key:"", FName:""}],
|
|
orgFItemID:'',
|
|
index:0,
|
|
isChangedOrg:false,
|
|
supplierInfosChanged:[],
|
|
customerInfosChanged:[],
|
|
deptInfosChanged:[],
|
|
productInfoChanged:[],
|
|
FSourceTranType:"",
|
|
storageLocation:"",
|
|
storageFSCSPNumber:"",
|
|
storageFSCStockNumber:"",
|
|
stockDisabled:false,
|
|
FIsStockMgr:false,
|
|
showResult:true,
|
|
FBarcodeNumber:"",
|
|
//仓库位置存放
|
|
stockStore:"",
|
|
//仓位位置存放
|
|
stockPlaceStore:"",
|
|
//位置回车是否检查数量
|
|
FIsControlQty: false,
|
|
//位置回车辅助属性检查
|
|
// FOtherControl: "",
|
|
FISCHECKLOT:false,
|
|
FISCHECKAUX:false,
|
|
FISCHECKKFDATE:false,
|
|
|
|
|
|
FSCSPNumberFocus:false,
|
|
FSCStockNumberFocus:false,
|
|
QtyFocus:false,
|
|
BoxFocus:false,
|
|
|
|
isShowStock:true,
|
|
isCommitBtnDisable:false,
|
|
isShowBillRowNo:false,
|
|
isClosedPopup:false,
|
|
isExitRowNo:0,
|
|
isShowRowNoSel:false,
|
|
RowNoTableData:[],
|
|
RowNoColumns:[
|
|
{ title: "源单行号", key: "FMOENTRYID", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FMOBILLNO", width: 350, formatNum: false },
|
|
{ title: "用料清单", key: "FSRCBILLNO", width: 350, formatNum: false },
|
|
],
|
|
RowNo:"",
|
|
|
|
sourceBillTempList:[],
|
|
|
|
billTypeSelectText:"请选择",
|
|
billTypeList:[],
|
|
fNameSelectText0:"",
|
|
fNameSelectText1:"",
|
|
billTypeFocus:true,
|
|
|
|
sourceBillNoDisable:false,
|
|
sourceBillNoFocus:false,
|
|
|
|
deptDisabled:true,
|
|
deptFocus:false,
|
|
|
|
barcodeNumberFcous:false,
|
|
barcodeQtyDisabled:true,
|
|
|
|
locationFocus:false,
|
|
detailTabIndex:4,
|
|
key:1,
|
|
|
|
currentBarCodeInfo: new Object(),
|
|
|
|
barcodeList:[],
|
|
sourceBillNoList:[],
|
|
boxTempList:[],
|
|
commitList:[],
|
|
selectedList: [],
|
|
totalTableData: [],
|
|
baseTableData: [],
|
|
TempBaseTableData:[],
|
|
FSourceBillNoList:[],
|
|
yesTableData: [],
|
|
//表格选择框显示
|
|
showSelect: true,
|
|
tableSelectList: [],
|
|
//汇总
|
|
totalColumns: [],
|
|
//已扫描
|
|
yesColumns: [{ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "箱码", key: "FBoxNumber", width: 350, formatNum: false },
|
|
{ title: "条码", key: "FBarcodeNumber", width: 350, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "批号", key: "FBatchNO", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "保质期", key: "FKFPeriod", width: 350, formatNum: false },
|
|
{ title: "生产日期", key: "FKFDate", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 350 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false },
|
|
{ title: "仓库", key: "FStockNumber", width: 200, formatNum: false },
|
|
{ title: "仓位", key: "FStockPlaceNumber", width: 200, formatNum: false }],
|
|
//源单信息
|
|
baseColumns: [],
|
|
billTypeDefaultList: new Array(),
|
|
note: '',
|
|
noteFocus: '',
|
|
stockStatus: true,
|
|
}
|
|
},
|
|
|
|
beforeMount() {
|
|
_self = this;
|
|
_self.dbAlise = uni.getStorageSync("dbAlise");
|
|
_self.userName = uni.getStorageSync("userName");
|
|
this.confirmCurrentTranType();
|
|
this.getOrgList();
|
|
this.basecolumChoose();
|
|
//当前时间
|
|
let date = new Date();
|
|
this.curDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
|
this.creatlist[0].detail = this.curDate;
|
|
|
|
|
|
this.$forceUpdate();
|
|
if (this.stockStatus) {
|
|
this.getStockStatusList();
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.judgeCash();
|
|
},
|
|
beforeUpdate() {},
|
|
updated() {
|
|
if(this.$refs.stockStatusList){
|
|
this.$refs.stockStatusList.selectText = this.FSTOCKSTATUSNAME;
|
|
}
|
|
},
|
|
watch:{},
|
|
|
|
props: {
|
|
currentTranType: {
|
|
type: [String, Number],
|
|
}
|
|
},
|
|
|
|
components: {
|
|
zTable,
|
|
uniTag,
|
|
xflSelect,
|
|
uniPopupDialog,
|
|
DateTimePicker,
|
|
opsoftDialogNotice,
|
|
opsoftDialog
|
|
},
|
|
|
|
computed: {
|
|
barcodeRule(){
|
|
if(this.sysParameters) {
|
|
if(this.sysParameters.hasOwnProperty("BarcodeRuleForVerification")) {
|
|
let rule = this.sysParameters["BarcodeRuleForVerification"];
|
|
if (rule) {
|
|
return rule;
|
|
}
|
|
}
|
|
}
|
|
|
|
return "";
|
|
},
|
|
indicatorStyle() {
|
|
return {
|
|
background: 'rgba(255,0,0,.2)',
|
|
height: '40px',
|
|
};
|
|
},
|
|
|
|
...mapState(['userInfo', "deptInfos", "customerInfos", "supplierInfos", "sysParameters"])
|
|
},
|
|
|
|
methods: {
|
|
dialogNoticeConfirmClick(){
|
|
this.showDialog = false;
|
|
},
|
|
dialogNoticeProps(err,type){
|
|
err = errorStrUntil.handle(err);
|
|
this.showDialog = true;
|
|
this.dialogNoticeType = 'error';
|
|
this.dialogNoticeTitle = '异常提示';
|
|
if(type=='success'){
|
|
this.dialogNoticeType = 'success';
|
|
this.dialogNoticeTitle = '执行成功';
|
|
}
|
|
this.dialogNoticeContent = err;
|
|
},
|
|
dialogProps(dialogContent,type,params){
|
|
this.dialogShow = true;
|
|
this.dialogTitle = '提示';
|
|
this.dialogContent = dialogContent;
|
|
this.dialogType = type
|
|
this.dialogParams.params = params
|
|
},
|
|
dialogConfirmClick:function() {
|
|
let _self = this;
|
|
console.log("dialogConfirmClick");
|
|
this.dialogShow=false;
|
|
if(this.dialogType=='bluePrintBarcode'){
|
|
this.bluePrintBarcode(this.dialogParams.params)
|
|
}
|
|
if(this.dialogType=='judgeCash'){
|
|
this.loadByCash();
|
|
}
|
|
if(this.dialogType=='del'){
|
|
let delList = _self.yesTableData.filter(
|
|
function(el, index){
|
|
return _self.selectedList.includes(index);
|
|
}
|
|
);
|
|
|
|
_self.yesTableData = _self.yesTableData.filter(
|
|
function(el, index){
|
|
return !_self.selectedList.includes(index);
|
|
}
|
|
);
|
|
console.log(_self.barcodeList );
|
|
_self.barcodeList = _self.barcodeList.filter(
|
|
function(el,index){
|
|
return !_self.selectedList.includes(index);
|
|
}
|
|
);
|
|
console.log(_self.barcodeList );
|
|
|
|
_self.commitList = _self.commitList.filter(
|
|
function(el,index){
|
|
return !_self.selectedList.includes(index)
|
|
}
|
|
);
|
|
|
|
let billInfoScan = [];
|
|
let billInfoBase = [];
|
|
_self.yesTableData.forEach(
|
|
function(el){
|
|
let billInfoS = el.FSourceBillNo + el.FItemNumber;
|
|
billInfoScan.push(billInfoS);
|
|
}
|
|
);
|
|
_self.baseTableData.forEach(
|
|
function(el){
|
|
let billInfoB = el.FSourceBillNo + el.FItemNumber;
|
|
billInfoBase.push(billInfoB);
|
|
}
|
|
);
|
|
|
|
if(!_self.currentBarCodeInfo.FIsOpenSource){
|
|
if(billInfoBase.length > 0){
|
|
billInfoBase.forEach(
|
|
function(el){
|
|
let billNOResult = billInfoScan.includes(el);
|
|
if(!billNOResult){
|
|
_self.baseTableData = _self.baseTableData.filter(
|
|
function(BSel){
|
|
return BSel.comb != el;
|
|
}
|
|
);
|
|
}
|
|
|
|
}
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
delList.forEach(
|
|
function(el, index){
|
|
if(el.FIsBox) {
|
|
let FBoxNumber = el.FBoxNumber;
|
|
_self.commitList = _self.commitList.filter(
|
|
function(commitEl){
|
|
return commitEl.FNumber != FBoxNumber;
|
|
}
|
|
);
|
|
|
|
_self.barcodeList = _self.barcodeList.filter(
|
|
function(barcodeEl){
|
|
return barcodeEl != FBoxNumber;
|
|
}
|
|
);
|
|
|
|
let tempBoxData = _self.yesTableData.filter(
|
|
function(el, index){
|
|
return el.FBoxNumber == FBoxNumber;
|
|
}
|
|
);
|
|
|
|
_self.yesTableData = _self.yesTableData.filter(
|
|
function(el, index){
|
|
return el.FBoxNumber != FBoxNumber;
|
|
}
|
|
);
|
|
|
|
_self.commitList = _self.commitList.filter(
|
|
function(commitEl){
|
|
return commitEl.FNumber != el.FBarcodeNumber;
|
|
}
|
|
);
|
|
|
|
_self.barcodeList = _self.barcodeList.filter(
|
|
function(barcodeEl){
|
|
return barcodeEl != el.FBarcodeNumber;
|
|
}
|
|
);
|
|
|
|
tempBoxData.forEach(
|
|
function(boxBarcodeEl){
|
|
_self.barcodeList = _self.barcodeList.filter(
|
|
function(barcodeEl){
|
|
return barcodeEl != boxBarcodeEl.FBarcodeNumber;
|
|
}
|
|
);
|
|
}
|
|
);
|
|
}else{
|
|
_self.barcodeList = _self.barcodeList.filter(
|
|
function(barcodeEl){
|
|
return barcodeEl != el.FBarcodeNumber;
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
if(!_self.currentBarCodeInfo.FIsOpenSource){
|
|
_self.baseTableData = _self.baseTableData.filter(
|
|
function(FSourceBillNo){
|
|
let resultClear = false;
|
|
if(FSourceBillNo.FSourceBillNo == el.FSourceBillNo &&
|
|
FSourceBillNo.FItemName == el.FItemName &&
|
|
FSourceBillNo.FItemNumber == el.FItemNumber){
|
|
return resultClear = false;
|
|
}else{
|
|
return resultClear = true;
|
|
}
|
|
return resultClear;
|
|
}
|
|
);
|
|
}
|
|
|
|
}
|
|
);
|
|
|
|
_self.selectedList = new Array();
|
|
_self.Calculate();
|
|
uni.showToast({
|
|
icon: 'none',
|
|
title: '删除成功'
|
|
});
|
|
_self.showResult = true;
|
|
if(_self.yesTableData.length==0){
|
|
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid','');
|
|
}
|
|
this.saveCash();
|
|
}
|
|
},
|
|
dialogCancelClick:function() {
|
|
console.log("dialogCancelClick");
|
|
this.dialogShow=false
|
|
if(this.dialogType=='judgeCash'){
|
|
this.getSourceBillTypeInfo();
|
|
}
|
|
},
|
|
//日期切换
|
|
creatDatePicker() {
|
|
this.type = 'date';
|
|
this.$refs['creatTime'].show();
|
|
},
|
|
|
|
creatTimeChange(value) {
|
|
let item = this.creatlist[0];
|
|
item['detail'] = value;
|
|
},
|
|
//抓取源单类信息的东西
|
|
billTypeChange({newVal, oldVal, index, orignItem}) {
|
|
this.currentBarCodeInfo = new Object();
|
|
this.sourceBillNoDisable = !orignItem.FISOPENSOURCE;
|
|
this.currentBarCodeInfo.FSourceBillTypeName = orignItem.FSRCNAME
|
|
this.currentBarCodeInfo.fDestTranType = orignItem.FTRANTYPE;
|
|
this.currentBarCodeInfo.FDestTranType = orignItem.FTRANTYPE;
|
|
this.currentBarCodeInfo.FSourceTranType = orignItem.FSRCFORMID;
|
|
this.FSourceTranType = orignItem.FSRCFORMID;
|
|
this.currentBarCodeInfo.FIsOpenSource = orignItem.FISOPENSOURCE;
|
|
this.FISCHECKLOT = orignItem.FISCHECKLOT;
|
|
|
|
this.$forceUpdate();
|
|
},
|
|
getSourceBillTypeInfo:function(){
|
|
let requestParams = {
|
|
"orgID": this.orgFItemID,
|
|
"fNO": this.currentTranType
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.get('/SelBill/QuerySelBill',{
|
|
params:requestParams
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let data = res;
|
|
let billTypes = data;
|
|
let defaulBillTypeFlag = true;
|
|
|
|
if (billTypes) {
|
|
billTypes.map(function(el){ el.value = el.FSRCNAME? el.FSRCNAME:'null' })
|
|
billTypes.forEach(
|
|
function(el){
|
|
el.value = el.FSRCNAME? el.FSRCNAME:'null';
|
|
}
|
|
);
|
|
|
|
for (var i = 0; i < billTypes.length; i++) {
|
|
let billTemp = billTypes[i];
|
|
if(billTemp.FDEFAULT) {
|
|
_self.billTypeSelectText = billTemp.value;
|
|
if(_self.$refs.billTypeList) {
|
|
_self.$refs.billTypeList.selectText = _self.billTypeSelectText;
|
|
}
|
|
_self.currentBarCodeInfo.FDestTranType = billTemp.FTRANTYPE;
|
|
_self.currentBarCodeInfo.FSourceBillTypeName = billTemp.FSRCNAME;
|
|
_self.currentBarCodeInfo.FSourceTranType = billTemp.FSRCFORMID;
|
|
_self.FSourceTranType = billTemp.FSRCFORMID;
|
|
_self.sourceBillNoDisable = !billTemp.FISOPENSOURCE;
|
|
_self.FISCHECKLOT = billTemp.FISCHECKLOT;
|
|
|
|
break;
|
|
}
|
|
}
|
|
_self.billTypeDefaultList = billTypes;
|
|
_self.billTypeList = billTypes;
|
|
_self.$forceUpdate();
|
|
}
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
//源单信息调用获取
|
|
sourceBillNoInfoConfirm: function() {
|
|
_self.barcodeNumberFcous = false;
|
|
_self.$nextTick(function(){
|
|
_self.barcodeNumberFcous = true;
|
|
});
|
|
if(this.currentTranType != 'SP_InStock'){
|
|
if (!this.currentBarCodeInfo.FSourceBillTypeName) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请选择源单类型",
|
|
duration: 3500,
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if(!this.currentBarCodeInfo.FSourceBillNo) {
|
|
this.currentBarCodeInfo.FSourceBillNo = "";
|
|
}
|
|
|
|
if(this.currentBarCodeInfo.FSourceBillNo.length==0) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请输入源单编号",
|
|
duration: 3500,
|
|
});
|
|
return false;
|
|
}
|
|
|
|
this.currentBarCodeInfo.FSourceBillNo = this.currentBarCodeInfo.FSourceBillNo.toUpperCase();
|
|
|
|
|
|
let isHaveSource = true;
|
|
if(this.currentBarCodeInfo.FSourceTranType == 0){
|
|
isHaveSource = false;
|
|
}
|
|
//待添加逻辑
|
|
let isExit = 0;
|
|
// this.clearBtnClick();
|
|
let requestParams = {
|
|
"sourceBillNO": this.currentBarCodeInfo.FSourceBillNo,
|
|
"sourceTranType": this.FSourceTranType,
|
|
"tranType": this.currentTranType,
|
|
"orgID":this.orgFItemID
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.post('/SelBill/QuerySourceBillInfo',requestParams).then(res => {
|
|
uni.hideLoading();
|
|
debugger
|
|
let data = res;
|
|
_self.FDEPTID = data[0][0].FDEPTID;
|
|
if(_self.$refs.deptInfosChanged){
|
|
_self.$refs.deptInfosChanged.selectText = data[0][0].FDEPTNAME;
|
|
}
|
|
|
|
_self.currentBarCodeInfo.FSourceBillNo = _self.currentBarCodeInfo.FSourceBillNo.toUpperCase();
|
|
_self.currentBarCodeInfo.sourceInfo = data;
|
|
_self.RowNoTableData = new Array();
|
|
|
|
//清楚源单数量比较信息
|
|
_self.sourceBillTempList.splice(0, _self.sourceBillTempList.length);
|
|
//第一行是源单信息,第二行是工单
|
|
data[0].forEach(
|
|
function(el){
|
|
let isPush = true;
|
|
let basePushItem = {
|
|
"FSourceBillTypeName": _self.currentBarCodeInfo.FSourceBillTypeName?_self.currentBarCodeInfo.FSourceBillTypeName:'',
|
|
"FSourceBillNo": _self.currentBarCodeInfo.FSourceBillNo?_self.currentBarCodeInfo.FSourceBillNo:'',
|
|
// "FEntryID": _self.isShowBillRowNo ? el.FICMOEntryID : el.FEntryID,
|
|
"FEntryID": el.FSRCENTRYID?el.FSRCENTRYID:'',
|
|
"FMOENTRYID":el.FMOENTRYID?el.FMOENTRYID:0,
|
|
"FItemNumber": el.FITEMNUMBER?el.FITEMNUMBER:'',
|
|
"FItemName": el.FITEMNAME?el.FITEMNAME:'',
|
|
"FSize": el.FSPECIFICATION?el.FSPECIFICATION:'',
|
|
// "FModel": el.FSPECIFICATION?el.FSPECIFICATION:'',
|
|
"FBatchNO": el.FLOT?el.FLOT:'',
|
|
"FAuxPropName": el.FAUXPROPNAME ? el.FAUXPROPNAME :"" ,
|
|
"FQty": el.FAUXQTY?el.FAUXQTY:'',
|
|
"Fcommitqty": (el.FRELATIONQTY==0)? 0:(el.FRELATIONQTY?el.FRELATIONQTY:'-'),
|
|
"FUnitName": el.FUNITNAME?el.FUNITNAME:'',
|
|
"PPBOMFBillNo": el.FMOBILLNO?el.FMOBILLNO:'',
|
|
"FICMOEntryID": el.FMOID?el.FMOID:'',
|
|
"FSupplyName":el.FSUPPLYNAME?el.FSUPPLYNAME:'',
|
|
"FDeptName":el.FDEPTNAME?el.FDEPTNAME:'',
|
|
"FCustName":el.FCUSTNAME?el.FCUSTNAME:'',
|
|
"comb":(_self.currentBarCodeInfo.FSourceBillNo + (el.FITEMNUMBER?el.FITEMNUMBER:''))?(_self.currentBarCodeInfo.FSourceBillNo + (el.FITEMNUMBER?el.FITEMNUMBER:'')):'',
|
|
}
|
|
_self.baseTableData.forEach(
|
|
function(item){
|
|
if (item.FSourceBillNo == basePushItem.FSourceBillNo && item.FEntryID == basePushItem.FEntryID &&
|
|
item.FItemNumber == basePushItem.FItemNumber) {
|
|
|
|
item.FSourceBillTypeName = basePushItem.FSourceBillTypeName;
|
|
item.FSourceBillNo = basePushItem.FSourceBillNo;
|
|
item.FEntryID = basePushItem.FEntryID;
|
|
item.FMOENTRYID = basePushItem.FMOENTRYID;
|
|
item.FItemNumber = basePushItem.FItemNumber;
|
|
item.FItemName = basePushItem.FItemName;
|
|
item.FSize = basePushItem.FSize;
|
|
item.FBatchNO = basePushItem.FBatchNO;
|
|
item.FAuxPropName = basePushItem.FAuxPropName;
|
|
item.FQty = basePushItem.FQty;
|
|
item.Fcommitqty = basePushItem.Fcommitqty;
|
|
item.FUnitName = basePushItem.FUnitName;
|
|
item.PPBOMFBillNo = basePushItem.PPBOMFBillNo;
|
|
item.FICMOEntryID = basePushItem.FICMOEntryID;
|
|
item.FSupplyName = basePushItem.FSupplyName;
|
|
item.FDeptName = basePushItem.FDeptName;
|
|
item.FCustName = basePushItem.FCustName;
|
|
item.comb = basePushItem.comb;
|
|
|
|
isPush = false;
|
|
}
|
|
}
|
|
);
|
|
if(isPush){
|
|
_self.baseTableData.push(basePushItem);
|
|
}
|
|
|
|
let tempPushItem = {
|
|
"FSourceBillTypeName": _self.currentBarCodeInfo.FSourceBillTypeName?_self.currentBarCodeInfo.FSourceBillTypeName:'',
|
|
"FSourceBillNo": _self.currentBarCodeInfo.FSourceBillNo?_self.currentBarCodeInfo.FSourceBillNo:'',
|
|
// "FEntryID": _self.isShowBillRowNo ? el.FICMOEntryID : el.FEntryID,
|
|
"FEntryID": el.FSRCENTRYID?el.FSRCENTRYID:'',
|
|
"FMOENTRYID":el.FMOENTRYID?el.FMOENTRYID:0,
|
|
"FItemNumber": el.FITEMNUMBER?el.FITEMNUMBER:'',
|
|
"FItemName": el.FITEMNAME?el.FITEMNAME:'',
|
|
"FSize": el.FSPECIFICATION?el.FSPECIFICATION:'',
|
|
// "FModel": el.FSPECIFICATION?el.FSPECIFICATION:'',
|
|
"FBatchNO": el.FLOT?el.FLOT:'',
|
|
"FAuxPropName": el.FAUXPROPNAME ? el.FAUXPROPNAME :"" ,
|
|
"FQty": el.FAUXQTY?el.FAUXQTY:'',
|
|
"Fcommitqty": (el.FRELATIONQTY==0)? 0:(el.FRELATIONQTY?el.FRELATIONQTY:'-'),
|
|
"FUnitName": el.FUNITNAME?el.FUNITNAME:'',
|
|
"PPBOMFBillNo": el.FMOBILLNO?el.FMOBILLNO:'',
|
|
"FICMOEntryID": el.FMOID?el.FMOID:'',
|
|
"FSupplyName":el.FSUPPLYNAME?el.FSUPPLYNAME:'',
|
|
"FDeptName":el.FDEPTNAME?el.FDEPTNAME:'',
|
|
"FCustName":el.FCUSTNAME?el.FCUSTNAME:'',
|
|
"comb":(_self.currentBarCodeInfo.FSourceBillNo + (el.FITEMNUMBER?el.FITEMNUMBER:''))?(_self.currentBarCodeInfo.FSourceBillNo + (el.FITEMNUMBER?el.FITEMNUMBER:'')):'',
|
|
}
|
|
if(isPush){
|
|
_self.TempBaseTableData.push(tempPushItem);
|
|
}else{
|
|
_self.TempBaseTableData.forEach(
|
|
function(item){
|
|
if (item.FSourceBillNo == tempPushItem.FSourceBillNo && item.FEntryID == tempPushItem.FEntryID &&
|
|
item.FItemNumber == tempPushItem.FItemNumber) {
|
|
|
|
item.FSourceBillTypeName = tempPushItem.FSourceBillTypeName;
|
|
item.FSourceBillNo = tempPushItem.FSourceBillNo;
|
|
item.FEntryID = tempPushItem.FEntryID;
|
|
item.FMOENTRYID = tempPushItem.FMOENTRYID;
|
|
item.FItemNumber = tempPushItem.FItemNumber;
|
|
item.FItemName = tempPushItem.FItemName;
|
|
item.FSize = tempPushItem.FSize;
|
|
item.FBatchNO = tempPushItem.FBatchNO;
|
|
item.FAuxPropName = tempPushItem.FAuxPropName;
|
|
item.FQty = tempPushItem.FQty;
|
|
item.Fcommitqty = tempPushItem.Fcommitqty;
|
|
item.FUnitName = tempPushItem.FUnitName;
|
|
item.PPBOMFBillNo = tempPushItem.PPBOMFBillNo;
|
|
item.FICMOEntryID = tempPushItem.FICMOEntryID;
|
|
item.FSupplyName = tempPushItem.FSupplyName;
|
|
item.FDeptName = tempPushItem.FDeptName;
|
|
item.FCustName = tempPushItem.FCustName;
|
|
item.comb = tempPushItem.comb;
|
|
|
|
}
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
|
|
// _self.RowNo = el.FICMOEntryID;
|
|
|
|
//记录源单数量信息
|
|
let newQtyData = {};
|
|
qtyControlUtil.groupFieldArray.forEach(function(item){ newQtyData[item] = el[item]? el[item]: ""; } );
|
|
newQtyData[qtyControlUtil.billQtyField] = el[qtyControlUtil.billQtyField]? el[qtyControlUtil.billQtyField]: 0;
|
|
_self.sourceBillTempList.push(newQtyData);
|
|
console.log("-----qtyControlUtil -- sourceBillTempList-----", _self.sourceBillTempList);
|
|
|
|
}
|
|
);
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error');
|
|
_self.sourceBillNoFocus = false;
|
|
_self.$nextTick(function(){
|
|
_self.sourceBillNoFocus = true;
|
|
});
|
|
})
|
|
},
|
|
scan:function(e){
|
|
let currentScanType = e;
|
|
console.log(":::::::::::::::::::::::::::::::::::::::::::::::::::::::::"+e);
|
|
uni.scanCode({
|
|
success:function(res){
|
|
if(currentScanType == 'sourceBillScan'){
|
|
_self.currentBarCodeInfo.FSourceBillNo = res.result;
|
|
_self.sourceBillNoInfoConfirm();
|
|
}else if(currentScanType == 'barCodeScan'){
|
|
_self.FBarcodeNumber = res.result;
|
|
_self.barcodeConfirm();
|
|
}else if(currentScanType == "StockScan"){
|
|
_self.currentBarCodeInfo.FLocation = res.result;
|
|
_self.locationConfirm();
|
|
}else if(currentScanType == "stockStorScan"){
|
|
_self.currentBarCodeInfo.FSCStockNumber = res.result;
|
|
_self.FSCStockNumberConfirm();
|
|
}else if(currentScanType == "stockPlaceScan"){
|
|
_self.currentBarCodeInfo.FSCSPNumber = res.result;
|
|
_self.FSCSPNumberConfirm();
|
|
}else if(currentScanType == 'productBarCode'){
|
|
_self.productBarCode = res.result;
|
|
_self.FSCSPNumberConfirm();
|
|
}
|
|
}
|
|
})
|
|
|
|
},
|
|
loadByCash:function(){
|
|
let _self = this;
|
|
let lastSaveOrgid = uni.getStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid');
|
|
let cashValue;
|
|
if(!this.isChangedOrg){
|
|
cashValue = uni.getStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+lastSaveOrgid);
|
|
}else{
|
|
cashValue = uni.getStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+this.orgFItemID);
|
|
}
|
|
|
|
this.orgFItemID = cashValue.otherInfo.orgFItemID;
|
|
this.yesTableData = cashValue.yesTableData;
|
|
this.barcodeList = cashValue.barcodeList;
|
|
this.commitList = cashValue.commitList;
|
|
this.baseTableData = cashValue.baseTableData;
|
|
this.currentBarCodeInfo.FSourceBillNo = cashValue.otherInfo.FSourceBillNo;
|
|
this.currentBarCodeInfo.FSourceBillTypeName = cashValue.otherInfo.FSourceBillTypeName;
|
|
this.fNameSelectText0 = cashValue.otherInfo.FNameList0;
|
|
this.fNameSelectText1 = cashValue.otherInfo.FNameList1;
|
|
this.storageFSCStockNumber = cashValue.otherInfo.FSCStockNumber;
|
|
this.storageFSCSPNumber = cashValue.otherInfo.FSCSPNumber;
|
|
this.storageLocation = cashValue.otherInfo.FLocation;
|
|
this.sourceBillNoDisable = cashValue.otherInfo.sourceBillNoDisable;
|
|
this.productBarCode = cashValue.otherInfo.productBarCode;
|
|
this.note = cashValue.otherInfo.note;
|
|
|
|
|
|
if(this.$refs.FNameList0) {
|
|
this.$refs.FNameList0.selectText = cashValue.otherInfo.FNameList0;
|
|
}
|
|
if(this.$refs.FNameList1) {
|
|
this.$refs.FNameList1.selectText = cashValue.otherInfo.FNameList1;
|
|
}
|
|
this.orgArry.forEach(
|
|
function(el,index){
|
|
let currentOrgid = el.FINTERID;
|
|
let result = (currentOrgid == _self.orgFItemID);
|
|
if (result) {
|
|
_self.index = index;
|
|
el.FNAME = el.FNAME?el.FNAME:'无';
|
|
}
|
|
}
|
|
);
|
|
|
|
let params;
|
|
this.$request.get('/SysConfigData/QueryResource',{
|
|
params:{
|
|
basicType:1,
|
|
basicNO:'',
|
|
orgId:this.orgFItemID,
|
|
currentTranTypeq:this.currentTranType
|
|
}
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let datalist = res;
|
|
_self.deptInfosChanged = datalist;
|
|
_self.deptInfosChanged.forEach(e => {
|
|
e.value = e.FNAME
|
|
if(e.FID = cashValue.otherInfo.FDEPTID){
|
|
if(_self.$refs.deptInfosChanged){
|
|
_self.$refs.deptInfosChanged.selectText = e.FNAME;
|
|
}
|
|
}
|
|
})
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
|
|
this.Calculate();
|
|
|
|
|
|
},
|
|
|
|
QtyConfirm:function(){
|
|
let nextFlag = commonUtil.judgeFloat(this.currentBarCodeInfo.FQty);
|
|
if(!this.currentBarCodeInfo.FQty){
|
|
uni.showToast({
|
|
title:"请输入正确的数量值",
|
|
duration: 3500,
|
|
icon:"none"
|
|
})
|
|
return false;
|
|
}
|
|
|
|
if (nextFlag) {
|
|
if(this.FISSECUNIT){
|
|
this.showFSECUNITQTYFocus();
|
|
}else{
|
|
this.showBoxFocus();
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
FSECUNITQTYConfirm(){
|
|
if(!this.FSECUNITQTY){
|
|
uni.showToast({
|
|
title:"辅助数量不能为空",
|
|
duration: 3500,
|
|
icon:"none"
|
|
})
|
|
return false;
|
|
}
|
|
if(this.FSECUNITQTY<=0){
|
|
uni.showToast({
|
|
title:"辅助数量需大于0",
|
|
duration: 3500,
|
|
icon:"none"
|
|
})
|
|
return false;
|
|
}
|
|
|
|
if(!this.barcodeQtyDisabled){
|
|
this.showBoxFocus();
|
|
}else{
|
|
this.showLocationFcous();
|
|
}
|
|
},
|
|
|
|
BoxConfirm:function(){
|
|
if(this.isShowStock){
|
|
this.showLocationFcous();
|
|
}else{
|
|
this.showFSCStockNumberFocus();
|
|
}
|
|
},
|
|
//获取产品信息
|
|
getProductInfo:function(){
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
let params;
|
|
this.$request.get('/SysConfigData/QueryResource',{
|
|
params:{
|
|
basicType:15,
|
|
basicNO:'',
|
|
orgId:this.orgFItemID
|
|
}
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let datalist = res;
|
|
_self.productInfoChanged = datalist;
|
|
_self.productInfoChanged.forEach(e => {
|
|
e.value = e.FNAME
|
|
})
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
//组织变更后获取部门信息
|
|
getDeptInfo:function(){
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
let params;
|
|
this.$request.get('/SysConfigData/QueryResource',{
|
|
params:{
|
|
basicType:1,
|
|
basicNO:'',
|
|
orgId:this.orgFItemID,
|
|
currentTranTypeq:this.currentTranType
|
|
}
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let datalist = res;
|
|
_self.deptInfosChanged = datalist;
|
|
_self.deptInfosChanged.forEach(e => {
|
|
e.value = e.FNAME
|
|
})
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
//部门变化
|
|
deptChange({ newVal, oldVal, index, orignItem }) {
|
|
this.FDEPTID = orignItem.FID;
|
|
this.FBarcodeNumber = '';
|
|
this.currentBarCodeInfo.FQty = '';
|
|
this.currentBarCodeInfo.FUNITNAME = '';
|
|
this.currentBarCodeInfo.FLOT = '';
|
|
this.currentBarCodeInfo.FBoxQty = '';
|
|
this.currentBarCodeInfo.FLocation = '';
|
|
this.currentBarCodeInfo.FItemNumber = '';
|
|
this.currentBarCodeInfo.FItemName = '';
|
|
this.currentBarCodeInfo.FModel = '';
|
|
this.currentBarCodeInfo.FAuxPropName = '';
|
|
},
|
|
//产品变化
|
|
productChange({ newVal, oldVal, index, orignItem }) {
|
|
debugger
|
|
this.FPRODUCTID = orignItem.FID;
|
|
this.currentBarCodeInfo.FSourceBillNo = orignItem.FNO;
|
|
// this.currentBarCodeInfo.barCodeInfo.FSRCID = orignItem.FID;
|
|
this.FBarcodeNumber = '';
|
|
this.currentBarCodeInfo.FQty = '';
|
|
this.currentBarCodeInfo.FLOT = "";
|
|
this.currentBarCodeInfo.FUNITNAME = '';
|
|
this.currentBarCodeInfo.FBoxQty = '';
|
|
this.currentBarCodeInfo.FLocation = '';
|
|
this.currentBarCodeInfo.FItemNumber = '';
|
|
this.currentBarCodeInfo.FItemName = '';
|
|
this.currentBarCodeInfo.FModel = '';
|
|
this.currentBarCodeInfo.FAuxPropName = '';
|
|
},
|
|
|
|
//组织
|
|
getOrgList:function(){
|
|
let _self = this;
|
|
let orgInfo = uni.getStorageSync('orgInfo');
|
|
|
|
if(orgInfo && orgInfo.length > 0) {
|
|
let defaultOrgInfo = uni.getStorageSync('defaultOrgInfo');
|
|
let isOpenDefaultOrg = uni.getStorageSync('isOpenDefaultOrg');
|
|
if(!isOpenDefaultOrg){
|
|
this.orgFItemID = orgInfo[0].FINTERID;
|
|
}else{
|
|
if(defaultOrgInfo){
|
|
this.orgFItemID = defaultOrgInfo.FINTERID;
|
|
}else{
|
|
this.orgFItemID = orgInfo[0].FINTERID;
|
|
}
|
|
}
|
|
|
|
this.orgArry = orgInfo;
|
|
this.orgArry.forEach(
|
|
function(el,index){
|
|
let currentOrgid = el.FINTERID;
|
|
let result = (currentOrgid == _self.orgFItemID);
|
|
if(result){
|
|
_self.index = index;
|
|
el.FNAME = el.FNAME?el.FNAME:'无';
|
|
}
|
|
}
|
|
);
|
|
this.getSourceBillTypeInfo();
|
|
this.getDeptInfo();
|
|
this.getProductInfo();
|
|
|
|
}else{
|
|
this.orgArry = [{name:"请选择组织", key:"", FNAME:"当前无组织"}];
|
|
this.index = 0;
|
|
}
|
|
},
|
|
|
|
orgChange:function(e){
|
|
this.isChangedOrg = true;
|
|
this.index = e.target.value;
|
|
let isOpenDefaultOrg = uni.getStorageSync('isOpenDefaultOrg');
|
|
if(!this.orgArry[this.index].FINTERID){
|
|
this.orgFItemID = "";
|
|
}else{
|
|
this.orgFItemID = this.orgArry[this.index].FINTERID;
|
|
if(isOpenDefaultOrg){
|
|
uni.setStorageSync('defaultOrgInfo',this.orgArry[this.index]);
|
|
}
|
|
}
|
|
|
|
let cashValue = uni.getStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+this.orgFItemID)
|
|
if(cashValue){
|
|
this.loadByCash()
|
|
}else{
|
|
this.getDeptInfo();
|
|
this.getProductInfo();
|
|
this.orgChangedClear();
|
|
}
|
|
},
|
|
|
|
showOrg:function(){},
|
|
|
|
orgChangedClear:function(){
|
|
let _self = this;
|
|
this.currentBarCodeInfo = new Object();
|
|
this.currentBarCodeInfo.FSourceBillNo = "";
|
|
this.RowNo = "";
|
|
this.FBackReson = "";
|
|
if(this.$refs.billTypeList){
|
|
this.$refs.billTypeList.selectText = "";
|
|
}
|
|
if(this.$refs.deptInfosChanged){
|
|
this.$refs.deptInfosChanged.selectText = "";
|
|
}
|
|
|
|
this.FBarcodeNumber = "";
|
|
this.currentBarCodeInfo.FItemNumber = "";
|
|
this.currentBarCodeInfo.FItemName = "";
|
|
this.currentBarCodeInfo.FModel = "";
|
|
this.currentBarCodeInfo.FAuxPropName = "";
|
|
this.currentBarCodeInfo.FQty = "";
|
|
this.currentBarCodeInfo.FLOT = "";
|
|
this.currentBarCodeInfo.FUNITNAME = "";
|
|
this.currentBarCodeInfo.FBoxQty = "";
|
|
this.currentBarCodeInfo.FLocation = "";
|
|
this.currentBarCodeInfo.FSCStockNumber = "";
|
|
this.currentBarCodeInfo.FSCSPNumber = "";
|
|
this.currentBarCodeInfo.FSplitQty = "";
|
|
this.storageLocation = "";
|
|
this.storageFSCStockNumber = "";
|
|
this.storageFSCSPNumber = "";
|
|
this.stockStore = "";
|
|
this.stockPlaceStore = "";
|
|
this.barcodeQtyDisabled = true;
|
|
this.showResult = true;
|
|
|
|
this.tableSelectList = [];
|
|
this.yesTableData = [];
|
|
this.totalTableData = [];
|
|
this.baseTableData = [];
|
|
this.barcodeList = [];
|
|
this.commitList = [];
|
|
this.key = this.key + 1;
|
|
this.$forceUpdate();
|
|
},
|
|
|
|
//即时库存
|
|
timeStock:function(){
|
|
this.stockNav = true;
|
|
let item = {
|
|
"barCode": this.FBarcodeNumber?this.FBarcodeNumber:"",
|
|
"FItemNumber": this.currentBarCodeInfo.FItemNumber?this.currentBarCodeInfo.FItemNumber:"",
|
|
"FItemName": this.currentBarCodeInfo.FItemName?this.currentBarCodeInfo.FItemName:"",
|
|
"FLocation":this.currentBarCodeInfo.FLocation?this.currentBarCodeInfo.FLocation:"",
|
|
"orgid":this.orgFItemID
|
|
};
|
|
|
|
uni.navigateTo({
|
|
url: '../../views/STK_Inventory/STK_Inventory?item='+ encodeURIComponent(JSON.stringify(item))
|
|
});
|
|
},
|
|
|
|
//源单信息表头字段
|
|
basecolumChoose:function(){
|
|
// //debugger
|
|
if(this.currentTranType == 'STK_InStock' || this.currentTranType == 'PRD_InStock' || this.currentTranType == 'STK_OEMInStock' ||
|
|
this.currentTranType == 'SUB_InStkPickmtl' || this.currentTranType == 'STK_MisCellaneous'|| this.currentTranType == 'SP_InStock'){
|
|
_self.baseColumns.push({ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "源单行号", key: "FEntryID", width: 150, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "批号", key: "FBatchNO", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 200 },
|
|
{ title: "已入数量", key: "Fcommitqty", width: 200 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
|
|
}
|
|
if(this.currentTranType == 'PRD_ReStock' || this.currentTranType == 'PUR_MRB' || this.currentTranType == 'PRD_ReturnMtrl' ||
|
|
this.currentTranType == -137 || this.currentTranType == 'SUB_OutStkPickmtl' || this.currentTranType == 'SUB_RETURNMTRL' ||
|
|
this.currentTranType == 'SAL_ReturnStock'|| this.currentTranType == 'SP_ReturnMtrl'|| this.currentTranType == 'SP_OUTSTOCK'){
|
|
_self.baseColumns.push({ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "源单行号", key: "FEntryID", width: 150, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "批号", key: "FBatchNO", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 200 },
|
|
{ title: "已退数量", key: "Fcommitqty", width: 200 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
|
|
}
|
|
if(this.currentTranType == 'PRD_PickMtrl' || this.currentTranType == 137 || this.currentTranType == 'SUB_PICKMTRL'||
|
|
this.currentTranType == 'SP_PickMtrl'){
|
|
_self.baseColumns.push({ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "源单行号", key: "FEntryID", width: 150, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "批号", key: "FBatchNO", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 200 },
|
|
{ title: "已领数量", key: "Fcommitqty", width: 200 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
}
|
|
if(this.currentTranType == 'SAL_OutStock' || this.currentTranType == 'STK_OEMOutStock' || this.currentTranType == 'STK_MisDelivery'){
|
|
_self.baseColumns.push({ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "源单行号", key: "FEntryID", width: 150, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "批号", key: "FBatchNO", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 200 },
|
|
{ title: "已出数量", key: "Fcommitqty", width: 200 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
}
|
|
|
|
},
|
|
|
|
//判断是否显示源单行号
|
|
isShowBillRow: function(){
|
|
if(this.currentTranType == 'PRD_PickMtrl' || this.currentTranType == 'PRD_ReturnMtrl'
|
|
||this.currentTranType == 'SUB_PICKMTRL' || this.currentTranType == 'SUB_RETURNMTRL'
|
|
|| this.currentTranType == 137 || this.currentTranType == -137){
|
|
_self.isShowBillRowNo = true;
|
|
_self.isExitRowNo = 1;
|
|
};
|
|
|
|
},
|
|
|
|
//判断currentTranTypeq类型
|
|
confirmCurrentTranType: function(){
|
|
if(this.currentTranType == 'STK_MisCellaneous' || this.currentTranType == 'STK_MisDelivery'){
|
|
_self.totalColumns.push({ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 350 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
}
|
|
else{
|
|
_self.totalColumns.push({ title: "源单类型", key: "FSourceBillTypeName", width: 350, formatNum: false },
|
|
{ title: "源单编号", key: "FSourceBillNo", width: 350, formatNum: false },
|
|
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
|
|
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
|
|
{ title: "规格型号", key: "FSize", width: 350, formatNum: false },
|
|
// { title: "型号", key: "FModel", width: 350, formatNum: false },
|
|
{ title: "辅助属性", key: "FAuxPropName", width: 350, formatNum: false },
|
|
{ title: "数量", key: "FQty", width: 350 },
|
|
{ title: "单位", key: "FUnitName", width: 120, formatNum: false })
|
|
}
|
|
},
|
|
|
|
//源单亮起光标
|
|
showBillTypeFcous:function(){
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.billTypeFocus = true;
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
//源单亮起光标
|
|
showSourceBillNoFcous:function(){
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.sourceBillNoFocus = true;
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
//部门光标亮起
|
|
showDeptFcous: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.deptFocus = true;
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
//存放位置光标亮起
|
|
showBarcodeNumberFcous: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.barcodeNumberFcous = true;
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
//存放位置光标亮起
|
|
showLocationFcous: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.locationFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FLocation) {
|
|
_self.locationConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
showFSCStockNumberFocus: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.FSCStockNumberFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FSCStockNumber) {
|
|
_self.FSCStockNumberConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
showFSCSPNumberFocus: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.FSCSPNumberFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FSCSPNumber) {
|
|
_self.FSCSPNumberConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
showQtyFocus: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.QtyFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FQty) {
|
|
_self.QtyConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
showFSECUNITQTYFocus: function(){
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.FSECUNITQTYFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FBoxQty) {
|
|
_self.FSECUNITQTYConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
showBoxFocus: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.BoxFocus = true;
|
|
if(_self.isScanenter && _self.currentBarCodeInfo.FBoxQty) {
|
|
_self.BoxConfirm();
|
|
}
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
showNoteFcous: function() {
|
|
_self.BoxFocus = false;
|
|
_self.FSECUNITQTYFocus = false;
|
|
_self.QtyFocus = false;
|
|
_self.FSCSPNumberFocus = false;
|
|
_self.billTypeFocus = false;
|
|
_self.sourceBillNoFocus = false;
|
|
_self.deptFocus = false;
|
|
_self.barcodeNumberFcous = false;
|
|
_self.FSCStockNumberFocus = false;
|
|
_self.locationFocus = false;
|
|
_self.noteFocus = false;
|
|
|
|
setTimeout(
|
|
function() {
|
|
_self.$nextTick(
|
|
function(){
|
|
_self.noteFocus = true;
|
|
}
|
|
);
|
|
},
|
|
400
|
|
);
|
|
},
|
|
|
|
//检测存放位置
|
|
locationConfirm: function() {
|
|
//debugger
|
|
this.key = this.key+1;
|
|
console.log("存放位置"+this.currentBarCodeInfo.FLocation);
|
|
let userId = this.$store.state.userInfo.UserID;
|
|
|
|
if(!this.currentBarCodeInfo.FBarcodeNumber) {
|
|
uni.showToast({
|
|
title: "请先扫描条码",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
|
|
if(!this.currentBarCodeInfo.FItemNumber || this.currentBarCodeInfo.FItemNumber.length == 0) {
|
|
uni.showToast({
|
|
title: "请先查询条码",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
let nextFlag = commonUtil.judgeFloat(this.currentBarCodeInfo.FQty);
|
|
if(!nextFlag || !this.currentBarCodeInfo.FQty){
|
|
uni.showToast({
|
|
title:"请输入正确的数量值",
|
|
duration: 3500,
|
|
icon:"none"
|
|
})
|
|
return false;
|
|
}
|
|
let nextFlagBox = commonUtil.judgeFloat(this.currentBarCodeInfo.FBoxQty);
|
|
if(!nextFlagBox){
|
|
uni.showToast({
|
|
title:"请输入正确的箱数值",
|
|
duration: 3500,
|
|
icon:"none"
|
|
})
|
|
return false;
|
|
}
|
|
|
|
if(this.currentBarCodeInfo.FCType != 3){
|
|
let currentBarcode = this.currentBarCodeInfo.FBarcodeNumber;
|
|
if(this.barcodeList.length > 0){
|
|
let barcodeExistList = this.barcodeList.filter(
|
|
function(barcode){
|
|
return barcode == currentBarcode;
|
|
}
|
|
);
|
|
|
|
if (barcodeExistList) {
|
|
if (barcodeExistList.length > 0) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "条码已存在",
|
|
duration: 3500,
|
|
})
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
let qtyCheckFlag = commonUtil.judgeFloat(this.currentBarCodeInfo.FQty);
|
|
if(!qtyCheckFlag) {
|
|
return false;
|
|
}
|
|
|
|
//库存状态非空
|
|
if (_self.stockStatus) {
|
|
if (!_self.FSTOCKSTATUSID) {
|
|
uni.showToast({
|
|
title:'请选择库存状态',
|
|
icon:'none'
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
|
|
let userID = this.userInfo.token;
|
|
let requestParams = {
|
|
// "id": userID,
|
|
"tranType": this.currentTranType,
|
|
"stockData": this.currentBarCodeInfo.FLocation,
|
|
"sourceTranType": this.FSourceTranType,
|
|
"sourceBillNO": this.currentBarCodeInfo.FSourceBillNo,
|
|
// "icmoEntryID": this.RowNo ? this.RowNo : 0,
|
|
"orgID":this.orgFItemID
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.post('/SelBill/QueryStockData',requestParams).then(res => {
|
|
debugger
|
|
uni.hideLoading();
|
|
console.log("----locationCheck---- requestsuccess");
|
|
let data = res;
|
|
let sourceBillInfos = [];
|
|
|
|
//校验库存状态是否在存放位置的库存状态中
|
|
if (_self.stockStatus) {
|
|
if(!res.FSTOCKSTATUSALL){
|
|
uni.showToast({
|
|
title: '当前扫描仓库库存状态不存在',
|
|
icon:'none'
|
|
})
|
|
return false
|
|
}
|
|
let isFDEFSTOCKSTATUSID = true;
|
|
let statusList = '';
|
|
|
|
if(_self.FSTOCKSTATUSID){
|
|
if(res.FSTOCKSTATUSALL){
|
|
isFDEFSTOCKSTATUSID = res.FSTOCKSTATUSALL.some(e => {
|
|
return e.FNO == _self.FSTOCKSTATUSID
|
|
})
|
|
|
|
res.FSTOCKSTATUSALL.forEach(e => {
|
|
statusList = statusList + e.FNAME + ' '
|
|
})
|
|
}
|
|
}
|
|
let tips = "库存状态["+_self.FSTOCKSTATUSNAME+"]与仓库["+statusList+"]不符";
|
|
if(!isFDEFSTOCKSTATUSID){
|
|
this.dialogNoticeProps(tips,'error')
|
|
|
|
return false
|
|
}
|
|
}
|
|
|
|
_self.currentBarCodeInfo.FLocation = data.FLOCATION;
|
|
_self.currentBarCodeInfo.FStockID = data.FSTOCKID;
|
|
_self.currentBarCodeInfo.FStockNumber = data.FSTOCKNUMBER;
|
|
_self.currentBarCodeInfo.FStockPlaceID = data.FSTOCKLOCID;
|
|
_self.currentBarCodeInfo.FStockPlaceNumber = data.FSTOCKLOCNUMBER;
|
|
_self.currentBarCodeInfo.FBoxQty = _self.currentBarCodeInfo.FBoxQty?_self.currentBarCodeInfo.FBoxQty:1;
|
|
if (this.currentBarCodeInfo.FSourceTranType) {
|
|
if(!data.FSRCINFO){
|
|
console.log(data.FSRCINFO);
|
|
}else{
|
|
data.FSRCINFO.forEach(e => {
|
|
e.FSourceBillTypeName = _self.currentBarCodeInfo.FSourceBillTypeName;
|
|
e.FSourceBillNo = _self.currentBarCodeInfo.FSourceBillNo;
|
|
// "FEntryID": _self.isShowBillRowNo ? el.FICMOEntryID : el.FEntryID,
|
|
e.FEntryID = e.FMOENTRYID?e.FMOENTRYID:'';
|
|
e.FItemID = e.FMATERIALID?e.FMATERIALID:'';
|
|
e.FItemNumber = e.FITEMNUMBER?e.FITEMNUMBER:'';
|
|
e.FItemName = e.FITEMNAME?e.FITEMNAME:'';
|
|
e.FSize = e.FSPECIFICATION?e.FSPECIFICATION:'';
|
|
// e.FModel = e.FSPECIFICATION?e.FSPECIFICATION:'';
|
|
e.FBatchNO = e.FLOT?e.FLOT:'';
|
|
e.FAuxPropName = e.FAUXPROPID ? e.FAUXPROPID :"" ;
|
|
e.FQty = e.FAUXQTY?e.FAUXQTY:'';
|
|
e.Fcommitqty = (e.FRELATIONQTY==0)? 0:(e.FRELATIONQTY?e.FRELATIONQTY:'-');
|
|
e.FUnitName = e.FUNITNAME?e.FUNITNAME:'';
|
|
e.PPBOMFBillNo = e.FMOBILLNO?e.FMOBILLNO:'';
|
|
e.FICMOEntryID = e.FMOID?e.FMOID:'';
|
|
e.FSupplyName = e.FSUPPLYNAME?e.FSUPPLYNAME:'';
|
|
e.FDeptName = e.FDEPTNAME?e.FDEPTNAME:'';
|
|
e.FCustName = e.FCUSTNAME?e.FCUSTNAME:'';
|
|
e.comb = _self.currentBarCodeInfo.FSourceBillNo + (e.FITEMNUMBER?e.FITEMNUMBER:'');
|
|
|
|
});
|
|
}
|
|
|
|
sourceBillInfos = data.FSRCINFO;
|
|
if(!sourceBillInfos){
|
|
console.log(sourceBillInfos);
|
|
}else{
|
|
if (_self.FIsControlQty) {
|
|
if (!_self.currentBarCodeInfo.FIsOpenSource) {
|
|
_self.sourceBillTempList = [];
|
|
sourceBillInfos.forEach(el => {
|
|
//记录源单数量信息
|
|
let newQtyData = {};
|
|
qtyControlUtil.groupFieldArray.forEach(function(item){ newQtyData[item] = el[item]? el[item]: ""; } );
|
|
newQtyData[qtyControlUtil.billQtyField] = el[qtyControlUtil.billQtyField]? el[qtyControlUtil.billQtyField]: 0;
|
|
_self.sourceBillTempList.push(newQtyData);
|
|
console.log("-----qtyControlUtil -- sourceBillTempList-----", _self.sourceBillTempList);
|
|
});
|
|
}
|
|
if (_self.sourceBillTempList && _self.sourceBillTempList.length > 0) {
|
|
// checkQty: function(sourceBillArray, scannedArray, FBASEQTY, FSourceBillNo, FSRCENTRYID, FMATERIALID, FLOT, callback) {
|
|
// sumBillQty, sumScannedQty, FBASEQTY
|
|
let scannedArrayJson = JSON.stringify(_self.yesTableData);
|
|
let scannedArray = JSON.parse(scannedArrayJson);
|
|
if (!qtyControlUtil.checkQty(
|
|
_self.sourceBillTempList, scannedArray, _self.currentBarCodeInfo,
|
|
function(sumBillQty, sumScannedQty, qty){
|
|
_self.errDetails = "物料("+_self.currentBarCodeInfo.FITEMNAME+")本次扫描数量"+qty+"大于源单("+
|
|
_self.currentBarCodeInfo.FSRCBILLNO+")剩余数量"+sumBillQty+"-已扫描数量"+sumScannedQty;
|
|
},
|
|
_self.FISCHECKLOT)) {
|
|
_self.errDetailsList.push(_self.errDetails);
|
|
_self.showErrTips = true;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
if (!this.currentBarCodeInfo.FBoxQty) {
|
|
this.currentBarCodeInfo.FBoxQty = 1;
|
|
}
|
|
|
|
let qtyConversionRate = commonUtil.round(parseFloat(this.currentBarCodeInfo.FBarcodeQty)/parseFloat(this.currentBarCodeInfo.FBASEQTY), 10);
|
|
let qty = commonUtil.round(parseFloat(this.currentBarCodeInfo.FQty)*parseFloat(this.currentBarCodeInfo.FBoxQty), 6);
|
|
let baseQty = commonUtil.round(qty/qtyConversionRate, 6);
|
|
//test 数据显示
|
|
let rowDataBarcode = {
|
|
"FSourceBillTypeName": this.currentBarCodeInfo.FSourceBillTypeName?this.currentBarCodeInfo.FSourceBillTypeName:"",
|
|
"FSourceBillNo": this.currentBarCodeInfo.FSourceBillNo?this.currentBarCodeInfo.FSourceBillNo:"",
|
|
"FBoxNumber": this.currentBarCodeInfo.FBoxNumber?this.currentBarCodeInfo.FBoxNumber:"",
|
|
"FBarcodeNumber": this.currentBarCodeInfo.FBarcodeNumber?this.currentBarCodeInfo.FBarcodeNumber:"",
|
|
"FItemNumber": this.currentBarCodeInfo.FItemNumber?this.currentBarCodeInfo.FItemNumber:"",
|
|
"FItemName": this.currentBarCodeInfo.FItemName?this.currentBarCodeInfo.FItemName:"",
|
|
"FItemID": this.currentBarCodeInfo.FItemID,
|
|
"FSize": this.currentBarCodeInfo.FSize?this.currentBarCodeInfo.FSize:"",
|
|
// "FModel": this.currentBarCodeInfo.FModel?this.currentBarCodeInfo.FModel:"",
|
|
"FBatchNO": this.currentBarCodeInfo.FBatchNO ? this.currentBarCodeInfo.FBatchNO : "",
|
|
"FAuxPropName": this.currentBarCodeInfo.FAuxPropName ? this.currentBarCodeInfo.FAuxPropName : "",
|
|
"FKFPeriod": this.currentBarCodeInfo.FKFPeriod ? this.currentBarCodeInfo.FKFPeriod : "",
|
|
"FKFDate": this.currentBarCodeInfo.FKFDate?this.currentBarCodeInfo.FKFDate:"",
|
|
"FQty": qty,
|
|
"FUnitName": this.currentBarCodeInfo.FUnitName?this.currentBarCodeInfo.FUnitName:"",
|
|
"FStockNumber": this.currentBarCodeInfo.FStockNumber?this.currentBarCodeInfo.FStockNumber:"",
|
|
"FStockPlaceNumber": this.currentBarCodeInfo.FStockPlaceNumber?this.currentBarCodeInfo.FStockPlaceNumber:"",
|
|
"FStockID":this.currentBarCodeInfo.FStockID,
|
|
"FStockPlaceID":this.currentBarCodeInfo.FStockPlaceID,
|
|
"FICMOEntryID":this.RowNo,
|
|
"FIsBox":false ,
|
|
};
|
|
|
|
if(this.currentBarCodeInfo.FIsBox == 0) {
|
|
_self.yesTableData.push(rowDataBarcode);
|
|
}
|
|
if(!this.RowNo){
|
|
this.RowNo = 0;
|
|
}
|
|
|
|
let commitDataBarcode = {
|
|
"FSRCFORMID":this.FSourceTranType,
|
|
"FID": this.productBarCode?this.productBarCode:'',//简单领,退料,入库产品名称ID
|
|
"FNO": this.currentBarCodeInfo.barCodeInfo.NO?this.currentBarCodeInfo.barCodeInfo.NO:'',
|
|
"FNAME": this.currentBarCodeInfo.barCodeInfo.FNAME?this.currentBarCodeInfo.barCodeInfo.FNAME:'',
|
|
"FBARCODE": this.currentBarCodeInfo.barCodeInfo.FBARCODE?this.currentBarCodeInfo.barCodeInfo.FBARCODE:'',
|
|
"FBARTYPE": this.currentBarCodeInfo.barCodeInfo.FBARTYPE?this.currentBarCodeInfo.barCodeInfo.FBARTYPE:'',
|
|
"FBOXBARCODE": this.currentBarCodeInfo.barCodeInfo.FBOXBARCODE?this.currentBarCodeInfo.barCodeInfo.FBOXBARCODE:'',
|
|
"FISBOX": this.currentBarCodeInfo.barCodeInfo.FISBOX?this.currentBarCodeInfo.barCodeInfo.FISBOX:0,
|
|
"FMATERIALID": this.currentBarCodeInfo.barCodeInfo.FMATERIALID?this.currentBarCodeInfo.barCodeInfo.FMATERIALID:'',
|
|
"FITEMNUMBER": this.currentBarCodeInfo.barCodeInfo.FITEMNUMBER?this.currentBarCodeInfo.barCodeInfo.FITEMNUMBER:'',
|
|
"FITEMNAME": this.currentBarCodeInfo.barCodeInfo.FITEMNAME?this.currentBarCodeInfo.barCodeInfo.FITEMNAME:'',
|
|
"FSPECIFICATION": this.currentBarCodeInfo.barCodeInfo.FSPECIFICATION?this.currentBarCodeInfo.barCodeInfo.FSPECIFICATION:'',
|
|
"FUNITID":this.currentBarCodeInfo.barCodeInfo.FUNITID?this.currentBarCodeInfo.barCodeInfo.FUNITID:'',
|
|
"FUNITNAME":this.currentBarCodeInfo.barCodeInfo.FUNITNAME?this.currentBarCodeInfo.barCodeInfo.FUNITNAME:'',
|
|
"FSTOCKID":this.currentBarCodeInfo.FStockID?this.currentBarCodeInfo.FStockID:'',
|
|
"FSTOCKLOCID":this.currentBarCodeInfo.FStockPlaceID?this.currentBarCodeInfo.FStockPlaceID:'',
|
|
"FLOCATION":this.currentBarCodeInfo.FLocation?this.currentBarCodeInfo.FLocation:'',
|
|
"FSRCINFO":this.currentBarCodeInfo.barCodeInfo.FSRCINFO?this.currentBarCodeInfo.barCodeInfo.FSRCINFO:null,
|
|
"FSRCID": this.currentBarCodeInfo.barCodeInfo.FSRCID?this.currentBarCodeInfo.barCodeInfo.FSRCID:'',
|
|
"FSRCBILLNO": this.currentBarCodeInfo.barCodeInfo.FSRCBILLNO?this.currentBarCodeInfo.barCodeInfo.FSRCBILLNO:'',
|
|
"FSRCENTRYID": this.currentBarCodeInfo.barCodeInfo.FSRCENTRYID?this.currentBarCodeInfo.barCodeInfo.FSRCENTRYID:0,
|
|
"FSRCDETAILID": this.currentBarCodeInfo.barCodeInfo.FSRCDETAILID?this.currentBarCodeInfo.barCodeInfo.FSRCDETAILID:'',
|
|
"FQTY": qty,
|
|
"FLOT": this.currentBarCodeInfo.barCodeInfo.FLOT?this.currentBarCodeInfo.barCodeInfo.FLOT:'',
|
|
"FAUXPROPID": this.currentBarCodeInfo.barCodeInfo.FAUXPROPID?this.currentBarCodeInfo.barCodeInfo.FAUXPROPID:'',
|
|
// "FISKFPERIOD":this.currentBarCodeInfo.barCodeInfo.FISKFPERIOD?this.currentBarCodeInfo.barCodeInfo.FISKFPERIOD:'',
|
|
"FKFPERIOD": this.currentBarCodeInfo.barCodeInfo.FKFPERIOD?this.currentBarCodeInfo.barCodeInfo.FKFPERIOD:0,
|
|
"FKFDATE": this.currentBarCodeInfo.barCodeInfo.FKFDATE?this.currentBarCodeInfo.barCodeInfo.FKFDATE:'',
|
|
"FBOXINFO": this.currentBarCodeInfo.barCodeInfo.FBOXINFO?this.currentBarCodeInfo.barCodeInfo.FBOXINFO:[],
|
|
"FCOMPANYID": this.orgFItemID,
|
|
"FBASEUNITID": this.currentBarCodeInfo.barCodeInfo.FBASEUNITID?this.currentBarCodeInfo.barCodeInfo.FBASEUNITID:'',
|
|
"FBASEQTY": baseQty,
|
|
"FDEPTID": this.FDEPTID?this.FDEPTID:'',
|
|
"FSUPPLYID": this.FSUPPLYID?this.FSUPPLYID:'',
|
|
"FCUSTID": this.FCUSTID?this.FCUSTID:'',
|
|
"FSECUNITQTY": this.FSECUNITQTY?this.FSECUNITQTY:0,
|
|
"FSECUNITID": this.FSECUNITID,
|
|
// "FISSECUNIT":this.FISSECUNIT,
|
|
"FKEEPERID": this.FKEEPERID,
|
|
"FKEEPERTYPEID": this.FKEEPERTYPEID,
|
|
"FOWNERID": this.FOWNERID,
|
|
"FOWNERTYPEID": this.FOWNERTYPEID,
|
|
"FSTOCKSTATUSID":this.FSTOCKSTATUSID,
|
|
"FUSEFULDATE":this.FUSEFULDATE
|
|
};
|
|
|
|
_self.commitList.push(commitDataBarcode);
|
|
|
|
_self.boxTempList.forEach(
|
|
function(el){
|
|
let elData = {
|
|
"FSourceBillTypeName": el.FSourceBillTypeName?el.FSourceBillTypeName:"",
|
|
"FSourceBillNo": el.FSourceBillNo?el.FSourceBillNo:"",
|
|
"FBoxNumber": el.FBoxNumber?el.FBoxNumber:"",
|
|
"FBarcodeNumber": el.FBarcodeNumber?el.FBarcodeNumber:"",
|
|
"FItemNumber": el.FItemNumber?el.FItemNumber:"",
|
|
"FItemName": el.FItemName?el.FItemName:"",
|
|
"FItemID": el.FItemID?el.FItemID:"",
|
|
"FSize": el.FSize?el.FSize:"",
|
|
// "FModel": el.FModel?el.FModel:"",
|
|
"FBatchNO": el.FBatchNO ? el.FBatchNO : "",
|
|
"FAuxPropName": el.FAuxPropName ? el.FAuxPropName : "",
|
|
"FKFPeriod": el.FKFPeriod ? el.FKFPeriod : "",
|
|
"FKFDate": el.FKFDate ? el.FKFDate : "",
|
|
"FQty": el.FQty?el.FQty:"",
|
|
"FUnitName": el.FUnitName?el.FUnitName:"",
|
|
"FStockNumber": _self.currentBarCodeInfo.FStockNumber?_self.currentBarCodeInfo.FStockNumber:"",
|
|
"FStockPlaceNumber": _self.currentBarCodeInfo.FStockPlaceNumber?_self.currentBarCodeInfo.FStockPlaceNumber:"",
|
|
"FStockID":_self.currentBarCodeInfo.FStockID?_self.currentBarCodeInfo.FStockID:"",
|
|
"FStockPlaceID":_self.currentBarCodeInfo.FStockPlaceID?_self.currentBarCodeInfo.FStockPlaceID:"",
|
|
"FIsBox":true,
|
|
"FICMOEntryID":_self.RowNo?_self.RowNo:"",
|
|
};
|
|
_self.yesTableData.push(elData);
|
|
//已扫箱码的条码
|
|
_self.barcodeList.push(el.FBarcodeNumber);
|
|
}
|
|
)
|
|
|
|
_self.boxTempList.splice(0, _self.boxTempList.length);
|
|
this.barcodeList.push(this.currentBarCodeInfo.FBarcodeNumber);
|
|
|
|
_self.Calculate();
|
|
|
|
uni.showToast({
|
|
icon: 'success',
|
|
title: "数据输入成功"
|
|
});
|
|
this.storageLocation = this.currentBarCodeInfo.FLocation;
|
|
|
|
let lastSaveOrgid = this.orgFItemID; //最后一次条码录入成功后(条码进入已扫描列表)的组织ID
|
|
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid',lastSaveOrgid);
|
|
this.saveCash();
|
|
|
|
this.FBarcodeNumber = "";
|
|
this.currentBarCodeInfo.FBarcodeNumber = "";
|
|
this.currentBarCodeInfo.FItemNumber = "";
|
|
this.currentBarCodeInfo.FItemName = "";
|
|
this.currentBarCodeInfo.FModel = "";
|
|
this.currentBarCodeInfo.FAuxPropName = "";
|
|
this.currentBarCodeInfo.FQty = "";
|
|
this.currentBarCodeInfo.FUNITNAME = '';
|
|
this.currentBarCodeInfo.FLOT = "";
|
|
this.currentBarCodeInfo.FBoxQty = "";
|
|
this.FBackReson = "";
|
|
|
|
|
|
this.barcodeNumberFcous = false;
|
|
this.$nextTick(function(){
|
|
this.barcodeNumberFcous = true;
|
|
this.locationFocus = false;
|
|
});
|
|
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
|
|
FSCStockNumberConfirm:function(){
|
|
this.key = this.key+1;
|
|
console.log("存放仓库"+this.currentBarCodeInfo);
|
|
let userId = this.$store.state.userInfo.UserID;
|
|
|
|
if(!this.currentBarCodeInfo.FBarcodeNumber) {
|
|
uni.showToast({
|
|
title: "请先扫描条码",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
|
|
if(!this.currentBarCodeInfo.FItemNumber || this.currentBarCodeInfo.FItemNumber.length == 0) {
|
|
uni.showToast({
|
|
title: "请先查询条码",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
|
|
let qtyCheckFlag = commonUtil.judgeFloat(this.currentBarCodeInfo.FQty);
|
|
if(!qtyCheckFlag) {
|
|
return false;
|
|
}
|
|
|
|
let SNO = this.currentBarCodeInfo.FSCStockNumber;
|
|
let userID = this.userInfo.token;
|
|
let requestParams = {
|
|
"stockNumber":this.currentBarCodeInfo.FSCStockNumber,
|
|
"orgid":this.orgFItemID
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.get('/SysConfigData/SearchStock',{
|
|
params:requestParams
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let data = res;
|
|
_self.currentBarCodeInfo.typeFStockID = data.FStockID;
|
|
_self.FIsStockMgr = data.FIsStockMgr;
|
|
|
|
uni.showToast({
|
|
icon: 'success',
|
|
title: "仓库录入成功"
|
|
});
|
|
|
|
_self.storageFSCStockNumber = _self.currentBarCodeInfo.FSCStockNumber;
|
|
if (_self.FIsStockMgr) {
|
|
_self.stockDisabled = false;
|
|
_self.showFSCSPNumberFocus();
|
|
}
|
|
else {
|
|
_self.stockDisabled = true;
|
|
_self.currentBarCodeInfo.FSCSPNumber = "";
|
|
_self.currentBarCodeInfo.FLocation = _self.currentBarCodeInfo.FSCStockNumber;
|
|
_self.locationConfirm();
|
|
}
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
FSCSPNumberConfirm:function(){
|
|
this.key = this.key+1;
|
|
console.log("存放仓位"+this.currentBarCodeInfo);
|
|
let userId = this.$store.state.userInfo.UserID;
|
|
|
|
if(this.FIsStockMgr){
|
|
if(!this.currentBarCodeInfo.FSCSPNumber) {
|
|
uni.showToast({
|
|
title: "请录入仓位编号",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
|
|
if(!this.currentBarCodeInfo.FBarcodeNumber) {
|
|
uni.showToast({
|
|
title: "请先扫描条码",
|
|
icon: "none",
|
|
duration: 3000,
|
|
});
|
|
return;
|
|
}
|
|
|
|
let qtyCheckFlag = commonUtil.judgeFloat(this.currentBarCodeInfo.FQty);
|
|
if(!qtyCheckFlag) {
|
|
return false;
|
|
}
|
|
let requestParams = {
|
|
// "id": userID,
|
|
"stockNumber":this.currentBarCodeInfo.FSCStockNumber,
|
|
// "stockPlaceNumber":this.currentBarCodeInfo.FSCSPNumber ? this.currentBarCodeInfo.FSCSPNumber : "",
|
|
// "stockID":this.currentBarCodeInfo.typeFStockID ? this.currentBarCodeInfo.typeFStockID : "",
|
|
"orgid":this.orgFItemID
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.get('/SysConfigData/SearchStockPlace',{
|
|
params:requestParams
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
let data = res;
|
|
this.currentBarCodeInfo.FLocation = data.FLocation;
|
|
|
|
uni.showToast({
|
|
icon: 'success',
|
|
title: "仓位录入成功"
|
|
});
|
|
|
|
this.storageFSCSPNumber = this.currentBarCodeInfo.FSCSPNumber;
|
|
this.locationConfirm();
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
//2020-4-24 ADD BY LYY 分组求和方法
|
|
GroupBy: function(datas, keys, callBack) {
|
|
// //debugger;
|
|
const list = datas || [];
|
|
const groups = [];
|
|
list.forEach(v => {
|
|
const key = {};
|
|
const data = {};
|
|
keys.forEach(k => {
|
|
key[k] = v[k];
|
|
});
|
|
let group = groups.find(v => {
|
|
return v._key === JSON.stringify(key);
|
|
});
|
|
if (!group) {
|
|
group = {
|
|
_key: JSON.stringify(key),
|
|
key: key,
|
|
};
|
|
groups.push(group);
|
|
}
|
|
if (callBack) {
|
|
group.data = callBack(group.data, v);
|
|
group.total = group.total || 0;
|
|
group.total++;
|
|
} else {
|
|
group.data = group.data || [];
|
|
group.data.push(v);
|
|
}
|
|
});
|
|
return groups;
|
|
},
|
|
|
|
//2020-04-24 ADD BY LYY对扫描记录的记录汇总
|
|
//删除重调
|
|
//源单案例
|
|
Calculate: function() {
|
|
let a;
|
|
if(this.currentTranType == 10 || this.currentTranType == 29){
|
|
a = ['FItemNumber', 'FItemName','FSize', 'FAuxPropName', 'FUnitName'];
|
|
}
|
|
else{
|
|
a = ['FSourceBillNo', 'FSourceBillTypeName', 'FItemNumber', 'FItemName', 'FSize', 'FAuxPropName', 'FUnitName'];
|
|
};
|
|
var groupdata = _self.GroupBy(_self.yesTableData,a,
|
|
|
|
(d, v) => {
|
|
d = d || 0
|
|
let qtyNumber = parseFloat(v.FQty)
|
|
return d += qtyNumber;
|
|
});
|
|
|
|
|
|
console.log(groupdata);
|
|
_self.totalTableData = [],
|
|
groupdata.forEach(v => {
|
|
_self.totalTableData.push({
|
|
"FSourceBillNo": v.key.FSourceBillNo,
|
|
"FSourceBillTypeName": v.key.FSourceBillTypeName,
|
|
"FNumber": v.key.FNumber,
|
|
"FItemNumber": v.key.FItemNumber,
|
|
"FItemName": v.key.FItemName,
|
|
"FSize":v.key.FSize,
|
|
// "FModel": v.key.FModel,
|
|
"FAuxPropName": v.key.FAuxPropName ? v.key.FAuxPropName : "",
|
|
"FQty": v.data,
|
|
"FUnitName": v.key.FUnitName
|
|
})
|
|
});
|
|
console.log("-----------------聚合" + _self.totalTableData);
|
|
},
|
|
|
|
CalculateBase: function() {
|
|
let b;
|
|
// if(this.currentTranType == 10 || this.currentTranType == 29){
|
|
// b = ['FItemNumber', 'FItemName', 'FModel', 'FAuxPropName', 'FUnitName'];
|
|
// }
|
|
// else{
|
|
b = ['FSourceBillNo', 'FSourceBillTypeName','FEntryID', 'FItemNumber', 'FItemName','FSize', 'FBatchNO', 'FAuxPropName','Fcommitqty', 'FUnitName'];
|
|
// };
|
|
var groupdata = _self.GroupBy(_self.baseTableData,b,
|
|
|
|
(d, v) => {
|
|
d = d || 0
|
|
let qtyNumber = parseFloat(v.FQty)
|
|
return d += qtyNumber;
|
|
});
|
|
|
|
|
|
console.log(groupdata);
|
|
_self.baseTableData = [],
|
|
groupdata.forEach(v => {
|
|
_self.baseTableData.push({
|
|
"FSourceBillNo": v.key.FSourceBillNo?v.key.FSourceBillNo:'',
|
|
"FSourceBillTypeName": v.key.FSourceBillTypeName?v.key.FSourceBillTypeName:'',
|
|
"FEntryID":v.key.FEntryID?v.key.FEntryID:'',
|
|
"FItemNumber": v.key.FItemNumber?v.key.FItemNumber:'',
|
|
"FItemName": v.key.FItemName?v.key.FItemName:'',
|
|
"FSize":v.key.FSize?v.key.FSize:'',
|
|
// "FModel": v.key.FModel?v.key.FModel:'',
|
|
"FBatchNO":v.key.FBatchNO?v.key.FBatchNO:'',
|
|
"FAuxPropName": v.key.FAuxPropName ? v.key.FAuxPropName : "",
|
|
"FQty": v.data?v.data:0,
|
|
"Fcommitqty":v.key.Fcommitqty?v.key.Fcommitqty:'',
|
|
"FUnitName": v.key.FUnitName?v.key.FUnitName:''
|
|
})
|
|
});
|
|
console.log("-----------------聚合" + _self.baseTableData);
|
|
},
|
|
|
|
//获取库存状态列表
|
|
getStockStatusList(){
|
|
let _self = this;
|
|
let requestParams = {"orgID":this.orgFItemID}
|
|
this.$request.post('/SelBill/QueryStockStatus',requestParams).then(res => {
|
|
this.stockStatusList = res;
|
|
this.stockStatusList.forEach(e => {
|
|
e.value = e.FNAME;
|
|
})
|
|
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
stockStatusChange({ newVal, oldVal, index, orignItem }){
|
|
this.FSTOCKSTATUSNAME = orignItem.FNAME;
|
|
this.FSTOCKSTATUSID = orignItem.FNO;
|
|
},
|
|
|
|
productBarCodeConfirm:function(){
|
|
this.showNoteFcous();
|
|
},
|
|
|
|
noteConfirm:function(){
|
|
this.showBarcodeNumberFcous();
|
|
},
|
|
|
|
//正操作条码扫码回车执行
|
|
barcodeConfirm: function() {
|
|
if(!this.productBarCode){
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请输生产编号",
|
|
duration: 3500,
|
|
})
|
|
return false;
|
|
}
|
|
this.currentBarCodeInfo.FBarcodeNumber = this.FBarcodeNumber;
|
|
if(!this.currentBarCodeInfo.FBarcodeNumber) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请输入条码",
|
|
duration: 3500,
|
|
})
|
|
return false;
|
|
}
|
|
this.currentBarCodeInfo.FBarcodeNumber = this.currentBarCodeInfo.FBarcodeNumber.toUpperCase();
|
|
this.FBarcodeNumber = this.FBarcodeNumber.toUpperCase();
|
|
|
|
let isFail = this.checkBarcodeNumber(this.currentBarCodeInfo.FBarcodeNumber);
|
|
if (isFail) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "请输入正确的条码",
|
|
duration: 3500,
|
|
})
|
|
return false;
|
|
}
|
|
|
|
this.clearInfoByBar();
|
|
|
|
let isHaveSource = false;
|
|
//待添加逻辑
|
|
let isExit = 0;
|
|
let requestParams = {
|
|
"barCodeNum": this.currentBarCodeInfo.FBarcodeNumber,
|
|
"sourceBillNO": this.currentBarCodeInfo.FSourceBillNo?this.currentBarCodeInfo.FSourceBillNo:'',
|
|
"sourceTranType": this.FSourceTranType?this.FSourceTranType:'',
|
|
"isHaveSource": isHaveSource,
|
|
"tranType": this.currentTranType?this.currentTranType:'',
|
|
"isExit": isExit,
|
|
"sourceEntryID": '',
|
|
"orgID":this.orgFItemID
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.post('/SelBill/QueryBarCode',requestParams).then(res => {
|
|
uni.hideLoading();
|
|
// //debugger
|
|
let data = res;
|
|
|
|
//库存状态
|
|
if (_self.stockStatus) {
|
|
if(res.FSTOCKSTATUSID){
|
|
_self.FSTOCKSTATUSID = res.FSTOCKSTATUSID;
|
|
}
|
|
if(res.FSTOCKSTATUSNAME){
|
|
_self.FSTOCKSTATUSNAME = res.FSTOCKSTATUSNAME;
|
|
if(_self.$refs.stockStatusList){
|
|
_self.$refs.stockStatusList.selectText = res.FSTOCKSTATUSNAME;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
_self.FUSEFULDATE = res.FUSEFULDATE;
|
|
|
|
_self.currentBarCodeInfo.barCodeInfo = data;
|
|
_self.currentBarCodeInfo.barCodeInfo.FSRCBILLNO = (!_self.currentBarCodeInfo.barCodeInfo.FSRCBILLNO)?_self.currentBarCodeInfo.FSourceBillNo:_self.currentBarCodeInfo.barCodeInfo.FSRCBILLNO;
|
|
|
|
|
|
_self.FKEEPERID = data["FKEEPERID"];
|
|
_self.FKEEPERTYPEID = data["FKEEPERTYPEID"];
|
|
_self.FOWNERID = data["FOWNERID"];
|
|
_self.FOWNERTYPEID = data["FOWNERTYPEID"];
|
|
_self.FSECUNITQTY = data["FSECUNITQTY"];
|
|
_self.FSECUNITID = data["FSECUNITID"];
|
|
_self.FISSECUNIT = data["FISSECUNIT"];
|
|
|
|
_self.currentBarCodeInfo.FCType = data["FBARTYPE"];
|
|
_self.currentBarCodeInfo.FIsBox = data["FISBOX"];
|
|
_self.currentBarCodeInfo.FBarcodeNumber = data["FBARCODE"];
|
|
if(_self.currentBarCodeInfo.FIsBox == 1 ||
|
|
(_self.currentBarCodeInfo.FCType != 3 && _self.currentBarCodeInfo.FIsBox == 0)){
|
|
let currentBarcode = _self.currentBarCodeInfo.FBarcodeNumber;
|
|
if(_self.barcodeList.length > 0){
|
|
let barcodeExistList = _self.barcodeList.filter(
|
|
function(barcode){
|
|
return barcode == currentBarcode;
|
|
}
|
|
);
|
|
|
|
if (barcodeExistList) {
|
|
if (barcodeExistList.length > 0) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "条码已存在",
|
|
duration: 3500,
|
|
})
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
_self.FDetailID = data["FSRCDETAILID"];
|
|
_self.FUnitID = data["FUNITID"];
|
|
_self.currentBarCodeInfo.FSourceEntryID = data["FSRCENTRYID"];
|
|
_self.currentBarCodeInfo.FSCStockNumber = data["FLOCATION"];
|
|
_self.currentBarCodeInfo.FSCStockNumber =
|
|
_self.currentBarCodeInfo.FSCStockNumber.replace(/\s*/g,"");
|
|
_self.currentBarCodeInfo.FSCStockID = data["FSTOCKID"];
|
|
_self.currentBarCodeInfo.FSCSPNumber = data["FLOCATION"];
|
|
_self.currentBarCodeInfo.FSCSPNumber =
|
|
_self.currentBarCodeInfo.FSCSPNumber.replace(/\s*/g,"");
|
|
_self.currentBarCodeInfo.FSCStockPlaceID = data["FSTOCKLOCID"];
|
|
_self.currentBarCodeInfo.FItemNumber = data["FITEMNUMBER"];
|
|
_self.currentBarCodeInfo.FItemName = data["FITEMNAME"];
|
|
_self.currentBarCodeInfo.FSize = data["FSPECIFICATION"];
|
|
_self.currentBarCodeInfo.FModel = data["FSPECIFICATION"];
|
|
|
|
_self.currentBarCodeInfo.FKFPeriod = data["FKFPERIOD"];
|
|
_self.currentBarCodeInfo.FQty = data["FQTY"];
|
|
_self.currentBarCodeInfo.FBarcodeQty = data["FQTY"];
|
|
_self.currentBarCodeInfo.FLOT = data["FLOT"];
|
|
_self.currentBarCodeInfo.FUNITNAME = data["FUNITNAME"];
|
|
_self.currentBarCodeInfo.FBASEQTY = data["FBASEQTY"];
|
|
|
|
_self.currentBarCodeInfo.FSourceBillNo = (!data["FSRCBILLNO"])?_self.currentBarCodeInfo.FSourceBillNo:data["FSRCBILLNO"];
|
|
_self.currentBarCodeInfo.FBoxNumber = data["FBOXBARCODE"]?data["FBOXBARCODE"]:"";
|
|
|
|
_self.currentBarCodeInfo.FItemID = data["FMATERIALID"];
|
|
_self.currentBarCodeInfo.FBatchNO = data["FLOT"];
|
|
_self.currentBarCodeInfo.FAuxPropName = data["FAUXPROPNAME"] ? data["FAUXPROPNAME"] : "";
|
|
_self.currentBarCodeInfo.FKFDate = data["FKFDATE"];
|
|
_self.FDate = data["FKFDATE"];
|
|
_self.currentBarCodeInfo.FUnitName = data["FUNITNAME"];
|
|
_self.currentBarCodeInfo.FLocation = data["FLOCATION"];
|
|
_self.currentBarCodeInfo.FLocation =
|
|
_self.currentBarCodeInfo.FLocation.replace(/\s*/g,"");
|
|
|
|
if((!_self.currentBarCodeInfo.FLocation) || (_self.currentBarCodeInfo.FLocation.length == 0)){
|
|
_self.currentBarCodeInfo.FLocation = _self.storageLocation;
|
|
}
|
|
|
|
if((!_self.currentBarCodeInfo.FSCStockNumber) || (_self.currentBarCodeInfo.FSCStockNumber.length == 0)){
|
|
_self.currentBarCodeInfo.FSCStockNumber = _self.storageFSCStockNumber;
|
|
}
|
|
|
|
if((!_self.currentBarCodeInfo.FSCSPNumber) || (_self.currentBarCodeInfo.FSCSPNumber.length == 0)){
|
|
_self.currentBarCodeInfo.FSCSPNumber = _self.storageFSCSPNumber;
|
|
}
|
|
|
|
_self.currentBarCodeInfo.FBoxQty = 1;
|
|
_self.barcodeQtyDisabled = true;
|
|
|
|
if(_self.currentBarCodeInfo.FCType==3 && _self.currentBarCodeInfo.FIsBox==0){
|
|
_self.barcodeQtyDisabled = false;
|
|
}
|
|
|
|
if(_self.boxTempList.length > 0){
|
|
_self.boxTempList.splice(0, _self.boxTempList.length);
|
|
}
|
|
|
|
let extendBox = data.FBOXINFO;
|
|
extendBox.forEach(
|
|
function(el){
|
|
let elData = {
|
|
FSourceBillTypeName: "",
|
|
FSourceBillNo: el["FSRCBILLNO"]?el["FSRCBILLNO"]:"",
|
|
FBoxNumber: el["FBOXBARCODE"]?el["FBOXBARCODE"]:"",
|
|
FBarcodeNumber: el["FBARCODE"]?el["FBARCODE"]:"",
|
|
FItemNumber: el["FITEMNUMBER"]?el["FITEMNUMBER"]:"",
|
|
FItemName: el["FITEMNAME"]?el["FITEMNAME"]:"",
|
|
FItemID: el["FMATERIALID"]?el["FMATERIALID"]:"",
|
|
FSize: el["FSPECIFICATION"]?el["FSPECIFICATION"]:'',
|
|
// FModel: el["FSPECIFICATION"]?el["FSPECIFICATION"]:"",
|
|
FBatchNO: el["FLOT"]?el["FLOT"]:"",
|
|
FAuxPropName: el["FAUXPROPNAME"] ? el["FAUXPROPNAME"] : "",
|
|
FKFPeriod: el["FKFPERIOD"]?el["FKFPERIOD"]:"",
|
|
FKFDate: el["FKFDATE"]?el["FKFDATE"]:"",
|
|
FQty: el["FQTY"]?el["FQTY"]:"",
|
|
FUnitName: el["FUNITNAME"]?el["FUNITNAME"]:"",
|
|
FStockNumber: el["FLOCATION"]?el["FLOCATION"]:"",
|
|
FStockPlaceNumber: el["FLOCATION"]?el["FLOCATION"]:"",
|
|
FStockID:el["FSTOCKID"]?el["FSTOCKID"]:"",
|
|
FStockPlaceID:el["FSTOCKLOCID"]?el["FSTOCKLOCID"]:"",
|
|
FIsBox:true,
|
|
|
|
FCType: el["FBARTYPE"]?el["FBARTYPE"]:"",
|
|
FID: el["FID"]?el["FID"]:"",
|
|
FNO: el["FNO"]?el["FNO"]:"",
|
|
FName: el["FNAME"]?el["FNAME"]:"",
|
|
FLocation: el["FLOCATION"]?el["FLOCATION"]:""
|
|
}
|
|
_self.boxTempList.push(elData);
|
|
}
|
|
)
|
|
|
|
if (_self.barcodeQtyDisabled) {
|
|
if (_self.FISSECUNIT) {
|
|
_self.showFSECUNITQTYFocus();
|
|
}
|
|
else {
|
|
_self.showLocationFcous();
|
|
}
|
|
}
|
|
else {
|
|
if (_self.FISSECUNIT) {
|
|
_self.showFSECUNITQTYFocus();
|
|
}
|
|
else {
|
|
_self.showQtyFocus();
|
|
}
|
|
}
|
|
|
|
|
|
console.log(_self.currentBarCodeInfo.FIsOpenSource);
|
|
//强制刷新数据
|
|
_self.showResult = true;
|
|
_self.$forceUpdate();
|
|
_self.key = _self.key + 1;
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
//选择下标元素
|
|
tableSelect: function(selected) {
|
|
//debugger
|
|
if(selected.length > 0){
|
|
this.showResult = false;
|
|
}else{
|
|
this.showResult = true;
|
|
}
|
|
this.selectedList = selected;
|
|
// let index = selected[selected.length-1];
|
|
// let barcode = this.yesTableData[index].FNumber;
|
|
// if (barcode) {
|
|
// uni.showToast({
|
|
// title: "您选择了条码:" + barcode,
|
|
// icon: 'none'
|
|
// })
|
|
// }
|
|
},
|
|
|
|
//删除样式
|
|
delBtnClick: function(e) {
|
|
//debugger
|
|
console.log(this.baseTableData)
|
|
if (this.selectedList.length == 0) {
|
|
uni.showToast({
|
|
icon: "none",
|
|
title: "无删除数据"
|
|
})
|
|
return false;
|
|
}
|
|
this.dialogProps('确定删除数据吗?','del');
|
|
|
|
},
|
|
|
|
//提交事件
|
|
commitBtnClick: function() {
|
|
if (this.isCommitBtnDisable) {
|
|
return;
|
|
}
|
|
this.isCommitBtnDisable = true;
|
|
|
|
if (_self.yesTableData.length <= 0) {
|
|
uni.showToast({
|
|
icon: 'none',
|
|
title: "无提交数据",
|
|
duration: 1600,
|
|
});
|
|
this.isCommitBtnDisable = false;
|
|
return false;
|
|
}
|
|
|
|
let requestUrl;
|
|
if(this.currentTranType == 'SP_InStock'){
|
|
requestUrl = '/SimpleProduction/SimpleInStock'
|
|
}
|
|
if(this.currentTranType == 'SP_PickMtrl'){
|
|
requestUrl = '/SimpleProduction/SimplePickMtrl'
|
|
}
|
|
if(this.currentTranType == 'SP_ReturnMtrl'){
|
|
requestUrl = '/SimpleProduction/SimpleReturnMtrl'
|
|
}
|
|
if(this.currentTranType == 'SP_OUTSTOCK'){
|
|
requestUrl = '/SimpleProduction/SimpleOutStock'
|
|
}
|
|
|
|
if (this.currentTranType != 'STK_MisCellaneous' && this.currentTranType != 'STK_MisDelivery'
|
|
&& this.currentTranType != 'SP_InStock') {
|
|
this.note = undefined;
|
|
}
|
|
|
|
let requestParams = {
|
|
"barcodeList": this.commitList,
|
|
"orgID":this.orgFItemID,
|
|
"Note": this.note,
|
|
"TranType": this.currentTranType.toUpperCase(),
|
|
"FDate": this.creatlist[0].detail
|
|
};
|
|
|
|
uni.showLoading({
|
|
icon:'loading',
|
|
title:'加载中……',
|
|
mask:true
|
|
});
|
|
|
|
this.$request.post(requestUrl,requestParams).then(res => {
|
|
this.isCommitBtnDisable = false;
|
|
uni.hideLoading();
|
|
this.showResult = true;
|
|
let data = res;
|
|
|
|
this.commitList.splice(0, this.commitList.length);
|
|
this.yesTableData.splice(0, this.yesTableData.length);
|
|
this.barcodeList.splice(0, this.barcodeList.length);
|
|
this.totalTableData.splice(0, this.totalTableData.length);
|
|
this.baseTableData = [];
|
|
this.TempBaseTableData = [];
|
|
this.storageLocation = "";
|
|
this.storageFSCSPNumber = "";
|
|
this.storageFSCStockNumber = "";
|
|
|
|
this.clearBtnClick();
|
|
this.dialogNoticeProps(data,'success')
|
|
uni.removeStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid');
|
|
uni.removeStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+this.orgFItemID);
|
|
if(this.currentBarCodeInfo.FSourceTranType == 0 || !this.currentBarCodeInfo.FIsOpenSource){
|
|
this.barcodeNumberFcous = false;
|
|
this.$nextTick(function(){
|
|
this.barcodeNumberFcous = true;
|
|
})
|
|
}
|
|
this.$forceUpdate();
|
|
}).catch(err => {
|
|
uni.hideLoading();
|
|
this.dialogNoticeProps(err,'error')
|
|
});
|
|
},
|
|
|
|
clearBtnClick:function(){
|
|
this.FBarcodeNumber = "";
|
|
this.currentBarCodeInfo.FBarcodeNumber = "";
|
|
this.currentBarCodeInfo.FSourceBillNo = "";
|
|
this.FBackReson = "";
|
|
this.clearInfoByBar();
|
|
},
|
|
|
|
checkBarcodeNumber:function(barcodeNumber){
|
|
if(!barcodeNumber) {
|
|
return true;
|
|
}
|
|
|
|
let ruleNoSpace = this.barcodeRule.replace(/\s*/g,"");
|
|
|
|
if(!ruleNoSpace) {
|
|
return false;
|
|
}
|
|
|
|
if(ruleNoSpace.length === 0) {
|
|
return false;
|
|
}
|
|
|
|
let rules = ruleNoSpace.split("|");
|
|
//最小长度|最大长度|起始字符|结束字符|包含字符(字符之间可以已逗号隔开)
|
|
if (rules[0]) {
|
|
if (barcodeNumber.length < Number.parseInt(rules[0])) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
if (rules[1]) {
|
|
if (barcodeNumber.length > Number.parseInt(rules[1])) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
if (rules[2]) {
|
|
let header = barcodeNumber.substr(0,1);
|
|
let ruleChart2 = rules[2].split(",")
|
|
if(ruleChart2) {
|
|
if(ruleChart2.length > 0) {
|
|
let filterChart2 = ruleChart2.filter(
|
|
function(myChar){
|
|
return myChar == header;
|
|
}
|
|
)
|
|
if(!filterChart2) {
|
|
return true;
|
|
}
|
|
if(filterChart2.length === 0){
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (rules[3]) {
|
|
let end = barcodeNumber.substr(-1,1);
|
|
let ruleChart3 = rules[3].split(",");
|
|
if(ruleChart3) {
|
|
if (ruleChart3.length > 0) {
|
|
let filterChart3 = ruleChart3.filter(
|
|
function(myChar){
|
|
return myChar == end;
|
|
}
|
|
)
|
|
if(!filterChart3) {
|
|
return true;
|
|
}
|
|
if(filterChart3.length === 0){
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (rules[4]) {
|
|
let myBarcodeNumber = barcodeNumber;
|
|
if (rules[2]) {
|
|
myBarcodeNumber = myBarcodeNumber.substr(1,myBarcodeNumber.length-1);
|
|
}
|
|
if(rules[3]) {
|
|
myBarcodeNumber = myBarcodeNumber.substr(0, myBarcodeNumber.length-1);
|
|
}
|
|
|
|
let ruleChart4 = rules[4].split(",");
|
|
if(ruleChart4) {
|
|
if (ruleChart4.length > 0) {
|
|
ruleChart4.forEach(
|
|
function(myChar){
|
|
myBarcodeNumber = myBarcodeNumber.replace(new RegExp(myChar,"gm"),"");
|
|
}
|
|
);
|
|
|
|
if(myBarcodeNumber) {
|
|
if(myBarcodeNumber.length > 0) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return false;
|
|
},
|
|
|
|
clearInfoByBar:function(){},
|
|
|
|
saveCash:function(){
|
|
let _self = this;
|
|
let otherInfo = {
|
|
"currentTranType":_self.currentTranType,
|
|
"FSourceBillTypeName":_self.currentBarCodeInfo.FSourceBillTypeName,
|
|
"FSourceBillType":_self.currentBarCodeInfo.FSourceBillType,
|
|
"orgFItemID":_self.orgFItemID,
|
|
"dbAlise":_self.dbAlise,
|
|
"UserID":_self.userName,
|
|
"RowNo":_self.RowNo,
|
|
"FNameList0":_self.$refs.FNameList0 ? _self.$refs.FNameList0.selectText : "",
|
|
"FNameList1":_self.$refs.FNameList1 ? _self.$refs.FNameList1.selectText : "",
|
|
"FDEPTID":_self.FDEPTID?_self.FDEPTID:'',
|
|
"FSUPPLYID":_self.FSUPPLYID?_self.FSUPPLYID:'',
|
|
"FCUSTID":_self.FCUSTID?_self.FCUSTID:'',
|
|
"FSourceBillNo":_self.currentBarCodeInfo.FSourceBillNo,
|
|
"FLocation":_self.currentBarCodeInfo.FLocation ? _self.currentBarCodeInfo.FLocation : "",
|
|
"FSCStockNumber":_self.currentBarCodeInfo.FSCStockNumber ? _self.currentBarCodeInfo.FSCStockNumber : "",
|
|
"FSCSPNumber":_self.currentBarCodeInfo.FSCSPNumber ? _self.currentBarCodeInfo.FSCSPNumber : "",
|
|
"barcodeQtyDisabled":_self.barcodeQtyDisabled,
|
|
"sourceBillNoDisable":_self.sourceBillNoDisable,
|
|
"productBarCode":_self.productBarCode, //生产编号
|
|
"note":_self.note, //备注
|
|
"FDEPTID":_self.FDEPTID //生产车间ID
|
|
};
|
|
_self.pageCashInfo.yesTableData = _self.yesTableData;
|
|
_self.pageCashInfo.commitList = _self.commitList;
|
|
_self.pageCashInfo.otherInfo = otherInfo;
|
|
_self.pageCashInfo.barcodeList = _self.barcodeList;
|
|
uni.setStorageSync('pageCash'+_self.dbAlise+_self.userName+_self.currentTranType+_self.orgFItemID,_self.pageCashInfo);
|
|
},
|
|
|
|
judgeCash:function(){
|
|
let _self = this;
|
|
let lastSaveOrgid = uni.getStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid');
|
|
let cashValue;
|
|
if(!this.isChangedOrg){
|
|
cashValue = uni.getStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+lastSaveOrgid);
|
|
}else{
|
|
cashValue = uni.getStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+this.orgFItemID);
|
|
}
|
|
if(cashValue.commitList){
|
|
this.dialogProps('存在未提交数据是否加载','judgeCash')
|
|
}
|
|
else{
|
|
this.getSourceBillTypeInfo();
|
|
}
|
|
},
|
|
|
|
//test 测试添加
|
|
...mapMutations(['updateCacheByStorage'])
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.z-application-content {
|
|
font-size: 44rpx;
|
|
}
|
|
.header-row-class-organzie{
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
padding-right: 50rpx;
|
|
}
|
|
.header-row-title-class-organzie{
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
.head-row-content-class-organzie{
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
.img-organzie{
|
|
height: 32rpx;
|
|
width: 32rpx;
|
|
margin-left: 24rpx;
|
|
}
|
|
.header-row-class {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
margin-top: 8rpx;
|
|
// background-color: #f7f9ff;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-left: 32rpx;
|
|
margin-right: 32rpx;
|
|
}
|
|
.header-row-class image{
|
|
height: 40rpx;
|
|
width: 40rpx;
|
|
position: absolute;
|
|
right: 40rpx;
|
|
|
|
}
|
|
.header-row-title-class {
|
|
width: 130rpx;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
|
|
.header-row-select-class{
|
|
width: 100%;
|
|
height: 66rpx;
|
|
line-height: 66rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
flex: 1 1;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #5F7EF8;
|
|
margin-left: 24rpx;
|
|
}
|
|
|
|
.header-row-input-gray-class{
|
|
height: 60rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
flex: 0 0;
|
|
font-size: 28rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #5F7EF8;
|
|
background-color: #F4F4F4;
|
|
margin-left: 24rpx;
|
|
padding-left: 24rpx;
|
|
}
|
|
|
|
.header-row-input-white-class{
|
|
height: 60rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
flex: 0 0;
|
|
font-size: 28rpx;
|
|
font-family: MicrosoftYaHei;
|
|
background-color: #FFFFFF;
|
|
color: #5F7EF8;
|
|
margin-left: 24rpx;
|
|
padding-left: 24rpx;
|
|
}
|
|
|
|
.separate{
|
|
width: 100%;
|
|
height: 16rpx;
|
|
background-color:#F5F5F5;
|
|
}
|
|
|
|
.detail-tabs-class {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
height: 80rpx;
|
|
}
|
|
.detail-tabs-btn-gray-class {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
font-size:28rpx;
|
|
font-family:MicrosoftYaHei;
|
|
color:#4662FF;
|
|
}
|
|
.detail-tabs-btn-gray-class::after{
|
|
position: absolute;
|
|
content: " ";
|
|
width: 2rem;
|
|
height: 0.12rem;
|
|
background: #4662FF;
|
|
bottom: -0.1rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
|
|
}
|
|
|
|
.detail-tabs-btn-handle-class {
|
|
// position: relative;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
font-size:28rpx;
|
|
font-family:MicrosoftYaHei;
|
|
color:#666666;
|
|
}
|
|
.detail-tabs-btn-yes-class {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
font-size:28rpx;
|
|
font-family:MicrosoftYaHei;
|
|
color:#666666;
|
|
}
|
|
|
|
.detail-tabs-btn-total-class {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
font-size:28rpx;
|
|
font-family:MicrosoftYaHei;
|
|
color:#666666;
|
|
}
|
|
.detail-tabs-btn-base-class {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
font-size:28rpx;
|
|
font-family:MicrosoftYaHei;
|
|
color:#666666;
|
|
}
|
|
.detail-row-class {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
height: 60rpx;
|
|
margin-top: 8rpx;
|
|
// background-color: #f7f9ff;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-left: 32rpx;
|
|
margin-right: 32rpx;
|
|
// margin-top: 16rpx;
|
|
}
|
|
.detail-row-class image{
|
|
height: 40rpx;
|
|
width: 40rpx;
|
|
position: absolute;
|
|
right: 40rpx;
|
|
}
|
|
|
|
.detail-row-title-class{
|
|
width: 135rpx;
|
|
height: 60rpx;
|
|
line-height: 72rpx;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
|
|
.detail-row-white-class{
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
// flex: 0 0;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
margin-left: 24rpx;
|
|
padding-left: 24rpx;
|
|
}
|
|
.detail-row-white-class-stock{
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
// flex: 0 0;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
margin-left: 24rpx;
|
|
background-color: #007AFF;
|
|
// padding-left: 24rpx;
|
|
}
|
|
|
|
.detail-row-gray-class{
|
|
height: 60rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
// flex: 0 0;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
background-color: #F4F4F4;
|
|
margin-left: 24rpx;
|
|
padding-left: 24rpx;
|
|
}
|
|
|
|
.table {
|
|
margin-top: 16rpx;
|
|
margin-right: 32rpx;
|
|
margin-left: 32rpx;
|
|
}
|
|
.header-row-btn-class{
|
|
display: flex;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.commitBtnOther{
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
color: #FFFFFF;
|
|
background: #5778FF;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
text-align: center;
|
|
border-radius: unset;
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.header-row-btn-class-commit{
|
|
width: 50%;
|
|
position: fixed;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
background: #5778FF;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
border-radius: unset;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.header-row-btn-class-clear{
|
|
width: 50%;
|
|
position: fixed;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
font-family: MicrosoftYaHei;
|
|
background: #F5F5F4;
|
|
color: #666666;
|
|
border-radius: unset;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.header-row-btn-class-del{
|
|
width: 100%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
background-color: #F76260;
|
|
border-radius: unset;
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
.chooseRowNo{
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 50%;
|
|
top: 200rpx;
|
|
left: 0;
|
|
z-index: 15;
|
|
}
|
|
.image-barcode{
|
|
position: absolute;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
// position: fixed;
|
|
right: 16rpx;
|
|
bottom: 12rpx;
|
|
}
|
|
.alter{
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top:0;
|
|
bottom: 0;
|
|
background-color: #333333;
|
|
opacity: 0.5;
|
|
}
|
|
.err{
|
|
position: fixed;
|
|
left: 100rpx;
|
|
right: 100rpx;
|
|
top: 400rpx;
|
|
background-color: #FFFFFF;
|
|
border-radius: 20rpx;
|
|
opacity: 1;
|
|
z-index: 5;
|
|
}
|
|
.errTitle{
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
width: 100%;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
// border-bottom: 2rpx solid #3D3D3D;
|
|
}
|
|
.errList{
|
|
width: 100%;
|
|
margin-left: 16rpx;
|
|
margin-right: 16rpx;
|
|
}
|
|
.errDetails{
|
|
width: 90%;
|
|
font-size: 26rpx;
|
|
color: #3D3D3D;
|
|
text-align: center;
|
|
}
|
|
.errConfirm{
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
width: 100%;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
color: #007AFF;
|
|
border-top: 2rpx solid #3D3D3D;
|
|
}
|
|
.cash-btn{
|
|
display: flex;
|
|
}
|
|
.cashConfirm{
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
width: 50%;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
color: #007AFF;
|
|
border-top: 2rpx solid #3D3D3D;
|
|
border-right: 2rpx solid #3B4144;
|
|
}
|
|
.cashCancel{
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
width: 50%;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
color: #007AFF;
|
|
border-top: 2rpx solid #3D3D3D;
|
|
}
|
|
.detail-row-class-b{
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
height: 60rpx;
|
|
margin-top: 8rpx;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-left: 32rpx;
|
|
margin-right: 32rpx;
|
|
}
|
|
.detail-row-title-class-b{
|
|
width: 135rpx;
|
|
height: 60rpx;
|
|
line-height: 72rpx;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
|
|
.detail-row-white-class-b{
|
|
flex: 1 1;
|
|
height: 64rpx;
|
|
line-height: 64rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid #D8D8D8;
|
|
font-size: 32rpx;
|
|
font-family: MicrosoftYaHei;
|
|
color: #666666;
|
|
}
|
|
.pic-upload{
|
|
position: fixed;
|
|
height: 80rpx;
|
|
width: 80rpx;
|
|
border: 2rpx solid #5F7EF8;
|
|
border-radius: 50%;
|
|
color: #FFFFFF;
|
|
background: #5F7EF8;
|
|
bottom: 100rpx;
|
|
right: 32rpx;
|
|
}
|
|
.pic-upload-text{
|
|
height: 40rpx;
|
|
line-height: 40rpx;
|
|
font-size: 26rpx;
|
|
text-align: center;
|
|
}
|
|
</style> |