退料接收撤回功能
This commit is contained in:
parent
77c6616c64
commit
c93b3fa75a
|
|
@ -202,6 +202,16 @@ export function getRecord(query) {
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 退料接收 撤回操作
|
||||||
|
export function revoke(data) {
|
||||||
|
return request({
|
||||||
|
url: 'base/backReceive/revoke',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 退料接收 完成接收
|
// 退料接收 完成接收
|
||||||
export function endBack(data) {
|
export function endBack(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,9 @@
|
||||||
<el-button size="mini" type="primary" @click="handleNumReturn(scope.row)" v-if="!isView&&scope.row.manageType=='1'&&scope.row.num>0">
|
<el-button size="mini" type="primary" @click="handleNumReturn(scope.row)" v-if="!isView&&scope.row.manageType=='1'&&scope.row.num>0">
|
||||||
数量退料
|
数量退料
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button size="mini" icon="el-icon-zoom-in">
|
<el-button size="mini" icon="el-icon-zoom-in" @click="handleBackup(scope.row)" v-if="!isView&&scope.row.num<scope.row.preNum">
|
||||||
撤回
|
撤回
|
||||||
</el-button> -->
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -240,7 +240,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { receiveView ,getBackMachine,backReceiveRecordWeb,setNumBack,setCodeBack, getRecord, endBack } from "@/api/claimAndRefund/return";
|
import { receiveView ,getBackMachine,backReceiveRecordWeb,setNumBack,setCodeBack, getRecord, endBack, revoke } from "@/api/claimAndRefund/return";
|
||||||
import { getTypeList } from "@/api/store/warehousing";
|
import { getTypeList } from "@/api/store/warehousing";
|
||||||
import { equipmentTypeTree } from "@/api/store/tools";
|
import { equipmentTypeTree } from "@/api/store/tools";
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
|
|
@ -461,6 +461,22 @@
|
||||||
this.numList = [obj]
|
this.numList = [obj]
|
||||||
// this.getNumList()
|
// this.getNumList()
|
||||||
},
|
},
|
||||||
|
//
|
||||||
|
handleBackup(row){
|
||||||
|
// console.log(row)
|
||||||
|
let param = {
|
||||||
|
parentId:row.id,
|
||||||
|
typeId:row.modelId,
|
||||||
|
manageType:row.manageType,
|
||||||
|
createBy:this.createBy,
|
||||||
|
}
|
||||||
|
revoke(param).then(response => {
|
||||||
|
if(response.code==200){
|
||||||
|
this.$modal.msgSuccess("操作成功");
|
||||||
|
this.handleQuery()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
//编码退料查询
|
//编码退料查询
|
||||||
handleCodeQuery() {
|
handleCodeQuery() {
|
||||||
this.codeQuery.pageNum = 1;
|
this.codeQuery.pageNum = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue