Browse Source

【nev-pc】缺陷处理

ag_report_nev
安虹睿 11 months ago
parent
commit
2b449461a8
  1. 13
      fe/PC/src/components/currenTableFlex/index.vue
  2. 4
      fe/PC/src/utils/tableColumns/index.js
  3. 9
      fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustmentFunc.vue

13
fe/PC/src/components/currenTableFlex/index.vue

@ -37,6 +37,7 @@
class="childTable" class="childTable"
@click="flexRowRemove($event, scope)" @click="flexRowRemove($event, scope)"
> >
<!-- v-if="mustHaveOneRow && scope.$index == 0 ? false : true" -->
<span style="color:red">删除</span> <span style="color:red">删除</span>
</div> </div>
</template> </template>
@ -89,6 +90,13 @@ export default {
// } // }
}, },
props: { props: {
//
mustHaveOneRow:{
type: Boolean,
default: () => {
return false
}
},
// table key // table key
isUpdate: { isUpdate: {
type: Boolean, type: Boolean,
@ -294,12 +302,15 @@ export default {
}, },
// //
flexRowRemove(e, val) { flexRowRemove(e, val) {
if(this.mustHaveOneRow && this.flexTableData.length <= 1){
return this.$warningMsg("必须存在一条数据!")
}
this.$confirm('您确定删除吗, 是否继续?', '提示', { this.$confirm('您确定删除吗, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.flexTableData.splice(val.$index, 1) this.flexTableData.splice(val.$index, 1)
}).catch(() => { }).catch(() => {
}); });

4
fe/PC/src/utils/tableColumns/index.js

@ -1366,8 +1366,8 @@ export const unqualifiedInfo = [
{ label: "物品描述2", prop: "itemDesc2" }, { label: "物品描述2", prop: "itemDesc2" },
{ label: "数量", prop: "qty",isNumber:true }, { label: "数量", prop: "qty",isNumber:true },
{ label: "物品单位", prop: "uom" }, { label: "物品单位", prop: "uom" },
{ label: "原箱码", prop: "fromPackingCode" }, { label: "原箱码", prop: "fromPackingCode" },
{ label: "拆箱箱码", prop: "packingCode" }, // { label: "拆箱箱码", prop: "packingCode" },
{ label: "ERP储位", prop: "locationErpCode" }, { label: "ERP储位", prop: "locationErpCode" },
{ label: "不合格原因代码", prop: 'failedReason' }, { label: "不合格原因代码", prop: 'failedReason' },
{ label: "不合格原因说明", prop: 'failedReason', type: "filter", filters: "getDict" , dictType:"UnqualifiedReason" }, { label: "不合格原因说明", prop: 'failedReason', type: "filter", filters: "getDict" , dictType:"UnqualifiedReason" },

9
fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustmentFunc.vue

@ -68,6 +68,7 @@
:flexTableColumns="addPopColumns_FS" :flexTableColumns="addPopColumns_FS"
@detailsDataPush="pushFS" @detailsDataPush="pushFS"
@clearHandle="clearHandle_FS" @clearHandle="clearHandle_FS"
:mustHaveOneRow="true"
></currenTableFlex> ></currenTableFlex>
</div> </div>
<div class="addPopContent addPopContent_YL"> <div class="addPopContent addPopContent_YL">
@ -78,6 +79,7 @@
:flexTableColumns="addPopColumns_YL" :flexTableColumns="addPopColumns_YL"
@detailsDataPush="pushYL" @detailsDataPush="pushYL"
@clearHandle="clearHandle_YL" @clearHandle="clearHandle_YL"
:mustHaveOneRow="true"
></currenTableFlex> ></currenTableFlex>
</div> </div>
<div class="addPopContent addPopContent_HB"> <div class="addPopContent addPopContent_HB">
@ -608,7 +610,6 @@ export default {
}, },
// //
addPopSureHandle(){ addPopSureHandle(){
// //
let _err_FS=0 let _err_FS=0
this.addPopData_FS.forEach(item=>{ this.addPopData_FS.forEach(item=>{
@ -616,7 +617,7 @@ export default {
_err_FS++ _err_FS++
} }
}) })
if(_err_FS > 0){ if(!this.addPopData_FS || this.addPopData_FS.length <=0 || _err_FS > 0){
return this.$warningMsg("【粉碎料】信息未填全,请填写") return this.$warningMsg("【粉碎料】信息未填全,请填写")
} }
@ -627,7 +628,7 @@ export default {
_err_YL++ _err_YL++
} }
}) })
if(_err_YL > 0){ if(!this.addPopData_YL || this.addPopData_YL.length <=0 || _err_YL > 0){
return this.$warningMsg("【原料】信息未填全,请填写") return this.$warningMsg("【原料】信息未填全,请填写")
} }
@ -649,7 +650,7 @@ export default {
_err_HB++ _err_HB++
} }
}) })
if(_err_HB > 0){ if(!this.addPopData_HB || this.addPopData_HB.length <=0 || _err_HB > 0){
return this.$warningMsg("【混拌料】信息未填全,请填写") return this.$warningMsg("【混拌料】信息未填全,请填写")
} }

Loading…
Cancel
Save