|
@@ -377,6 +377,12 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-button type="primary" size="small" @click="submitForcedHold">确 定</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ @click="handleDel"
|
|
|
+ >重置
|
|
|
+ </el-button>
|
|
|
+
|
|
|
</div>
|
|
|
<!-- //弹窗 -->
|
|
|
<el-dialog :title="title" :visible.sync="dialogForm" width="30%" :show-close="false" :close-on-click-modal="false">
|
|
@@ -404,7 +410,8 @@ import {
|
|
|
deleDictList,
|
|
|
updateReceipt,
|
|
|
getStockCostDict,
|
|
|
- updateStockCostDict, getStockForceDetail, updateStockForceDetail
|
|
|
+ updateStockCostDict, getStockForceDetail, updateStockForceDetail,
|
|
|
+ delTockForceDetail
|
|
|
} from '@/api/common'
|
|
|
import { getKingDeeCategory } from '@/api/basic_data/material'
|
|
|
import { getListStockV2 } from '@/api/basic_data/warehouse'
|
|
@@ -696,6 +703,12 @@ export default {
|
|
|
this.value1 = ''
|
|
|
})
|
|
|
},
|
|
|
+ handleDel() {
|
|
|
+ delTockForceDetail().then(res => {
|
|
|
+ this.getStockForceDetail()
|
|
|
+ this.$successMsg('重置成功')
|
|
|
+ })
|
|
|
+ },
|
|
|
submitForcedHold() {
|
|
|
if (!this.forcedHoldForm.warehouse) {
|
|
|
this.$errorMsg('请选择仓库')
|