Files
GX.O3.WMS/APK/APP_O3/pages/views/QM_STKAPPChange/QM_STKAPPChange.vue
T

2008 lines
57 KiB
Vue
Executable File

<template>
<view class="z-application-content">
<view class="detail-tabs-class">
<!-- 正操作 -->
<view @tap="tabChange(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="tabChange(3)" :class="[detailTabIndex==3?'detail-tabs-btn-gray-class':'detail-tabs-btn-yes-class']">已扫描</view>
</view>
<view v-show="detailTabIndex==4">
<view class="detail-row-class">
<view class="detail-organzie">
<p class="detail-row-title-class">当前组织</p>
<view class="detail-organzie-select">
<picker @change="orgChange" :value="orgIndex" :range="orgArry" range-key="FNAME" style="width: 100%;">
<view class="detail-organzie-content">{{orgArry[orgIndex].FNAME}}</view>
</picker>
</view>
<image class="detail-organzie-img" src="@/static/login/icon-pull.png"/>
</view>
<view class="detail-date">
<view class="detail-date-select" @click="creatTimePicker()">{{creatTimeList[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='timeIndicatorStyle' :type='creatTimeType' :datestring='creatTimeString'
@change='creatTimeChange'>
</date-time-picker>
</view>
</view>
<!-- <view style="height: 32rpx;"></view> -->
<view class="detail-row-class">
<p class="detail-row-title-class">条&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 码</p>
<view style="flex: 1 1;">
<input class="detail-row-white-class" type="text" @confirm="barcodeConfirm()"
v-model="barcodeNumber" :focus="barcodeNumberFcous"/>
</view>
<image src="../../../static/img/scan-blue.png" v-show="showScan" @click="scanImageClick('barCodeScan')" />
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 量</p>
<input v-model="qty" class="detail-row-gray-class" disabled="true" type="text"
style="width:300rpx; margin-right:20rpx;"/>
<view style="height:60rpx; line-height:60rpx; flex: 1 1 auto;">{{unitName}}</view>
</view>
<!-- 辅助单位数量 外购入库&生产领料显示-->
<view class="detail-row-class">
<p class="detail-row-title-class">辅助数量</p>
<input v-model="secunitQty" class="detail-row-gray-class" disabled="true" type="text"
style="width:300rpx; margin-right:20rpx;"/>
<view style="height:60rpx; line-height:60rpx; flex: 1 1 auto;">{{secunitName}}</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">所属组织</p>
<view class="detail-organzie-select">
<picker @change="newOrgChange" :value="newOrgIndex" :range="orgArry" range-key="FNAME" style="width: 100%;">
<view class="detail-organzie-content">{{orgArry[newOrgIndex].FNAME}}</view>
</picker>
<image class="detail-organzie-img" src="@/static/login/icon-pull.png"/>
</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">保管类型</p>
<xfl-select :list="keepTypeList" :listOrigin="keepTypeList" :clearable="false" :showItemNum="5"
@change="keepTypeChange" :isCanInput="false" ref="keepTypeList"
class="header-row-select-class" :defaultSelectText="keepTypeSelectText" />
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">保管者</p>
<view class="detail-organzie-select" v-show="FKEEPERTYPEID == 'ORG_Organizations'">
<picker @change="keepOrgChange" :value="keepOrgIndex" :range="orgArry" range-key="FNAME" style="width: 100%;">
<view class="detail-organzie-content">{{orgArry[keepOrgIndex].FNAME}}</view>
</picker>
<image class="detail-organzie-img" src="@/static/login/icon-pull.png"/>
</view>
<xfl-select :list="supplierInfoList" :listOrigin="supplierInfoList" :clearable="false" :showItemNum="5"
@change="keepSupplierChange" :isCanInput="false" ref="keepSupplierList"
class="header-row-select-class" :defaultSelectText="keepSupplierSelectText" v-show="FKEEPERTYPEID == 'BD_SUPPLIER'" />
<xfl-select :list="customerInfoList" :listOrigin="customerInfoList" :clearable="false" :showItemNum="5"
@change="keepCustomerChange" :isCanInput="false" ref="keepCustomerList"
class="header-row-select-class" :defaultSelectText="keepCustomerSelectText" v-show="FKEEPERTYPEID == 'BD_CUSTOMER'"/>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">货主类型</p>
<xfl-select :list="ownerTypeList" :listOrigin="ownerTypeList" :clearable="false" :showItemNum="5"
@change="ownerTypeChange" :isCanInput="false" ref="ownerTypeList"
class="header-row-select-class" :defaultSelectText="ownerTypeSelectText" />
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">货主</p>
<view class="detail-organzie-select" v-show="FOWNERTYPEID == 'ORG_Organizations'">
<picker @change="ownerOrgChange" :value="ownerOrgIndex" :range="orgArry" range-key="FNAME" style="width: 100%;">
<view class="detail-organzie-content">{{orgArry[ownerOrgIndex].FNAME}}</view>
</picker>
<image class="detail-organzie-img" src="@/static/login/icon-pull.png"/>
</view>
<xfl-select :list="supplierInfoList" :listOrigin="supplierInfoList" :clearable="false" :showItemNum="5"
@change="ownerSupplierChange" :isCanInput="false" ref="ownerSupplierList"
class="header-row-select-class" :defaultSelectText="ownerSupplierSelectText" v-show="FOWNERTYPEID == 'BD_SUPPLIER'" />
<xfl-select :list="customerInfoList" :listOrigin="customerInfoList" :clearable="false" :showItemNum="5"
@change="ownerCustomerChange" :isCanInput="false" ref="ownerCustomerList"
class="header-row-select-class" :defaultSelectText="ownerCustomerSelectText" v-show="FOWNERTYPEID == 'BD_CUSTOMER'"/>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">条码状态</p>
<xfl-select :list="barcodeStatusList" :listOrigin="barcodeStatusList" :clearable="false" :showItemNum="5"
@change="barcodeStatusChange" :isCanInput="false" ref="barcodeStatusList"
class="header-row-select-class" :defaultSelectText="barcodeStatusSelectText" />
</view>
<!--2024-06-02 新增库存状态-->
<view class="detail-row-class">
<p class="detail-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">
<p class="detail-row-title-class">存放位置</p>
<view style="flex: 1 1;">
<input class="detail-row-white-class" v-model="location"
@confirm="locationConfirm()" :focus="locationFocus" />
</view>
<image src="../../../static/img/scan-blue.png" v-show="showScan && isShowStock" @click="scanImageClick('StockScan')" />
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">物料代码</p>
<view style="flex: 1 1;">
<input class="detail-row-gray-class" disabled="true" type="text" v-model="itemNumber" />
</view>
<view style="flex: 1 1;">
<view class="detail-row-white-class-stock" @click="timeStockClick">
即时库存
</view>
</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">物料名称</p>
<view style="flex: 1 1;">
<input class="detail-row-gray-class" disabled="true" v-model="itemName" />
</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">规格型号</p>
<view style="flex: 1 1;">
<input class="detail-row-gray-class" disabled="true" v-model="model" />
</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">辅助属性</p>
<view style="flex: 1 1;">
<input class="detail-row-gray-class" disabled="true" v-model="auxPropName" />
</view>
</view>
<view class="detail-row-class">
<p class="detail-row-title-class">批&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 号</p>
<view style="flex: 1 1;">
<input class="detail-row-gray-class" disabled="true" v-model="lot" />
</view>
</view>
</view>
<view class="table" v-show="detailTabIndex==3" style="padding-bottom: 100rpx;">
<z-table :tableData='yesTableData' :columns='yesTableColumns' showSelect @onSelect='yesTableSelect' />
</view>
<view class="header-row-btn-class" v-show="(showResult || detailTabIndex != 3) && (detailTabIndex != 5)
&& (detailTabIndex != 6) && (detailTabIndex != 7)">
<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="showDialogNotice"
:dialogNoticeType="dialogNoticeType"
:dialogNoticeTitle="dialogNoticeTitle"
:dialogNoticeContent="dialogNoticeContent"
@dialogNoticeConfirmClick="dialogNoticeConfirmClick">
</opsoft-dialog-notice>
<opsoft-dialog
@dialogCancelClick="dialogCancelClick"
@dialogConfirmClick="dialogConfirmClick"
:dialogContent="dialogContent"
:dialogTitle="dialogTitle"
:dialogShow="showDialog">
</opsoft-dialog>
</view>
</template>
<script>
import Vue from 'vue';
import zTable from "@/components/z-table/z-table.vue";
import uniTag from "@/components/uni-badge/uni-badge.vue";
import xflSelect from '@/components/xfl-select/xfl-select.vue';
import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue';
import BluetoothPrintTab from '@/components/bluetooth-print-tab/bluetooth-print-tab.vue';
import NetworkPrintTab from '@/components/network-print-tab/network-print-tab.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';
import {
mapState,
mapMutations
} from 'vuex';
export default {
data() {
return {
currentTranType: 'QM_STKAPPChange',
showScan: true,
isShowStock: true,
pageCashInfo: new Object(),
dialogNoticeContent: '',
dialogNoticeTitle: '',
dialogNoticeType: '',
showDialogNotice: false,
dialogContent: '',
dialogTitle: '',
dialogParams:new Object,
showDialog: false,
dialogLastSaveOrgid: '',
detailTabIndex: 4,
orgArry: [{name:"请选择组织", key:"", FName:""}],
orgFItemID: '',
orgIndex: 0,
curDate: '',
creatTimeString: '',
creatTimeType: '',
creatTimeList: [{
type: 'date',
detail: '选择开始时间'
}],
deptInfosChanged: [],
supplierInfosChanged: [],
customerInfosChanged: [],
barcodeNumber: '',
itemNumber: '',
qty: '',
unitName: '',
secunitQty: '',
secunitName: '',
// boxQty: '',
newOrgIndex: 0,
keepTypeList: [{id:'ORG_Organizations', value:'业务组织'},
{id:'BD_SUPPLIER', value:'供应商'},
{id:'BD_CUSTOMER', value:'客户'}],
keepTypeSelectText: '业务组织',
keepOrgIndex: 0,
keepSupplierSelectText: '',
keepSupplierIndex: -1,
keepCustomerSelectText: '',
keepCustomerIndex: -1,
ownerTypeList: [{id:'ORG_Organizations', value:'业务组织'},
{id:'BD_SUPPLIER', value:'供应商'},
{id:'BD_CUSTOMER', value:'客户'}],
ownerTypeSelectText: '业务组织',
ownerOrgIndex: 0,
ownerSupplierSelectText: '',
ownerSupplierIndex: -1,
ownerCustomerSelectText: '',
ownerCustomerIndex: -1,
barcodeStatusSelectText: '',
stockStatusSelectText: '请选择',
location: '',
// stockNumber: '',
// pNumber: '',
itemName: '',
model: '',
auxPropName: '',
lot: '',
barcodeNumberFcous: false,
locationFocus: false,
// stockNumberFocus: false,
// pNumberFocus: false,
stockStatusList: [],
FSTOCKSTATUS: '',
FSTOCKSTATUSNAME: '',
FSTOCKSTATUSID: '',
FCOMPANYID: '',
FKEEPERTYPEID: 'ORG_Organizations',
FKEEPERID: '',
FUSEFULDATE: '',
FOWNERID: '',
FOWNERTYPEID: 'ORG_Organizations',
FSECUNITQTY: '',
FSECUNITID: '',
FISSECUNIT: '',
FUNITID: '',
FITEMNUMBER: '',
FITEMNAME: '',
FSPECIFICATION: '',
FKFPERIOD: '',
FQTY: '',
FBASEQTY: '',
FUNITNAME: '',
FSECUNITNAME: '',
FBOXBARCODE: '',
FKFDate: '',
FLOT: '',
FMATERIALID: '',
FAUXPROPNAME: '',
FLOCATION: '',
FSTOCKID: '',
FSTOCKNUMBER: '',
FSTOCKLOCID: '',
FSTOCKLOCNUMBER: '',
yesTableData: [],
yesTableSelectedData: [],
yesTableColumns: [{ title: "条码", key: "FBarcodeNumber", width: 350, formatNum: false },
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
{ title: "物料名称", key: "FItemName", 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 }],
showResult: true,
isCommitBtnDisable: false,
barcodeList: [],
commitList: [],
barcodeStatusList: [
{value:'未入库', id:0},
{value:'已入库', id:1},
{value:'生产领料出库', id:2},
{value:'销售出库', id:3},
{value:'其他出库', id:4},
{value:'委外调拨', id:5},
{value:'委外领料', id:6},
{value:'委外出库', id:7},
{value:'已折分', id:8},
{value:'已合并', id:9},
{value:'已废弃', id:10},
{value:'受托加工出库', id:11},
],
}
},
beforeMount() {
this.dbAlise = uni.getStorageSync("dbAlise");
this.userName = uni.getStorageSync("userName");
this.getOrgList();
this.getStockStatusList();
//当前时间
let date = new Date();
this.curDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
this.creatTimeList[0].detail = this.curDate;
this.$forceUpdate();
},
mounted() {
this.baseUrl = uni.getStorageSync('RequestUrl');
this.systemParameter = uni.getStorageSync('systemParameter');
this.judgeCash();
this.getDeptInfo();
this.getCustomerInfo();
this.getSupplierInfo();
},
beforeUpdate() {
},
updated() {
},
components: {
zTable,
uniTag,
xflSelect,
uniPopupDialog,
BluetoothPrintTab,
NetworkPrintTab,
DateTimePicker,
opsoftDialogNotice,
opsoftDialog
},
computed: {
timeIndicatorStyle() {
return {
background: 'rgba(255,0,0,.2)',
height: '40px',
};
},
barcodeRule() {
if(this.sysParameters) {
if(this.sysParameters.hasOwnProperty("BarcodeRuleForVerification")) {
let rule = this.sysParameters["BarcodeRuleForVerification"];
if (rule) {
return rule;
}
}
}
return "";
},
customerInfoList() {
if(this.customerInfosChanged) {
let customerList = this.customerInfosChanged;
customerList.map(function(el){ el.value = el.FNAME })
return customerList;
}
else {
return [];
}
},
supplierInfoList() {
if(this.supplierInfosChanged) {
let supplierList = this.supplierInfosChanged;
supplierList.map(function(el){ el.value = el.FNAME })
return supplierList;
}
else {
return [];
}
},
...mapState(['userInfo', "deptInfos", "customerInfos", "supplierInfos", "sysParameters"])
},
methods: {
//组织变更后获取部门、供应商、客户信息
getDeptInfo:function(){
let _self = this;
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;
console.log(_self.deptInfosChanged);
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
getCustomerInfo:function(){
let _self = this;
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
let params;
this.$request.get('/SysConfigData/QueryResource',{
params:{
basicType: 3,
basicNO: '',
orgId: this.orgFItemID
}
}).then(res => {
uni.hideLoading();
let datalist = res;
_self.customerInfosChanged = datalist;
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
getSupplierInfo:function(){
let _self = this;
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
let params;
this.$request.get('/SysConfigData/QueryResource',{
params:{
basicType: 2,
basicNO: '',
orgId: this.orgFItemID
}
}).then(res => {
uni.hideLoading();
let datalist = res;
_self.supplierInfosChanged = datalist;
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
checkBarcodeNumber:function(needCheckBarcodeNumber) {
if (!needCheckBarcodeNumber) {
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 (needCheckBarcodeNumber.length < Number.parseInt(rules[0])) {
return true;
}
}
if (rules[1]) {
if (needCheckBarcodeNumber.length > Number.parseInt(rules[1])) {
return true;
}
}
if (rules[2]) {
let header = needCheckBarcodeNumber.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 = needCheckBarcodeNumber.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 = needCheckBarcodeNumber;
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;
},
dialogNoticeConfirmClick() {
this.showDialogNotice = false;
},
dialogNoticeProps(err,type) {
err = errorStrUntil.handle(err);
this.showDialogNotice = true;
this.dialogNoticeType = 'error';
this.dialogNoticeTitle = '异常提示';
if(type=='success'){
this.dialogNoticeType = 'success';
this.dialogNoticeTitle = '执行成功';
this.dialogNoticeContent = '条码变更成功';
} else {
this.dialogNoticeContent = err;
}
},
dialogProps(dialogContent,type,params){
this.showDialog = true;
this.dialogTitle = '提示';
this.dialogContent = dialogContent;
this.dialogType = type
this.dialogParams.params = params
},
dialogConfirmClick() {
console.log("dialogConfirmClick");
this.showDialog = false;
if (this.dialogType == 'judgeCash') {
if (!this.dialogLastSaveOrgid) {
this.dialogLastSaveOrgid = this.orgFItemID;
}
this.loadByCash(this.dialogLastSaveOrgid);
this.dialogLastSaveOrgid = '';
}
if (this.dialogType == 'orgChangeLoadByCash') {
this.loadByCash(this.orgFItemID);
}
let _self = this;
if (this.dialogType == 'del') {
_self.yesTableData = _self.yesTableData.filter(
function(el, index){
return !_self.yesTableSelectedData.includes(index);
}
);
_self.barcodeList = _self.barcodeList.filter(
function(el,index){
return !_self.yesTableSelectedData.includes(index);
}
);
_self.commitList = _self.commitList.filter(
function(el,index){
return !_self.yesTableSelectedData.includes(index)
}
);
_self.yesTableSelectedData = 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() {
console.log("dialogCancelClick");
this.showDialog = false
if (this.dialogType == 'judgeCash') {
this.dialogLastSaveOrgid = '';
uni.setStorageSync(this.dbAlise + this.userName + this.currentTranType + 'lastSaveOrgid','');
}
if (this.dialogType == 'orgChangeLoadByCash') {
uni.setStorageSync('pageCash' + this.dbAlise + this.userName + this.currentTranType + this.orgFItemID, '');
}
},
tabChange(index) {
this.detailTabIndex = index;
},
loadByCash(orgId) {
let cashValue = uni.getStorageSync('pageCash' + this.dbAlise + this.userName + this.currentTranType + orgId);
let _self = this;
if (cashValue) {
this.orgFItemID = cashValue.otherInfo.orgFItemID;
this.yesTableData = cashValue.yesTableData;
this.barcodeList = cashValue.barcodeList;
this.commitList = cashValue.commitList;
this.orgArry.forEach(
function(el,index){
let currentOrgid = el.FINTERID;
let result = (currentOrgid == _self.orgFItemID);
if (result) {
_self.orgIndex = index;
_self.newOrgIndex = _self.orgIndex;
_self.FCOMPANYID = _self.orgFItemID;
el.FNAME = el.FNAME?el.FNAME:'无';
}
}
);
}
},
saveCash() {
this.pageCashInfo.otherInfo = {orgFItemID: this.orgFItemID};
this.pageCashInfo.yesTableData = this.yesTableData;
this.pageCashInfo.commitList = this.commitList;
this.pageCashInfo.barcodeList = this.barcodeList;
uni.setStorageSync('pageCash' + this.dbAlise + this.userName + this.currentTranType + this.orgFItemID, this.pageCashInfo);
},
judgeCash:function(){
this.dialogLastSaveOrgid = uni.getStorageSync(this.dbAlise + this.userName + this.currentTranType + 'lastSaveOrgid');
if (!this.dialogLastSaveOrgid) {
this.dialogLastSaveOrgid = this.orgFItemID;
}
let cashValue = uni.getStorageSync('pageCash' + this.dbAlise + this.userName + this.currentTranType + this.orgFItemID);
if(cashValue && cashValue.commitList){
this.dialogProps('存在未提交数据是否加载','judgeCash')
}
},
getOrgList() {
let orgInfo = uni.getStorageSync('orgInfo');
let _self = this;
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.orgIndex = index;
_self.newOrgIndex = _self.orgIndex;
_self.FCOMPANYID = _self.orgFItemID;
el.FNAME = el.FNAME?el.FNAME:'无';
}
}
);
} else {
this.orgArry = [{name:"请选择组织", key:"", FNAME:"当前无组织"}];
this.orgIndex = 0;
}
},
orgChange(e) {
this.orgIndex = e.target.value;
this.newOrgIndex = this.orgIndex;
let isOpenDefaultOrg = uni.getStorageSync('isOpenDefaultOrg');
if (!this.orgArry[this.orgIndex].FINTERID) {
this.orgFItemID = "";
} else {
this.orgFItemID = this.orgArry[this.orgIndex].FINTERID;
if (isOpenDefaultOrg) {
uni.setStorageSync('defaultOrgInfo', this.orgArry[this.orgIndex]);
}
}
this.newOrgIndex = this.orgIndex;
this.FCOMPANYID = this.orgFItemID;
this.getDeptInfo();
this.getCustomerInfo();
this.getSupplierInfo();
let cashValue = uni.getStorageSync('pageCash' + this.dbAlise + this.userName + this.currentTranType + this.orgFItemID);
if (cashValue) {
this.dialogProps('存在未提交数据是否加载', 'orgChangeLoadByCash');
} else {
this.orgChangedClear();
}
},
orgChangedClear() {
this.clearBtnClick();
this.yesTableData = [];
this.yesTableSelectedData = [];
this.commitList = [];
this.barcodeList = [];
this.showResult = true;
},
creatTimeChange(value) {
let item = this.creatTimeList[0];
item['detail'] = value;
},
creatTimePicker() {
this.creatTimeType = 'date';
this.$refs.creatTime.show();
},
//获取库存状态列表
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;
if(e.FNO=="KCZT01_SYS") {
_self.FSTOCKSTATUSNAME = e.FNAME;
_self.FSTOCKSTATUSID = e.FNO;
if(_self.$refs.stockStatusList) {
_self.$refs.stockStatusList.selectText = e.FNAME;
}
}
});
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
stockStatusChange({ newVal, oldVal, index, orignItem }){
this.FSTOCKSTATUSNAME = orignItem.FNAME;
this.FSTOCKSTATUSID = orignItem.FNO;
},
newOrgChange(e) {
this.newOrgIndex = e.target.value;
this.FCOMPANYID = this.orgArry[this.newOrgIndex].FINTERID;
},
keepTypeChange({ newVal, oldVal, index, orignItem }){
this.keepTypeSelectText = orignItem.value;
this.FKEEPERTYPEID = orignItem.id;
this.FKEEPERID = '';
if (this.FKEEPERTYPEID === 'ORG_Organizations' && this.keepOrgIndex >= 0) {
this.FKEEPERID = this.orgArry[this.keepOrgIndex].FINTERID;
}
if (this.FOWNERTYPEID === 'BD_SUPPLIER' && this.keepSupplierIndex >= 0) {
this.keepSupplierSelectText = this.supplierInfoList[this.keepSupplierIndex].value;
this.$refs.keepSupplierList.selectText = this.supplierInfoList[this.keepSupplierIndex].value;
this.FKEEPERID = this.supplierInfoList[this.keepSupplierIndex].FID;
}
if (this.FOWNERTYPEID === 'BD_CUSTOMER' && this.keepCustomerIndex >= 0) {
this.keepCustomerSelectText = this.customerInfoList[this.keepCustomerIndex].value;
this.$refs.keepCustomerList.selectText = this.customerInfoList[this.keepCustomerIndex].value;
this.FKEEPERID = this.customerInfoList[this.keepCustomerIndex].FID;
}
this.$forceUpdate();
},
keepOrgChange(e) {
this.keepOrgIndex = e.target.value;
this.FKEEPERID = this.orgArry[this.keepOrgIndex].FINTERID;
},
keepSupplierChange({ newVal, oldVal, index, orignItem }){
this.keepSupplierSelectText = orignItem.value;
this.keepSupplierIndex = index;
this.FKEEPERID = orignItem.FID;
},
keepCustomerChange({ newVal, oldVal, index, orignItem }){
this.keepCustomerSelectText = orignItem.value;
this.keepCustomerIndex = index;
this.FKEEPERID = orignItem.FID;
},
ownerTypeChange({ newVal, oldVal, index, orignItem }){
this.ownerTypeSelectText = orignItem.value;
this.FOWNERTYPEID = orignItem.id;
this.FOWNERID = '';
if (this.FOWNERTYPEID === 'ORG_Organizations' && this.ownerOrgIndex >= 0) {
this.FOWNERID = this.orgArry[this.ownerOrgIndex].FINTERID;
}
if (this.FOWNERTYPEID === 'BD_SUPPLIER' && this.ownerSupplierIndex >= 0) {
this.ownerSupplierSelectText = this.supplierInfoList[this.ownerSupplierIndex].value;
this.$refs.ownerSupplierList.selectText = this.supplierInfoList[this.ownerSupplierIndex].value;
this.FOWNERID = this.supplierInfoList[this.ownerSupplierIndex].FID;
}
if (this.FOWNERTYPEID === 'BD_CUSTOMER' && this.ownerCustomerIndex >= 0) {
this.ownerCustomerSelectText = this.customerInfoList[this.ownerCustomerIndex].value;
this.$refs.ownerCustomerList.selectText = this.customerInfoList[this.ownerCustomerIndex].value;
this.FOWNERID = this.customerInfoList[this.ownerCustomerIndex].FID;
}
this.$forceUpdate();
},
ownerOrgChange(e) {
this.ownerOrgIndex = e.target.value;
this.FOWNERID = this.orgArry[this.ownerOrgIndex].FINTERID;
},
ownerSupplierChange({ newVal, oldVal, index, orignItem }){
this.ownerSupplierSelectText = orignItem.value;
this.ownerSupplierIndex = index;
this.FOWNERID = orignItem.FID;
},
ownerCustomerChange({ newVal, oldVal, index, orignItem }){
this.ownerCustomerSelectText = orignItem.value;
this.ownerCustomerIndex = index;
this.FOWNERID = orignItem.FID;
},
barcodeStatusChange({ newVal, oldVal, index, orignItem }){
this.barcodeStatusSelectText = orignItem.value;
this.FSTOCKSTATUS = orignItem.id;
},
barcodeConfirm() {
if (!this.barcodeNumber) {
uni.showToast({
icon: "none",
title: "请输入条码",
duration: 3500,
});
return false;
}
this.barcodeNumber = this.barcodeNumber.toUpperCase();
let isFail = this.checkBarcodeNumber(this.barcodeNumber);
if (isFail) {
uni.showToast({
icon: "none",
title: "请输入正确的条码",
duration: 3500,
});
return false;
}
let currentBarcode = this.barcodeNumber;
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;
}
}
}
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
let requestParams = {
barcode: this.barcodeNumber,
orgID: this.orgFItemID,
billType : this.currentTranType
}
this.$request.get('/Barcode/GetBarcodeMsg',{params:requestParams}).then(res => {
uni.hideLoading();
let data = res;
console.log('/Barcode/GetBarcodeMsg', data);
let _self = this;
//库存状态
_self.FSTOCKSTATUSID = res.FSTOCKSTATUSID;
_self.FSTOCKSTATUSNAME = res.FSTOCKSTATUSNAME;
if(_self.$refs.stockStatusList) {
_self.$refs.stockStatusList.selectText = res.FSTOCKSTATUSNAME;
}
_self.FUSEFULDATE = data["FUSEFULDATE"];
_self.FKEEPERID = data["FKEEPERID"];
_self.FKEEPERTYPEID = data["FKEEPERTYPEID"];
if (_self.FKEEPERTYPEID) {
_self.keepTypeList.forEach(el=>{
if (el.id === _self.FKEEPERTYPEID) {
_self.$refs.keepTypeList.selectText = el.value;
_self.keepTypeSelectText = el.value;
}
});
if (_self.FKEEPERTYPEID === 'ORG_Organizations') {
_self.keepOrgIndex = 0;
_self.orgArry.forEach(
function(el, index){
if (el.FINTERID === _self.FKEEPERID) {
_self.keepOrgIndex = index;
}
}
);
if (_self.keepOrgIndex === 0) {
const localOrgid = _self.orgArry[_self.keepOrgIndex].FINTERID;
if (localOrgid !== _self.FKEEPERID) {
// 提示信息
_self.dialogNoticeProps("条码的保管者组织在系统未查询到!",'error');
_self.clearBtnClick();
}
}
}
if (_self.FKEEPERTYPEID === 'BD_SUPPLIER') {
_self.supplierInfoList.forEach(
function(el, index){
if (el.FID === _self.FKEEPERID) {
_self.keepSupplierSelectText = orignItem.value;
_self.$refs.keepSupplierList.selectText = el.value;
}
}
);
}
if (_self.FKEEPERTYPEID === 'BD_CUSTOMER') {
_self.customerInfoList.forEach(
function(el, index){
if (el.FID === _self.FKEEPERID) {
_self.keepCustomerSelectText = orignItem.value;
_self.$refs.keepCustomerList.selectText = el.value;
}
}
);
}
}
_self.FOWNERID = data["FOWNERID"];
_self.FOWNERTYPEID = data["FOWNERTYPEID"];
if (_self.FOWNERTYPEID) {
_self.ownerTypeList.forEach(el=>{
if (el.id === _self.FOWNERTYPEID) {
_self.$refs.ownerTypeList.selectText = el.value;
_self.ownerTypeSelectText = el.value;
}
});
if (_self.FOWNERTYPEID === 'ORG_Organizations') {
_self.ownerOrgIndex = 0;
_self.orgArry.forEach(
function(el, index){
if (el.FINTERID === _self.FKEEPERID) {
_self.ownerOrgIndex = index;
}
}
);
if (_self.ownerOrgIndex === 0) {
const localOrgid = _self.orgArry[_self.ownerOrgIndex].FINTERID;
if (localOrgid !== _self.FOWNERID) {
// 提示信息
_self.dialogNoticeProps("条码的货主组织在系统未查询到!",'error');
_self.clearBtnClick();
}
}
}
if (_self.FOWNERTYPEID === 'BD_SUPPLIER') {
_self.supplierInfoList.forEach(
function(el, index){
if (el.FID === _self.FKEEPERID) {
_self.ownerSupplierSelectText = orignItem.value;
_self.$refs.ownerSupplierList.selectText = el.value;
}
}
);
}
if (_self.FOWNERTYPEID === 'BD_CUSTOMER') {
_self.customerInfoList.forEach(
function(el, index){
if (el.FID === _self.FKEEPERID) {
_self.ownerCustomerSelectText = orignItem.value;
_self.$refs.ownerCustomerList.selectText = el.value;
}
}
);
}
}
_self.FSECUNITQTY = data["FSECUNITQTY"];
_self.FSECUNITID = data["FSECUNITID"];
_self.FISSECUNIT = data["FISSECUNIT"];
_self.FUNITID = data["FUNITID"];
if (data["FLOCATION"]
&& (data["FSTOCKID"] || data["FSTOCKID"] === 0)
&& (data["FSTOCKLOCID"] || data["FSTOCKLOCID"] === 0)) {
// _self.FSCStockNumber = data["FLOCATION"];
// _self.FSCStockNumber = _self.FSCStockNumber.replace(/\s*/g,"");
_self.FSTOCKID = data["FSTOCKID"];
// _self.FSCSPNumber = data["FLOCATION"];
// _self.FSCSPNumber = _self.FSCSPNumber.replace(/\s*/g,"");
_self.FSTOCKLOCID = data["FSTOCKLOCID"];
_self.FLOCATION = data["FLOCATION"] ? data["FLOCATION"] : "";
}
_self.FLOCATION = _self.FLOCATION.replace(/\s*/g,"");
_self.FITEMNUMBER = data["FITEMNUMBER"];
_self.FITEMNAME = data["FITEMNAME"];
_self.FSPECIFICATION = data["FSPECIFICATION"];
_self.FKFPERIOD = data["FKFPERIOD"];
_self.FQTY = data["FQTY"];
_self.FBASEQTY = data["FBASEQTY"];
_self.FUNITNAME = data["FUNITNAME"];
_self.FSECUNITNAME = data["FSECUNITNAME"];
_self.FBOXBARCODE = data["FBOXBARCODE"]?data["FBOXBARCODE"]:"";
_self.FKFDATE = data["FKFDATE"];
_self.FLOT = data["FLOT"];
_self.FMATERIALID = data["FMATERIALID"];
_self.FAUXPROPNAME = data["FAUXPROPNAME"] ? data["FAUXPROPNAME"] : "";
if (data["FSTOCKSTATUS"] || data["FSTOCKSTATUS"] === 0) {
_self.FSTOCKSTATUS = data["FSTOCKSTATUS"];
_self.barcodeStatusList.forEach(el=>{
if (el.id == data["FSTOCKSTATUS"]) {
_self.barcodeStatusSelectText = el.value;
if (_self.$refs.barcodeStatusList) {
_self.$refs.barcodeStatusList.selectText = el.value;
}
}
});
}
_self.itemNumber = data["FITEMNUMBER"];
_self.itemName = data["FITEMNAME"];
_self.qty = data["FQTY"];
_self.unitName = data["FUNITNAME"];
_self.secunitQty = data["FSECUNITQTY"];
_self.secunitName = data["FSECUNITNAME"];
_self.location = _self.FLOCATION;
_self.model = data["FSPECIFICATION"];
_self.auxPropName = data["FAUXPROPNAME"] ? data["FAUXPROPNAME"] : "";
_self.lot = data["FLOT"];
_self.showLocationFcous();
_self.showResult = true;
_self.$forceUpdate();
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error');
});
},
scanImageClick(e) {
let currentScanType = e;
let _self = this;
uni.scanCode({
success:function(res) {
if(currentScanType == 'barCodeScan') {
_self.barcodeNumber = res.result;
_self.barcodeConfirm();
}
else if(currentScanType == "StockScan") {
_self.location = res.result;
_self.locationConfirm();
}
}
});
},
timeStockClick() {
this.stockNav = true;
let item = {
"barCode": this.barcodeNumber ? this.barcodeNumber : "",
"FItemNumber": this.itemNumber ? this.itemNumber : "",
"FItemName": this.itemName ? this.itemName : "",
"FLocation": this.location ? this.location : "",
"orgid": this.orgFItemID
};
uni.navigateTo({
url: '../../views/STK_Inventory/STK_Inventory?item='+ encodeURIComponent(JSON.stringify(item))
});
},
locationConfirm() {
let requestParams = {
"tranType": this.currentTranType,
"stockData": this.location,
"sourceTranType": '',
"sourceBillNO": '',
"orgID": this.FCOMPANYID
};
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
let _self = this;
this.$request.post('/SelBill/QueryStockData',requestParams).then(res => {
uni.hideLoading();
console.log("----locationCheck---- requestsuccess");
let data = res;
//校验库存状态是否在存放位置的库存状态中
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;
}
}
this.FLOCATION = data.FLOCATION;
this.FSTOCKID = data.FSTOCKID;
this.FSTOCKNUMBER = data.FSTOCKNUMBER;
this.FSTOCKLOCID = data.FSTOCKLOCID;
this.FSTOCKLOCNUMBER = data.FSTOCKLOCNUMBER;
let rowDataBarcode = {
"FBarcodeNumber": this.barcodeNumber,
"FItemNumber": this.FITEMNUMBER ? this.FITEMNUMBER:"",
"FItemName": this.FITEMNAME ? this.FITEMNAME:"",
"FItemID": this.FItemID,
"FModel": this.FSPECIFICATION ? this.FSPECIFICATION:"",
"FBatchNO": this.FLOT ? this.FLOT : "",
"FAuxPropName": this.FAuxPropName ? this.FAuxPropName : "",
"FKFPeriod": this.FKFPeriod ? this.FKFPeriod : "",
"FKFDate": this.FKFDate ? this.FKFDate:"",
"FQty": this.FQTY,
"FUnitName": this.FUNITNAME ? this.FUNITNAME:"",
"FStockNumber": this.FSTOCKNUMBER ? this.FSTOCKNUMBER:"",
"FStockPlaceNumber": this.FSTOCKLOCNUMBER ? this.FSTOCKLOCNUMBER:"",
"FStockID": this.FSTOCKID,
"FStockPlaceID": this.FSTOCKLOCID,
"FSTOCKSTATUSID": this.FSTOCKSTATUSID
};
this.yesTableData.push(rowDataBarcode);
let commitDataBarcode = {
"FCOMPANYID": this.FCOMPANYID ? this.FCOMPANYID:'',
"FKEEPERTYPEID": this.FKEEPERTYPEID ? this.FKEEPERTYPEID:'',
"FKEEPERID": this.FKEEPERID ? this.FKEEPERID:'',
"FOWNERTYPEID": this.FOWNERTYPEID ? this.FOWNERTYPEID:'',
"FOWNERID": this.FOWNERID ? this.FOWNERID:'',
"FBARCODE": this.barcodeNumber ? this.barcodeNumber:'',
"FSTOCKID": this.FSTOCKID,
"FSTOCKLOCID": this.FSTOCKLOCID,
"FLOCATION": this.FLOCATION ? this.FLOCATION : '',
"FSTOCKSTATUS": this.FSTOCKSTATUS,
"FSTOCKSTATUSID": this.FSTOCKSTATUSID
};
this.commitList.push(commitDataBarcode);
this.barcodeList.push(this.barcodeNumber);
uni.showToast({
icon: 'success',
title: "数据输入成功"
});
console.log("this.commitList",this.commitList);
let FSTOCKSTATUS = this.FSTOCKSTATUS;
let FSTOCKID = this.FSTOCKID;
let FSTOCKLOCID = this.FSTOCKLOCID;
let FLOCATION = this.FLOCATION;
let barcodeStatusSelectText = this.barcodeStatusSelectText;
this.clearBtnClick();
this.FSTOCKSTATUS = FSTOCKSTATUS;
this.FSTOCKID = FSTOCKID;
this.FSTOCKLOCID = FSTOCKLOCID;
this.FLOCATION = FLOCATION;
this.location = FLOCATION;
this.barcodeStatusSelectText = barcodeStatusSelectText;
this.$refs.barcodeStatusList.selectText = barcodeStatusSelectText;
uni.setStorageSync(this.dbAlise + this.userName + this.currentTranType + 'lastSaveOrgid', this.orgFItemID);
this.saveCash();
this.showBarcodeNumberFcous();
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error');
});
},
yesTableSelect(selected) {
if(selected.length > 0){
this.showResult = false;
} else {
this.showResult = true;
}
this.yesTableSelectedData = selected;
},
commitBtnClick() {
if (this.isCommitBtnDisable) {
return;
}
this.isCommitBtnDisable = true;
if (this.commitList.length <= 0) {
uni.showToast({
icon: 'none',
title: "无提交数据",
duration: 1600,
});
this.isCommitBtnDisable = false;
return false;
}
let requestUrl = '/Barcode/UpBarcodeInfo';
let requestParams = {
"barcodeList": this.commitList,
"orgID": this.orgFItemID,
"TranType": this.currentTranType.toUpperCase(),
"FDate": this.creatTimeList[0].detail
};
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
this.$request.post(requestUrl,requestParams).then(res => {
uni.hideLoading();
this.isCommitBtnDisable = false;
this.showResult = true;
this.commitList.splice(0, this.commitList.length);
this.yesTableData.splice(0, this.yesTableData.length);
this.barcodeList.splice(0, this.barcodeList.length);
this.clearBtnClick();
this.$forceUpdate();
let msg = res;
if (res.data) {
msg = res.data;
}
this.dialogNoticeProps(msg, "success");
this.showBarcodeNumberFcous();
}).catch(err => {
this.isCommitBtnDisable = false;
uni.hideLoading();
this.dialogNoticeProps(err, 'error');
});
},
clearBtnClick() {
this.barcodeNumber = '';
this.itemNumber = '';
this.qty = '';
this.unitName = '';
this.secunitQty = '';
this.secunitName = '';
this.newOrgIndex = this.orgIndex;
this.FCOMPANYID = this.orgFItemID;
this.keepTypeSelectText = '业务组织';
this.keepOrgIndex = 0;
this.keepSupplierSelectText = '';
this.keepSupplierIndex = -1;
this.keepCustomerSelectText = '';
this.keepCustomerIndex = -1;
this.ownerTypeSelectText = '业务组织';
this.ownerOrgIndex = 0;
this.ownerSupplierSelectText = '';
this.ownerSupplierIndex = -1;
this.ownerCustomerSelectText = '';
this.ownerCustomerIndex = -1;
// this.boxQty = '';
this.barcodeStatusSelectText = '';
this.stockStatusSelectText = '';
this.location = '';
// this.stockNumber = '';
// this.pNumber = '';
this.itemName = '';
this.model = '';
this.auxPropName = '';
this.lot = '';
this.FSTOCKSTATUS = '';
this.FSTOCKSTATUSNAME = '';
this.FSTOCKSTATUSID = '';
this.FUSEFULDATE = '';
this.FKEEPERID = this.orgFItemID;
this.FKEEPERTYPEID = 'ORG_Organizations';
this.FOWNERID = this.orgFItemID;
this.FOWNERTYPEID = 'ORG_Organizations';
this.FSECUNITQTY = '';
this.FSECUNITID = '';
this.FISSECUNIT = '';
this.FUNITID = '';
this.FITEMNUMBER = '';
this.FITEMNAME = '';
this.FSECUNITID = '';
this.FSPECIFICATION = '';
this.FKFPERIOD = '';
this.FQTY = '';
this.FBASEQTY = '';
this.FUNITNAME = '';
this.FSECUNITNAME = '';
this.FBOXBARCODE = '';
this.FKFDate = '';
this.FLOT = '';
this.FMATERIALID = '';
this.FAUXPROPNAME = '';
this.FLOCATION = '';
this.FSTOCKID = '';
this.FSTOCKNUMBER = '';
this.FSTOCKLOCID = '';
this.FSTOCKLOCNUMBER = '';
this.$refs.barcodeStatusList.selectText = '';
this.$refs.ownerTypeList.selectText = '业务组织';
this.$refs.ownerCustomerList.selectText = '';
this.$refs.ownerSupplierList.selectText = '';
this.$refs.keepTypeList.selectText = '业务组织';
this.$refs.keepSupplierList.selectText = '';
this.$refs.keepCustomerList.selectText = '';
},
//删除样式
delBtnClick(e) {
if (this.yesTableSelectedData.length == 0) {
uni.showToast({
icon: "none",
title: "无删除数据"
})
return false;
}
this.dialogProps('确定删除数据吗?','del')
// uni.showModal();
},
showBarcodeNumberFcous() {
this.barcodeNumberFcous = false;
this.locationFocus = false;
let _self = this;
setTimeout(
function() {
_self.$nextTick(
function(){
_self.barcodeNumberFcous = true;
}
);
},
100
);
},
showLocationFcous() {
this.barcodeNumberFcous = false;
this.locationFocus = false;
let _self = this;
setTimeout(
function() {
_self.$nextTick(
function(){
_self.locationFocus = true;
}
);
},
100
);
},
//test 测试添加
...mapMutations(['updateCacheByStorage'])
}
};
</script>
<style lang="scss" scoped>
.z-application-content {
font-size: 44rpx;
}
.detail-organzie-select {
width: 100%;
border-radius: 10rpx;
border: 2rpx solid #D8D8D8;
flex: 1 1;
margin-left: 24rpx;
height: 60rpx;
line-height: 60rpx;
padding-left: 24rpx;
display: flex;
flex-direction: row;
align-items: center;
}
.detail-organzie-content{
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #5F7EF8;
}
.detail-organzie{
display: flex;
align-items: center;
position: relative;
width: 70%;
.detail-organzie-select {
width: 100%;
border-radius: 10rpx;
border: 2rpx solid #D8D8D8;
flex: 1 1;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #5F7EF8;
margin-left: 24rpx;
display: flex;align-items: center;height: 40rpx;line-height: 40rpx;
white-space: nowrap;overflow: hidden;text-overflow: ellipsis;
margin-left: 10rpx;
box-shadow: 1px 1px 5px 1px #e6e6e6 inset;margin-left: 20rpx;
}
.detail-organzie-content{
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #5F7EF8;
padding: 0 20rpx;
}
.detail-organzie-img{
height: 32rpx;width: 32rpx;padding-left: 10rpx;position: absolute;right: 0;
}
}
.detail-date{
display: flex;flex-direction: row;align-items: center;position: relative;width: 30%;
.detail-date-select{
width: 100%;
border-radius: 10rpx;
border: 2rpx solid #D8D8D8;
flex: 1 1;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #5F7EF8;
margin-left: 24rpx;
padding-left: 10rpx;height: 40rpx;line-height: 40rpx;white-space: nowrap;overflow: hidden;
box-shadow: 1px 1px 5px 1px #e6e6e6 inset;
}
}
.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;
}
.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;
flex-grow: 1;
flex-shrink: 1;
}
.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;
}
.button-class{
height:80rpx;
line-height:80rpx;
border-radius:4rpx;
font-size:32rpx;
margin-top: 32rpx;
background-color: #4662FF;
color: #FFFFFF!important;
}
.bill-next-button{
width: 120rpx;
height: 60rpx;
line-height: 60rpx;
border-radius: 10rpx;
border: 2rpx;
// flex: 0 0;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
margin-left: 24rpx;
background-color: #007AFF;
}
.bill-next-button-disable{
width: 120rpx;
height: 60rpx;
line-height: 60rpx;
border-radius: 10rpx;
border: 2rpx solid;
// flex: 0 0;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
margin-left: 24rpx;
background-color: #808080 ;
}
</style>