-
接收抱杆类型:{{dialogData.typeName}},型号:{{dialogData.typeCode}},付数:{{returnNum}}。接收明细如下
+
+ 接收抱杆类型:{{ dialogData.typeName }},型号:{{ dialogData.typeCode }},付数:{{ returnNum }}。接收明细如下
+
- 保存
+
+ 保存
+
-
-
+
+
-
-
+
+
-
+
{
- this.deviceList = response.data.rows;
- this.deviceList.forEach(item=>{
- if(item.manageType=='0'||item.manageType=='1'){
- item.partNum = item.num
- }else{
- item.partNum = item.partNum
- }
- if(item.maTypeDetails.length>0){
- this.isPlural=true;
- }
- })
+ receiveView(this.queryParams)
+ .then(response => {
+ this.deviceList = response.data.rows
+ console.log(this.deviceList, ' this.deviceList')
- this.total = response.data.total
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
+ // this.deviceList.forEach(item => {
+ // console.log(item.num, 'item.num')
+ // if (item.manageType == '0' || item.manageType == '1') {
+ // item.partNum = item.num
+ // } else {
+ // item.partNum = item.partNum
+ // }
+ // if (item.maTypeDetails.length > 0) {
+ // this.isPlural = true
+ // }
+ // })
+
+ console.log(this.deviceList, 'deviceList')
+
+ this.total = response.data.total
+ this.loading = false
+ })
+ .catch(() => {
+ this.loading = false
+ })
},
/** 搜索按钮操作 */
handleQuery() {
@@ -692,13 +594,13 @@ export default {
this.dialogData.typeMange = row.manageType
this.dialogData.typeName = row.typeName
this.dialogData.typeCode = row.typeCode
- if(row.maTypeDetails){
- row.maTypeDetails.forEach(item => {
- this.$set(item, 'qualifiedNum', undefined)
- this.$set(item, 'serviceNum', undefined)
- this.$set(item, 'scrapNum', undefined)
- })
- this.dialogData.maTypeDetails = row.maTypeDetails
+ if (row.maTypeDetails) {
+ row.maTypeDetails.forEach(item => {
+ this.$set(item, 'qualifiedNum', undefined)
+ this.$set(item, 'serviceNum', undefined)
+ this.$set(item, 'scrapNum', undefined)
+ })
+ this.dialogData.maTypeDetails = row.maTypeDetails
}
this.numList = [row]
// this.getNumList()
@@ -712,8 +614,10 @@ export default {
manageType: row.manageType,
createBy: this.createBy,
}
- if(row.maTypeDetails&&row.maTypeDetails.length>0){
- param.typeIds = row.maTypeDetails.map(item=>{return item.modelId})
+ if (row.maTypeDetails && row.maTypeDetails.length > 0) {
+ param.typeIds = row.maTypeDetails.map(item => {
+ return item.modelId
+ })
}
console.log(param)
revoke(param).then(response => {
@@ -778,7 +682,7 @@ export default {
let arr = []
for (const item of data) {
let sumUnmber = (item.qualifiedNum || 0) + (item.serviceNum || 0) + (item.scrapNum || 0)
- if (sumUnmber > item.partNum&&sumUnmber > item.num) {
+ if (sumUnmber > item.partNum && sumUnmber > item.num) {
this.$modal.msgError('退料总量已大于待退料数量!')
return
} else {
diff --git a/sgzb-ui/src/views/repairTest/repair/upload.vue b/sgzb-ui/src/views/repairTest/repair/upload.vue
index 69603561..afe2275b 100644
--- a/sgzb-ui/src/views/repairTest/repair/upload.vue
+++ b/sgzb-ui/src/views/repairTest/repair/upload.vue
@@ -22,21 +22,21 @@