fix:fmlog日志添加时,物料只展示来料未完成

This commit is contained in:
shijing 2025-04-11 15:24:29 +08:00
parent 14c161a917
commit e9177c2eec
1 changed files with 12 additions and 10 deletions

View File

@ -31,14 +31,9 @@
:label="item.batch"
:value="item.id"
>
<div
style="
display: flex;
justify-content: space-between;
"
>
<span style="flex:1;margin-right:15px!important;">{{ item.batch }}</span>
<span style="flex:1;">{{ item.count }}</span>
<div style="position:relative;width:100%">
<span style="margin-right:15px!important;">{{ item.batch }}</span>
<span style="position:absolute;right:0">{{ item.count }}</span>
</div>
</el-option>
</el-select>
@ -478,7 +473,14 @@ export default {
//
getMaterial() {
let that = this;
that.$API.wpm.wmaterial.list.req({mtaskx:that.mtask,mgroupx: that.mgroup,material: that.material_in,page: 0,}).then((res) => {
that.$API.wpm.wmaterial.list.req({
mtaskx:that.mtask,
mgroup: that.mgroup,
material: that.material_in,
tag:'todo',
page: 0,
state:10
}).then((res) => {
that.materialOptions = res;
if(that.codeText!==''){
res.forEach(item=>{
@ -510,7 +512,7 @@ export default {
let that = this;
that.mode = mode;
that.visible = true;
if(codeText!==''){
if(codeText&&codeText!==''){
that.codeText = codeText;
let id = codeText.split('#')[1];
that.$API.cm.labelmat.item.req(id).then((res) => {