|
|
|
@ -101,14 +101,14 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="bottom-bar">
|
|
|
|
|
<u-row class="button-bar">
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button type="error" @click="SignIn">到货登记</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<!-- 确定 -->
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button @click="onSubmit" type="primary">确定</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<!-- 返回 -->
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">返回</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
@ -487,6 +487,26 @@ export default class receivePO extends BasePage {
|
|
|
|
|
this.selectway = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async SignIn() {
|
|
|
|
|
if (this.procureCode == '' || this.procureCode.length == 0) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请输入采购单号',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let params = {
|
|
|
|
|
factoryCode: session.FactoryCode,
|
|
|
|
|
procureCode: this.procureCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.ArrivalRegistration(params);
|
|
|
|
|
if (this.model.Arrivalcode == '200') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'success',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|