|
|
@ -16,7 +16,7 @@
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search>
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="single-right">
|
|
|
|
<view class="single-right">
|
|
|
|
<u-button type="primary" @click="query">提单</u-button>
|
|
|
|
<u-button type="primary" @click="tidan">提单</u-button>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 订单 -->
|
|
|
|
<!-- 订单 -->
|
|
|
@ -24,8 +24,24 @@
|
|
|
|
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
|
|
|
|
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="value" valKey="value" :val="aimWl.value" :options="materilist" />
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="value" valKey="value" :val="aimWl.value" :options="materilist" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
<!-- <u-form-item label="出库仓库">
|
|
|
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="value" valKey="value" :val="aimWl.value" :options="materilist" />
|
|
|
|
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
<u-form-item label="客户名称">
|
|
|
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="value" valKey="value" :val="aimWl.value" :options="materilist" />
|
|
|
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
|
|
|
<view class="row-list-top">
|
|
|
|
|
|
|
|
<view class="row-list-item-top">
|
|
|
|
|
|
|
|
<view class="list-item-top"> 出库仓库: </view>
|
|
|
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="wlChange" showKey="label" valKey="value" :val="cimWl.value" :options="warehouselist" />
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="row-list-item-top">
|
|
|
|
|
|
|
|
<view class="list-item-top"> 客户名称: </view>
|
|
|
|
|
|
|
|
<view> {{ orderNoItemList && orderNoItemList.attr1 }} </view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<!-- 机台 -->
|
|
|
|
<!-- 机台 -->
|
|
|
|
<u-form-item label="出库仓库"> 成品库 </u-form-item>
|
|
|
|
<!-- <u-form-item label="出库仓库"> 成品库 </u-form-item> -->
|
|
|
|
</u-form>
|
|
|
|
</u-form>
|
|
|
|
<u-form style="margin-top: 1rpx" class="form3">
|
|
|
|
<u-form style="margin-top: 1rpx" class="form3">
|
|
|
|
<view class="list">
|
|
|
|
<view class="list">
|
|
|
@ -54,28 +70,33 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-form>
|
|
|
|
</u-form>
|
|
|
|
<u-form class="form4">
|
|
|
|
<u-form class="form4">
|
|
|
|
<u-search placeholder="请扫描箱码" @search="addlist" v-model="boxnumber" :show-action="false"></u-search>
|
|
|
|
<u-radio-group v-model="selectvalue" style="width: 100%" @change="radioGroupChange">
|
|
|
|
|
|
|
|
<u-radio style="width: 50%" v-for="(item, index) in Radiolist" :key="index" :name="item.code" :disabled="item.disabled">
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</u-radio>
|
|
|
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
|
|
|
<u-search placeholder="请扫描条码" @search="addlist" v-model="boxnumber" :show-action="false"></u-search>
|
|
|
|
<!-- <u-input style="border: 0.5rpx solid #8d8989; border-radius: 10rpx" v-model="boxnumber" @click="clickscan"></u-input> -->
|
|
|
|
<!-- <u-input style="border: 0.5rpx solid #8d8989; border-radius: 10rpx" v-model="boxnumber" @click="clickscan"></u-input> -->
|
|
|
|
</u-form>
|
|
|
|
</u-form>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view style="height: 14rpx"></view>
|
|
|
|
<view style="height: 14rpx"></view>
|
|
|
|
<view class="scroll">
|
|
|
|
<view class="scroll">
|
|
|
|
<view v-for="item in list" :key="item.id">
|
|
|
|
<view v-for="(item, index) in list" :key="item.id">
|
|
|
|
<u-form style="margin-top: 10rpx" class="form2">
|
|
|
|
<u-form style="margin-top: 10rpx" class="form2">
|
|
|
|
<view class="list">
|
|
|
|
<view class="list">
|
|
|
|
<view class="rowleft">
|
|
|
|
<view class="rowleft">
|
|
|
|
<view class="row-list">
|
|
|
|
<view class="row-list">
|
|
|
|
<view class="row-list-item">
|
|
|
|
<view class="row-list-item">
|
|
|
|
<view class="list-item"> 批次号: </view>
|
|
|
|
<view class="list-item"> 托盘号: </view>
|
|
|
|
<view> {{ item.lotNumber }} </view>
|
|
|
|
<view>{{ item.sn }} </view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="row-list-item">
|
|
|
|
<view class="row-list-item">
|
|
|
|
<view class="list-item"> 箱码: </view>
|
|
|
|
<view class="list-item"> 箱码: </view>
|
|
|
|
<view> {{ item.barcode }}件 </view>
|
|
|
|
<view> {{ item.barcode }} </view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="row-list">
|
|
|
|
<view class="row-list">
|
|
|
|
<view class="row-list-item">
|
|
|
|
<view class="row-list-item-row">
|
|
|
|
<view class="list-item"> 库位码: </view>
|
|
|
|
<view class="list-item"> 库位码: </view>
|
|
|
|
<view> {{ item.wlCode }} </view>
|
|
|
|
<view> {{ item.wlCode }} </view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -87,7 +108,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="rowright">
|
|
|
|
<view class="rowright">
|
|
|
|
<view class="righttitle">
|
|
|
|
<view class="righttitle">
|
|
|
|
<view @click.stop="ondelete(item)" class="boder-icon-rigth"> 删除 </view>
|
|
|
|
<view @click.stop="ondelete(item, index)" class="boder-icon-rigth"> 删除 </view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -114,6 +135,7 @@ 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 model from './model';
|
|
|
|
import model from './model';
|
|
|
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
interface OptionType {
|
|
|
|
interface OptionType {
|
|
|
|
label: string;
|
|
|
|
label: string;
|
|
|
|
value: string;
|
|
|
|
value: string;
|
|
|
@ -127,7 +149,9 @@ interface OptionType {
|
|
|
|
export default class SaleOutWH extends BasePage {
|
|
|
|
export default class SaleOutWH extends BasePage {
|
|
|
|
model = model;
|
|
|
|
model = model;
|
|
|
|
list: any = [];
|
|
|
|
list: any = [];
|
|
|
|
aimWl = {} as OptionType;
|
|
|
|
//productCodebiaozhiwei = '';
|
|
|
|
|
|
|
|
cimWl = {} as OptionType;
|
|
|
|
|
|
|
|
aimWl: any = {};
|
|
|
|
boxnumber: any = '';
|
|
|
|
boxnumber: any = '';
|
|
|
|
materilist = [];
|
|
|
|
materilist = [];
|
|
|
|
// remove: any = {};
|
|
|
|
// remove: any = {};
|
|
|
@ -144,33 +168,54 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
showProduceCodeList: any = [];
|
|
|
|
showProduceCodeList: any = [];
|
|
|
|
itemdetail: any = '';
|
|
|
|
itemdetail: any = '';
|
|
|
|
outnumber: any = 0;
|
|
|
|
outnumber: any = 0;
|
|
|
|
|
|
|
|
warehouselist = [];
|
|
|
|
|
|
|
|
Radiolist = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
code: 0,
|
|
|
|
|
|
|
|
name: '整托扫描',
|
|
|
|
|
|
|
|
disabled: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
code: 1,
|
|
|
|
|
|
|
|
name: '单箱扫描',
|
|
|
|
|
|
|
|
disabled: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
selectvalue: any = 0;
|
|
|
|
|
|
|
|
async onLoad() {
|
|
|
|
|
|
|
|
await this.model.getwarehouselist();
|
|
|
|
|
|
|
|
this.warehouselist = model.warehouselist;
|
|
|
|
|
|
|
|
this.cimWl = this.warehouselist[0];
|
|
|
|
|
|
|
|
}
|
|
|
|
bookTypeChange(e: any) {
|
|
|
|
bookTypeChange(e: any) {
|
|
|
|
this.aimWl = e.pickerName;
|
|
|
|
this.aimWl = e.pickerName;
|
|
|
|
this.getlist();
|
|
|
|
this.orderNoItemList = e.pickerName;
|
|
|
|
this.queryinformation();
|
|
|
|
this.list = [];
|
|
|
|
|
|
|
|
this.outnumber = this.orderNoItemList.outQuantity;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
wlChange(e: any) {
|
|
|
|
|
|
|
|
this.cimWl = e.pickerName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 选中任一radio时,由radio-group触发
|
|
|
|
|
|
|
|
radioGroupChange(e) {
|
|
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
console.log('selectvalue', this.selectvalue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//收货按钮
|
|
|
|
//收货按钮
|
|
|
|
async ondelete(item) {
|
|
|
|
async ondelete(item, index) {
|
|
|
|
console.log('1234567', item);
|
|
|
|
console.log('this.list', Array.isArray(this.list));
|
|
|
|
this.itemdetail = item;
|
|
|
|
const newList = [...this.list]; // 创建一个新的数组
|
|
|
|
// this.showmodal = true;
|
|
|
|
newList.splice(index, 1); // 在新数组上执行 splice 操作
|
|
|
|
// this.content = '是否删除?';
|
|
|
|
this.list = newList; // 将新数组赋值回原数组
|
|
|
|
this.itemdetail.orderNo = this.orderNo;
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
console.log(this.itemdetail, this.orderNo);
|
|
|
|
title: '删除成功',
|
|
|
|
await this.model.deleteTray(this.itemdetail);
|
|
|
|
type: 'success',
|
|
|
|
if (this.model.SubmitCode == '200') {
|
|
|
|
});
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
console.log('this.outnumber', this.outnumber);
|
|
|
|
title: '删除成功',
|
|
|
|
this.outnumber = this.outnumber - 1;
|
|
|
|
type: 'success',
|
|
|
|
// if(!this.list.length){
|
|
|
|
});
|
|
|
|
// this.productCodebiaozhiwei = '';
|
|
|
|
this.getlist();
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '删除失败',
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.getlist();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//查询货单关联采购单信息
|
|
|
|
//查询货单关联采购单信息
|
|
|
|
async query() {
|
|
|
|
async query() {
|
|
|
@ -184,53 +229,20 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
await this.model.showProduceCode(this.orderNo);
|
|
|
|
await this.model.showProduceCode(this.orderNo);
|
|
|
|
if (model.orderNoItemList) {
|
|
|
|
if (model.orderNoItemList) {
|
|
|
|
this.materilist = [];
|
|
|
|
this.materilist = [];
|
|
|
|
let a: any = {};
|
|
|
|
//let a: any = {};
|
|
|
|
model.orderNoItemList.forEach((item) => {
|
|
|
|
this.model.orderNoItemList.forEach((item) => {
|
|
|
|
a.label = item.productName;
|
|
|
|
item.label = item.productName;
|
|
|
|
a.value = item.productCode;
|
|
|
|
item.value = item.productCode;
|
|
|
|
this.materilist.push(a);
|
|
|
|
this.materilist.push(item);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.aimWl.value = this.materilist[0].value;
|
|
|
|
this.aimWl.value = this.materilist[0].value;
|
|
|
|
this.queryinformation();
|
|
|
|
this.orderNoItemList = this.materilist[0];
|
|
|
|
this.getlist();
|
|
|
|
this.outnumber = this.orderNoItemList.outQuantity;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.materilist = [];
|
|
|
|
this.materilist = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//查询货单关联采购单信息
|
|
|
|
|
|
|
|
async queryinformation() {
|
|
|
|
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '请输入备货单号',
|
|
|
|
|
|
|
|
// url: '/pages/user/index'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
let item: any = {};
|
|
|
|
|
|
|
|
item.orderNo = this.orderNo;
|
|
|
|
|
|
|
|
item.value = this.aimWl.value;
|
|
|
|
|
|
|
|
await this.model.queryinformation(item);
|
|
|
|
|
|
|
|
if (model.information) {
|
|
|
|
|
|
|
|
this.orderNoItemList = model.information;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.orderNoItemList = {};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.getlist();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async getlist() {
|
|
|
|
|
|
|
|
let item: any = {};
|
|
|
|
|
|
|
|
item.orderNo = this.orderNo;
|
|
|
|
|
|
|
|
item.value = this.aimWl.value;
|
|
|
|
|
|
|
|
await (this.model as any).showTrays(item);
|
|
|
|
|
|
|
|
if (model.TraysList.length > 0) {
|
|
|
|
|
|
|
|
this.list = model.TraysList;
|
|
|
|
|
|
|
|
this.outnumber = model.TraysList.length;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.list = [];
|
|
|
|
|
|
|
|
this.outnumber = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(model.TraysList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async addlist() {
|
|
|
|
async addlist() {
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
@ -246,25 +258,76 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let item: any = {};
|
|
|
|
|
|
|
|
item.productCode = this.aimWl.value;
|
|
|
|
if (this.selectvalue == 0) {
|
|
|
|
item.barcode = this.boxnumber;
|
|
|
|
//选择整托扫描
|
|
|
|
await this.model.selloutconntray(item);
|
|
|
|
let item: any = {};
|
|
|
|
if (this.model.SubmitCode == '200') {
|
|
|
|
item.sn = this.boxnumber;
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
item.siteCode = session.FactoryCode;
|
|
|
|
title: '成功',
|
|
|
|
await this.model.ScanCodeWholePallet(item);
|
|
|
|
type: 'success',
|
|
|
|
if (this.model.scanCode == '200') {
|
|
|
|
});
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
this.getlist();
|
|
|
|
title: '成功',
|
|
|
|
this.boxnumber = '';
|
|
|
|
type: 'success',
|
|
|
|
} else {
|
|
|
|
});
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// if (this.productCodebiaozhiwei == ''&&model.scandatalist.length) {
|
|
|
|
title: '失败',
|
|
|
|
// this.productCodebiaozhiwei = model.scandatalist[0].productCode;
|
|
|
|
type: 'error',
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
model.scandatalist.map((item) => {
|
|
|
|
this.getlist();
|
|
|
|
if (item.productCode == this.aimWl.value) {
|
|
|
|
this.boxnumber = '';
|
|
|
|
this.list.push({ sn: item.sn, barcode: item.barcode, wlCode: item.wlCode, storageId: item.storageId });
|
|
|
|
|
|
|
|
this.outnumber += 1;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '必须是同一种物料的',
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// this.list.push()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '失败',
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (this.selectvalue == 1) {
|
|
|
|
|
|
|
|
let item: any = {};
|
|
|
|
|
|
|
|
item.barcode = this.boxnumber;
|
|
|
|
|
|
|
|
item.siteCode = session.FactoryCode;
|
|
|
|
|
|
|
|
await this.model.ScanCodeSingleBox(item);
|
|
|
|
|
|
|
|
if (this.model.scanCode == '200') {
|
|
|
|
|
|
|
|
// if (this.productCodebiaozhiwei == ''&& model.scandata) {
|
|
|
|
|
|
|
|
// this.productCodebiaozhiwei = model.scandata.productCode;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
let scandata = model.scandata;
|
|
|
|
|
|
|
|
if (this.aimWl.value == scandata.productCode) {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '成功',
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.list.push({ sn: scandata.sn, barcode: scandata.barcode, wlCode: scandata.wlCode, storageId: scandata.storageId });
|
|
|
|
|
|
|
|
this.outnumber += 1;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '必须是同一种物料的',
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '失败',
|
|
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// //入库后的查询下面列表的接口
|
|
|
|
// //入库后的查询下面列表的接口
|
|
|
|
// await this.model.queryOrderNo(this.form5);
|
|
|
|
// await this.model.queryOrderNo(this.form5);
|
|
|
|
// this.list = model.orderNoItemList;
|
|
|
|
// this.list = model.orderNoItemList;
|
|
|
@ -285,22 +348,34 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.list[0].outnumber = this.outnumber;
|
|
|
|
//this.list[0].outnumber = this.outnumber;
|
|
|
|
await this.model.out(this.list);
|
|
|
|
let item = {
|
|
|
|
|
|
|
|
factoryCode: session.FactoryCode,
|
|
|
|
|
|
|
|
whCode: this.cimWl.value,
|
|
|
|
|
|
|
|
id: this.orderNoItemList.id,
|
|
|
|
|
|
|
|
productCode: this.orderNoItemList.productCode,
|
|
|
|
|
|
|
|
productName: this.orderNoItemList.productName,
|
|
|
|
|
|
|
|
wmsProductPutTrayCodeList: this.list,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
await this.model.out(item);
|
|
|
|
if (this.model.SubmitCode == '200') {
|
|
|
|
if (this.model.SubmitCode == '200') {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
title: '成功',
|
|
|
|
title: '成功',
|
|
|
|
type: 'success',
|
|
|
|
type: 'success',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.getlist();
|
|
|
|
this.list = [];
|
|
|
|
|
|
|
|
this.query();
|
|
|
|
|
|
|
|
//this.productCodebiaozhiwei = '';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
title: '失败',
|
|
|
|
title: '失败',
|
|
|
|
type: 'error',
|
|
|
|
type: 'error',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.getlist();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
async tidan() {
|
|
|
|
|
|
|
|
//提单方法
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
@ -400,6 +475,16 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
justify-content: space-around;
|
|
|
|
justify-content: space-around;
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-list-top {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.row-list-item-top {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.form3 {
|
|
|
|
.form3 {
|
|
|
|
background-color: #fff;
|
|
|
|
background-color: #fff;
|
|
|
@ -454,10 +539,10 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
|
|
|
|
|
|
|
|
.scroll {
|
|
|
|
.scroll {
|
|
|
|
// margin-top: 2rpx;
|
|
|
|
// margin-top: 2rpx;
|
|
|
|
height: 680rpx;
|
|
|
|
height: 430rpx;
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
width: 92%;
|
|
|
|
width: 92%;
|
|
|
|
top: 710rpx;
|
|
|
|
top: 780rpx;
|
|
|
|
/* bottom: 40px; */
|
|
|
|
/* bottom: 40px; */
|
|
|
|
overflow: auto;
|
|
|
|
overflow: auto;
|
|
|
|
.form2 {
|
|
|
|
.form2 {
|
|
|
@ -481,6 +566,12 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 40%;
|
|
|
|
width: 40%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-list-item-row {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
width: 60%;
|
|
|
|
|
|
|
|
}
|
|
|
|
.list-item {
|
|
|
|
.list-item {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-direction: row;
|
|
|
|