|
|
|
@ -62,6 +62,7 @@ |
|
|
|
<el-button @click="getMainData()" type="primary">查询</el-button> |
|
|
|
<el-button @click="printLabelModel()" type="primary">打印</el-button> |
|
|
|
<el-button @click="openAttributeChangeDialog()" type="warning">属性变动</el-button> |
|
|
|
<el-button @click="freezeStatus()" type="primary">冻结</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
@ -166,7 +167,13 @@ |
|
|
|
|
|
|
|
import {getCRollInfoList} from '@/api/crollinfo/crollinfo.js' |
|
|
|
import {rollPrint} from '@/api/finishedProductWarehouse/rollPrint.js' |
|
|
|
import {getInboundQcResultData, getKuCunLabelData, updateInventoryStockAttribute, getWarehouseList} from '../../../api/wms/wms' |
|
|
|
import { |
|
|
|
getInboundQcResultData, |
|
|
|
getKuCunLabelData, |
|
|
|
updateInventoryStockAttribute, |
|
|
|
getWarehouseList, |
|
|
|
freezeStatusInventoryStock |
|
|
|
} from '../../../api/wms/wms' |
|
|
|
import {kuCunLabelPrint} from '../clodopLabel/kuCunLabel' |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -723,6 +730,34 @@ export default { |
|
|
|
this.$message.error(error.msg || '属性变动失败,请重试'); |
|
|
|
} |
|
|
|
}, |
|
|
|
freezeStatus() { |
|
|
|
if (this.selectionDataList.length === 0) { |
|
|
|
this.$message.warning('请先勾选要冻结的标签!') |
|
|
|
return false |
|
|
|
} |
|
|
|
let flag = true |
|
|
|
this.selectionDataList.forEach((item)=>{ |
|
|
|
if (item.status != '在库'){ |
|
|
|
flag = false |
|
|
|
} |
|
|
|
}) |
|
|
|
if (!flag) { |
|
|
|
this.$message.warning("勾选的内容存在不是'在库'状态的数据") |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$confirm('确认冻结所选的' + this.selectionDataList.length + '条数据?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
freezeStatusInventoryStock(this.selectionDataList).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.getMainData() |
|
|
|
} |
|
|
|
}).catch() |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
|
|
|
|
|