|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
<!-- 表单字段 --> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="入库批次" prop="receiptBatch"> |
|
|
|
|
<el-input v-model="form.receiptBatch" clearable placeholder="请输入入库批次" /> |
|
|
|
|
<el-input v-model="form.receiptBatch" clearable placeholder="请输入入库批次" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="入库时间" prop="receiptDate"> |
|
|
|
|
<!-- <el-input v-model="form.receiptDate" placeholder="请输入入库时间"/>--> |
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
v-model="form.receiptDate" |
|
|
|
|
placeholder="请选择入库时间" |
|
|
|
|
type="datetime" |
|
|
|
|
clearable |
|
|
|
|
clearable |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
@ -39,7 +39,7 @@
|
|
|
|
|
remote-show-suffix |
|
|
|
|
:remote-method="remoteMethod" |
|
|
|
|
:loading="loading" |
|
|
|
|
clearable |
|
|
|
|
clearable |
|
|
|
|
@change="getMenDian($event, 1)" |
|
|
|
|
placeholder="请输入客户名称" |
|
|
|
|
> |
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
:loading="loading" |
|
|
|
|
@change="getMenDian($event, 2)" |
|
|
|
|
placeholder="请输入客户编码" |
|
|
|
|
clearable |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in optionCodes" |
|
|
|
@ -82,7 +82,7 @@
|
|
|
|
|
v-model="form.storeId" |
|
|
|
|
filterable |
|
|
|
|
allow-create |
|
|
|
|
clearable |
|
|
|
|
clearable |
|
|
|
|
default-first-option |
|
|
|
|
:reserve-keyword="false" |
|
|
|
|
@change="getMen($event, 1)" |
|
|
|
@ -100,12 +100,12 @@
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<!-- <el-form-item label="物流单号" prop="trainNumber">--> |
|
|
|
|
<el-form-item label="物流车次"> |
|
|
|
|
<el-input v-model="form.trainNumber" clearable placeholder="请输入物流车次" /> |
|
|
|
|
<el-input v-model="form.trainNumber" clearable placeholder="请输入物流车次" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="入库车牌" prop="licensePlate">--> |
|
|
|
|
<el-form-item label="入库车牌"> |
|
|
|
|
<el-input v-model="form.licensePlate" clearable placeholder="请输入入库车牌" /> |
|
|
|
|
<el-input v-model="form.licensePlate" clearable placeholder="请输入入库车牌" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
@ -256,28 +256,24 @@
|
|
|
|
|
v-if="!typeView || this.$route.query.type == '3'" |
|
|
|
|
> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
icon="el-icon-circle-check" |
|
|
|
|
@click="handleSubmit" |
|
|
|
|
:disabled="view && !this.$route.query.type == '3'" |
|
|
|
|
v-if="this.$route.query.type" |
|
|
|
|
>提 交1</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
icon="el-icon-circle-check" |
|
|
|
|
@click="showCommitButton" |
|
|
|
|
:disabled="view && !this.$route.query.type == '3'" |
|
|
|
|
v-if="!hideButton" |
|
|
|
|
v-else-if="!hideButton" |
|
|
|
|
>提 交</el-button |
|
|
|
|
> |
|
|
|
|
<span v-else> |
|
|
|
|
<!-- <el-button |
|
|
|
|
v-if="this.$route.query.type !== '3'" |
|
|
|
|
icon="el-icon-circle-check" |
|
|
|
|
@click="handleSubmit" |
|
|
|
|
> |
|
|
|
|
预约入库 |
|
|
|
|
</el-button> --> |
|
|
|
|
<el-button |
|
|
|
|
icon="el-icon-circle-check" |
|
|
|
|
@click="handleSubmit" |
|
|
|
|
> |
|
|
|
|
预约入库 |
|
|
|
|
</el-button> |
|
|
|
|
<span v-else-if="hideButton"> |
|
|
|
|
<el-button icon="el-icon-circle-check" @click="handleSubmit"> 预约入库 </el-button> |
|
|
|
|
<el-button icon="el-icon-circle-check" @click="handleHirectStorage"> |
|
|
|
|
直接入库 |
|
|
|
|
</el-button> |
|
|
|
@ -987,6 +983,8 @@ export default {
|
|
|
|
|
console.log('this.form111', this.form); |
|
|
|
|
if (this.data.length > 0) { |
|
|
|
|
this.form.list = this.data; |
|
|
|
|
// 预约入库类型为1 |
|
|
|
|
this.form.type = '1'; |
|
|
|
|
add(this.form).then(() => { |
|
|
|
|
this.box = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
@ -1013,6 +1011,7 @@ export default {
|
|
|
|
|
if (!!this.form.totalInput && parseInt(this.form.totalInput) == '-1') { |
|
|
|
|
this.form.totalInput = null; |
|
|
|
|
} |
|
|
|
|
this.form.type = '1'; |
|
|
|
|
this.form.list = this.data; |
|
|
|
|
update(this.form).then(() => { |
|
|
|
|
this.box = false; |
|
|
|
@ -1032,15 +1031,34 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
// 直接入库 |
|
|
|
|
handleHirectStorage() { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '功能还在开发中', |
|
|
|
|
this.$refs.form.validate(valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (!this.form.id) { |
|
|
|
|
console.log('this.form111', this.form); |
|
|
|
|
if (this.data.length > 0) { |
|
|
|
|
this.form.list = this.data; |
|
|
|
|
// 直接入库类型为2 |
|
|
|
|
this.form.type = '2'; |
|
|
|
|
add(this.form).then(() => { |
|
|
|
|
this.box = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
this.form = {}; |
|
|
|
|
this.data = []; |
|
|
|
|
// 操作完成后关闭本页标签 |
|
|
|
|
this.$store.commit('DEL_TAG', this.$store.state.tags.tag); |
|
|
|
|
// 操作完成后返回入库列表页面 |
|
|
|
|
this.$router.push('/warehouse/warehousingentry/warehouseWarehousingEntry'); |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning('请添加物资详情!!!'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 操作完成后关闭本页标签 |
|
|
|
|
this.$store.commit('DEL_TAG', this.$store.state.tags.tag); |
|
|
|
|
// 返回入库列表页面 |
|
|
|
|
this.$router.push('/warehouse/warehousingentry/warehouseWarehousingEntry'); |
|
|
|
|
}, |
|
|
|
|
handleAdd() { |
|
|
|
|
this.title = '新增'; |
|
|
|
|