|
|
@@ -8,10 +8,14 @@
|
|
|
<BaseIndexButton ref="search" name="search"></BaseIndexButton>
|
|
|
<!-- 清空条件 -->
|
|
|
<BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
|
|
|
+ <!-- 编辑 -->
|
|
|
+ <BaseIndexButton ref="edit" name="edit"></BaseIndexButton>
|
|
|
<!-- 入库办理 -->
|
|
|
<BaseIndexButton ref="entryHandle" name="entryHandle"></BaseIndexButton>
|
|
|
<!-- 入库撤回 -->
|
|
|
<BaseIndexButton ref="entryBack" name="entryBack"></BaseIndexButton>
|
|
|
+ <!-- 作废 -->
|
|
|
+ <BaseIndexButton ref="invalid" name="invalid"></BaseIndexButton>
|
|
|
</template>
|
|
|
<template #right>
|
|
|
<BaseIndexButton ref="add" name="add"></BaseIndexButton>
|
|
|
@@ -459,6 +463,38 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ /**
|
|
|
+ * @desc : 作废
|
|
|
+ * @author : 常皓宁
|
|
|
+ * @date : 2024/3/21 12:59
|
|
|
+ */
|
|
|
+ invalid() {
|
|
|
+ let rows = this.$refs['table-select'].batchRows;
|
|
|
+ if (rows && rows.length > 0) {
|
|
|
+ if(rows[0].intoStatus == this.$config.intoStatus.yiRuKu){
|
|
|
+ this.$Message.warning(this.$t('W_007', {'param': this.$t('W_105')}));
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let params ={
|
|
|
+ intoId:rows[0].intoId,
|
|
|
+ }
|
|
|
+ this.$IBMessage({content: this.$t('Q_002', {'param': this.$v('invalid')}), title: this.$t('systemQuestion')},
|
|
|
+ {
|
|
|
+ ok: () => {
|
|
|
+ this.loading = true
|
|
|
+ // this.excute(this.$service.purReturnService, this.$service.purReturnService.cancel, params, false).then(res => {
|
|
|
+ // if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
+ // this.$Message.success(this.$t('I_001', {'param': this.$t('invalid')}))
|
|
|
+ // } else {
|
|
|
+ // this.$Message.warning(res.message)
|
|
|
+ // }
|
|
|
+ // this.loading = false
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
created() {
|
|
|
this.primaryKey = 'intoId' // 设置主键Id
|