cosmoim-852 fix 新增 泰国备件出库功能

master
hou 3 years ago
parent 3dbd103bff
commit fee0471ae5

@ -479,5 +479,8 @@ export default {
plan: '计划数量', plan: '计划数量',
QuantityShelves: '已上架数量', QuantityShelves: '已上架数量',
TheShelves: '已下架数量', TheShelves: '已下架数量',
Box: '箱码',
enterBox: '请输入箱码',
ScanBoxCode: '请先扫描箱码',
}, },
}; };

@ -479,5 +479,8 @@ export default {
plan: 'Plan QTY', plan: 'Plan QTY',
QuantityShelves: 'Putaway QTY', QuantityShelves: 'Putaway QTY',
TheShelves: 'Shelves QTY', TheShelves: 'Shelves QTY',
Box: 'Box Code',
enterBox: 'Please enter the box code',
ScanBoxCode: 'Please scan the box code first',
}, },
}; };

@ -479,5 +479,8 @@ export default {
plan: 'план', plan: 'план',
QuantityShelves: 'На крыше', QuantityShelves: 'На крыше',
TheShelves: 'С полок', TheShelves: 'С полок',
Box: 'Ящик ярд',
enterBox: 'Введите код ящика',
ScanBoxCode: 'Сначала просканируйте ящики',
}, },
}; };

@ -1090,6 +1090,14 @@
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white" // white-black-
} }
}, },
{
"path": "pages/raw/ingoods/SpareInbound/SparePartsWarehouse/details",
"style": {
"navigationBarTitleText": "备件出库明细",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{ {
"path": "pages/raw/handover/feeding/RUS-Location", "path": "pages/raw/handover/feeding/RUS-Location",
"style": { "style": {

@ -48,7 +48,7 @@
</u-form-item> </u-form-item>
<!-- 条码 --> <!-- 条码 -->
<u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode"> <u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="barcode" @search="onSubmit" :show-action="false"></u-search> <u-search :placeholder="$t('message.barcode')" v-model.trim="barcode" @search="onSubmit" :show-action="false"></u-search>
</u-form-item> </u-form-item>
</u-form> </u-form>
<view class="bottom-bar"> <view class="bottom-bar">
@ -136,6 +136,7 @@ export default class productCheckReceipt extends BasePage {
this.barcode = ''; this.barcode = '';
this.histroyItem = {}; this.histroyItem = {};
this.productCodeList = {}; this.productCodeList = {};
this.model.empty();
await this.query(); await this.query();
} }
} }

@ -46,6 +46,11 @@ export class wholeTransfer extends VuexModule {
const SubmitCode = result.code; const SubmitCode = result.code;
return { SubmitCode }; return { SubmitCode };
} }
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
}
} }
export default getModule(wholeTransfer); export default getModule(wholeTransfer);

@ -4,36 +4,41 @@
import vm from '@/main'; import vm from '@/main';
export const headers = [ export const headers = [
{ {
label: vm.$t('message.Delivery'), label: vm.$t('message.dn_OddNumbers'),
key: 'proMoveCode', //单号 key: 'order1',
width: 250, width: 250,
}, },
{ {
label: vm.$t('message.ModelCode'), label: vm.$t('message.Line'),
key: 'materialCode', //型号编码 key: 'order2',
width: 220, width: 220,
}, },
{ {
label: vm.$t('message.ModelName'), label: vm.$t('message.matcode'),
key: 'materialDesc', //型号名称 key: 'productCode',
width: 430, width: 430,
}, },
{
label: vm.$t('message.po_MaterielDes'),
key: 'productDescZh',
width: 640,
},
{ {
label: vm.$t('message.product_barCode'), label: vm.$t('message.product_barCode'),
key: 'barCode', //条码号 key: 'barcode',
width: 260, width: 640,
}, },
{ {
label: vm.$t('message.SourceLocation'), label: vm.$t('message.product_Location'),
key: 'wlFromCode', //源库位 key: 'locCode',
}, },
{ {
label: vm.$t('message.Warehouse_TargetLocation'), label: vm.$t('message.Operation'),
key: 'wlToCode', //目标库位 key: 'createdBy',
}, },
{ {
label: vm.$t('message.operatingTime'), label: vm.$t('message.operatingTime'),
key: 'moveTime', //操作时间 key: 'createdDate',
width: 465, width: 475,
}, },
]; ];

@ -4,10 +4,10 @@
<view class="left"> <view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" /> <u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
</view> </view>
<view class="title">{{ $t('message.Warehouse_TransferDetails') }}</view> <view class="title">{{ $t('message.detailed') }}</view>
<view class="right"></view> <view class="right"></view>
</view> </view>
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="headers" :contents="model.detailedList" :show-vert-border="false" /> <wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="headers" :contents="model.DetailList" :show-vert-border="false" />
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -17,7 +17,6 @@ import model from './model';
import { headers } from './config'; import { headers } from './config';
@Component @Component
export default class KanDanHandOverDetails extends BasePage { export default class KanDanHandOverDetails extends BasePage {
order = '';
headers = headers; headers = headers;
model = model; model = model;
} }

@ -4,61 +4,57 @@
<view class="left"> <view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" /> <u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view> </view>
<view class="title">{{ $t('message.SemiProductGetOutOfTheWarehouse') }}</view> <view class="title">{{ $t('message.SparePartsOutbound') }}</view>
<view class="right"></view> <view class="right"></view>
</view> </view>
<u-form class="form" ref="form" :model="form" label-width="180rpx"> <u-form class="form" ref="form" label-width="180rpx">
<!-- 移库码 --> <!-- DN单号 -->
<view class="single"> <view class="single">
<view class="single-left"> <view class="single-left">
<view>{{ $t('message.Batch') }}</view> <view>{{ $t('message.InventoryOrderNo') }}:</view>
<u-search :placeholder="$t('message.batch')" class="Transfer" v-model.trim="userDefined4" @search="QueryHistory" :show-action="false"></u-search> <u-search :placeholder="$t('message.InventoryPleaseScan')" v-model="nxOutCode" @search="query" :show-action="false"></u-search>
</view> </view>
<view class="single-right"> <view class="single-right">
<u-button type="primary" style="height: 60rpx; width: 140rpx" @click="generate">{{ $t('message.generate') }}</u-button> <u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
</view> </view>
</view> </view>
<!-- 总数 --> <!-- 物料编码 -->
<u-form-item :label="$t('message.Warehouse_TotalNumber')"> <u-form-item :label="$t('message.matcode')">
<u-input :disabled="true" v-model="allNum" placeholder="" /> <jPicker sureColor="#ff0000" @bindpicker="selectProductCode" showKey="value" valKey="value" :val="productCodeList.value" :options="model.productCodeList" />
</u-form-item> </u-form-item>
<!-- 半成品编码 --> <!-- 物料描述 -->
<u-form-item :label="$t('message.coding')"> <u-form-item :label="$t('message.po_MaterielDes')">
<jPicker sureColor="#ff0000" @bindpicker="selectItem" showKey="value" valKey="value" :val="remove.value" :options="model.removeMaterialList" />
</u-form-item>
<!-- 半成品描述 -->
<u-form-item :label="$t('message.Description')">
<u-input :disabled="true" v-model="histroyItem.materialDesc" placeholder="" style="overflow: hidden" /> <u-input :disabled="true" v-model="histroyItem.materialDesc" placeholder="" style="overflow: hidden" />
</u-form-item> </u-form-item>
<!-- 数量 --> <!-- 行项目 -->
<u-form-item :label="$t('message.product_Number')"> <u-form-item :label="$t('message.Line')">
<u-input :disabled="true" v-model="histroyItem.proNum" placeholder="" /> <u-input :disabled="true" v-model="histroyItem.rowItem" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 计划数量 -->
<u-form-item :label="$t('message.plan')">
<u-input :disabled="true" v-model="histroyItem.orderAmount" placeholder="" />
</u-form-item>
<!-- 累计数量 -->
<u-form-item :label="$t('message.Cumulative')">
<u-input :disabled="true" v-model="histroyItem.outAmount" placeholder="" />
</u-form-item>
<!-- 箱码 -->
<u-form-item :required="true" :label="$t('message.Box')" prop="productCode">
<u-search :placeholder="$t('message.barcode')" v-model.trim="BoxCode" @search="SeachBoxCode" :show-action="false"></u-search>
</u-form-item> </u-form-item>
<!-- 条码 --> <!-- 条码 -->
<u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode"> <u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.productCode" @search="query" :show-action="false"></u-search> <u-search :placeholder="$t('message.barcode')" v-model.trim="barcode" @search="onSubmit" :show-action="false"></u-search>
</u-form-item>
<!-- 库位 -->
<u-form-item :label="$t('message.product_Location')">
<u-input :disabled="true" v-model="model.orderInInfo.locCode" placeholder="" />
</u-form-item>
<!-- 目标库位 -->
<u-form-item :required="true" :label="$t('message.Warehouse_TargetLocation')" prop="aimWl">
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="value" valKey="value" :val="form.aimWl.value" :options="model.WlList" />
</u-form-item> </u-form-item>
</u-form> </u-form>
<view class="bottom-bar"> <view class="bottom-bar">
<u-row class="button-bar"> <u-row class="button-bar">
<!-- 移库明细 --> <!-- 明细 -->
<u-col :span="4"> <u-col :span="6">
<u-button type="primary" @click="bill">{{ $t('message.detailed') }}</u-button> <u-button type="primary" @click="ToDetail">{{ $t('message.detailed') }}</u-button>
</u-col>
<!-- 确定 -->
<u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.workArea_Confirm') }}</u-button>
</u-col> </u-col>
<!-- 返回 --> <!-- 返回 -->
<u-col :span="4"> <u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button> <u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
</u-col> </u-col>
</u-row> </u-row>
@ -66,176 +62,97 @@
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Component, Ref } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page'; import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue'; import jPicker from '@/components/J-Picker/jPicker.vue';
import { VForm, VFormRules } from 'vue/types/form';
import model from './model'; import model from './model';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
interface OptionType {
label: string;
value: string;
}
@Component({ @Component({
components: { components: {
jPicker, jPicker,
}, },
}) })
export default class productCheckReceipt extends BasePage { export default class productCheckReceipt extends BasePage {
//
@Ref('form') readonly $form!: VForm;
model = model; model = model;
form = { nxOutCode: any = '';
aimWl: {} as OptionType, productCodeList: any = {};
productCode: '',
};
remove: any = {};
allNum = 0;
userDefined4: any = '';
histroyItem: any = {};
aimWlSelect = false;
cboPlaceSelect = false;
rules: VFormRules<any> = {
documentNo: [{ required: true, message: this.$t('message.Warehouse_Tip1') as string }],
aimWl: [{ required: true, message: this.$t('message.Warehouse_Tip3') as string }],
cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip4') as string }],
};
value = '';
show = false;
//
bookTypeChange(e: any) {
this.form.aimWl = e.pickerName;
}
selectItem(e: any) {
this.remove = e.pickerName;
this.model.removeList.forEach((item: any) => {
if (item.materialCode == this.remove.value) {
this.histroyItem = item;
console.log('this.histroyItem', this.histroyItem);
}
});
}
//
async query() { async query() {
if (this.form.productCode == ' ' || this.form.productCode.length == 0) { if (this.nxOutCode == '' || this.nxOutCode.length == 0) {
this.customToast(this.$t('message.product_unit7') as string); this.customToast(this.$t('message.Commission_tips1') as string);
return; return;
} }
if (this.userDefined4 == '' || this.userDefined4.length == 0) { await this.model.queryOrderNo(this.nxOutCode);
this.customToast(this.$t('message.Warehouse_Tip') as string); this.productCodeList = this.model.productCodeList[0];
return; this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
selectProductCode(e: any) {
this.model.orderNoItemList.forEach((item: any) => {
if (item.materialCode == e.pickerName.value) {
this.histroyItem = item;
} }
await model.getProductCode(this.form.productCode);
if (this.model.code == '1') {
uni.showToast({
//icon: 'success',
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
}); });
} }
BoxCode: any = '';
BoxObj: any = {};
async SeachBoxCode() {
if (this.BoxCode == '' || this.BoxCode.length == 0) {
this.customToast(this.$t('message.enterBox') as string);
return;
} }
// await this.model.BoxCode(this.BoxCode);
async QueryHistory() { if (this.model.BoxResCode == '1') {
if (this.userDefined4 == ' ' || this.userDefined4.length == 0) { this.BoxObj = this.model.BoxObj;
}
}
barcode: any = '';
async onSubmit() {
if (this.nxOutCode == '' || this.nxOutCode.length == 0) {
this.customToast(this.$t('message.Commission_tips1') as string);
return;
}
if (this.histroyItem == {} || !this.histroyItem.materialCode) {
this.customToast(this.$t('message.AppendMateriel5') as string);
return;
}
if (this.barcode == '' || this.barcode.length == 0) {
this.customToast(this.$t('message.barcode') as string); this.customToast(this.$t('message.barcode') as string);
return; return;
} }
this.allNum = 0; if (this.BoxCode == '' || !this.BoxObj.barcode) {
this.customToast(this.$t('message.ScanBoxCode') as string);
return;
}
let params = { let params = {
loginName: session.loginName, loginName: session.loginName,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
proMoveCode: this.userDefined4, nxOutCode: this.nxOutCode,
rowItem: this.histroyItem.rowItem,
materialCode: this.histroyItem.materialCode,
materialDesc: this.histroyItem.materialDesc,
boxCode: this.BoxCode,
barcode: this.barcode,
}; };
await this.model.QueryHistory(params); await this.model.OnSubmit(params);
this.model.removeList.forEach((item: any) => { if (this.model.SubmitCode == '1') {
this.allNum += parseFloat(item.proNum);
});
if (this.model.removeMaterialList.length == 0) {
this.remove = {};
this.histroyItem.proNum = 0;
this.histroyItem.materialDesc = '';
console.log('11111111111111111');
console.log('this.histroyItem', this.histroyItem);
} else {
this.remove = this.model.removeMaterialList[0];
this.model.removeList.forEach((item: any) => {
if (item.materialCode == this.remove.value) {
this.histroyItem = item;
}
});
}
}
//
async onReady() {
this.$form.setRules(this.rules);
this.model.empty();
await this.model.queryLocation();
this.form.aimWl = this.model.WlList[0];
}
//
async generate() {
await this.model.getCpMoveBatchNo({
loginName: session.loginName,
});
this.userDefined4 = model.userDefined;
}
//
async bill() {
if (this.userDefined4 == ' ' || this.userDefined4.length == 0) {
this.customToast(this.$t('message.LibraryCode') as string);
return;
}
await this.model.querydetaildlist(this.userDefined4);
this.toPage(this.page.raw.SemiFinished.SemiFinishedRowTcransfer.detail);
}
//
onSubmit() {
this.$form.validate(async (valid: boolean) => {
if (!valid) return;
if (this.userDefined4 == ' ' || this.userDefined4.length == 0) {
this.customToast(this.$t('message.LibraryCode') as string);
return;
}
if (!this.form.productCode) {
this.customToast(this.$t('message.Warehouse_Tip5') as string);
return;
}
if (!this.form.aimWl.value) {
this.customToast(this.$t('message.Warehouse_Tip3') as string);
return;
}
if (this.form.aimWl.value == model.orderInInfo.locCode) {
this.customToast(this.$t('message.TargetLocation') as string);
return;
}
const orderlist = [
{
...this.model.orderInInfo,
originWl: this.model.orderInInfo.locCode,
barCode: this.model.orderInInfo.barcode,
aimWl: this.form.aimWl.value,
type: '2',
orderType: '5',
keepBy: session.loginName as string,
factoryCode: session.factoryCode as string,
userDefined4: this.userDefined4,
},
];
await this.model.onTakeoutConfirm(orderlist);
if (model.code == '1') {
this.customToast(this.$t('message.Warehouse_Tip9') as string); this.customToast(this.$t('message.Warehouse_Tip9') as string);
// this.form.productCode = ''; this.barcode = '';
this.histroyItem = {};
this.productCodeList = {};
this.model.empty(); this.model.empty();
// this.query() // this.BoxCode = '';
this.form.productCode = ''; // this.BoxObj = {};
this.allNum = 0; await this.query();
this.QueryHistory();
// setTimeout(() => {
// this.$forceUpdate();
// }, 2000);
} }
}); }
async ToDetail() {
if (this.nxOutCode == '' || this.nxOutCode.length == 0) {
this.customToast(this.$t('message.Commission_tips1') as string);
return;
}
this.model.DetailList.length = 0;
await this.model.SearchDetail(this.nxOutCode);
this.toPage(this.page.raw.ingoods.SparePartsWarehouse.details);
} }
} }
</script> </script>

@ -1,149 +1,79 @@
import { Action, getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators'; import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store'; import store from '@/store';
import http from '@/utils/request'; import http from '@/utils/request';
import { url } from '@/utils/url'; import { url } from '@/utils/url';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
import vm from '@/main';
// import { page } from '@/utils/page';
class OrderInInfo {
productDescZh?: string;
qty?: string;
custCode?: string;
custCodeName?: string;
productCode?: string;
locCode?: string;
barcode?: string;
// actualQty?: string;
}
@Module({ @Module({
namespaced: true, namespaced: true,
dynamic: true, dynamic: true,
store, store,
name: 'product.Semi-finished-rowTransfer', name: 'page.raw.ingoods.SpareInbound.SparePartsWarehouse',
}) })
export class wholeTransfer extends VuexModule { export class wholeTransfer extends VuexModule {
/**
*
*/
WlList = []; WlList = [];
userDefined: any = '';
detailedList: any;
code = '';
delCode = '';
removeList: any = [];
removeMaterialList: any = [];
dnNo = '';
orderInInfo: OrderInInfo = new OrderInInfo();
@MutationAction @MutationAction
async queryLocation() { async queryLocation() {
const result: any = await http.get(url.warehouse.wholeTransfer.getMdLocationSfgLine, { const result: any = await http.post(url.warehouse.wholeTransfer.getSpareMdLocation, {
params: {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,
},
}); });
console.log('库位数据', result);
const WlList = result.data.map((_: any) => ({ const WlList = result.data.map((_: any) => ({
label: _.locationCode, label: _.locationCode,
value: _.locationCode, value: _.locationCode,
})); }));
return { WlList }; return { WlList };
} }
orderNoItemList: any = [];
/** productCodeList: any = [];
*
* DN
* @param dnNo
*/
@MutationAction @MutationAction
async getProductCode(barcode: any) { async queryOrderNo(nxOutCode: any) {
const res: any = await http.post(url.warehouse.wholeTransfer.getOdsRawStorageSnNew, { const result: any = await http.post(url.warehouse.wholeTransfer.findSpareInfoByDN, {
factoryCode: session.factoryCode,
loginName: session.loginName,
nxOutCode,
});
const orderNoItemList = result.data;
const productCodeList = result.data.map((_: any) => ({
label: _.materialCode,
value: _.materialCode,
}));
return { orderNoItemList, productCodeList };
}
BoxResCode: any = '';
BoxObj: any = {};
@MutationAction
async BoxCode(barcode: any) {
const result: any = await http.post(url.warehouse.wholeTransfer.scanBox, {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,
barcode, barcode,
}); });
const code = res.code; const BoxResCode = result.code;
const orderInInfo = res.data.records[0]; const BoxObj = result.data;
if (orderInInfo.custCode == '0') { return { BoxResCode, BoxObj };
orderInInfo.custCodeName = vm.$t('message.Warehouse_NX') as any;
} else if (orderInInfo.custCode == '1') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_WX') as any;
} else if (orderInInfo.custCode == '2') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_YJ') as any;
} else if (orderInInfo.custCode == '4') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_BCP') as any;
} }
return { orderInInfo, code }; SubmitCode: any = '';
}
//退扫
@MutationAction @MutationAction
async codeDel(params: any) { async OnSubmit(params: any) {
const res: any = await http.post(url.warehouse.wholeTransfer.del, params); const result: any = await http.post(url.warehouse.wholeTransfer.saleScan, params);
const delCode = res.code; const SubmitCode = result.code;
return { delCode }; return { SubmitCode };
} }
//清除数据
@MutationAction @MutationAction
async empty() { async empty() {
const orderInInfo: any = []; const productCodeList = [];
// const userDefined = ''; return { productCodeList };
// const WlList = [];
const code = '';
return { orderInInfo, code };
} }
DetailList: any = [];
@MutationAction @MutationAction
async onTakeoutConfirm(list: any) { async SearchDetail(order1: any) {
const records: any = await http.post(url.warehouse.rowTransfer.confirmMoveRussia, list); const res: any = await http.post(url.warehouse.wholeTransfer.querySpareListInfoByDnNo, {
const code = records.code;
return { code };
}
//生成移库码
@MutationAction
async getCpMoveBatchNo(loginName: any) {
const res: any = await http.post(url.warehouse.rowTransfer.getSfgMoveBatchNo, loginName);
const userDefined: any = res.data;
return { userDefined };
}
//查询已扫物料
@MutationAction
async QueryHistory(params: any = {}) {
const res: any = await http.post(url.warehouse.rowTransfer.queryGroupListByMoveCode, params);
const removeList: any = res.data;
const removeMaterialList: any = [];
res.data.forEach((item: any) => {
const arr: any = {
value: item.materialCode,
laber: item.materialCode,
};
removeMaterialList.push(arr);
});
return { removeList, removeMaterialList };
}
//查询明细
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
async querydetaildlist(userDefined4: any) {
const res: any = await http.post('/wmspda/fg/queryListByMoveCode', {
loginName: session.loginName,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
proMoveCode: userDefined4,
});
console.log('明细》》》》》》》》》', res.list);
this.detailedList = res.data;
return res;
}
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
async changeOrderInLocation(kw: string) {
await http.post('/wmspda/material/orderin/enter', {
loginName: session.loginName, loginName: session.loginName,
// loginName: '1999', order1,
warehouseCode: '',
factoryCode: session.factoryCode,
// factoryCode: '1999',
locationCode: kw,
}); });
return kw; const DetailList = res.data;
return { DetailList };
} }
} }

@ -48,7 +48,7 @@
</u-form-item> --> </u-form-item> -->
<!-- 条码 --> <!-- 条码 -->
<u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode"> <u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="barcode" @search="onSubmit" :show-action="false"></u-search> <u-search :placeholder="$t('message.barcode')" v-model.trim="barcode" @search="onSubmit" :show-action="false"></u-search>
</u-form-item> </u-form-item>
</u-form> </u-form>
<view class="bottom-bar"> <view class="bottom-bar">
@ -136,6 +136,7 @@ export default class productCheckReceipt extends BasePage {
this.barcode = ''; this.barcode = '';
this.histroyItem = {}; this.histroyItem = {};
this.productCodeList = {}; this.productCodeList = {};
this.model.empty();
await this.query(); await this.query();
} }
} }

@ -46,6 +46,11 @@ export class wholeTransfer extends VuexModule {
const SubmitCode = result.code; const SubmitCode = result.code;
return { SubmitCode }; return { SubmitCode };
} }
@MutationAction
async empty() {
const productCodeList = [];
return { productCodeList };
}
} }
export default getModule(wholeTransfer); export default getModule(wholeTransfer);

@ -162,6 +162,9 @@ export const page = {
SpareInboun: { SpareInboun: {
details: '/pages/raw/ingoods/SpareInbound/Inbound/Local-details', details: '/pages/raw/ingoods/SpareInbound/Inbound/Local-details',
}, },
SparePartsWarehouse: {
details: '/pages/raw/ingoods/SpareInbound/SparePartsWarehouse/details',
},
}, },
warehouse: { warehouse: {
index: '/pages/raw/warehouse/index', index: '/pages/raw/warehouse/index',

@ -268,8 +268,12 @@ export const url = {
getSpareMdLocation: '/wmspda/sparePart/getSpareMdLocation', getSpareMdLocation: '/wmspda/sparePart/getSpareMdLocation',
queryOnshelfOrder: '/wmspda/sparePart/queryOnshelfOrder', queryOnshelfOrder: '/wmspda/sparePart/queryOnshelfOrder',
queryDownshelfOrder: '/wmspda/sparePart/queryDownshelfOrder', queryDownshelfOrder: '/wmspda/sparePart/queryDownshelfOrder',
findSpareInfoByDN: '/wmspda/fg/findSpareInfoByDN',
upshelf: '/wmspda/sparePart/upshelf-scan', upshelf: '/wmspda/sparePart/upshelf-scan',
offshelf: '/wmspda/sparePart/offshelf-scan', offshelf: '/wmspda/sparePart/offshelf-scan',
scanBox: '/wmspda/sparePart/scanBox',
saleScan: '/wmspda/fg/sparepart/sale/scan',
querySpareListInfoByDnNo: '/wmspda/fg/querySpareListInfoByDnNo',
}, },
wholeLnventory: { wholeLnventory: {
content: '/wmspda/fg/findMaterialByPddNo', content: '/wmspda/fg/findMaterialByPddNo',

Loading…
Cancel
Save