|
|
@ -6,7 +6,7 @@ import { |
|
|
saveRework, |
|
|
saveRework, |
|
|
getRework, |
|
|
getRework, |
|
|
removeRework, |
|
|
removeRework, |
|
|
cancelRework |
|
|
|
|
|
|
|
|
cancelRework, queryOperator |
|
|
} from '../../../api/production/generateReport' |
|
|
} from '../../../api/production/generateReport' |
|
|
import dayjs from 'dayjs' |
|
|
import dayjs from 'dayjs' |
|
|
import decimal, {Decimal} from 'decimal.js' |
|
|
import decimal, {Decimal} from 'decimal.js' |
|
|
@ -308,6 +308,18 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleQueryOperator(){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
operatorId:this.saveRework.operatorId |
|
|
|
|
|
} |
|
|
|
|
|
queryOperator(params).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0){ |
|
|
|
|
|
if (data.rows.length >= 1){ |
|
|
|
|
|
this.saveRework.operatorName = data.rows[0].operatorName |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
'saveRework.operatorId'(newVal, oldVal){ |
|
|
'saveRework.operatorId'(newVal, oldVal){ |
|
|
@ -344,7 +356,7 @@ export default { |
|
|
<el-col :span="10"> |
|
|
<el-col :span="10"> |
|
|
<el-form-item label="操作员" prop="operator"> |
|
|
<el-form-item label="操作员" prop="operator"> |
|
|
<span slot="label" @click="getBaseList(26,1)"><a>操作员</a></span> |
|
|
<span slot="label" @click="getBaseList(26,1)"><a>操作员</a></span> |
|
|
<el-input v-model="saveRework.operatorId"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="saveRework.operatorId" @blur="handleQueryOperator"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="14"> |
|
|
<el-col :span="14"> |
|
|
|