1/17 上货页面条码删除1.0

20240912_adapter
wangwei 3 months ago
parent ede56027e9
commit c186997015

@ -250,18 +250,18 @@
<!-- @getCount="getCount"--> <!-- @getCount="getCount"-->
<!-- ></codeDetailPanel>--> <!-- ></codeDetailPanel>-->
<!-- </el-tab-pane>--> <!-- </el-tab-pane>-->
<el-tab-pane label="扫码明细" v-if="viewCodeDetailVisible"> <!-- <el-tab-pane label="扫码明细" v-if="viewCodeDetailVisible">-->
<codesPanel <!-- <codesPanel-->
@getCodeArray="handleCodeArray" <!-- @getCodeArray="handleCodeArray"-->
:idQuery="orderFormData" <!-- :idQuery="orderFormData"-->
:refreshPanel="refreshCodesPanel" <!-- :refreshPanel="refreshCodesPanel"-->
v-if="isCodeAlive" <!-- v-if="isCodeAlive"-->
:viewType="viewType" <!-- :viewType="viewType"-->
:selectRlTitle="selectRlTitle" <!-- :selectRlTitle="selectRlTitle"-->
:editTitle="editTitle" <!-- :editTitle="editTitle"-->
:selectUnitTitle="selectUnitTitle" <!-- :selectUnitTitle="selectUnitTitle"-->
></codesPanel> <!-- ></codesPanel>-->
</el-tab-pane> <!-- </el-tab-pane>-->
<!--</el-tabs>--> <!--</el-tabs>-->
<el-dialog <el-dialog
@ -1324,7 +1324,12 @@ export default {
this.orderStatus = true this.orderStatus = true
}, },
getCount(count){ getCount(count){
this.scanReCount = count if (count == 0){
this.scanReCount = 0
}else{
this.scanReCount = count
}
}, },
refreshOrder(orderQuery) { refreshOrder(orderQuery) {

@ -41,20 +41,53 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="deleteCode(scope.$index, scope.row)"
>减一
</el-button
>
<el-button
type="text"
size="small"
@click.native.stop="editCode(scope.row)"
>编辑
</el-button
>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-dialog
title="编辑条码"
:visible.sync="editCodeVisible"
append-to-body width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="editCodeVisible"
>
<editCodeDialog
editType="2"
:closeCodeDialog="closeCodeDialog"
:codeDetail="codeDetail">
</editCodeDialog>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {convertDate} from "@/utils/date"; import {convertDate} from "@/utils/date";
import { getCheckDetailCodes, getDetailCodes, updateBizProduct, updateCodeProduct } from '@/api/inout/orderDetailCode' import { getCheckDetailCodes, getDetailCodes, updateBizProduct, updateCodeProduct } from '@/api/inout/orderDetailCode'
import { errorCodeList } from '@/api/inout/order' import { deleteCodesTempById, errorCodeList } from '@/api/inout/order'
import editCodeDialog from "@/views/inout/DialogEditCode";
export default { export default {
name: "newCreateCodeDetail", name: "newCreateCodeDetail",
@ -77,6 +110,7 @@ export default {
}, },
}, },
components: {editCodeDialog},
data() { data() {
return { return {
convertDateFun: convertDate, convertDateFun: convertDate,
@ -94,7 +128,7 @@ export default {
orderDetail:null, orderDetail:null,
codeArray:[], codeArray:[],
codeCount: 0, codeCount: 0,
codeDetail: null,
} }
}, },
@ -127,6 +161,8 @@ export default {
count += item.reCount; count += item.reCount;
}); });
this.$emit('getCount', count); this.$emit('getCount', count);
}else {
this.$emit('getCount', count);
} }
}) })
.catch(() => { .catch(() => {
@ -186,10 +222,37 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
deleteCode(index, row) {
this.$confirm("是否确定移除一个条码?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
let tQuery = {
id: row.id
}
deleteCodesTempById(tQuery)
.then((response) => {
if (response.code === 20000) {
this.getOrderDetails();
this.getCodeList()
} else {
this.$message.error(response.message);
}
});
}).catch(() => {
});
},
editCode(row){
this.codeDetail = row;
this.editCodeVisible = true;
},
closeCodeDialog() {
this.editCodeVisible = false;
this.getOrderDetails();
this.getCodeList()
},
}, },
created() { created() {
if (this.idQuery.billNo != null) if (this.idQuery.billNo != null)

Loading…
Cancel
Save