no message

master
hou 4 years ago
parent 293370a96f
commit be99dff890

@ -49,6 +49,7 @@ export default {
workArea_WarehouseClassify: '仓库类',
workArea_Confirm: '确定',
ReservoirArea: '库区',
Confirm:'是否确认',
//原材料菜单
rawMenu_ReceivingGoods: '收货',
rawMenu_Handover: '交接',

@ -56,6 +56,7 @@ export default {
workArea_RegionName: 'Region name',
workArea_WorkAreaName: 'Work area name',
workArea_WarehouseClassify: 'WH classify',
Confirm:'Confirm',
workArea_Confirm: 'Confirm',
//jpicker提示
unselected: 'Unchecked',

@ -168,31 +168,42 @@ export default class ProductCheckReceipt extends BasePage {
this.customToast(this.$t('message.product_Tip3') as string);
return;
}
const params = {
factoryCode: session.factoryCode,
user: session.loginName,
pddno: this.form.pddNo,
regionCode: this.Some.regionCode,
areaCode: this.Some.areaCode,
whCode: this.Some.whCode,
snFlag: '1',
pdMode: '10',
};
await this.model.onTakeoutConfirm(params);
if (this.model.status == 'S') {
uni.showToast({
icon: 'success',
title: this.$t('message.success') as string,
});
this.form.pddNo = '';
this.form.barcode = '';
this.wl = {};
this.Some = {};
this.codeList = [];
this.total = '';
this.areaCode = '';
this.model.modelList = [];
}
uni.showModal({
content: this.$t('message.Confirm') as string,
cancelText: this.$t('message.product_Cancel') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
success: async (res: any) => {
if (res.confirm) {
const params = {
factoryCode: session.factoryCode,
user: session.loginName,
pddno: this.form.pddNo,
regionCode: this.Some.regionCode,
areaCode: this.Some.areaCode,
whCode: this.Some.whCode,
snFlag: '1',
pdMode: '10',
};
await this.model.onTakeoutConfirm(params);
if (this.model.status == 'S') {
uni.showToast({
icon: 'success',
title: this.$t('message.success') as string,
});
this.form.pddNo = '';
this.form.barcode = '';
this.wl = {};
this.Some = {};
this.codeList = [];
this.total = '';
this.areaCode = '';
this.model.modelList = [];
}
} else if (res.cancel) {
return;
}
},
});
}
}
</script>

@ -20,7 +20,7 @@ class OrderInInfo {
namespaced: true,
dynamic: true,
store,
name: 'product.warehouse.wholeCollect',
name: 'product.warehouse.LocationInventory',
})
export class wholeCollect extends VuexModule {
WlList = [];

@ -20,7 +20,7 @@ class OrderInInfo {
namespaced: true,
dynamic: true,
store,
name: 'product.warehouse.wholeCollect',
name: 'product.warehouse.MaterialInventory',
})
export class wholeCollect extends VuexModule {
WlList = [];

@ -79,12 +79,6 @@ export class AggregatingModule extends VuexModule {
clearProOrderList() {
this.proOrderList = [];
}
/**
*
*/
get isAggregateCheckedAll() {
return !this.aggregateList.filter((_: any) => !_.checked).length;
}
/**
* /
@ -92,6 +86,7 @@ export class AggregatingModule extends VuexModule {
*/
@Mutation
checkAllAggregateList(checked: boolean) {
console.log('this.nodel.aggregateList222', this.aggregateList);
this.aggregateList = this.aggregateList.map((item: any) => {
item.checked = checked;
if (item.checked) {
@ -102,7 +97,23 @@ export class AggregatingModule extends VuexModule {
return item;
});
}
/**
* /
* @param checked
*/
@Mutation
checkAllOrderList(checked: boolean) {
console.log('this.nodel.orderList222', this.orderList);
this.orderList = this.orderList.map((item: any) => {
item.checked = checked;
if (item.checked) {
item.hvAmount = item.totalMoAmount - item.totalHvAmount;
} else {
item.hvAmount = 0;
}
return item;
});
}
/**
* -
* @param params
@ -161,7 +172,12 @@ export class AggregatingModule extends VuexModule {
const newItem = { ...original, hvAmount };
this.accessoryList.splice(index, 1, newItem);
}
/**
*
*/
get isAggregateCheckedAll() {
return !this.aggregateList.filter((_: any) => !_.checked).length;
}
/**
*
*/
@ -179,22 +195,6 @@ export class AggregatingModule extends VuexModule {
checked,
}));
}
/**
* /
* @param checked
*/
@Mutation
checkAllOrderList(checked: boolean) {
this.orderList = this.orderList.map((item: any) => {
item.checked = checked;
if (item.checked) {
item.hvAmount = item.totalMoAmount - item.totalHvAmount;
} else {
item.hvAmount = 0;
}
return item;
});
}
/**
*
@ -242,6 +242,7 @@ export class AggregatingModule extends VuexModule {
vm.customToast(vm.$t('message.Pi_NoDataFound') as any);
return { aggregateList };
}
console.log('aggregateList', aggregateList);
return { aggregateList };
}
@ -254,10 +255,13 @@ export class AggregatingModule extends VuexModule {
const { queryParams, proOrderResultList } = params;
await http.post(url.sumscan.lock.list, queryParams);
const orderList = cloneDeep<any>(proOrderResultList);
console.log('orderList', orderList);
orderList.map((item: any) => {
item.checked = false;
});
if (orderList.length == 0) {
return { orderList };
}
console.log('orderList', orderList);
return { orderList };
}
/**

@ -152,6 +152,7 @@ export default class AggregatingOrder extends BasePage {
* 全选
*/
onSelectAll() {
console.log('this.nodel.orderList111',this.model.orderList)
model.checkAllOrderList(!model.isOrderCheckedAll);
}
clickIndex(e: any) {

@ -175,6 +175,7 @@ export default class AggregatingSummary extends BasePage {
* 全选
*/
onSelectAll() {
console.log('this.nodel.aggregateList111',this.model.aggregateList)
model.checkAllAggregateList(!model.isAggregateCheckedAll);
}

@ -30,12 +30,15 @@
<view class="library-right">
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}:</view>
<u-input v-model="qty" type="number" :border="border" :placeholder="$t('message.Summary_PleaseInputNumber')" class="input" />
<view class="add">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
</view>
</view>
</view>
<!-- 添加 -->
<view class="add">
<!-- <view class="add">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
</view>
</view> -->
<!-- 表格 -->
<u-table class="library-table">
<u-tr class="u-tr">
@ -171,16 +174,16 @@ export default class RawReceiptDetail extends BasePage {
this.LocationList = [];
this.qty = '';
await this.model.queryItemLoc({
workArea:session.workareaCode,
loginName:session.loginName,
sendSpot:null,
materialCode:this.some.materialCode,
factoryCode:session.factoryCode
})
workArea: session.workareaCode,
loginName: session.loginName,
sendSpot: null,
materialCode: this.some.materialCode,
factoryCode: session.factoryCode,
});
this.Location = [];
this.Location = this.model.LocList
console.log('this.Location',this.Location)
this.wlCode = this.Location[0]
this.Location = this.model.LocList;
console.log('this.Location', this.Location);
this.wlCode = this.Location[0];
}
Add() {
if (this.qty == '' || this.wlCode == '') {
@ -423,44 +426,46 @@ export default class RawReceiptDetail extends BasePage {
}
.library {
width: 100%;
height: 100rpx;
display: flex;
height: 200rpx;
// display: flex;
display: block;
.library-left {
width: 50%;
height: 100%;
display: flex;
view {
width: 230rpx;
line-height: 100rpx;
text-align: center;
}
width: 100%;
height: 100rpx;
padding-left: 56rpx;
// display: flex;
// view {
// width: 230rpx;
// line-height: 100rpx;
// text-align: center;
// }
}
.library-right {
width: 50%;
height: 100%;
width: 100%;
height: 100rpx;
padding-left: 56rpx;
display: flex;
.library-right-title {
width: 120rpx;
height: 100%;
line-height: 100rpx;
text-align: center;
}
.input {
width: 200rpx;
height: 70rpx;
margin-top: 15rpx;
margin-left: 15rpx;
margin-left: 0rpx;
}
.add {
width: 200rpx;
height: 100rpx;
position: relative;
button {
position: absolute;
top: 10rpx;
right: 20rpx;
}
}
}
}
.add {
width: 100%;
height: 100rpx;
position: relative;
button {
position: absolute;
top: 10rpx;
right: 20rpx;
}
}
.bottom-bar {

@ -26,17 +26,20 @@
<view class="library">
<view class="library-left">
<view>{{ $t('message.CommissionedLocation') }}:</view>
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode.value" class="search" :options="Location" />
<jPicker sureColor="#ff0000" style="width: 400rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode.value" class="search" :options="Location" />
</view>
<view class="library-right">
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}:</view>
<u-input v-model="qty" type="number" :border="border" :placeholder="$t('message.Summary_PleaseInputNumber')" class="input" />
<view class="add">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
</view>
</view>
</view>
<!-- 添加 -->
<view class="add">
<!-- <view class="add">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
</view>
</view> -->
<!-- 表格 -->
<u-table class="library-table">
<u-tr class="u-tr">
@ -160,16 +163,16 @@ export default class RawReceiptDetail extends BasePage {
this.LocationList = [];
this.qty = '';
await this.model.queryItemLoc({
workArea:session.workareaCode,
loginName:session.loginName,
sendSpot:null,
materialCode:this.some.materialCode,
factoryCode:session.factoryCode
})
workArea: session.workareaCode,
loginName: session.loginName,
sendSpot: null,
materialCode: this.some.materialCode,
factoryCode: session.factoryCode,
});
this.Location = [];
this.Location = this.model.LocList
console.log('this.Location',this.Location)
this.wlCode = this.Location[0]
this.Location = this.model.LocList;
console.log('this.Location', this.Location);
this.wlCode = this.Location[0];
}
//
Add() {
@ -415,44 +418,46 @@ export default class RawReceiptDetail extends BasePage {
}
.library {
width: 100%;
height: 100rpx;
display: flex;
height: 200rpx;
// display: flex;
display: block;
.library-left {
width: 50%;
height: 100%;
display: flex;
view {
width: 230rpx;
line-height: 100rpx;
text-align: center;
}
width: 100%;
height: 100rpx;
padding-left: 56rpx;
// display: flex;
// view {
// width: 230rpx;
// line-height: 100rpx;
// text-align: center;
// }
}
.library-right {
width: 50%;
height: 100%;
width: 100%;
height: 100rpx;
padding-left: 56rpx;
display: flex;
.library-right-title {
width: 120rpx;
height: 100%;
line-height: 100rpx;
text-align: center;
}
.input {
width: 200rpx;
height: 70rpx;
margin-top: 15rpx;
margin-left: 15rpx;
margin-left: 0rpx;
}
.add {
width: 200rpx;
height: 100rpx;
position: relative;
button {
position: absolute;
top: 10rpx;
right: 20rpx;
}
}
}
}
.add {
width: 100%;
height: 100rpx;
position: relative;
button {
position: absolute;
top: 10rpx;
right: 20rpx;
}
}
.bottom-bar {

@ -8,15 +8,19 @@
<view class="right"></view>
</view>
<u-form class="form" ref="form" :model="form" label-width="180rpx">
<!-- 单号 -->
<u-form-item :required="true" :label="$t('message.InventoryOrderNo')" prop="pddNo">
<u-search :placeholder="$t('message.InventoryPleaseScan')" v-model.trim="form.pddNo" @search="model.rawMaterialInventoryCheckRaw" :show-action="false"></u-search>
</u-form-item>
<!-- 物料号 -->
<u-form-item :label="$t('message.InventoryMaterielNo')" prop="productCode">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model="form.productCode" @search="checkRawProductCode" :show-action="false"></u-search>
</u-form-item>
<!-- 物料名 -->
<u-form-item :label="$t('message.InventoryMateriel')" prop="productDescZh">
<u-input v-model="form.productDescZh" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item>
<!-- 盘点总数 -->
<u-form-item :label="$t('message.InventoryTotalNumber')" prop="spQty">
<u-input v-model="form.spQty" :placeholder="$t('message.po_PleaseInput')" type="number" />
</u-form-item>

Loading…
Cancel
Save