|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 订单 -->
|
|
|
|
|
<u-form-item label="物料编码">
|
|
|
|
|
<u-form-item label="物料描述">
|
|
|
|
|
<!-- <u-input :border="true" v-model="materialCode" placeholder="" @confirm="query" style="overflow: hidden" /> -->
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -162,7 +162,33 @@
|
|
|
|
|
</u-popup>
|
|
|
|
|
<view v-if="show" class="mask"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<u-toast ref="uToast" />
|
|
|
|
|
<view>
|
|
|
|
|
<u-popup v-model="singshow" mode="center" width="580rpx" height="500rpx">
|
|
|
|
|
<view class="form4">
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">已登记数量:</view>
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="operationNumber" placeholder="" style="overflow: hidden;background-color: #ddd;" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">未登记数量:</view>
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="nooperationNumber" placeholder="" style="overflow: hidden;background-color: #ddd;" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">登记数量:</view>
|
|
|
|
|
<u-input class="poupcontent" type="number" :clearable="false" v-model="czNumber" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupbutton" style="margin-top: 10px">
|
|
|
|
|
<div>
|
|
|
|
|
<u-button style="width: 100px; height: 35px" @click="onOksing" size="mini" type="primary">确定</u-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<u-button style="width: 100px; height: 35px" size="mini" type="error" @click="nopoupsing">取消</u-button>
|
|
|
|
|
</div>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
<view v-if="singshow" class="mask"></view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
|
|
|
@ -185,6 +211,9 @@ export default class receivePO extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
list: any = [];
|
|
|
|
|
receivedlist: any = [];
|
|
|
|
|
operationNumber = 0;
|
|
|
|
|
nooperationNumber = 0;
|
|
|
|
|
czNumber = 0;
|
|
|
|
|
// receivedlist=[{
|
|
|
|
|
// orderStatus:'1',
|
|
|
|
|
// procureCode:'111',
|
|
|
|
@ -214,6 +243,7 @@ export default class receivePO extends BasePage {
|
|
|
|
|
// ]
|
|
|
|
|
whList: any = [];
|
|
|
|
|
show = false;
|
|
|
|
|
singshow = false;
|
|
|
|
|
form3: any = {};
|
|
|
|
|
aimWl = {} as OptionType;
|
|
|
|
|
materilist = [];
|
|
|
|
@ -285,6 +315,12 @@ export default class receivePO extends BasePage {
|
|
|
|
|
this.form3 = {};
|
|
|
|
|
this.productCodeTypeList = {};
|
|
|
|
|
}
|
|
|
|
|
nopoupsing(){
|
|
|
|
|
this.singshow = false;
|
|
|
|
|
this.operationNumber =0;
|
|
|
|
|
this.nooperationNumber = 0;
|
|
|
|
|
this.czNumber = 0;
|
|
|
|
|
}
|
|
|
|
|
//点击收货按钮,录入批次(或系统自动生成)、数量、托盘码进行收货。
|
|
|
|
|
async onOk() {
|
|
|
|
|
console.log(this.form3);
|
|
|
|
@ -489,7 +525,21 @@ export default class receivePO extends BasePage {
|
|
|
|
|
this.selectway = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//到货登记查询
|
|
|
|
|
async SignIn() {
|
|
|
|
|
let params = {
|
|
|
|
|
factoryCode:session.FactoryCode,
|
|
|
|
|
id:this.list[0].id,
|
|
|
|
|
}
|
|
|
|
|
await this.model.selectArrivalRegistration(params);
|
|
|
|
|
if(this.model.singcode == '200'){
|
|
|
|
|
this.singshow = true;
|
|
|
|
|
this.operationNumber = model.singobj.operationNumber;
|
|
|
|
|
this.nooperationNumber =model.singobj.planNumber - model.singobj.operationNumber
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//到货登记确定提交
|
|
|
|
|
async onOksing() {
|
|
|
|
|
if (this.procureCode == '' || this.procureCode.length == 0) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请输入采购单号',
|
|
|
|
@ -500,13 +550,18 @@ export default class receivePO extends BasePage {
|
|
|
|
|
let params = {
|
|
|
|
|
factoryCode: session.FactoryCode,
|
|
|
|
|
procureCode: this.procureCode,
|
|
|
|
|
id: this.list[0].id,
|
|
|
|
|
czNumber:this.czNumber,
|
|
|
|
|
lastUpdateBy: session.loginName,
|
|
|
|
|
};
|
|
|
|
|
//console.log('99999',params);
|
|
|
|
|
await this.model.ArrivalRegistration(params);
|
|
|
|
|
if (this.model.Arrivalcode == '200') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'success',
|
|
|
|
|
});
|
|
|
|
|
this.nopoupsing();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -830,6 +885,25 @@ export default class receivePO extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form4 {
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
//border-radius: 10rpx;
|
|
|
|
|
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
|
|
|
|
|
.poupitem {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
margin: 20rpx;
|
|
|
|
|
.pouptitle {
|
|
|
|
|
width: 40%;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
.poupcontent {
|
|
|
|
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.poupbutton {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|