同步
This commit is contained in:
@@ -45,6 +45,15 @@ export function getOutStockoutDetail(query) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除出库单据
|
||||
export function delOutStockout(stockoutGuids) {
|
||||
return request({
|
||||
url: '/out/outStockout/' + stockoutGuids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//修改单据状态
|
||||
export function updateOutStockStatus(params)
|
||||
{
|
||||
|
||||
@@ -97,6 +97,16 @@
|
||||
v-hasPermi="['out:outStockout:changeStatus']"
|
||||
>{{'单据作废'}}</el-button> <!-- 单据作废 -->
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
size="mini"
|
||||
:disabled="selectedRows.length === 0"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['out:outStockout:remove']"
|
||||
>强制删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -260,7 +270,7 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" plain @click="handleAutoAllot" v-if="!isAddMode" v-hasPermi="['out:outStockout:autoAllot']">自动分配</el-button>
|
||||
<el-button type="primary" plain @click="handleManualAllot" v-if="!isAddMode" v-hasPermi="['out:outStockout:manualAllot']">手动分配</el-button>
|
||||
<!-- <el-button type="primary" plain @click="handleManualAllot" v-if="!isAddMode" v-hasPermi="['out:outStockout:manualAllot']">手动分配</el-button>-->
|
||||
<el-button type="primary" @click="submitForm" v-if="!isView">确 定</el-button>
|
||||
<el-button @click="open = false">关 闭</el-button>
|
||||
</div>
|
||||
@@ -373,18 +383,19 @@
|
||||
<el-table-column type="selection" width="55" align="center" :selectable="stockSelectable" />
|
||||
<!-- <el-table-column label="库存编码" align="center" prop="stockId" />-->
|
||||
<!-- <el-table-column label="货位名称" align="center" prop="cargoSpaceName" />-->
|
||||
<el-table-column label="通道编号" align="center" prop="groupCodingNo" width="80" />
|
||||
<el-table-column label="通道编号" align="center" prop="groupCodingNo" width="80" />
|
||||
<!-- <el-table-column label="仓库" align="center" prop="warehouseId" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <dict-tag :options="dict.type.warehouse" :value="scope.row.warehouseId"/>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="批次号" align="center" prop="lotNo" />-->
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="最近入库时间" align="center" prop="inDate" width="160" />
|
||||
<!-- <el-table-column label="规格型号" align="center" prop="netWeight" />-->
|
||||
<!-- <el-table-column label="图号" align="center" prop="grossWeight" />-->
|
||||
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||
|
||||
<!-- <el-table-column label="来源" align="center" prop="spare1" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
@@ -439,7 +450,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOutStockout,autoAllot,listOut,manualAllot, saveOutStock, listProductAndStock, getOutStockList} from "@/api/out/outStockout"
|
||||
import { listOutStockout,autoAllot,listOut,manualAllot, saveOutStock, listProductAndStock, getOutStockList, delOutStockout} from "@/api/out/outStockout"
|
||||
import { getOutStockoutDetail,updateOutStockStatus } from "@/api/out/outStockout"
|
||||
import {listWarehouse} from "@/api/bas/warehouse";
|
||||
|
||||
@@ -777,6 +788,21 @@ export default {
|
||||
handleSelectionChange(selection) {
|
||||
this.selectedRows = selection
|
||||
},
|
||||
/** 强制删除按钮操作 */
|
||||
handleDelete() {
|
||||
if (this.selectedRows.length === 0) {
|
||||
this.$modal.msgError('请选择数据')
|
||||
return
|
||||
}
|
||||
const stockoutGuids = this.selectedRows.map(row => row.stockoutGuid)
|
||||
this.$modal.confirm('是否确认删除选中的出库单据?').then(function () {
|
||||
return delOutStockout(stockoutGuids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
/** 子表多选框选中数据 */
|
||||
handleDetailSelectionChange(selection) {
|
||||
this.selectedDetailRows = selection
|
||||
|
||||
@@ -118,12 +118,12 @@
|
||||
<el-form-item label="托盘编码" prop="trayCode">
|
||||
<el-input v-model="form.trayCode" placeholder="请输入托盘编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入库子单ID" prop="stockinDetailId">
|
||||
<el-input v-model="form.stockinDetailId" placeholder="请输入入库子单ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库ID" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" placeholder="请输入仓库ID" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="入库子单ID" prop="stockinDetailId">-->
|
||||
<!-- <el-input v-model="form.stockinDetailId" placeholder="请输入入库子单ID" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="仓库ID" prop="warehouseId">-->
|
||||
<!-- <el-input v-model="form.warehouseId" placeholder="请输入仓库ID" />-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
<el-table-column label="产品编码" align="center" prop="productId" />
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="通道组编码" align="center" prop="groupCodingNo" />
|
||||
<el-table-column label="最近入库时间" align="center" prop="inDate" width="160" />
|
||||
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user