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

1884 lines
53 KiB
Vue
Executable File

<template>
<view class="content">
<opsoft-dialog-notice
:dialogNoticeShow="showDialog"
:dialogNoticeType="dialogNoticeType"
:dialogNoticeTitle="dialogNoticeTitle"
:dialogNoticeContent="dialogNoticeContent"
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
>
</opsoft-dialog-notice>
<view class="content-head">
<view class="header-top" style="margin: 0;">
<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 class="type-select-box">
<p class="p-taitl">待追加条码</p>
<view class="tool-box">
<input type="text" class="head-input"
v-model="FBoxCodeNO" @confirm="boxCodeConfirm()" :focus="boxFocus">
</view>
<image src="../../../static/img/scan-blue.png"
v-show="showScan" @click="scan('boxCodeScan')"></image>
</view>
<!-- 只读 通过获取待追加条码填充 -->
<view class="type-select-box">
<p class="p-taitl">待追加条码类型</p>
<view class="tool-box">
<input type="text" class="showcolor" disabled
v-model="BoxCodeType">
</view>
</view>
<!-- <view class="type-select-box">
<p class="p-taitl">箱&ensp;&ensp;&ensp;&ensp;码</p>
<view class="tool-box">
<input type="text" class="head-input"
v-model="FBoxCodeNO" @confirm="boxCodeConfirm()" :focus="boxFocus">
</view>
<image src="../../../static/img/scan-blue.png"
v-show="showScan" @click="scan('boxCodeScan')"></image>
</view> -->
<view class="type-select-box">
<p class="p-taitl">原条码内码数</p>
<view class="tool-box">
<input type="text" class="showcolor"
v-model="innerCodeQty" disabled />
</view>
</view>
<view class="type-select-box">
<p class="p-taitl">条&ensp;&ensp;&ensp;&ensp;码</p>
<view class="tool-box">
<input type="text" :class="[barCodeDisable?'showcolor':'head-input']" v-model="FBarCodeNO"
@confirm="barCodeConfirm()" :focus="barCodeFocus" :disabled="barCodeDisable">
</view>
<image src="../../../static/img/scan-blue.png"
v-show="showScan && !barCodeDisable" @click="scan('barCodeScan')"></image>
</view>
<view class="type-select-box">
<p class="p-taitl">数&ensp;&ensp;&ensp;&ensp;量</p>
<view class="tool-box">
<input type="text" :class="[qtyDisable?'showcolor':'head-input']"
v-model="FQty" @confirm="qtyConfirm()" :disabled="qtyDisable" :focus="qtyFocus" />
</view>
</view>
<!-- <view class="type-select-box">
<p class="p-taitl">箱&ensp;&ensp;&ensp;&ensp;数</p>
<view class="tool-box">
<input type="text" :class="[!qtyDisable?'head-input':'showcolor']"
v-model="CartonNumbers" @confirm="boxQtyConfirm()"
:focus="CartonNumbersFocus" :disabled="qtyDisable">
</view>
</view> -->
<view class="type-select-box">
<p class="p-taitl2">是否混装</p>
<view class="tool-box" style="padding-left: 20rpx;">
<checkbox-group @change="mixedCbChange">
<checkbox class="head-checkbox" :checked="isMixed" :disabled="realMixed"></checkbox>
</checkbox-group>
</view>
<p class="p-taitl2" style="margin-left: 0rpx;">是否追加</p>
<view class="tool-box" style="padding-left: 20rpx;">
<checkbox-group>
<checkbox class="head-checkbox" :checked="isAdded" :disabled="true"></checkbox>
</checkbox-group>
</view>
<view v-if="printSwitch || bluetoothSwitch" style="display: flex;">
<p class="p-taitl2">是否打印</p>
<view class="tool-box" style="padding-left: 20rpx;">
<checkbox-group @change="printCbChange">
<checkbox class="head-checkbox" :checked="isPrinted"></checkbox>
</checkbox-group>
</view>
</view>
</view>
</view>
<view style="height: 32rpx;"></view>
<view class="separate"></view>
<view class="lists">
<view @tap="YesShow()" :class="[btnStyleChangeScan?'btn-change':'btn']" >已扫描</view>
<view class="lists-line" />
<view @tap="SourceShow()" :class="[btnStyleChangeSource?'btn-change':'btn']">原条码内码</view>
<view class="lists-line" />
<view @tap="showBarcodeTab()" :class="[selectBarcodeTabFlag?'btn-change':'btn']">已装箱</view>
<view class="lists-line" v-if="bluetoothSwitch || printSwitch" />
<view @tap="OpetaShow()" :class="[btnStyleChangePrint?'btn-change':'btn']"
v-if="printSwitch">打印设置</view>
<view class="lists-line" v-if="bluetoothSwitch && printSwitch" />
<view @tap="showBluePrintTab()" :class="[showBluePrint?'btn-change':'btn']"
v-if="bluetoothSwitch">蓝牙设置</view>
</view>
<view v-show="showinp">
<NetworkPrintTab :prgkey="currentTranType" :printInfo="newIntelID" ref="networkPrintTab"
:orgId="orgFItemID" :baseUrl="baseUrl"/>
</view>
<view class="table" v-show="showYesShow">
<view class="z-table" style="padding-bottom: 100rpx;">
<z-table :tableData='YESTableData' :columns='YESColumns' emptyText='设置了showLoading=false才会看到我' showSelect
@onSelect='tableSelect' />
</view>
<!-- <view class="del-commit"> -->
<view class="type-select-box-del" v-show="!showResult">
<view @click="del()" style="color: #FFFFFF;font-size: 32rpx;border-radius: unset; background: #F76260;height: 80rpx;
line-height: 80rpx; text-align: center;">
删除
</view>
</view>
<view class="type-select-box-commit" v-show="showResult">
<view style="color: #FFFFFF;border-radius: unset;font-size: 32rpx;height: 80rpx;line-height: 80rpx; text-align: center;"
:style="{'background-color': (!isCommitBtnDisable ? '#4662FF' : '#808080')}"
@click="commitBtnClick()" :disabled="isCommitBtnDisable">
提交
</view>
</view>
</view>
<view class="table" v-show="showSourceShow">
<view class="z-table">
<z-table :tableData='sourceTableData' :columns='YESColumns' emptyText='设置了showLoading=false才会看到我' :showSelect="false"></z-table>
</view>
</view>
<view class="table" v-show="selectBarcodeTabFlag">
<view class="z-table">
<z-table :tableData='barcodeTableData' :columns='barcodeColumns'
emptyText='设置了showLoading=false才会看到我' showSelect @onSelect='barcodeSelect'></z-table>
<button class="button-class" @tap="printBarcode()" :disabled="printList.length == 0"
:style="{'background-color': (printList.length == 0 ? '#808080' : '')}" v-if="printSwitch">普通打印</button>
<button class="button-class" @tap="bluePrintBarcode()" :disabled="printList.length == 0"
:style="{'background-color': (printList.length == 0 ? '#808080' : '')}" v-if="bluetoothSwitch">蓝牙打印</button>
</view>
</view>
<view v-show="showBluePrint">
<BluetoothPrintTab ref="bluetoothPrintTab" :currentTranType = 'currentTranType' />
</view>
<view class="alter" v-show="showCashTips"></view>
<view class="err" v-show="showCashTips">
<view class="errTitle">温馨提示</view>
<view class="errList">
<view class="errDetails">当前页面存在未提交数据,是否需要加载</view>
</view>
<view style="height: 20rpx;"></view>
<view class="cash-btn">
<view class="cashConfirm" @click="comfirmHideCashTips">确定</view>
<view class="cashCancel" @click="cancelHideCashTips">取消</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
mapState,
mapMutations
} from 'vuex';
const commonUtil = require('../../../common/util.js');
const macAddress = require('../../../common/MacAddress.js');
// import errorUtil from '../../../common/errorutil.js';
var _self;
const printModule = uni.requireNativePlugin("PrintUtilModule");
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';
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
import errorStrUntil from '@/common/errorStrUntil.js';
export default {
components: {
NetworkPrintTab,
BluetoothPrintTab,
DateTimePicker,
opsoftDialogNotice
},
data() {
return {
rowDataItem:new Object(),
dialogNoticeContent:'',
dialogNoticeTitle:'',
dialogNoticeType:'',
showDialog:false,
// 日期选择
dateString: '',
type: 'date',
creatlist: [{
type: 'date',
detail: '选择开始时间'
}],
curDate: '',
dbAlise:'',
userName:'',
isChangedOrg:false,
showScan:true,
barCodeDisable: true,
currentTranType:'UN_AddPackaging',
showCashTips:false,
loadCash:false,
pageCashInfo: new Object(),
barcodeExistList:[],
FUnitID:"",
orgArry:[{name:"请选择组织", key:"", FName:""}],
orgFItemID:'',
index:0,
btnStyleChangeScan:true,
btnStyleChangePrint:false,
isCommitBtnDisable:false,
currentBillType: 1,
YESTableData: [],
//已扫描
YESColumns: [ { title: "批号", key: "FBatchNO", width: 450, formatNum: false },
{ title: "数量", key: "FQty", width: 250 },
{ title: "单位", key: "FUnitName", width: 250, formatNum: false },
{ title: "物料代码", key: "FItemNumber", width: 350, formatNum: false },
{ title: "物料名称", key: "FItemName", width: 350, formatNum: false },
{ title: "条码", key: "FNumber", width: 350, formatNum: false },
{ title: "规格", key: "FSize", width: 250, formatNum: false },
{ title: "型号", key: "FModel", width: 250, formatNum: false }],
sourceTableData: [],
barcodeDataTempList: [],
commitDataList: [],
tableSelectList: [],
selectedList: [],
realMixed: false,
isAdded: true,
FBoxCodeNO: "",
boxCodeDisable: false,
boxFocus: false,
qtyFocus: false,
CartonNumbers: "",
CartonNumbersFocus: false,
qtyDisable: true,
FBarCodeNO: "",
currentBarcodeNO: "",
FQty: "",
isShowOrg:true,
barCodeFocus:true,
showResult:true,
isMixed: false,
IsExist: false,
showYesShow: true,
showinp: false,
showSourceShow:false,
boxIsMixed: false,
btnStyleChangeSource: false,
baseUrl: '',
selectBarcodeTabFlag: false,
barcodeTableData: [],
barcodeColumns: [ { title: "条码", key: "barcode", width: 400, formatNum: false },
{ title: "状态", key: "status", width: 300, formatNum: false }, ],
printList: [],
isPrinted: true,
printSwitch: false,
bluetoothSwitch: false,
systemParameter: null,
showBluePrint: false,
newIntelID: '',
codeTypeList: [
{
id: 0,
value: '箱码'
},
{
id: 1,
value: '托盘码'
},
{
id: 2,
value: '栈板码'
}
],
BoxCodeType:null,//条码类型
innerCodeQty:null//原条码内码数
}
},
onBackPress(options) {
uni.redirectTo({
url: '../../tabbar/apply/apply'
});
return true;
},
onLoad() {
let _self = this;
this.dbAlise = uni.getStorageSync("dbAlise");
this.userName = uni.getStorageSync("userName");
this.showboxCodeFocus();
this.getOrgList();
this.baseUrl = uni.getStorageSync('RequestUrl');
_self.systemParameter = uni.getStorageSync('systemParameter');
_self.printSwitch = _self.systemParameter.printSwitch;
_self.bluetoothSwitch = _self.systemParameter.bluetoothSwitch;
if (!_self.printSwitch && !_self.bluetoothSwitch) {
_self.isPrinted = false;
}
this.judgeCash();
//当前时间
let date = new Date();
this.curDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
this.creatlist[0].detail = this.curDate;
},
onReady() {
if(this.$refs.bluetoothPrintTab){
this.$refs.bluetoothPrintTab.orgId = this.orgFItemID;
}
},
computed: {
indicatorStyle() {
return {
background: 'rgba(255,0,0,.2)',
height: '40px',
};
},
barcodeRule() {
console.log(this.sysParameters);
if (this.sysParameters) {
if (this.sysParameters.hasOwnProperty("BarcodeRuleForVerification")) {
let rule = this.sysParameters["BarcodeRuleForVerification"];
if (rule) {
return rule;
}
}
}
return "";
},
// ...mapState(["sysParameters", 'userInfo'])
},
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;
},
//日期切换
creatDatePicker() {
this.type = 'date';
this.$refs['creatTime'].show();
},
creatTimeChange(value) {
let item = this.creatlist[0];
item['detail'] = value;
},
scan:function(e){
let _self = this;
let currentScanType = e;
uni.scanCode({
success:function(res){
if(currentScanType == 'boxCodeScan'){
_self.FBoxCodeNO = res.result.toUpperCase();
_self.boxCodeConfirm();
}else if(currentScanType == 'barCodeScan'){
_self.FBarCodeNO = res.result;
_self.barCodeConfirm();
}
}
});
},
checkBoxBarcodeIsChanged:function(){
let _self = this;
let checkBoxBarcode = uni.getStorageSync('FBoxCodeNO');
if(_self.FBoxCodeNO != checkBoxBarcode){
uni.showModal({
title:"提示",
content:"箱码发生更改,请在箱码处确认修改",
showCancel:false
});
return false
}
},
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.barcodeExistList = cashValue.barcodeExistList;
this.commitDataList = cashValue.commitDataList;
this.sourceTableData = cashValue.sourceTableData;
this.isMixed = cashValue.otherInfo.isMixed;
this.realMixed = cashValue.otherInfo.realMixed;
// this.FQty = cashValue.otherInfo.FQty;
// this.qtyDisable = cashValue.otherInfo.qtyDisable;
// this.FBarCodeNO = cashValue.otherInfo.FBarCodeNO;
this.boxIsMixed = cashValue.otherInfo.boxIsMixed;
// this.boxCodeDisable = cashValue.otherInfo.boxCodeDisable;
// this.barCodeDisable = cashValue.otherInfo.barCodeDisable;
// this.CartonNumbers = cashValue.otherInfo.CartonNumbers;
this.FBoxCodeNO = cashValue.otherInfo.FBoxCodeNO;
this.currentBarcodeNO = cashValue.otherInfo.currentBarcodeNO;
this.isAdded = cashValue.otherInfo.isAdded;
this.IsExist = cashValue.otherInfo.IsExist;
this.isPrinted = cashValue.isPrinted;
this.sourceTableData = cashValue.sourceTableData;
this.barcodeTableData = cashValue.barcodeTableData;
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:'无';
}
}
);
},
//组织
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:'无';
}
}
);
} 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.orgChangedClear();
}
this.$refs.bluetoothPrintTab.orgId = this.orgFItemID;
this.$forceUpdate();
},
orgChangedClear:function(){
this.FBarCodeNO = "";
this.FQty = "";
this.FUnitID = "";
this.isMixed = false;
this.isAdded = true;
this.qtyDisable = true;
this.showResult = true;
this.barcodeExistList = [];
this.realMixed = false;
this.boxIsMixed = false;
this.boxCodeDisable = false;
this.barCodeDisable = true;
this.CartonNumbers = "";
this.FBoxCodeNO = "";
this.currentBarcodeNO = "";
this.YESTableData = [];
this.commitDataList = [];
this.IsExist = false;
this.isPrinted = '';
this.sourceTableData = [];
this.barcodeTableData = [];
this.BoxCodeType = null;
this.innerCodeQty = null;
this.$forceUpdate();
},
showboxCodeFocus:function(){
this.boxFocus = false;
this.qtyFocus = false;
this.barCodeFocus = false;
this.CartonNumbersFocus = false;
let _self = this;
setTimeout(function() {
_self.$nextTick(function(){
_self.boxFocus = true;
})
}, 500);
},
showbarCodeFocus:function(){
this.boxFocus = false;
this.qtyFocus = false;
this.barCodeFocus = false;
this.CartonNumbersFocus = false;
let _self = this;
setTimeout(function() {
_self.$nextTick(function(){
_self.barCodeFocus = true;
})
}, 500);
},
showqtyFocus:function(){
this.boxFocus = false;
this.qtyFocus = false;
this.barCodeFocus = false;
this.CartonNumbersFocus = false;
let _self = this;
setTimeout(function() {
_self.$nextTick(function(){
_self.qtyFocus = true;
})
}, 500);
},
showboxQtyFocus:function(){
this.boxFocus = false;
this.qtyFocus = false;
this.barCodeFocus = false;
this.CartonNumbersFocus = false;
let _self = this;
setTimeout(function() {
_self.$nextTick(function(){
_self.CartonNumbersFocus = true;
})
}, 500);
},
barCodeConfirm: function() {
let _self = this;
_self.checkBoxBarcodeIsChanged();
_self.boxCodeDisable = true;
_self.qtyDisable = true;
_self.FQty = "";
_self.CartonNumbers = "";
_self.barcodeDataTempList.splice(0, _self.barcodeDataTempList.length);
if (!_self.FBarCodeNO) {
uni.showToast({
icon: "none",
title: "请输入条码",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
_self.FBarCodeNO = _self.FBarCodeNO.toUpperCase();
let isFail = _self.checkBarcodeNumber(_self.FBarCodeNO);
if (isFail) {
uni.showToast({
icon: "none",
title: "请输入正确的条码",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
let requestParams = {
"barcode": _self.FBarCodeNO,
"billType": _self.currentBillType,
"orgId": _self.orgFItemID
};
requestParams.isMix = this.isMixed;
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
this.$request.get('/Barcode/GetBarcodeInfo',{
params:requestParams
}).then(res => {
uni.hideLoading();
console.log("----BarCheck---- requestsuccess");
//返回的是字符串
let data = res;
this.FUnitID = data["FUNITID"];
let rowData = {
FNumber: data["FBARCODE"],
FCType: data["FBARTYPE"],
FBarStatus: data["FBARCODESTATUS"],
FItemID: data["FMATERIALID"],
FItemNumber: data["FMATERIALNUMBER"],
FItemName: data["FMATERIALNAME"],
FBatchNO: data["FLOT"],
FQty: data["FQTY"],
FUnitName: data["FUNITNAME"],
FSize: data["FSPECIFICATION"],
FModel: data["FSPECIFICATION"],
FIsBox: data["FISBOX"],
FUnitID: data["FUNITID"],
FBASEQTY: data["FBASEQTY"],
FBASEUNITID: data["FBASEUNITID"],
MixBoxFactor: data["MixBoxFactor"],
CartonNumbers: "1",
FSTOCKSTATUSID:data.FSTOCKSTATUSID,
FUSEFULDATE:data.FUSEFULDATE
};
//校验仓库状态,保质期
if (this.YESTableData.length > 0) {
if(rowData.FSTOCKSTATUSID != this.YESTableData[0].FSTOCKSTATUSID||
rowData.FUSEFULDATE != this.YESTableData[0].FUSEFULDATE){
uni.showToast({
icon: "none",
title: "条码的库存状态,有效期一致才能合并",
duration: 3500,
});
return false;
}
}
//批次条码不用判断是否重复
if (rowData.FCType != 3 || rowData.FIsBox) {
_self.barcodeExistList = _self.YESTableData.filter(
function(el) {
return el.FNumber == _self.FBarCodeNO;
}
);
if (Boolean(_self.barcodeExistList) && _self.barcodeExistList.length > 0) {
uni.showToast({
icon: "none",
title: "条码已存在",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
//判断条码 FBarStatus 是否相同
if (_self.IsExist) {
if (rowData.FBarStatus != _self.sourceTableData[0].FBarStatus) {
uni.showToast({
icon: "none",
title: "条码状态必须相同",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
}
else {
if (_self.YESTableData.length > 0 && (rowData.FBarStatus != _self.YESTableData[0].FBarStatus)) {
uni.showToast({
icon: "none",
title: "条码状态必须相同",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
}
}
if (_self.IsExist) {
//若不混箱 MixBoxFactor 必须相同
if (!_self.isMixed && (_self.sourceTableData[0].MixBoxFactor != rowData.MixBoxFactor)){
uni.showToast({
icon: "none",
title: "此箱未勾选混装,如果有需要请选择混装",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
}
else {
if (!_self.isMixed && (_self.YESTableData.length > 0 && (_self.YESTableData[0].MixBoxFactor != rowData.MixBoxFactor))){
uni.showToast({
icon: "none",
title: "此箱未勾选混装,如果有需要请选择混装",
duration: 3500,
});
_self.barCodeDisable = false;
return false;
}
}
if (!_self.realMixed) {
if (_self.YESTableData.length > 0) {
if (_self.YESTableData[0].MixBoxFactor != rowData.MixBoxFactor) {
_self.realMixed = true;
}
}
if (_self.sourceTableData.length > 0){
if (_self.sourceTableData[0].MixBoxFactor != rowData.MixBoxFactor) {
_self.realMixed = true;
}
}
}
_self.CartonNumbers = 1;
//只有批次条码,但不是箱码的 条码 才能变更数量
if (rowData.FCType == 3 && rowData.FIsBox == false) {
_self.rowDataItem = rowData;
_self.barcodeDataTempList.push(rowData);
_self.qtyDisable = false;
_self.FQty = rowData.FQty;
let commitData = {
"Barcode": rowData.FNumber,
"BarStatus": rowData.FBarStatus,
"IsBox": rowData.FIsBox,
"CartonNumber":rowData.CartonNumbers,
"Qty": rowData.FQty,
"UnitId": _self.FUnitID,
"BaseQty": rowData.FBASEQTY,
"BaseUnitId": rowData.FBASEUNITID,
"MixBoxFactor":rowData.MixBoxFactor
};
_self.showqtyFocus();
} else {
_self.qtyDisable = true;
_self.FQty = rowData.FQty;
_self.YESTableData.push(rowData);
let commitData = {
"Barcode": rowData.FNumber,
"BarStatus": rowData.FBarStatus,
"IsBox": rowData.FIsBox,
"Qty": rowData.FQty,
"CartonNumber":rowData.CartonNumbers,
"UnitId": _self.FUnitID,
"BaseQty": rowData.FBASEQTY,
"BaseUnitId": rowData.FBASEUNITID,
"MixBoxFactor":rowData.MixBoxFactor
};
_self.commitDataList.push(commitData);
_self.FBarCodeNO = "";
_self.showbarCodeFocus();
}
// console.log(_self.userInfo);
_self.currentBarcodeNO = _self.FBarCodeNO;
if(this.qtyDisable){
let lastSaveOrgid = this.orgFItemID; //最后一次条码录入成功后(条码进入已扫描列表)的组织ID
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid',lastSaveOrgid);
this.saveCash();
}
_self.$forceUpdate();
console.log(_self.YESTableData);
}).catch(err => {
uni.hideLoading()
this.FBarCodeNO = "";
this.barCodeDisable = false;
this.barCodeFocus = false;
this.$nextTick(function(){
this.barCodeFocus = true;
});
this.dialogNoticeProps(err,'error')
});
},
commitBtnClick: function() {
let _self = this;
if (this.isCommitBtnDisable) {
return;
}
this.isCommitBtnDisable = true;
this.checkBoxBarcodeIsChanged();
if (this.YESTableData.length <= 0) {
uni.showToast({
icon:'none',
title: "无提交数据",
duration: 2500,
});
this.isCommitBtnDisable = false;
return false;
}
let requestParams = {
"isMix": this.realMixed,
"IsAdd": true,
"BoxCode": this.FBoxCodeNO,
"InBoxInfo": this.commitDataList,
// "orgid": this.orgFItemID,
"TranType": this.currentTranType.toUpperCase(),
"BoxCodeType":this.codeTypeList.find(item=>item.value == this.BoxCodeType).id,//条码类型
"innerCodeQty":this.innerCodeQty//原条码内码数
};
uni.showLoading({
icon:'loading',
title:'加载中……',
mask:true
});
this.$request.localPost('/Barcode/InBox', requestParams, "all").then(res => {
this.isCommitBtnDisable = false;
uni.hideLoading();
let msg = "执行成功";
if (res.StatusCode == 200 && res.Success == true && res.Message) {
msg = res.Message;
}
else {
msg = res.Data;
}
uni.showModal({
showCancel: false,
content: msg,
confirmText: '确定',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
}
}
});
if (res.StatusCode == 200 && res.Success == true && res.Message) {
this.commitDataList.forEach(
function(el){
let addFlag = true;
_self.barcodeTableData.forEach(
function(item) {
if (item.barcode == el.Barcode) {
addFlag = false;
}
}
);
if (addFlag) {
let obj = {barcode:el.Barcode, status:'装箱前'};
_self.barcodeTableData.push(obj);
}
}
);
}
this.commitDataList.splice(0, this.commitDataList.length);
this.YESTableData.splice(0, this.YESTableData.length);
this.sourceTableData.splice(0, this.sourceTableData.length);
this.FBarCodeNO = "";
this.FQty = "";
this.CartonNumbers = "";
this.FUnitID = "";
this.isMixed = false;
this.realMixed = false;
this.boxCodeDisable = false;
this.barCodeDisable = true;
this.isAdded = true;
uni.removeStorageSync('FBoxCodeNO');
this.$forceUpdate();
this.showbarCodeFocus();
if (res.StatusCode == 200 && res.Success == true && res.Message) {
if (this.FBoxCodeNO) {
let addFlag = true;
_self.barcodeTableData.forEach(
function(item) {
if (item.barcode == _self.FBoxCodeNO) {
addFlag = false;
}
}
);
if (addFlag) {
let obj = {barcode:this.FBoxCodeNO, status:'装箱后'};
this.barcodeTableData.push(obj);
}
if (this.isPrinted) {
let tempArray = [];
tempArray.push(this.FBoxCodeNO);
if (this.printSwitch) {
this.printBarcode(tempArray);
}
if (!this.printSwitch && this.bluetoothSwitch) {
this.bluePrintBarcode(tempArray);
}
}
}
}
uni.removeStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid');
uni.removeStorageSync('pageCash'+this.dbAlise+this.userName+this.currentTranType+this.orgFItemID);
}).catch(err => {
this.isCommitBtnDisable = false;
this.dialogNoticeProps(err,'error')
uni.hideLoading()
});
},
//已扫描
YesShow: function() {
this.showinp = false;
this.showYesShow = true;
this.showSourceShow = false;
this.btnStyleChangeScan = true;
this.btnStyleChangePrint = false;
this.btnStyleChangeSource = false;
this.selectBarcodeTabFlag = false;
this.showBluePrint = false;
},
//正操作
OpetaShow: function() {
this.showinp = true;
this.showYesShow = false;
this.showSourceShow = false;
this.btnStyleChangeScan = false;
this.btnStyleChangePrint = true;
this.btnStyleChangeSource = false;
this.selectBarcodeTabFlag = false;
this.showBluePrint = false;
},
//原箱内条码
SourceShow: function() {
this.showinp = false
this.showYesShow = false;
this.showSourceShow = true;
this.btnStyleChangeScan = false;
this.btnStyleChangePrint = false;
this.btnStyleChangeSource = true;
this.selectBarcodeTabFlag = false;
this.showBluePrint = false;
},
showBarcodeTab: function() {
this.selectBarcodeTabFlag = true;
this.showinp = false
this.showYesShow = false;
this.showSourceShow = false;
this.btnStyleChangeScan = false;
this.btnStyleChangePrint = false;
this.btnStyleChangeSource = false;
this.showBluePrint = false;
},
showBluePrintTab: function() {
this.selectBarcodeTabFlag = false;
this.showinp = false
this.showYesShow = false;
this.showSourceShow = false;
this.btnStyleChangeScan = false;
this.btnStyleChangePrint = false;
this.btnStyleChangeSource = false;
this.showBluePrint = true;
},
//选择下标元素
tableSelect: function(selected) {
if(selected.length > 0){
this.showResult = false;
}else{
this.showResult = true;
}
if (selected.length > 0 && selected.length > this.selectedList.length) {
let index = selected[selected.length-1];
let barcode = this.YESTableData[index].FNumber;
// if (barcode) {
// uni.showToast({
// title: "您选择了条码:" + barcode,
// icon: 'none'
// })
// }
}
this.selectedList = selected;
},
//删除
del: function(e) {
let _self = this;
_self.checkBoxBarcodeIsChanged();
uni.vibrateShort({
success: function() {
console.log('success');
}
});
if (this.selectedList.length == 0) {
uni.showToast({
icon: "none",
title: "无删除数据"
})
return false;
}
uni.showModal({
title: '提示',
content: '确定删除数据吗?',
showCancel: true,
cancelText: '取消',
confirmText: '确定',
success: res => {
if (res.confirm) {
_self.YESTableData = _self.YESTableData.filter(
function(el, index){
return !_self.selectedList.includes(index);
}
);
// delList.forEach(
// function(el, index){
// _self.commitDataList = _self.commitDataList.filter(
// function(commitEl){
// return commitEl.FNumber != el.FBarcodeNumber;
// }
// );
// }
// );
_self.selectedList = new Array();
_self.commitDataList = [];
uni.showToast({
icon: 'none',
title: '删除成功'
});
_self.showResult = true;
_self.YESTableData.forEach(
function(item,index){
let commitData = {
"Barcode":item.FNumber,
"BarStatus": item.FBarStatus,
"IsBox":item.FIsBox,
"CartonNumber":this.CartonNumbers,
"Qty":item.FQty,
"UnitId":item.FUnitID,
"BaseQty": item.FBASEQTY,
"BaseUnitId": item.FBASEUNITID,
"MixBoxFactor":item.MixBoxFactor
}
_self.commitDataList.push(commitData);
_self.realMixed = false;
_self.isMixed = false;
if(_self.YESTableData[0].MixBoxFactor != item.MixBoxFactor) {
_self.isMixed = true;
_self.realMixed = true;
}
},
);
if(_self.boxIsMixed) {
_self.realMixed = true;
_self.isMixed = true;
}
if(!_self.boxIsMixed && (_self.YESTableData.length == 0)){
_self.realMixed = false;
_self.isMixed = false;
}
if(_self.YESTableData.length==0){
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid','');
}
this.saveCash();
} else if (res.cancel) {
//_self.showStarCousM();
}
},
fail: () => {},
complete: () => {}
});
},
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;
},
qtyConfirm: function() {
this.checkBoxBarcodeIsChanged();
if(this.currentBarcodeNO != this.FBarCodeNO){
uni.showToast({
icon: "none",
title: "请先查询当前条码"
})
//_self.showStarCousM();
return false;
}
let qtyCheckFlag = commonUtil.judgeFloat(this.FQty);
if(!qtyCheckFlag) {
return false;
}
else {
this.showboxQtyFocus();
}
this.rowDataItem.FQty = this.FQty;
this.YESTableData.push(this.rowDataItem);
this.YESTableData.forEach((item,index)=>{
let commitData = {
"Barcode":item.FNumber,
"BarStatus": item.FBarStatus,
"IsBox":item.FIsBox,
"CartonNumber":this.CartonNumbers,
"Qty":item.FQty,
"UnitId":item.FUnitID,
"BaseQty": item.FBASEQTY,
"BaseUnitId": item.FBASEUNITID,
"MixBoxFactor":item.MixBoxFactor
}
this.commitDataList.push(commitData);
},
);
// console.log(_self.userInfo);
let lastSaveOrgid = this.orgFItemID; //最后一次条码录入成功后(条码进入已扫描列表)的组织ID
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid',lastSaveOrgid);
this.saveCash();
},
backBtnClick: function() {
uni.reLaunch({
url: '/pages/apply/moreapply/moreapply'
})
},
mixedCbChange:function() {
let _self = this;
_self.checkBoxBarcodeIsChanged();
if(this.isMixed) {
this.YESTableData.forEach(
function(el){
if(el.FItemID != _self.YESTableData[0].FItemID){
uni.showToast({
icon: "none",
title: "此箱有不一样的条码,不可以取消混装",
duration: 3500,
});
return false;
}
}
);
}
if(this.boxIsMixed) {
uni.showToast({
icon: "none",
title: "此箱已混装,不可以取消混装",
duration: 3500,
});
return false;
}
this.isMixed = !this.isMixed;
console.log("isMixed" + this.isMixed + "----");
this.$forceUpdate();
this.saveCash();
},
saveCash:function(){
let _self = this;
let otherInfo = {"currentTranType":this.currentTranType,
"orgFItemID":this.orgFItemID,
"dbAlise":this.dbAlise,
"userName":this.userName,
"isMixed":this.isMixed,
"FBarCodeNO":this.FBarCodeNO,
"FQty":this.FQty,
"qtyDisable":this.qtyDisable,
"realMixed":this.realMixed,
"boxIsMixed":this.boxIsMixed,
"boxCodeDisable":this.boxCodeDisable,
"barCodeDisable":this.barCodeDisable,
"CartonNumbers":this.CartonNumbers,
"FBoxCodeNO":this.FBoxCodeNO,
"currentBarcodeNO":this.currentBarcodeNO,
"IsExist":this.IsExist,
"isAdded":this.isAdded
};
this.pageCashInfo.YESTableData = this.YESTableData;
this.pageCashInfo.commitDataList = this.commitDataList;
this.pageCashInfo.otherInfo = otherInfo;
this.pageCashInfo.barcodeExistList = this.barcodeExistList;
this.pageCashInfo.sourceTableData = this.sourceTableData;
this.pageCashInfo.barcodeDataTempList = this.barcodeDataTempList;
this.pageCashInfo.barcodeTableData = this.barcodeTableData;
this.pageCashInfo.isPrinted = this.isPrinted
uni.setStorageSync('pageCash'+_self.dbAlise+_self.userName+_self.currentTranType+_self.orgFItemID,this.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.commitDataList){
uni.showModal({
content:'存在未提交数据是否加载',
success: function (res) {
if (res.confirm) {
_self.loadByCash();
}
else if (res.cancel) {
console.log('点击取消')
}
}
})
}
},
boxCodeConfirm:function(){
let _self = this;
this.sourceTableData = [];
this.FBoxCodeNO = this.FBoxCodeNO.toUpperCase();
let requestParams = {
"barcode": this.FBoxCodeNO,
"orgId":this.orgFItemID
};
requestParams.isMix = this.isMixed;
this.$request.get('/Barcode/GetBarcodeInfoIsAdd',{
params:requestParams
}).then(res => {
//debugger
//返回的是字符串
let data = res;
_self.boxIsMixed = data.Data["isMix"];
_self.IsExist = data.Data["isExist"];
_self.barcodeList = data.Data["barcodeList"];
_self.BoxCodeType = this.codeTypeList.find(item=>item.id == data.Data["BoxCodeType"]).value? this.codeTypeList.find(item=>item.id == data.Data["BoxCodeType"]).value:null ;
_self.innerCodeQty = data.Data['innerCodeQty']
if(_self.IsExist) {
_self.barcodeList.forEach(
function(el){
el.FNumber = el.FBARCODE,
el.FCType = el.FBARTYPE,
el.FBarStatus = el.FBARCODESTATUS,
el.FItemID = el.FMATERIALID,
el.FItemNumber = el.FMATERIALNUMBER,
el.FItemName = el.FMATERIALNAME,
el.FBatchNO = el.FLOT,
el.FQty = el.FQTY,
el.FUnitName = el.FUNITNAME,
el.FSize = el.FSPECIFICATION,
el.FModel = el.FSPECIFICATION,
el.FIsBox = el.FISBOX,
el.FUnitID = el.FUNITID,
el.FBASEQTY = el.FBASEQTY,
el.FBASEUNITID = el.FBASEUNITID,
el.MixBoxFactor = el.MIXBOXFACTOR,
el.CartonNumbers = 1
_self.sourceTableData.push(el);
}
);
_self.isAdded = true;
}
else {
_self.isAdded = false;
}
_self.showbarCodeFocus();
_self.boxCodeDisable = true;
_self.barCodeDisable = false;
if(_self.boxIsMixed) {
_self.isMixed = true;
_self.realMixed = true;
}
uni.setStorageSync('FBoxCodeNO',this.FBoxCodeNO);
// this.saveCash();
this.$forceUpdate();
}).catch(err => {
uni.hideLoading();
this.dialogNoticeProps(err,'error')
});
},
boxQtyConfirm:function(){
let currentQty = 0;
let qtyCheckFlag = commonUtil.judgeFloat(this.CartonNumbers);
this.checkBoxBarcodeIsChanged();
if(!qtyCheckFlag) {
uni.showToast({
icon: "none",
title: "请输入正确的箱数值",
duration: 3500,
})
return false;
}
qtyCheckFlag = commonUtil.judgeInt(this.CartonNumbers);
if(!qtyCheckFlag) {
uni.showToast({
icon: "none",
title: "箱数请输入整数",
duration: 3500,
})
return false;
}
currentQty = parseInt(this.CartonNumbers);
//数量检查
if (Number.isNaN(currentQty)) {
uni.showToast({
icon: "none",
title: "请输入正确的箱数值"
})
return false;
}
let commitData = {
"Barcode": this.barcodeDataTempList[0].FNumber,
"BarStatus": this.barcodeDataTempList[0].FBarStatus,
"IsBox": this.barcodeDataTempList[0].FIsBox,
"CartonNumber":this.CartonNumbers,
"Qty": currentQty,
"UnitId":this.FUnitID,
"BaseQty":this.barcodeDataTempList[0].FBASEQTY,
"BaseUnitId":this.barcodeDataTempList[0].FBASEUNITID,
"MixBoxFactor":this.barcodeDataTempList[0].MixBoxFactor
};
this.barcodeDataTempList[0].FQty = currentQty;
this.YESTableData.push(this.barcodeDataTempList[0]);
this.barcodeDataTempList.splice(0, this.barcodeDataTempList.length);
this.qtyDisable = true;
this.commitDataList.push(commitData);
this.FBarCodeNO = "";
this.currentBarcodeNO = "";
let lastSaveOrgid = this.orgFItemID; //最后一次条码录入成功后(条码进入已扫描列表)的组织ID
uni.setStorageSync(this.dbAlise+this.userName+this.currentTranType+'lastSaveOrgid',lastSaveOrgid);
this.saveCash();
this.$forceUpdate();
this.showbarCodeFocus();
},
barcodeSelect: function(selected) {
this.printList.splice(0, this.printList.length);
selected.forEach(
function(item){
_self.printList.push(_self.barcodeTableData[item].barcode);
}
);
},
printBarcode: function(printListPa) {
let localList = this.printList;
if (printListPa) {
localList = printListPa;
}
this.$refs.networkPrintTab.printBarcode(localList);
localList = null;
},
bluePrintBarcode: function(bluePrintListPa) {
if (this.$store.state.blueConnectedFlag) {
let localList = this.printList;
if (bluePrintListPa) {
localList = bluePrintListPa;
}
this.$refs.bluetoothPrintTab.bluePrintBarcode(localList);
localList = null;
}
else {
uni.showToast({
icon: "none",
title: "请先连接蓝牙!",
duration: 3500,
});
}
},
printCbChange:function() {
this.isPrinted = !this.isPrinted;
this.$forceUpdate();
this.saveCash();
},
...mapMutations(['updateCacheByStorage'])
}
}
</script>
<style>
.content {
width: 100%;
/* height: 1000rpx;
position: relative; */
}
.content-head{
/* height: 300rpx; */
}
.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;
}
.type-select-box {
display: flex;
flex-wrap: nowrap;
margin-left: 32rpx;
margin-right: 32rpx;
height: 60rpx;
line-height: 60rpx;
margin-top: 8rpx;
align-items: center;
}
.type-select-box image{
height: 40rpx;
width: 40rpx;
position: absolute;
right: 40rpx;
}
.p-taitl{
width:228rpx;
height:60rpx;
font-size:32rpx;
font-family:Helvetica;
color:rgba(102,102,102,1);
line-height:60rpx;
flex-shrink: 0;
}
.p-taitl2{
width:128rpx;
height:60rpx;
font-size:32rpx;
font-family:Helvetica;
color:rgba(102,102,102,1);
line-height:60rpx;
flex-shrink: 0;
}
.tool-box{
width: 100%;
padding-left: 24rpx;
/* margin-right: 24rpx; */
}
.head-checkbox{
transform:scale(0.75);
/* width:20px;
height:20px;
background:rgba(70,98,255,1);
border-radius:2px;
margin-left: 12px; */
}
.head-input{
/* width: 505rpx; */
height: 60rpx;
border-radius:10rpx;
border: 2rpx solid #D8D8D8;
padding-left: 24rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
}
.showcolor {
/* width: 505rpx; */
height:60rpx;
border-radius:10rpx;
border:2rpx solid rgba(216,216,216,1);
background-color: #F4F4F4!important;
padding-left: 24rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
}
.separate{
width: 100%;
height: 16rpx;
background-color:#F5F5F5;
}
.lists {
display: flex;
align-items: center;
/* height: 80rpx; */
/* margin-top: 32rpx; */
margin-left: 32rpx;
margin-right: 32rpx;
}
.lists-line{
border-left-width:1.5px;
border-left-color: #E5E5E5;
border-left-style: solid;
height:40rpx;
flex-grow: 0;
flex-shrink: 0;
}
.btn {
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
font-size:28rpx;
font-family:MicrosoftYaHei;
color:#666666;
}
.btn-change{
position: relative;
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
font-size:28rpx;
font-family:MicrosoftYaHei;
color:#4662FF;
}
.btn-change::after{
position: absolute;
content: " ";
width: 2rem;
height: 0.12rem;
background: #4662FF;
bottom: -0.1rem;
left: 50%;
transform: translateX(-50%);
}
.show-print{
margin-top: 32rpx;
margin-left: 32rpx;
margin-right: 32rpx;
}
.trP{
height:36rpx;
font-size:28rpx;
font-family:Helvetica;
color:rgba(51,51,51,1);
line-height:36rpx;
}
.trM{
width:120rpx;
height:36rpx;
font-size:28rpx;
font-family:Helvetica;
color:rgba(51,51,51,1);
line-height:36rpx;
margin-top: 24rpx;
}
.kc{
height:80rpx;
line-height:80rpx;
border-radius:4rpx;
font-size:32rpx;
font-family:Helvetica;
color:rgba(102,102,102,1);
background:rgba(240,240,240,1);
margin-top: 32rpx;
}
.table{
margin-top: 32rpx;
margin-right: 32rpx;
margin-left: 32rpx;
}
/* .del-commit{
display: flex;
position: fixed;
width: 100%;
height:80rpx ;
left: 0;
bottom: 18rpx;
} */
.type-select-box-del{
/* width: 100%;
height:80rpx; */
position: fixed;
width: 100%;
height:80rpx ;
left: 0;
bottom: 0rpx;
}
.type-select-box-commit{
/* width: 100%;
height:80rpx; */
position: fixed;
width: 100%;
height:80rpx ;
line-height: 80rpx;
left: 0;
bottom: 0rpx;
}
.print-input{
height: 60rpx;
line-height: 60rpx;
border-radius:4px;
border:1px solid #c0c4cc;
margin-top: 16rpx;
}
.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;
}
.head-checkbox-class {
transform:scale(0.75);
margin-left: 18rpx;
}
.button-class{
height:80rpx;
line-height:80rpx;
border-radius:4rpx;
font-size:32rpx;
margin-top: 32rpx;
background-color: #4662FF;
color: #FFFFFF!important;
}
</style>