|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
<template> |
|
|
|
|
<basic-container > |
|
|
|
|
<div class="avue-crud" |
|
|
|
|
v-loading="reservationloading" |
|
|
|
|
element-loading-text="正在处理中..."> |
|
|
|
|
<basic-container> |
|
|
|
|
<div class="avue-crud" v-loading="reservationloading" element-loading-text="正在处理中..."> |
|
|
|
|
<el-form |
|
|
|
|
ref="form" |
|
|
|
|
:model="form" |
|
|
|
@ -384,66 +382,67 @@
|
|
|
|
|
<!-- 库存品信息 --> |
|
|
|
|
<template v-if="stockListShow"> |
|
|
|
|
<el-dialog v-model="stockListShow" class="stockListShow" title="库存品信息" width="90%"> |
|
|
|
|
<div v-loading="Inventoryloading" |
|
|
|
|
element-loading-text="正在拼命加载中..."> |
|
|
|
|
<!-- :before-close="handleClose"--> |
|
|
|
|
<!-- <el-form :inline="true" :model="query">--> |
|
|
|
|
<!-- <el-form-item label="商场名称:">--> |
|
|
|
|
<!-- <el-input--> |
|
|
|
|
<!-- v-model="query.marketName"--> |
|
|
|
|
<!-- :disabled="Boolean(marketName)"--> |
|
|
|
|
<!-- placeholder="请输入商场名称"--> |
|
|
|
|
<!-- ></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="物料名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.descriptionGoods" placeholder="请输入物料名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="商场编码:">--> |
|
|
|
|
<!-- <el-input v-model="query.marketCode" placeholder="请输入商场编码"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="订单自编号:">--> |
|
|
|
|
<!-- <el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="品牌:">--> |
|
|
|
|
<!-- <el-input v-model="query.brand" placeholder="请输入品牌"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <!– 查询按钮 –>--> |
|
|
|
|
<!-- <el-form-item>--> |
|
|
|
|
<!-- <el-button type="primary" icon="el-icon-search" @click="handleAddInventory"--> |
|
|
|
|
<!-- >搜 索--> |
|
|
|
|
<!-- </el-button>--> |
|
|
|
|
<!-- <el-button icon="el-icon-delete" @click="stockListSearchReset()">清 空</el-button>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-form>--> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="inventoryInfocolumnList" |
|
|
|
|
:tableData="inventoryInfo" |
|
|
|
|
:checkselect="inventorySelectList" |
|
|
|
|
:loading="loading" |
|
|
|
|
@inputTxt="inputscInventory" |
|
|
|
|
@selectCheck="searchStockList" |
|
|
|
|
@selection="selectionInventoryChange" |
|
|
|
|
ref="multipleTable" |
|
|
|
|
> |
|
|
|
|
<!-- @selection="selectionChange"--> |
|
|
|
|
|
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
@click="removeStockList(slotProps.scope.row)" |
|
|
|
|
>移除 |
|
|
|
|
</el-text> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
<el-form-item style="margin-left: 45%; margin-top: 5px"> |
|
|
|
|
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitInventory" |
|
|
|
|
>提交(库存品) |
|
|
|
|
</el-button> |
|
|
|
|
<el-button icon="el-icon-circle-close" @click="stockListShow = false">返 回</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div v-loading="Inventoryloading" element-loading-text="正在拼命加载中..."> |
|
|
|
|
<!-- :before-close="handleClose"--> |
|
|
|
|
<!-- <el-form :inline="true" :model="query">--> |
|
|
|
|
<!-- <el-form-item label="商场名称:">--> |
|
|
|
|
<!-- <el-input--> |
|
|
|
|
<!-- v-model="query.marketName"--> |
|
|
|
|
<!-- :disabled="Boolean(marketName)"--> |
|
|
|
|
<!-- placeholder="请输入商场名称"--> |
|
|
|
|
<!-- ></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="物料名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.descriptionGoods" placeholder="请输入物料名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="商场编码:">--> |
|
|
|
|
<!-- <el-input v-model="query.marketCode" placeholder="请输入商场编码"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="订单自编号:">--> |
|
|
|
|
<!-- <el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="品牌:">--> |
|
|
|
|
<!-- <el-input v-model="query.brand" placeholder="请输入品牌"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <!– 查询按钮 –>--> |
|
|
|
|
<!-- <el-form-item>--> |
|
|
|
|
<!-- <el-button type="primary" icon="el-icon-search" @click="handleAddInventory"--> |
|
|
|
|
<!-- >搜 索--> |
|
|
|
|
<!-- </el-button>--> |
|
|
|
|
<!-- <el-button icon="el-icon-delete" @click="stockListSearchReset()">清 空</el-button>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-form>--> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="inventoryInfocolumnList" |
|
|
|
|
:tableData="inventoryInfo" |
|
|
|
|
:checkselect="inventorySelectList" |
|
|
|
|
:loading="loading" |
|
|
|
|
@inputTxt="inputscInventory" |
|
|
|
|
@selectCheck="searchStockList" |
|
|
|
|
@selection="selectionInventoryChange" |
|
|
|
|
ref="multipleTable" |
|
|
|
|
> |
|
|
|
|
<!-- @selection="selectionChange"--> |
|
|
|
|
|
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
@click="removeStockList(slotProps.scope.row)" |
|
|
|
|
>移除 |
|
|
|
|
</el-text> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
<el-form-item style="margin-left: 45%; margin-top: 5px"> |
|
|
|
|
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitInventory" |
|
|
|
|
>提交(库存品) |
|
|
|
|
</el-button> |
|
|
|
|
<el-button icon="el-icon-circle-close" @click="stockListShow = false" |
|
|
|
|
>返 回</el-button |
|
|
|
|
> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -575,9 +574,9 @@ import { setNodeHeight, removeZeroWidth } from '@/utils/util.js';
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
Inventoryloading:true,//库存品加载 |
|
|
|
|
Inventoryloading: true, //库存品加载 |
|
|
|
|
packageQuery: {}, |
|
|
|
|
reservationloading:false, |
|
|
|
|
reservationloading: false, |
|
|
|
|
orderRow: {}, |
|
|
|
|
columnList: [ |
|
|
|
|
{ |
|
|
|
@ -2106,9 +2105,9 @@ export default {
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
handleAddInventory() { |
|
|
|
|
handleAddInventory() { |
|
|
|
|
this.loading = true; |
|
|
|
|
this.Inventoryloading=true;//开启加载效果 |
|
|
|
|
this.Inventoryloading = true; //开启加载效果 |
|
|
|
|
let page = this.page; |
|
|
|
|
let params = {}; |
|
|
|
|
this.query.serviceType = '2'; |
|
|
|
@ -2144,7 +2143,7 @@ export default {
|
|
|
|
|
} |
|
|
|
|
this.loading = false; |
|
|
|
|
this.selectionClear(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.stockListShow = true; |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
const _node = document.querySelector('.stockListShow .maboxhi'); |
|
|
|
@ -2152,7 +2151,7 @@ export default {
|
|
|
|
|
setNodeHeight(_node, '500px'); |
|
|
|
|
|
|
|
|
|
this.setTableHeight(); |
|
|
|
|
this.Inventoryloading=false;//关闭加载效果 |
|
|
|
|
this.Inventoryloading = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -2467,7 +2466,7 @@ export default {
|
|
|
|
|
try { |
|
|
|
|
// 开启提交按钮loading |
|
|
|
|
this.loadingObj.submitBtnLoading = true; |
|
|
|
|
this.reservationloading=true;//开启全屏加载 |
|
|
|
|
this.reservationloading = true; //开启全屏加载 |
|
|
|
|
// 日期必填 |
|
|
|
|
if (!this.form.reservationDate) { |
|
|
|
|
this.$message({ |
|
|
|
@ -2566,7 +2565,7 @@ export default {
|
|
|
|
|
const res = await autonomouslySave(this.form); |
|
|
|
|
console.log('res :>> ', res); |
|
|
|
|
if (res.data.code !== 200) return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
@ -2576,9 +2575,12 @@ export default {
|
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|
console.log('123123 :>> ', 123123); |
|
|
|
|
this.$store.commit('EDIT_REFRESHITEM', { title: 'reservation', status: true }); |
|
|
|
|
|
|
|
|
|
// 关闭提交按钮loading |
|
|
|
|
this.loadingObj.submitBtnLoading = false; |
|
|
|
|
this.reservationloading=false;//关闭全屏加载 |
|
|
|
|
this.reservationloading = false; //关闭全屏加载 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
inputsc() {}, |
|
|
|
@ -3288,5 +3290,4 @@ input[type='number'] {
|
|
|
|
|
.footer-container { |
|
|
|
|
height: 60px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|