add:原材料库存修改
This commit is contained in:
@@ -134,8 +134,8 @@ public class QlTestInspectionsheetmstServiceImpl extends ServiceImpl<QlTestInspe
|
|||||||
ylmst.put("total_qty",mst.getQty());
|
ylmst.put("total_qty",mst.getQty());
|
||||||
ylmst.put("detail_count",1);
|
ylmst.put("detail_count",1);
|
||||||
ylmst.put("stor_id",IOSEnum.STOR_CODE.code("原材料仓"));
|
ylmst.put("stor_id",IOSEnum.STOR_CODE.code("原材料仓"));
|
||||||
ylmst.put("bill_type",IOSEnum.BILL_TYPE.code("手工入库"));
|
ylmst.put("bill_type",IOSEnum.BILL_TYPE.code("采购入库"));
|
||||||
ylmst.put("buss_type",IOSEnum.BILL_TYPE.code("手工入库"));
|
ylmst.put("buss_type",IOSEnum.BILL_TYPE.code("采购入库"));
|
||||||
ylmst.put("biz_date",DateUtil.today());
|
ylmst.put("biz_date",DateUtil.today());
|
||||||
ylmst.put("tableData",tableData);
|
ylmst.put("tableData",tableData);
|
||||||
iostorinvYlService.create(ylmst);
|
iostorinvYlService.create(ylmst);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package org.nl.wms.storage_manage.rawmanage.controller.structIvt;
|
package org.nl.wms.storage_manage.rawmanage.controller.structIvt;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.nl.common.anno.Log;
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.query.PageQuery;
|
import org.nl.common.domain.query.PageQuery;
|
||||||
@@ -10,10 +11,7 @@ import org.nl.wms.storage_manage.rawmanage.service.structIvt.dto.StructIvtYLQuer
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -72,5 +70,11 @@ public class StIvtStructivtYlController {
|
|||||||
public ResponseEntity<Object> getAllRawIvt(StructIvtYLQuery query, PageQuery page) {
|
public ResponseEntity<Object> getAllRawIvt(StructIvtYLQuery query, PageQuery page) {
|
||||||
return new ResponseEntity<>(structivtYlService.getAllRawIvt(query, page), HttpStatus.OK);
|
return new ResponseEntity<>(structivtYlService.getAllRawIvt(query, page), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@GetMapping("/update")
|
||||||
|
@Log("更新原料库存")
|
||||||
|
//("查询原料库存")
|
||||||
|
public ResponseEntity<Object> update(@RequestBody JSONObject form) {
|
||||||
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ public class StIvtIostorinvYlServiceImpl extends ServiceImpl<StIvtIostorinvYlMap
|
|||||||
if (ObjectUtil.isNotEmpty(structivtYl)) {
|
if (ObjectUtil.isNotEmpty(structivtYl)) {
|
||||||
structivtYl.setCanuse_qty(NumberUtil.add(structivtYl.getCanuse_qty(), dis.getPlan_qty()));
|
structivtYl.setCanuse_qty(NumberUtil.add(structivtYl.getCanuse_qty(), dis.getPlan_qty()));
|
||||||
structivtYl.setIvt_qty(structivtYl.getCanuse_qty());
|
structivtYl.setIvt_qty(structivtYl.getCanuse_qty());
|
||||||
|
structivtYl.setInstorage_time(DateUtil.now());
|
||||||
structivtYlService.updateById(structivtYl);
|
structivtYlService.updateById(structivtYl);
|
||||||
|
|
||||||
// 插入库存变动记录
|
// 插入库存变动记录
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
and sa.stor_id = #{query.stor_id}
|
and sa.stor_id = #{query.stor_id}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by instorage_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getProductIvt" resultType="java.util.Map">
|
<select id="getProductIvt" resultType="java.util.Map">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ spring:
|
|||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: prod
|
active: dev3
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
debugger
|
|
||||||
this.crud.delAllLoading = true
|
this.crud.delAllLoading = true
|
||||||
this.crud.doDelete(datas)
|
this.crud.doDelete(datas)
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -583,7 +583,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换部门
|
// 切换部门
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
debugger
|
|
||||||
this.query.dept_id = data.dept_id
|
this.query.dept_id = data.dept_id
|
||||||
this.query.needAll = true
|
this.query.needAll = true
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
inv_typeFormat(row) {
|
inv_typeFormat(row) {
|
||||||
debugger
|
|
||||||
if (row.invcode.includes('WXD')) {
|
if (row.invcode.includes('WXD')) {
|
||||||
return this.dict.label.EM_DEVICE_WX_INVTYPE[row.invtype]
|
return this.dict.label.EM_DEVICE_WX_INVTYPE[row.invtype]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
debugger
|
|
||||||
const data = {
|
const data = {
|
||||||
'repair_id': this.form.repair_id
|
'repair_id': this.form.repair_id
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
debugger
|
|
||||||
const data = {
|
const data = {
|
||||||
'maint_id': this.form.maint_id
|
'maint_id': this.form.maint_id
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
tableChanged2(rows) {
|
tableChanged2(rows) {
|
||||||
debugger
|
|
||||||
// 对新增的行进行校验不能存在相同物料批次
|
// 对新增的行进行校验不能存在相同物料批次
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
let same_mater = true
|
let same_mater = true
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sectQueryChange(val) {
|
sectQueryChange(val) {
|
||||||
debugger
|
|
||||||
this.sectProp = val
|
this.sectProp = val
|
||||||
if (val.length === 1) {
|
if (val.length === 1) {
|
||||||
this.sect_id = val[0]
|
this.sect_id = val[0]
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ export default {
|
|||||||
rows.splice(index, 1)
|
rows.splice(index, 1)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
|
||||||
const data = this.form1
|
const data = this.form1
|
||||||
if (data.maint_plan_name === null) {
|
if (data.maint_plan_name === null) {
|
||||||
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
this.openBom = row
|
this.openBom = row
|
||||||
},
|
},
|
||||||
tableChanged2(row) {
|
tableChanged2(row) {
|
||||||
debugger
|
|
||||||
// const arr = this.fileBom
|
// const arr = this.fileBom
|
||||||
// for (let i = 0; i < arr.length; i++) {
|
// for (let i = 0; i < arr.length; i++) {
|
||||||
// if (i === this.fileBomindex) {
|
// if (i === this.fileBomindex) {
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
debugger
|
|
||||||
this.material_id = this.openParam.material_id
|
this.material_id = this.openParam.material_id
|
||||||
this.query.material_id = this.material_id
|
this.query.material_id = this.material_id
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ export default {
|
|||||||
this.form3.device_id = row.device_id
|
this.form3.device_id = row.device_id
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
debugger
|
|
||||||
const arr = rows
|
const arr = rows
|
||||||
arr.forEach((item) => {
|
arr.forEach((item) => {
|
||||||
this.tableData.push(item)
|
this.tableData.push(item)
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ export default {
|
|||||||
this.form3.device_id = row.device_id
|
this.form3.device_id = row.device_id
|
||||||
},
|
},
|
||||||
tableChanged(rows) {
|
tableChanged(rows) {
|
||||||
debugger
|
|
||||||
const arr = rows
|
const arr = rows
|
||||||
arr.forEach((item) => {
|
arr.forEach((item) => {
|
||||||
this.tableData.push(item)
|
this.tableData.push(item)
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 下发按钮禁用条件
|
// 下发按钮禁用条件
|
||||||
is_disabled(rows) {
|
is_disabled(rows) {
|
||||||
debugger
|
|
||||||
this.checkrows = rows
|
this.checkrows = rows
|
||||||
if (this.checkrows.length == 0){
|
if (this.checkrows.length == 0){
|
||||||
return true
|
return true
|
||||||
@@ -417,7 +417,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
Picconfirm(index, row) {
|
Picconfirm(index, row) {
|
||||||
debugger
|
|
||||||
this.$refs.child.setForm(row.request_code)
|
this.$refs.child.setForm(row.request_code)
|
||||||
this.PicDialog = true
|
this.PicDialog = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ export default {
|
|||||||
rows.splice(index, 1)
|
rows.splice(index, 1)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
|
||||||
const data = this.form1
|
const data = this.form1
|
||||||
if (data.maint_plan_name === null) {
|
if (data.maint_plan_name === null) {
|
||||||
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ export default {
|
|||||||
rows.splice(index, 1)
|
rows.splice(index, 1)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
|
||||||
const data = this.form1
|
const data = this.form1
|
||||||
if (data.maint_plan_name === null) {
|
if (data.maint_plan_name === null) {
|
||||||
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('计划名称不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
debugger
|
|
||||||
if (!form.device_faultclass_code) {
|
if (!form.device_faultclass_code) {
|
||||||
this.queryClassId()
|
this.queryClassId()
|
||||||
} else {
|
} else {
|
||||||
@@ -227,9 +227,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
debugger
|
|
||||||
crudClassstandard.getClassSuperior2(id).then(res => {
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
this.classes = date
|
this.classes = date
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
debugger
|
|
||||||
if (!form.maint_item_code) {
|
if (!form.maint_item_code) {
|
||||||
this.queryClassId()
|
this.queryClassId()
|
||||||
} else {
|
} else {
|
||||||
@@ -302,7 +302,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
crudClassstandard.getClassSuperior2(id).then(res => {
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
this.classes = date
|
this.classes = date
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
debugger
|
|
||||||
if (!form.maint_item_code) {
|
if (!form.maint_item_code) {
|
||||||
this.queryClassId()
|
this.queryClassId()
|
||||||
} else {
|
} else {
|
||||||
@@ -301,9 +301,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
debugger
|
|
||||||
crudClassstandard.getClassSuperior2(id).then(res => {
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
this.classes = date
|
this.classes = date
|
||||||
|
|||||||
@@ -226,9 +226,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
debugger
|
|
||||||
crudClassstandard.getClassSuperior2(id).then(res => {
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
this.classes = date
|
this.classes = date
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
debugger
|
|
||||||
if (!form.maint_item_code) {
|
if (!form.maint_item_code) {
|
||||||
this.queryClassId()
|
this.queryClassId()
|
||||||
} else {
|
} else {
|
||||||
@@ -302,7 +302,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getSubTypes(id) {
|
getSubTypes(id) {
|
||||||
crudClassstandard.getClassSuperior2(id).then(res => {
|
crudClassstandard.getClassSuperior2(id).then(res => {
|
||||||
debugger
|
|
||||||
const date = res.content
|
const date = res.content
|
||||||
this.buildClass(date)
|
this.buildClass(date)
|
||||||
this.classes = date
|
this.classes = date
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
let optType = null
|
let optType = null
|
||||||
|
|
||||||
const isCopyAdd = this.$parent.isCopyAdd
|
const isCopyAdd = this.$parent.isCopyAdd
|
||||||
debugger
|
|
||||||
if (isCopyAdd === '1') {
|
if (isCopyAdd === '1') {
|
||||||
optType = '01' // 复制新增
|
optType = '01' // 复制新增
|
||||||
} else if (this.crud.status.add === 1) {
|
} else if (this.crud.status.add === 1) {
|
||||||
@@ -251,7 +251,7 @@ export default {
|
|||||||
const that = this
|
const that = this
|
||||||
const errMsgList = []
|
const errMsgList = []
|
||||||
const data = arr.map(function(item) {
|
const data = arr.map(function(item) {
|
||||||
debugger
|
|
||||||
// 合格上下限同时为填入的数字或同时为空
|
// 合格上下限同时为填入的数字或同时为空
|
||||||
if ((!isNaN(item.up_limit) && !isNaN(item.down_limit)) || (isNaN(item.up_limit) && isNaN(item.down_limit))) {
|
if ((!isNaN(item.up_limit) && !isNaN(item.down_limit)) || (isNaN(item.up_limit) && isNaN(item.down_limit))) {
|
||||||
// 临界上下限同时为填入的数字或同时为空
|
// 临界上下限同时为填入的数字或同时为空
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ export default {
|
|||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
download('/api/pcsIfPurchaseorder/download', this.crud.query
|
download('/api/pcsIfPurchaseorder/download', this.crud.query
|
||||||
).then(result => {
|
).then(result => {
|
||||||
debugger
|
|
||||||
downloadFile(result, '原料需求', 'xlsx')
|
downloadFile(result, '原料需求', 'xlsx')
|
||||||
crud.downloadLoading = false
|
crud.downloadLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ export default {
|
|||||||
this.deviceList.forEach(row => {
|
this.deviceList.forEach(row => {
|
||||||
res.check_list.forEach(selected => {
|
res.check_list.forEach(selected => {
|
||||||
if (selected.device_code === row.device_code) {
|
if (selected.device_code === row.device_code) {
|
||||||
debugger
|
|
||||||
this.$refs.multipleTable.toggleRowSelection(row, true)
|
this.$refs.multipleTable.toggleRowSelection(row, true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
debugger
|
|
||||||
const list = err.response.data.message
|
const list = err.response.data.message
|
||||||
download2('/api/produceWorkorder/download', list).then(result => {
|
download2('/api/produceWorkorder/download', list).then(result => {
|
||||||
downloadFile(result, '错误信息汇总', 'xlsx')
|
downloadFile(result, '错误信息汇总', 'xlsx')
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export default {
|
|||||||
var formdata = new FormData()
|
var formdata = new FormData()
|
||||||
formdata.append('file', this.file1.raw)
|
formdata.append('file', this.file1.raw)
|
||||||
crudbucketrecord.excelImport(formdata).then((res) => {
|
crudbucketrecord.excelImport(formdata).then((res) => {
|
||||||
debugger
|
|
||||||
this.crud.notify('导入成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify('导入成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.$emit('tableChanged3', '')
|
this.$emit('tableChanged3', '')
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ export default {
|
|||||||
},
|
},
|
||||||
tableChanged2(rows) {
|
tableChanged2(rows) {
|
||||||
rows.forEach((row) => {
|
rows.forEach((row) => {
|
||||||
debugger
|
|
||||||
let same_mater = true
|
let same_mater = true
|
||||||
this.form.tableData.forEach((item) => {
|
this.form.tableData.forEach((item) => {
|
||||||
if (item.base_bill_code === row.sale_code && item.base_bill_table === row.seq_no) {
|
if (item.base_bill_code === row.sale_code && item.base_bill_table === row.seq_no) {
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export default {
|
|||||||
this.form.dtl_row = row
|
this.form.dtl_row = row
|
||||||
this.form.storage_qty = this.form.dtl_row.plan_qty
|
this.form.storage_qty = this.form.dtl_row.plan_qty
|
||||||
crudProductIn.getIosInvDis({ 'iostorinv_id': row.iostorinv_id, 'iostorinvdtl_id': row.iostorinvdtl_id }).then(res => {
|
crudProductIn.getIosInvDis({ 'iostorinv_id': row.iostorinv_id, 'iostorinvdtl_id': row.iostorinvdtl_id }).then(res => {
|
||||||
debugger
|
|
||||||
if (res.length !== 0) {
|
if (res.length !== 0) {
|
||||||
this.form.tableMater = res
|
this.form.tableMater = res
|
||||||
}
|
}
|
||||||
@@ -379,7 +379,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeQty(val) {
|
changeQty(val) {
|
||||||
debugger
|
|
||||||
if (parseFloat(this.form.dtl_row.plan_qty) < parseFloat(val)) {
|
if (parseFloat(this.form.dtl_row.plan_qty) < parseFloat(val)) {
|
||||||
this.crud.notify('放入数量不能大于明细数量!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('放入数量不能大于明细数量!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
this.$set(this.form, 'storage_qty', parseFloat(this.form.dtl_row.plan_qty))
|
this.$set(this.form, 'storage_qty', parseFloat(this.form.dtl_row.plan_qty))
|
||||||
@@ -544,7 +544,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sectQueryChange(val) {
|
sectQueryChange(val) {
|
||||||
debugger
|
|
||||||
this.sectProp = val
|
this.sectProp = val
|
||||||
if (val.length === 1) {
|
if (val.length === 1) {
|
||||||
this.stor_id = val[0]
|
this.stor_id = val[0]
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ export default {
|
|||||||
this.queryTableDdis()
|
this.queryTableDdis()
|
||||||
},
|
},
|
||||||
clcikDisRow(row) {
|
clcikDisRow(row) {
|
||||||
debugger
|
|
||||||
this.dis_row = row
|
this.dis_row = row
|
||||||
if (this.dis_row.task_status < 5) {
|
if (this.dis_row.task_status < 5) {
|
||||||
this.dis_del = false
|
this.dis_del = false
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ export default {
|
|||||||
this.$emit('AddChanged')
|
this.$emit('AddChanged')
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.beforeSubmit]() {
|
[CRUD.HOOK.beforeSubmit]() {
|
||||||
debugger
|
|
||||||
// 提交前校验
|
// 提交前校验
|
||||||
if (this.form.tableData.length === 0) {
|
if (this.form.tableData.length === 0) {
|
||||||
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
@@ -386,7 +386,7 @@ export default {
|
|||||||
this.form.sect_name = row.sect_name
|
this.form.sect_name = row.sect_name
|
||||||
this.form.struct_name = row.struct_name
|
this.form.struct_name = row.struct_name
|
||||||
crudMoreOrless.getStructIvt({'struct_id': row.struct_id}).then(res => {
|
crudMoreOrless.getStructIvt({'struct_id': row.struct_id}).then(res => {
|
||||||
debugger
|
|
||||||
this.form.tableData = res
|
this.form.tableData = res
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
const row = this.form.tableData[i]
|
const row = this.form.tableData[i]
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export default {
|
|||||||
'data': this.rows
|
'data': this.rows
|
||||||
}
|
}
|
||||||
productOut.queryStructAll(data).then(res => {
|
productOut.queryStructAll(data).then(res => {
|
||||||
debugger
|
|
||||||
this.rows = res
|
this.rows = res
|
||||||
this.crud.resetQuery(false)
|
this.crud.resetQuery(false)
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
openStructIvt() {
|
openStructIvt() {
|
||||||
debugger
|
|
||||||
if (this.currentRow.iostorinv_id === undefined) {
|
if (this.currentRow.iostorinv_id === undefined) {
|
||||||
this.crud.notify('请选择明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请选择明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export default {
|
|||||||
this.queryTableDdis()
|
this.queryTableDdis()
|
||||||
},
|
},
|
||||||
clcikDisRow(row) {
|
clcikDisRow(row) {
|
||||||
debugger
|
|
||||||
this.dis_row = row
|
this.dis_row = row
|
||||||
if (this.dis_row.task_status < 5) {
|
if (this.dis_row.task_status < 5) {
|
||||||
this.dis_del = false
|
this.dis_del = false
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ export default {
|
|||||||
return row.bill_status !== '10'
|
return row.bill_status !== '10'
|
||||||
},
|
},
|
||||||
toView(row) {
|
toView(row) {
|
||||||
debugger
|
|
||||||
this.mstrow = row
|
this.mstrow = row
|
||||||
this.viewShow = true
|
this.viewShow = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
class="filter-item"
|
class="filter-item"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.ST_INV_CP_IN_TYPE"
|
v-for="item in dict.ST_INV_RAW_IN_TYPE"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -281,7 +281,7 @@ export default {
|
|||||||
name: 'AddDialog',
|
name: 'AddDialog',
|
||||||
components: { MaterDtl, BillDtl },
|
components: { MaterDtl, BillDtl },
|
||||||
mixins: [crud(), form(defaultForm)],
|
mixins: [crud(), form(defaultForm)],
|
||||||
dicts: ['IO_BILL_STATUS', 'ST_INV_CP_IN_TYPE', 'ST_QUALITY_SCODE', 'bill_type', 'product_area'],
|
dicts: ['IO_BILL_STATUS', 'ST_INV_RAW_IN_TYPE', 'ST_QUALITY_SCODE', 'bill_type', 'product_area'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -455,7 +455,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
tableChanged2(rows) {
|
tableChanged2(rows) {
|
||||||
debugger
|
|
||||||
// 对新增的行进行校验不能存在相同物料批次
|
// 对新增的行进行校验不能存在相同物料批次
|
||||||
rows.forEach((item) => {
|
rows.forEach((item) => {
|
||||||
let same_mater = true
|
let same_mater = true
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
debugger
|
|
||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
this.rows = this.$refs.multipleTable.selection
|
this.rows = this.$refs.multipleTable.selection
|
||||||
this.$emit('setMaterValue', this.rows)
|
this.$emit('setMaterValue', this.rows)
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.ST_INV_IN_TYPE"
|
v-for="item in dict.ST_INV_RAW_IN_TYPE"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
name: 'ViewDialog',
|
name: 'ViewDialog',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['ST_INV_IN_TYPE', 'product_area', 'IO_BILL_STATUS'],
|
dicts: ['ST_INV_RAW_IN_TYPE', 'product_area', 'IO_BILL_STATUS'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -65,6 +65,71 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
|
<!--编辑详情-->
|
||||||
|
<!--表单组件-->
|
||||||
|
<el-dialog
|
||||||
|
title="仓位物料设置"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
destroy-on-close
|
||||||
|
width="700px"
|
||||||
|
close="closeView"
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="ivtForm" :rules="rules" size="mini" label-suffix=":" label-width="90px">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="仓库名称" prop="stor_name">
|
||||||
|
<el-input v-model="ivtForm.stor_name" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="库区名称" prop="struct_name">
|
||||||
|
<el-input v-model="ivtForm.sect_name" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="仓位编码">
|
||||||
|
<el-input v-model="ivtForm.struct_code" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="仓位名称">
|
||||||
|
<el-input v-model="ivtForm.struct_name" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="物料编码">
|
||||||
|
<el-input v-model="ivtForm.material_code" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="物料名称">
|
||||||
|
<el-input v-model="ivtForm.material_name" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="可用数量">
|
||||||
|
<el-input v-model="ivtForm.canuse_qty" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="冻结数量">
|
||||||
|
<el-input v-model="ivtForm.ivt_qty" style="width: 200px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="text" @click="closeView">取消</el-button>
|
||||||
|
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table
|
<el-table
|
||||||
ref="table"
|
ref="table"
|
||||||
@@ -87,6 +152,12 @@
|
|||||||
<el-table-column show-overflow-tooltip prop="warehousing_qty" label="待入数量" :formatter="crud.formatNum3" />
|
<el-table-column show-overflow-tooltip prop="warehousing_qty" label="待入数量" :formatter="crud.formatNum3" />
|
||||||
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="单位" />
|
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="单位" />
|
||||||
<el-table-column show-overflow-tooltip prop="instorage_time" label="入库时间" min-width="150" />
|
<el-table-column show-overflow-tooltip prop="instorage_time" label="入库时间" min-width="150" />
|
||||||
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="danger" size="mini" @click="updateMaterial(scope.row)">修改</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
@@ -102,7 +173,7 @@ import udOperation from '@crud/UD.operation'
|
|||||||
import pagination from '@crud/Pagination'
|
import pagination from '@crud/Pagination'
|
||||||
import DateRangePicker from '@/components/DateRangePicker/index'
|
import DateRangePicker from '@/components/DateRangePicker/index'
|
||||||
import crudStorattr, { getStor } from '@/views/wms/storage_manage/basedata/basedata'
|
import crudStorattr, { getStor } from '@/views/wms/storage_manage/basedata/basedata'
|
||||||
import ProductIvt from '@/views/wms/storage_manage/product/productIvt/productivt'
|
import ProductIvt from '@/views/wms/storage_manage/rawproduct/rawProductIvt/productivt'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RawProductIvt',
|
name: 'RawProductIvt',
|
||||||
@@ -122,6 +193,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
permission: {},
|
permission: {},
|
||||||
|
ivtForm: {},
|
||||||
|
dialogVisible: false,
|
||||||
storlist: [],
|
storlist: [],
|
||||||
storId: null
|
storId: null
|
||||||
}
|
}
|
||||||
@@ -138,6 +211,20 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
closeView(){
|
||||||
|
this.ivtForm={}
|
||||||
|
this.dialogVisible = false
|
||||||
|
},
|
||||||
|
updateMaterial(row){
|
||||||
|
this.dialogVisible = true
|
||||||
|
this.ivtForm = row
|
||||||
|
// ProductIvt.edit(row).then(res => {
|
||||||
|
// this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
// this.crud.toQuery()
|
||||||
|
// }).catch(err => {
|
||||||
|
// console.log(err.response.data.message)
|
||||||
|
// })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import request from '@/utils/request'
|
|||||||
|
|
||||||
export function add(data) {
|
export function add(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/stIvtStructivtCp',
|
url: '/api/stIvtStructivtYl',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
@@ -10,7 +10,7 @@ export function add(data) {
|
|||||||
|
|
||||||
export function del(ids) {
|
export function del(ids) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/stIvtStructivtCp/delete',
|
url: '/api/stIvtStructivtYl/delete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: ids
|
data: ids
|
||||||
})
|
})
|
||||||
@@ -18,7 +18,7 @@ export function del(ids) {
|
|||||||
|
|
||||||
export function edit(data) {
|
export function edit(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/stIvtStructivtCp/update',
|
url: '/api/stIvtStructivtYl/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sectQueryChange(val) {
|
sectQueryChange(val) {
|
||||||
debugger
|
|
||||||
this.sectProp = val
|
this.sectProp = val
|
||||||
if (val.length === 1) {
|
if (val.length === 1) {
|
||||||
this.sect_id = val[0]
|
this.sect_id = val[0]
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ export default {
|
|||||||
this.$emit('AddChanged')
|
this.$emit('AddChanged')
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.beforeSubmit]() {
|
[CRUD.HOOK.beforeSubmit]() {
|
||||||
debugger
|
|
||||||
// 提交前校验
|
// 提交前校验
|
||||||
if (this.form.tableData.length === 0) {
|
if (this.form.tableData.length === 0) {
|
||||||
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
downloadButton() {
|
downloadButton() {
|
||||||
this.downloading = true
|
this.downloading = true
|
||||||
download('/api/in/semiproductIn/download', this.query).then(result => {
|
download('/api/in/semiproductIn/download', this.query).then(result => {
|
||||||
debugger
|
|
||||||
downloadFile(result, '半成品入库单', 'xlsx')
|
downloadFile(result, '半成品入库单', 'xlsx')
|
||||||
this.downloading = false
|
this.downloading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ export default {
|
|||||||
this.$emit('AddChanged')
|
this.$emit('AddChanged')
|
||||||
},
|
},
|
||||||
[CRUD.HOOK.beforeSubmit]() {
|
[CRUD.HOOK.beforeSubmit]() {
|
||||||
debugger
|
|
||||||
// 提交前校验
|
// 提交前校验
|
||||||
if (this.form.tableData.length === 0) {
|
if (this.form.tableData.length === 0) {
|
||||||
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ export default {
|
|||||||
this.materShow = true
|
this.materShow = true
|
||||||
},
|
},
|
||||||
tableChanged(row) {
|
tableChanged(row) {
|
||||||
debugger
|
|
||||||
this.form.material_code = row.material_code
|
this.form.material_code = row.material_code
|
||||||
this.form.material_id = row.material_id
|
this.form.material_id = row.material_id
|
||||||
this.tableData1 = []
|
this.tableData1 = []
|
||||||
@@ -298,11 +298,11 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteRow(index, rows) {
|
deleteRow(index, rows) {
|
||||||
debugger
|
|
||||||
const row = this.form.tableData[index]
|
const row = this.form.tableData[index]
|
||||||
const nowList = []
|
const nowList = []
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
debugger
|
|
||||||
if (this.form.tableData[i].storagevehicle_code === row.storagevehicle_code) {
|
if (this.form.tableData[i].storagevehicle_code === row.storagevehicle_code) {
|
||||||
this.tableData1.push(this.form.tableData[i])
|
this.tableData1.push(this.form.tableData[i])
|
||||||
} else {
|
} else {
|
||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
this.form.detail_count = this.form.tableData.length
|
this.form.detail_count = this.form.tableData.length
|
||||||
},
|
},
|
||||||
deleteRow1(index, rows) {
|
deleteRow1(index, rows) {
|
||||||
debugger
|
|
||||||
const tablemap = new Map()
|
const tablemap = new Map()
|
||||||
for (let i = 0; i < this.form.tableData.length; i++) {
|
for (let i = 0; i < this.form.tableData.length; i++) {
|
||||||
tablemap.set(this.form.tableData[i].storagevehicle_code, this.form.tableData[i].storagevehicle_code)
|
tablemap.set(this.form.tableData[i].storagevehicle_code, this.form.tableData[i].storagevehicle_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user